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
8a6b6479
Kaydet (Commit)
8a6b6479
authored
May 08, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert table selection page to .ui
Change-Id: Id54d2c6e9cb2f32f90e60d6348fc768e00e5c704
üst
58ff85ff
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
49 deletions
+60
-49
UIConfig_sabpilot.mk
extensions/UIConfig_sabpilot.mk
+1
-0
abpresid.hrc
extensions/source/abpilot/abpresid.hrc
+0
-4
abspilot.src
extensions/source/abpilot/abspilot.src
+0
-29
tableselectionpage.cxx
extensions/source/abpilot/tableselectionpage.cxx
+12
-14
tableselectionpage.hxx
extensions/source/abpilot/tableselectionpage.hxx
+1
-2
selecttablepage.ui
extensions/uiconfig/sabpilot/ui/selecttablepage.ui
+46
-0
No files found.
extensions/UIConfig_sabpilot.mk
Dosyayı görüntüle @
8a6b6479
...
...
@@ -11,6 +11,7 @@ $(eval $(call gb_UIConfig_UIConfig,modules/sabpilot))
$(eval $(call gb_UIConfig_add_uifiles,modules/sabpilot,\
extensions/uiconfig/sabpilot/ui/fieldassignpage \
extensions/uiconfig/sabpilot/ui/selecttablepage \
extensions/uiconfig/sabpilot/ui/selecttypepage \
))
...
...
extensions/source/abpilot/abpresid.hrc
Dosyayı görüntüle @
8a6b6479
...
...
@@ -45,7 +45,6 @@
// tab pages
#define RID_PAGE_ADMININVOKATION ( RID_PAGE_START + 1 )
#define RID_PAGE_TABLESELECTION_AB ( RID_PAGE_START + 2 )
#define RID_PAGE_FINAL ( RID_PAGE_START + 4 )
// please adjust RID_PAGE_END (below) when adding new tab pages
...
...
@@ -131,7 +130,6 @@
#define FT_ADMINEXPLANATION 3
#define FT_NAME_EXPL 4
#define FT_ERROR 5
#define FL_TOOMUCHTABLES 6
#define FT_FINISH_EXPL 9
#define FT_DUPLICATENAME 10
#define FT_LOCATION 11
...
...
@@ -141,8 +139,6 @@
#define PB_INVOKE_ADMIN_DIALOG 1
#define PB_BROWSE 3
#define LB_TABLELIST 1
#define CB_REGISTER_DS 1
#define CBB_LOCATION 1
...
...
extensions/source/abpilot/abspilot.src
Dosyayı görüntüle @
8a6b6479
...
...
@@ -93,35 +93,6 @@ TabPage RID_PAGE_ADMININVOKATION
};
};
TabPage RID_PAGE_TABLESELECTION_AB
{
HelpID = "extensions:TabPage:RID_PAGE_TABLESELECTION_AB";
SVLook = TRUE ;
Size = MAP_APPFONT ( WINDOW_SIZE_X , WINDOW_SIZE_Y ) ;
FixedText FL_TOOMUCHTABLES
{
Pos = MAP_APPFONT ( BORDER_X, 9 ) ;
Size = MAP_APPFONT ( WINDOW_SIZE_X - 2 * BORDER_X, 24 ) ;
WordBreak = TRUE;
Text [ en-US ] = "The external data source you have chosen contains more than one address book.\nPlease select the one you mainly want to work with:";
};
ListBox LB_TABLELIST
{
HelpID = "extensions:ListBox:RID_PAGE_TABLESELECTION_AB:LB_TABLELIST";
Pos = MAP_APPFONT ( BORDER_X, 36 ) ;
Size = MAP_APPFONT ( WINDOW_SIZE_X - 2 * BORDER_X, 50 ) ;
SVLook = TRUE;
Sort = TRUE;
DropDown = FALSE;
AutoHScroll = TRUE;
Border = TRUE;
};
};
TabPage RID_PAGE_FINAL
{
HelpID = "extensions:TabPage:RID_PAGE_FINAL";
...
...
extensions/source/abpilot/tableselectionpage.cxx
Dosyayı görüntüle @
8a6b6479
...
...
@@ -33,14 +33,12 @@ namespace abp
TableSelectionPage
::
TableSelectionPage
(
OAddessBookSourcePilot
*
_pParent
)
:
AddressBookSourcePage
(
_pParent
,
ModuleRes
(
RID_PAGE_TABLESELECTION_AB
))
,
m_aLabel
(
this
,
ModuleRes
(
FL_TOOMUCHTABLES
)
)
,
m_aTableList
(
this
,
ModuleRes
(
LB_TABLELIST
)
)
:
AddressBookSourcePage
(
_pParent
,
"SelectTablePage"
,
"modules/sabpilot/ui/selecttablepage.ui"
)
{
FreeResource
();
m_aTableList
.
SetSelectHdl
(
LINK
(
this
,
TableSelectionPage
,
OnTableSelected
)
);
m_aTableList
.
SetDoubleClickHdl
(
LINK
(
this
,
TableSelectionPage
,
OnTableDoubleClicked
)
);
get
(
m_pTableList
,
"table"
);
m_pTableList
->
SetSelectHdl
(
LINK
(
this
,
TableSelectionPage
,
OnTableSelected
)
);
m_pTableList
->
SetDoubleClickHdl
(
LINK
(
this
,
TableSelectionPage
,
OnTableDoubleClicked
)
);
}
...
...
@@ -48,7 +46,7 @@ namespace abp
{
AddressBookSourcePage
::
ActivatePage
();
m_
aTableList
.
GrabFocus
();
m_
pTableList
->
GrabFocus
();
}
...
...
@@ -64,7 +62,7 @@ namespace abp
const
AddressSettings
&
rSettings
=
getSettings
();
m_
aTableList
.
Clear
();
m_
pTableList
->
Clear
();
// get the table names
const
StringBag
&
aTableNames
=
getDialog
()
->
getDataSource
().
getTableNames
();
...
...
@@ -76,16 +74,16 @@ namespace abp
aTables
!=
aTableNames
.
end
();
++
aTables
)
m_
aTableList
.
InsertEntry
(
*
aTables
);
m_
pTableList
->
InsertEntry
(
*
aTables
);
// initially select the proper table
m_
aTableList
.
SelectEntry
(
rSettings
.
sSelectedTable
);
m_
pTableList
->
SelectEntry
(
rSettings
.
sSelectedTable
);
}
IMPL_LINK
(
TableSelectionPage
,
OnTableDoubleClicked
,
void
*
,
/*NOTINTERESTEDIN*/
)
{
if
(
1
==
m_
aTableList
.
GetSelectEntryCount
()
)
if
(
1
==
m_
pTableList
->
GetSelectEntryCount
()
)
getDialog
()
->
travelNext
();
return
0L
;
...
...
@@ -105,7 +103,7 @@ namespace abp
return
false
;
AddressSettings
&
rSettings
=
getSettings
();
rSettings
.
sSelectedTable
=
m_
aTableList
.
GetSelectEntry
();
rSettings
.
sSelectedTable
=
m_
pTableList
->
GetSelectEntry
();
return
true
;
}
...
...
@@ -114,7 +112,7 @@ namespace abp
bool
TableSelectionPage
::
canAdvance
()
const
{
return
AddressBookSourcePage
::
canAdvance
()
&&
(
0
<
m_
aTableList
.
GetSelectEntryCount
()
);
&&
(
0
<
m_
pTableList
->
GetSelectEntryCount
()
);
}
...
...
extensions/source/abpilot/tableselectionpage.hxx
Dosyayı görüntüle @
8a6b6479
...
...
@@ -34,8 +34,7 @@ namespace abp
class
TableSelectionPage
:
public
AddressBookSourcePage
{
protected
:
FixedText
m_aLabel
;
ListBox
m_aTableList
;
ListBox
*
m_pTableList
;
public
:
TableSelectionPage
(
OAddessBookSourcePilot
*
_pParent
);
...
...
extensions/uiconfig/sabpilot/ui/selecttablepage.ui
0 → 100644
Dosyayı görüntüle @
8a6b6479
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<interface>
<requires
lib=
"gtk+"
version=
"3.0"
/>
<object
class=
"GtkGrid"
id=
"SelectTablePage"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"border_width"
>
6
</property>
<property
name=
"row_spacing"
>
12
</property>
<child>
<object
class=
"GtkLabel"
id=
"label2"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"xalign"
>
0
</property>
<property
name=
"yalign"
>
0
</property>
<property
name=
"label"
translatable=
"yes"
>
The external data source you have chosen contains more than one address book.
Please select the one you mainly want to work with:
</property>
<property
name=
"wrap"
>
True
</property>
<property
name=
"max_width_chars"
>
90
</property>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
0
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
<child>
<object
class=
"GtkTreeView"
id=
"table:border"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"vexpand"
>
True
</property>
<child
internal-child=
"selection"
>
<object
class=
"GtkTreeSelection"
id=
"treeview-selection2"
/>
</child>
</object>
<packing>
<property
name=
"left_attach"
>
0
</property>
<property
name=
"top_attach"
>
1
</property>
<property
name=
"width"
>
1
</property>
<property
name=
"height"
>
1
</property>
</packing>
</child>
</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