[Libreoffice-commits] core.git: chart2/source chart2/uiconfig

Markus Mohrhard markus.mohrhard at collabora.co.uk
Sun Feb 9 05:21:04 PST 2014


 chart2/source/controller/dialogs/dlg_PropertyMapping.cxx |   34 ++++
 chart2/source/controller/dialogs/dlg_PropertyMapping.hxx |   35 ++++
 chart2/uiconfig/ui/dlg_PropertyMapping.ui                |  119 +++++++++++++++
 3 files changed, 188 insertions(+)

New commits:
commit 042fec5bf2d00e55a0ef8b2a0120e821189b5088
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Sun Feb 9 14:19:14 2014 +0100

    forgot the new files
    
    Change-Id: I63bdb340aa06b072541bb8b0ed975457c504c9a2

diff --git a/chart2/source/controller/dialogs/dlg_PropertyMapping.cxx b/chart2/source/controller/dialogs/dlg_PropertyMapping.cxx
new file mode 100644
index 0000000..c41859f
--- /dev/null
+++ b/chart2/source/controller/dialogs/dlg_PropertyMapping.cxx
@@ -0,0 +1,34 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#include "dlg_PropertyMapping.hxx"
+
+namespace chart {
+
+namespace {
+
+static long pListBoxTabs[] =
+{
+    3,
+    0, 0, 75
+};
+
+}
+
+PropertyMappingDlg::PropertyMappingDlg(Window* pParent):
+    ModalDialog(pParent, "Property Mapping Dialog", "modules/schart/ui/dlg_PropertyMapping.ui")
+{
+    get(mpMappingTable, "LST_PROPERTY_MAPPING");
+
+    mpMappingTable->SetTabs( pListBoxTabs, MAP_APPFONT );
+}
+
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/controller/dialogs/dlg_PropertyMapping.hxx b/chart2/source/controller/dialogs/dlg_PropertyMapping.hxx
new file mode 100644
index 0000000..3240a30
--- /dev/null
+++ b/chart2/source/controller/dialogs/dlg_PropertyMapping.hxx
@@ -0,0 +1,35 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef CHART2_PROPERTY_MAPPING_HXX
+#define CHART2_PROPERTY_MAPPING_HXX
+
+#include <vcl/dialog.hxx>
+#include <svtools/svtabbx.hxx>
+
+namespace chart {
+
+class PropertyMappingDlg : public ModalDialog
+{
+public:
+
+    PropertyMappingDlg(Window* pParent);
+
+    OUString getSelectedEntry();
+
+private:
+
+    SvTabListBox* mpMappingTable;
+};
+
+}
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/uiconfig/ui/dlg_PropertyMapping.ui b/chart2/uiconfig/ui/dlg_PropertyMapping.ui
new file mode 100644
index 0000000..55ae428
--- /dev/null
+++ b/chart2/uiconfig/ui/dlg_PropertyMapping.ui
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Generated with glade 3.16.1 -->
+<interface>
+  <requires lib="gtk+" version="3.10"/>
+  <!-- interface-requires LibreOffice 1.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type_hint">dialog</property>
+    <child>
+      <object class="GtkBox" id="box1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="orientation">vertical</property>
+        <child>
+          <object class="GtkLabel" id="LB_TITLE">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Select property mapping:</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">0</property>
+          </packing>
+        </child>
+        <child>
+          <object class="svtlo-SvTabListBox" id="LST_PROPERTY_MAPPING">
+            <property name="width_request">110</property>
+            <property name="height_request">110</property>
+            <property name="visible">True</property>
+            <property name="can_focus">True</property>
+            <child internal-child="selection">
+              <object class="GtkTreeSelection" id="Tab List-selection2"/>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">1</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkButtonBox" id="buttonbox1">
+            <property name="visible">True</property>
+            <property name="can_focus">False</property>
+            <property name="margin_top">6</property>
+            <property name="margin_bottom">6</property>
+            <property name="spacing">6</property>
+            <property name="layout_style">start</property>
+            <child>
+              <object class="GtkButton" id="ok">
+                <property name="label" translatable="yes">Ok</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">0</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkButton" id="cancel">
+                <property name="label" translatable="yes">Cancel</property>
+                <property name="visible">True</property>
+                <property name="can_focus">True</property>
+                <property name="receives_default">True</property>
+              </object>
+              <packing>
+                <property name="expand">False</property>
+                <property name="fill">True</property>
+                <property name="position">1</property>
+              </packing>
+            </child>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">2</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="LB_COLOR">
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">Color</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">3</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="LB_FILLCOLOR">
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">FillColor</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">4</property>
+          </packing>
+        </child>
+        <child>
+          <object class="GtkLabel" id="LB_BORDERCOLOR">
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">BorderColor</property>
+          </object>
+          <packing>
+            <property name="expand">False</property>
+            <property name="fill">True</property>
+            <property name="position">5</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>


More information about the Libreoffice-commits mailing list