Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
db666bdf
Kaydet (Commit)
db666bdf
authored
Ock 07, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert data range tabdialog to .ui
Change-Id: I70e9064a13a751f6b0dae153522953eaf2ac53a5
üst
a75ed48d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
120 additions
and
84 deletions
+120
-84
AllLangResTarget_chartcontroller.mk
chart2/AllLangResTarget_chartcontroller.mk
+0
-1
UIConfig_chart2.mk
chart2/UIConfig_chart2.mk
+1
-0
dlg_DataSource.cxx
chart2/source/controller/dialogs/dlg_DataSource.cxx
+26
-37
dlg_DataSource.src
chart2/source/controller/dialogs/dlg_DataSource.src
+0
-42
HelpIds.hrc
chart2/source/controller/inc/HelpIds.hrc
+0
-1
dlg_DataSource.hxx
chart2/source/controller/inc/dlg_DataSource.hxx
+1
-3
datarangedialog.ui
chart2/uiconfig/ui/datarangedialog.ui
+92
-0
No files found.
chart2/AllLangResTarget_chartcontroller.mk
Dosyayı görüntüle @
db666bdf
...
@@ -28,7 +28,6 @@ $(eval $(call gb_SrsTarget_set_include,chart2/res,\
...
@@ -28,7 +28,6 @@ $(eval $(call gb_SrsTarget_set_include,chart2/res,\
$(eval $(call gb_SrsTarget_add_files,chart2/res,\
$(eval $(call gb_SrsTarget_add_files,chart2/res,\
chart2/source/controller/dialogs/dlg_DataEditor.src \
chart2/source/controller/dialogs/dlg_DataEditor.src \
chart2/source/controller/dialogs/dlg_DataSource.src \
chart2/source/controller/dialogs/res_BarGeometry.src \
chart2/source/controller/dialogs/res_BarGeometry.src \
chart2/source/controller/dialogs/Strings_AdditionalControls.src \
chart2/source/controller/dialogs/Strings_AdditionalControls.src \
chart2/source/controller/dialogs/Strings_ChartTypes.src \
chart2/source/controller/dialogs/Strings_ChartTypes.src \
...
...
chart2/UIConfig_chart2.mk
Dosyayı görüntüle @
db666bdf
...
@@ -33,6 +33,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/schart,\
...
@@ -33,6 +33,7 @@ $(eval $(call gb_UIConfig_add_uifiles,modules/schart,\
chart2/uiconfig/ui/3dviewdialog \
chart2/uiconfig/ui/3dviewdialog \
chart2/uiconfig/ui/attributedialog \
chart2/uiconfig/ui/attributedialog \
chart2/uiconfig/ui/chardialog \
chart2/uiconfig/ui/chardialog \
chart2/uiconfig/ui/datarangedialog \
chart2/uiconfig/ui/dlg_DataLabel \
chart2/uiconfig/ui/dlg_DataLabel \
chart2/uiconfig/ui/dlg_InsertErrorBars \
chart2/uiconfig/ui/dlg_InsertErrorBars \
chart2/uiconfig/ui/insertaxisdlg \
chart2/uiconfig/ui/insertaxisdlg \
...
...
chart2/source/controller/dialogs/dlg_DataSource.cxx
Dosyayı görüntüle @
db666bdf
...
@@ -29,8 +29,8 @@
...
@@ -29,8 +29,8 @@
#include "tp_RangeChooser.hxx"
#include "tp_RangeChooser.hxx"
#include "tp_DataSource.hxx"
#include "tp_DataSource.hxx"
// for RET_OK
#include <vcl/layout.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/msgbox.hxx>
// for RET_OK
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
;
using
namespace
::
com
::
sun
::
star
::
chart2
;
using
namespace
::
com
::
sun
::
star
::
chart2
;
...
@@ -85,8 +85,7 @@ Reference< chart2::XChartTypeTemplate > DocumentChartTypeTemplateProvider::getCu
...
@@ -85,8 +85,7 @@ Reference< chart2::XChartTypeTemplate > DocumentChartTypeTemplateProvider::getCu
class
DataSourceTabControl
:
public
TabControl
class
DataSourceTabControl
:
public
TabControl
{
{
public
:
public
:
DataSourceTabControl
(
Window
*
pParent
,
const
ResId
&
rResId
);
DataSourceTabControl
(
Window
*
pParent
);
~
DataSourceTabControl
();
virtual
long
DeactivatePage
();
virtual
long
DeactivatePage
();
...
@@ -97,13 +96,11 @@ private:
...
@@ -97,13 +96,11 @@ private:
bool
m_bTogglingEnabled
;
bool
m_bTogglingEnabled
;
};
};
DataSourceTabControl
::
DataSourceTabControl
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
DataSourceTabControl
::
DataSourceTabControl
(
Window
*
pParent
)
TabControl
(
pParent
,
rResId
),
:
TabControl
(
pParent
)
m_bTogglingEnabled
(
true
)
,
m_bTogglingEnabled
(
true
)
{}
{
}
DataSourceTabControl
::~
DataSourceTabControl
()
{}
// Note that the result is long, but is intended to be a bool
// Note that the result is long, but is intended to be a bool
long
DataSourceTabControl
::
DeactivatePage
()
long
DataSourceTabControl
::
DeactivatePage
()
...
@@ -127,31 +124,25 @@ void DataSourceTabControl::EnableTabToggling()
...
@@ -127,31 +124,25 @@ void DataSourceTabControl::EnableTabToggling()
sal_uInt16
DataSourceDialog
::
m_nLastPageId
=
0
;
sal_uInt16
DataSourceDialog
::
m_nLastPageId
=
0
;
DataSourceDialog
::
DataSourceDialog
(
DataSourceDialog
::
DataSourceDialog
(
Window
*
pParent
,
Window
*
pParent
,
const
Reference
<
XChartDocument
>
&
xChartDocument
,
const
Reference
<
XChartDocument
>
&
xChartDocument
,
const
Reference
<
uno
::
XComponentContext
>
&
xContext
)
:
const
Reference
<
uno
::
XComponentContext
>
&
xContext
)
:
TabDialog
(
pParent
,
"DataRangeDialog"
,
TabDialog
(
pParent
,
SchResId
(
DLG_DATA_SOURCE
)),
"modules/schart/ui/datarangedialog.ui"
)
,
m_xChartDocument
(
xChartDocument
)
m_xChartDocument
(
xChartDocument
),
,
m_xContext
(
xContext
)
m_xContext
(
xContext
),
,
m_apDocTemplateProvider
(
new
DocumentChartTypeTemplateProvider
(
xChartDocument
))
m_apDocTemplateProvider
(
new
DocumentChartTypeTemplateProvider
(
xChartDocument
)),
,
m_apDialogModel
(
new
DialogModel
(
xChartDocument
,
xContext
))
m_apDialogModel
(
new
DialogModel
(
xChartDocument
,
xContext
)),
,
m_pTabControl
(
new
DataSourceTabControl
(
get_content_area
()))
,
m_pRangeChooserTabePage
(
0
)
m_pTabControl
(
new
DataSourceTabControl
(
this
,
SchResId
(
TABCTRL
)
)),
,
m_pDataSourceTabPage
(
0
)
m_aBtnOK
(
this
,
SchResId
(
BTN_OK
)
),
,
m_bRangeChooserTabIsValid
(
true
)
m_aBtnCancel
(
this
,
SchResId
(
BTN_CANCEL
)
),
,
m_bDataSourceTabIsValid
(
true
)
m_aBtnHelp
(
this
,
SchResId
(
BTN_HELP
)
),
m_pRangeChooserTabePage
(
0
),
m_pDataSourceTabPage
(
0
),
m_bRangeChooserTabIsValid
(
true
),
m_bDataSourceTabIsValid
(
true
)
{
{
FreeResource
();
get
(
m_pBtnOK
,
"ok"
);
m_pTabControl
->
Show
();
//don't create the tabpages before FreeResource, otherwise the help ids are not matched correctly
m_pRangeChooserTabePage
=
new
RangeChooserTabPage
(
m_pTabControl
,
*
(
m_apDialogModel
.
get
()),
m_pRangeChooserTabePage
=
new
RangeChooserTabPage
(
m_pTabControl
,
*
(
m_apDialogModel
.
get
()),
m_apDocTemplateProvider
.
get
(),
this
,
true
/* bHideDescription */
);
m_apDocTemplateProvider
.
get
(),
this
,
true
/* bHideDescription */
);
m_pDataSourceTabPage
=
new
DataSourceTabPage
(
m_pTabControl
,
*
(
m_apDialogModel
.
get
()),
m_pDataSourceTabPage
=
new
DataSourceTabPage
(
m_pTabControl
,
*
(
m_apDialogModel
.
get
()),
...
@@ -164,8 +155,6 @@ DataSourceDialog::DataSourceDialog(
...
@@ -164,8 +155,6 @@ DataSourceDialog::DataSourceDialog(
m_pTabControl
->
SetTabPage
(
TP_RANGECHOOSER
,
m_pRangeChooserTabePage
);
m_pTabControl
->
SetTabPage
(
TP_RANGECHOOSER
,
m_pRangeChooserTabePage
);
m_pTabControl
->
SelectTabPage
(
m_nLastPageId
);
m_pTabControl
->
SelectTabPage
(
m_nLastPageId
);
SetHelpId
(
HID_SCH_DLG_RANGES
);
}
}
DataSourceDialog
::~
DataSourceDialog
()
DataSourceDialog
::~
DataSourceDialog
()
...
@@ -199,7 +188,7 @@ void DataSourceDialog::setInvalidPage( TabPage * pTabPage )
...
@@ -199,7 +188,7 @@ void DataSourceDialog::setInvalidPage( TabPage * pTabPage )
if
(
!
(
m_bRangeChooserTabIsValid
&&
m_bDataSourceTabIsValid
))
if
(
!
(
m_bRangeChooserTabIsValid
&&
m_bDataSourceTabIsValid
))
{
{
m_
aBtnOK
.
Enable
(
sal_False
);
m_
pBtnOK
->
Enable
(
sal_False
);
OSL_ASSERT
(
m_pTabControl
);
OSL_ASSERT
(
m_pTabControl
);
// note: there seems to be no suitable mechanism to address pages by
// note: there seems to be no suitable mechanism to address pages by
// identifier, at least it is unclear what the page identifiers are.
// identifier, at least it is unclear what the page identifiers are.
...
@@ -221,7 +210,7 @@ void DataSourceDialog::setValidPage( TabPage * pTabPage )
...
@@ -221,7 +210,7 @@ void DataSourceDialog::setValidPage( TabPage * pTabPage )
if
(
m_bRangeChooserTabIsValid
&&
m_bDataSourceTabIsValid
)
if
(
m_bRangeChooserTabIsValid
&&
m_bDataSourceTabIsValid
)
{
{
m_
aBtnOK
.
Enable
(
sal_True
);
m_
pBtnOK
->
Enable
(
sal_True
);
OSL_ASSERT
(
m_pTabControl
);
OSL_ASSERT
(
m_pTabControl
);
m_pTabControl
->
EnableTabToggling
();
m_pTabControl
->
EnableTabToggling
();
}
}
...
...
chart2/source/controller/dialogs/dlg_DataSource.src
deleted
100644 → 0
Dosyayı görüntüle @
a75ed48d
/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include "dlg_DataSource.hrc"
#include "HelpIds.hrc"
// for BUTTONS_OK_CANCEL_HELP_STACKED
#include "CommonResources.hrc"
TabDialog DLG_DATA_SOURCE
{
HelpID = HID_SCH_DLG_RANGES ;
OutputSize = TRUE ;
SVLook = TRUE ;
Moveable = TRUE ;
Closeable = TRUE ;
Text [ en-US ] = "Data Ranges" ;
TabControl TABCTRL
{
OutputSize = TRUE ;
Pos = MAP_APPFONT ( 3 , 3 ) ;
};
BUTTONS_OK_CANCEL_HELP_STACKED( 200 )
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
chart2/source/controller/inc/HelpIds.hrc
Dosyayı görüntüle @
db666bdf
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#define HID_SCH_CHART_AUTO_FORMAT "CHART2_HID_SCH_CHART_AUTO_FORMAT"
#define HID_SCH_CHART_AUTO_FORMAT "CHART2_HID_SCH_CHART_AUTO_FORMAT"
#define HID_SCH_LB_BAR_GEOMETRY "CHART2_HID_SCH_LB_BAR_GEOMETRY"
#define HID_SCH_LB_BAR_GEOMETRY "CHART2_HID_SCH_LB_BAR_GEOMETRY"
#define HID_SCH_DLG_RANGES "CHART2_HID_SCH_DLG_RANGES"
#define HID_SCH_CB_SECONDARY_XAXIS "CHART2_HID_SCH_CB_SECONDARY_XAXIS"
#define HID_SCH_CB_SECONDARY_XAXIS "CHART2_HID_SCH_CB_SECONDARY_XAXIS"
#define HID_SCH_CB_SECONDARY_YAXIS "CHART2_HID_SCH_CB_SECONDARY_YAXIS"
#define HID_SCH_CB_SECONDARY_YAXIS "CHART2_HID_SCH_CB_SECONDARY_YAXIS"
...
...
chart2/source/controller/inc/dlg_DataSource.hxx
Dosyayı görüntüle @
db666bdf
...
@@ -72,9 +72,7 @@ protected:
...
@@ -72,9 +72,7 @@ protected:
private
:
private
:
DataSourceTabControl
*
m_pTabControl
;
DataSourceTabControl
*
m_pTabControl
;
OKButton
m_aBtnOK
;
OKButton
*
m_pBtnOK
;
CancelButton
m_aBtnCancel
;
HelpButton
m_aBtnHelp
;
RangeChooserTabPage
*
m_pRangeChooserTabePage
;
RangeChooserTabPage
*
m_pRangeChooserTabePage
;
DataSourceTabPage
*
m_pDataSourceTabPage
;
DataSourceTabPage
*
m_pDataSourceTabPage
;
...
...
chart2/uiconfig/ui/datarangedialog.ui
0 → 100644
Dosyayı görüntüle @
db666bdf
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.0 on Tue Jan 7 09:24:43 2014 -->
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object
class=
"GtkDialog"
id=
"DataRangeDialog"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"title"
translatable=
"yes"
>
Customize
</property>
<property
name=
"type_hint"
>
dialog
</property>
<child
internal-child=
"vbox"
>
<object
class=
"GtkBox"
id=
"dialog-vbox1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"orientation"
>
vertical
</property>
<property
name=
"spacing"
>
12
</property>
<child
internal-child=
"action_area"
>
<object
class=
"GtkButtonBox"
id=
"dialog-action_area1"
>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"layout_style"
>
end
</property>
<child>
<object
class=
"GtkButton"
id=
"ok"
>
<property
name=
"label"
>
gtk-ok
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"can_default"
>
True
</property>
<property
name=
"has_default"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
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"
>
gtk-cancel
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkButton"
id=
"help"
>
<property
name=
"label"
>
gtk-help
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_stock"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
2
</property>
</packing>
</child>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"pack_type"
>
end
</property>
<property
name=
"position"
>
0
</property>
</packing>
</child>
<child>
<object
class=
"GtkNotebook"
id=
"tabcontrol"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
1
</property>
</packing>
</child>
</object>
</child>
<action-widgets>
<action-widget
response=
"0"
>
ok
</action-widget>
<action-widget
response=
"0"
>
cancel
</action-widget>
<action-widget
response=
"0"
>
help
</action-widget>
</action-widgets>
</object>
</interface>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment