diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-22 09:47:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-22 09:54:39 +0100 |
commit | 1f106a522ed7ebe67a0e310f48fdc09e272349d5 (patch) | |
tree | 972a1983e81900bcdb57cb762e249ea32c1971e6 /dbaccess | |
parent | fa9ce74db51a27a2ecb65fc6045c5fc209581a57 (diff) |
convert migrate page to .ui
Change-Id: I9a7871bfd08fdd8dc649d7a728eb41bcc0b64b37
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/UIConfig_dbaccess.mk | 1 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/dbmm_global.hrc | 4 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/macromigration.hrc | 36 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/macromigration.src | 111 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/macromigrationpages.cxx | 50 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/macromigrationpages.hxx | 15 | ||||
-rw-r--r-- | dbaccess/source/ext/macromigration/rangeprogressbar.hxx | 74 | ||||
-rw-r--r-- | dbaccess/uiconfig/ui/migratepage.ui | 242 |
8 files changed, 305 insertions, 228 deletions
diff --git a/dbaccess/UIConfig_dbaccess.mk b/dbaccess/UIConfig_dbaccess.mk index 08da25180e47..cb76450780ee 100644 --- a/dbaccess/UIConfig_dbaccess.mk +++ b/dbaccess/UIConfig_dbaccess.mk @@ -27,6 +27,7 @@ $(eval $(call gb_UIConfig_add_uifiles,dbaccess, \ dbaccess/uiconfig/ui/generatedvaluespage \ dbaccess/uiconfig/ui/indexdesigndialog \ dbaccess/uiconfig/ui/joindialog \ + dbaccess/uiconfig/ui/migratepage \ dbaccess/uiconfig/ui/password \ dbaccess/uiconfig/ui/preparepage \ dbaccess/uiconfig/ui/queryfilterdialog \ diff --git a/dbaccess/source/ext/macromigration/dbmm_global.hrc b/dbaccess/source/ext/macromigration/dbmm_global.hrc index fec924bccf87..946b7a5de7de 100644 --- a/dbaccess/source/ext/macromigration/dbmm_global.hrc +++ b/dbaccess/source/ext/macromigration/dbmm_global.hrc @@ -36,10 +36,6 @@ #define ERR_INVALID_BACKUP_LOCATION RID_DBMM_DIALOG_START + 0 -//= tab pages - -#define TP_MIGRATE ( RID_DBMM_TAPPAGE_START + 2 ) - //= strings #define STR_FORM ( RID_DBMM_STRING_START + 0 ) diff --git a/dbaccess/source/ext/macromigration/macromigration.hrc b/dbaccess/source/ext/macromigration/macromigration.hrc index 334ef626d1ee..d63cf5bf7a4b 100644 --- a/dbaccess/source/ext/macromigration/macromigration.hrc +++ b/dbaccess/source/ext/macromigration/macromigration.hrc @@ -24,46 +24,10 @@ #define TAB_PAGE_WIDTH 280 #define TAB_PAGE_HEIGHT 185 -// margin between the tab page and its content -#define TAB_PAGE_CONTENT_MARGIN 12 - -// dimensions of certain control types -#define FIXED_TEXT_HEIGHT 8 -#define INPUT_HEIGHT 12 -#define PROGRESS_HEIGHT 12 -#define BUTTON_WIDTH 50 -#define BUTTON_HEIGHT 14 - -// spacing after the header on each page -#define SPACING_AFTER_HEADER 6 -// spacing between related controls -#define SPACING_RELATED 3 -// spacing between unrelated controls -#define SPACING_UNRELATED 6 - -// the position of the first control after the header -#define CONTENT_POS_X ( TAB_PAGE_CONTENT_MARGIN + FIXED_TEXT_HEIGHT + SPACING_AFTER_HEADER ) - //... fixed texts ....................................................... - #define FT_HEADER 1 -#define FT_CURRENT_OBJECT_LABEL 6 -#define FT_CURRENT_OBJECT 7 -#define FT_CURRENT_PROGRESS_LABEL 8 -#define FT_CURRENT_PROGRESS 9 -#define FT_ALL_PROGRESS_LABEL 10 -#define FT_OBJECT_COUNT 12 -#define FT_OBJECT_COUNT_PROGRESS 13 -#define FT_MIGRATION_DONE 14 -#define FT_CLOSE_DOC_ERROR 15 - -//... windows ............................................................ - -#define WND_CURRENT_PROGRESS 1 -#define WND_ALL_PROGRESS 2 //... strings ............................................................ - #define STR_STATE_CLOSE_SUB_DOCS 1 #define STR_STATE_BACKUP_DBDOC 2 #define STR_STATE_MIGRATE 3 diff --git a/dbaccess/source/ext/macromigration/macromigration.src b/dbaccess/source/ext/macromigration/macromigration.src index 2f0f364b2c6f..ae07e0037997 100644 --- a/dbaccess/source/ext/macromigration/macromigration.src +++ b/dbaccess/source/ext/macromigration/macromigration.src @@ -51,117 +51,6 @@ ModalDialog DLG_MACRO_MIGRATION }; }; -//= ProgressPage -TabPage TP_MIGRATE -{ - HelpID = "dbaccess:TabPage:TP_MIGRATE"; - Pos = MAP_APPFONT( 40, 130 ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH, TAB_PAGE_HEIGHT ); - - Hide = TRUE; - - FixedText FT_HEADER - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_CONTENT_MARGIN ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); - - Text [ en-US ] = "Migration Progress"; - }; - - FixedText FT_OBJECT_COUNT - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, CONTENT_POS_X ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT ); - - Text [ en-US ] = "The database document contains $forms$ form(s) and $reports$ report(s), which are currently being processed:"; - - WordBreak = TRUE; - }; - - FixedText FT_CURRENT_OBJECT_LABEL - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); - Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); - - Text [ en-US ] = "Current object:"; - }; - - FixedText FT_CURRENT_OBJECT - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT ); - }; - - FixedText FT_CURRENT_PROGRESS_LABEL - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); - Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); - - Text [ en-US ] = "Current progress:"; - }; - - FixedText FT_CURRENT_PROGRESS - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ), FIXED_TEXT_HEIGHT ); - }; - - Window WND_CURRENT_PROGRESS - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT ); - - Border = TRUE; - BorderStyle = WINDOW_BORDER_MONO; - }; - - FixedText FT_ALL_PROGRESS_LABEL - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED ); - Size = MAP_APPFONT( 60, FIXED_TEXT_HEIGHT ); - - VCenter = TRUE; - - Text [ en-US ] = "Overall progress:"; - }; - - FixedText FT_OBJECT_COUNT_PROGRESS - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, FIXED_TEXT_HEIGHT ); - - Text [ en-US ] = "document $current$ of $overall$"; - }; - - Window WND_ALL_PROGRESS - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN + 60, - CONTENT_POS_X + 2 * FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED + PROGRESS_HEIGHT + SPACING_UNRELATED + FIXED_TEXT_HEIGHT + SPACING_RELATED ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - ( TAB_PAGE_CONTENT_MARGIN + 60 ) - TAB_PAGE_CONTENT_MARGIN, PROGRESS_HEIGHT ); - - Border = TRUE; - BorderStyle = WINDOW_BORDER_MONO; - }; - - FixedText FT_MIGRATION_DONE - { - Pos = MAP_APPFONT( TAB_PAGE_CONTENT_MARGIN, TAB_PAGE_HEIGHT - TAB_PAGE_CONTENT_MARGIN - 2 * FIXED_TEXT_HEIGHT ); - Size = MAP_APPFONT( TAB_PAGE_WIDTH - 2 * TAB_PAGE_CONTENT_MARGIN, 2 * FIXED_TEXT_HEIGHT ); - - WordBreak = TRUE; - Hide = TRUE; - - Text [ en-US ] = "All forms and reports have been successfully processed. Press 'Next' to show a detailed summary."; - }; -}; - String STR_FORM { Text [ en-US ] = "Form '$name$'"; diff --git a/dbaccess/source/ext/macromigration/macromigrationpages.cxx b/dbaccess/source/ext/macromigration/macromigrationpages.cxx index c1716eb71422..e989f2731987 100644 --- a/dbaccess/source/ext/macromigration/macromigrationpages.cxx +++ b/dbaccess/source/ext/macromigration/macromigrationpages.cxx @@ -178,58 +178,54 @@ namespace dbmm } // ProgressPage - ProgressPage::ProgressPage( MacroMigrationDialog& _rParentDialog ) - :MacroMigrationPage( _rParentDialog, MacroMigrationResId( TP_MIGRATE ) ) - ,m_aObjectCount ( this, MacroMigrationResId( FT_OBJECT_COUNT ) ) - ,m_aCurrentObjectLabel ( this, MacroMigrationResId( FT_CURRENT_OBJECT_LABEL ) ) - ,m_aCurrentObject ( this, MacroMigrationResId( FT_CURRENT_OBJECT ) ) - ,m_aCurrentActionLabel ( this, MacroMigrationResId( FT_CURRENT_PROGRESS_LABEL ) ) - ,m_aCurrentAction ( this, MacroMigrationResId( FT_CURRENT_PROGRESS ) ) - ,m_aCurrentProgress ( this, MacroMigrationResId( WND_CURRENT_PROGRESS ) ) - ,m_aAllProgressLabel ( this, MacroMigrationResId( FT_ALL_PROGRESS_LABEL ) ) - ,m_aAllProgressText ( this, MacroMigrationResId( FT_OBJECT_COUNT_PROGRESS ) ) - ,m_aAllProgress ( this, MacroMigrationResId( WND_ALL_PROGRESS ) ) - ,m_aMigrationDone ( this, MacroMigrationResId( FT_MIGRATION_DONE ) ) + ProgressPage::ProgressPage(Window* pParent) + : MacroMigrationPage(pParent, "MigratePage" ,"dbaccess/ui/migratepage.ui") { - FreeResource(); + get(m_pObjectCount, "count"); + get(m_pCurrentObject, "object"); + get(m_pCurrentAction, "current"); + m_aCurrentProgress.Set(get<ProgressBar>("currentprogress")); + get(m_pAllProgressText, "overall"); + m_aAllProgress.Set(get<ProgressBar>("allprogress")); + get(m_pMigrationDone, "done"); } - TabPage* ProgressPage::Create( ::svt::RoadmapWizard& _rParentDialog ) + TabPage* ProgressPage::Create(::svt::RoadmapWizard& _rParentDialog) { - return new ProgressPage( dynamic_cast< MacroMigrationDialog& >( _rParentDialog ) ); + return new ProgressPage(&_rParentDialog); } void ProgressPage::setDocumentCounts( const sal_Int32 _nForms, const sal_Int32 _nReports ) { - OUString sText( m_aObjectCount.GetText() ); + OUString sText( m_pObjectCount->GetText() ); sText = sText.replaceFirst( "$forms$", OUString::number( _nForms ) ); sText = sText.replaceFirst( "$reports$", OUString::number( _nReports ) ); - m_aObjectCount.SetText( sText ); + m_pObjectCount->SetText( sText ); } void ProgressPage::onFinishedSuccessfully() { - m_aMigrationDone.Show(); + m_pMigrationDone->Show(); } void ProgressPage::startObject( const OUString& _rObjectName, const OUString& _rCurrentAction, const sal_uInt32 _nRange ) { - m_aCurrentObject.SetText( _rObjectName ); - m_aCurrentAction.SetText( _rCurrentAction ); + m_pCurrentObject->SetText( _rObjectName ); + m_pCurrentAction->SetText( _rCurrentAction ); m_aCurrentProgress.SetRange( _nRange ); m_aCurrentProgress.SetValue( (sal_uInt32)0 ); // since this is currently called from the main thread, which does not have the chance // to re-schedule, we need to explicitly update the display - m_aCurrentObject.Update(); - m_aCurrentAction.Update(); + m_pCurrentObject->Update(); + m_pCurrentAction->Update(); Update(); } void ProgressPage::setObjectProgressText( const OUString& _rText ) { - m_aCurrentAction.SetText( _rText ); - m_aCurrentAction.Update(); + m_pCurrentAction->SetText( _rText ); + m_pCurrentAction->Update(); Update(); } @@ -241,9 +237,9 @@ namespace dbmm void ProgressPage::endObject() { - m_aCurrentAction.SetText( OUString() ); + m_pCurrentAction->SetText( OUString() ); m_aCurrentProgress.SetValue( m_aCurrentProgress.GetRange() ); - m_aCurrentAction.Update(); + m_pCurrentAction->Update(); Update(); } @@ -255,7 +251,7 @@ namespace dbmm void ProgressPage::setOverallProgressText( const OUString& _rText ) { - m_aAllProgressText.SetText( _rText ); + m_pAllProgressText->SetText( _rText ); Update(); } diff --git a/dbaccess/source/ext/macromigration/macromigrationpages.hxx b/dbaccess/source/ext/macromigration/macromigrationpages.hxx index 2fcbbf1f5c86..91f01a950c7e 100644 --- a/dbaccess/source/ext/macromigration/macromigrationpages.hxx +++ b/dbaccess/source/ext/macromigration/macromigrationpages.hxx @@ -105,7 +105,7 @@ namespace dbmm class ProgressPage : public MacroMigrationPage, public IMigrationProgress { public: - ProgressPage( MacroMigrationDialog& _rParentDialog ); + ProgressPage(Window *pParent); static TabPage* Create( ::svt::RoadmapWizard& _rParentDialog ); @@ -123,16 +123,13 @@ namespace dbmm virtual void setOverallProgressValue( const sal_uInt32 _nValue ) SAL_OVERRIDE; private: - FixedText m_aObjectCount; - FixedText m_aCurrentObjectLabel; - FixedText m_aCurrentObject; - FixedText m_aCurrentActionLabel; - FixedText m_aCurrentAction; + FixedText* m_pObjectCount; + FixedText* m_pCurrentObject; + FixedText* m_pCurrentAction; RangeProgressBar m_aCurrentProgress; - FixedText m_aAllProgressLabel; - FixedText m_aAllProgressText; + FixedText* m_pAllProgressText; RangeProgressBar m_aAllProgress; - FixedText m_aMigrationDone; + FixedText* m_pMigrationDone; }; // ResultPage diff --git a/dbaccess/source/ext/macromigration/rangeprogressbar.hxx b/dbaccess/source/ext/macromigration/rangeprogressbar.hxx index f7d231d33287..0dde133e7f10 100644 --- a/dbaccess/source/ext/macromigration/rangeprogressbar.hxx +++ b/dbaccess/source/ext/macromigration/rangeprogressbar.hxx @@ -28,55 +28,47 @@ namespace dbmm // RangeProgressBar /** a slight extension of the usual progress bar, which is able to remember a range */ - class RangeProgressBar : public ProgressBar + class RangeProgressBar { public: - RangeProgressBar( Window* _pParent, WinBits nWinBits = WB_STDPROGRESSBAR ) - : ProgressBar( _pParent, nWinBits ) + RangeProgressBar(ProgressBar *pBar = NULL) + : m_pBar(pBar) , m_nRange(0) - { } - - RangeProgressBar( Window* _pParent, const ResId& rResId ) - : ProgressBar( _pParent, rResId ) - , m_nRange(0) - { } - - inline void SetRange( sal_uInt32 _nRange ); - inline sal_uInt32 GetRange() const; - - inline void SetValue( sal_uInt32 _nValue ); - inline sal_uInt32 GetValue() const; + { + } + + void Set(ProgressBar *pBar) + { + m_pBar = pBar; + } + + void SetRange(sal_uInt32 _nRange) + { + m_nRange = _nRange; + if ( !m_nRange ) + m_nRange = 100; + } + + sal_uInt32 GetRange() const + { + return m_nRange; + } + + void SetValue(sal_uInt32 _nValue) + { + m_pBar->SetValue( (sal_uInt16)( 100.0 * _nValue / m_nRange ) ); + } + + sal_uInt32 GetValue() const + { + return (sal_uInt32)(m_pBar->GetValue() / 100.0 * m_nRange); + } private: + ProgressBar *m_pBar; sal_uInt32 m_nRange; - - private: - using ProgressBar::SetValue; - using ProgressBar::GetValue; }; - inline void RangeProgressBar::SetRange( sal_uInt32 _nRange ) - { - m_nRange = _nRange; - if ( !m_nRange ) - m_nRange = 100; - } - - inline sal_uInt32 RangeProgressBar::GetRange() const - { - return m_nRange; - } - - inline void RangeProgressBar::SetValue( sal_uInt32 _nValue ) - { - ProgressBar::SetValue( (sal_uInt16)( 100.0 * _nValue / m_nRange ) ); - } - - inline sal_uInt32 RangeProgressBar::GetValue() const - { - return (sal_uInt32)( ProgressBar::GetValue() / 100.0 * m_nRange ); - } - } // namespace dbmm #endif // INCLUDED_DBACCESS_SOURCE_EXT_MACROMIGRATION_RANGEPROGRESSBAR_HXX diff --git a/dbaccess/uiconfig/ui/migratepage.ui b/dbaccess/uiconfig/ui/migratepage.ui new file mode 100644 index 000000000000..afa2261478fc --- /dev/null +++ b/dbaccess/uiconfig/ui/migratepage.ui @@ -0,0 +1,242 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- Generated with glade 3.16.1 --> +<interface> + <requires lib="gtk+" version="3.0"/> + <object class="GtkGrid" id="MigratePage"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="border_width">6</property> + <property name="row_spacing">24</property> + <child> + <object class="GtkLabel" id="label1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Migration Progress</property> + <attributes> + <attribute name="weight" value="semibold"/> + </attributes> + </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="GtkLabel" id="count"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + <property name="label" translatable="yes">The database document contains $forms$ form(s) and $reports$ report(s), which are currently being processed:</property> + <property name="wrap">True</property> + <property name="max_width_chars">64</property> + </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> + <child> + <object class="GtkLabel" id="done"> + <property name="can_focus">False</property> + <property name="no_show_all">True</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + <property name="yalign">0</property> + <property name="label" translatable="yes">All forms and reports have been successfully processed. Press 'Next' to show a detailed summary.</property> + <property name="wrap">True</property> + <property name="max_width_chars">64</property> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">5</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkGrid" id="grid1"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="row_spacing">6</property> + <property name="column_spacing">12</property> + <child> + <object class="GtkLabel" id="label4"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Overall progress:</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="GtkLabel" id="overall"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">document $current$ of $overall$</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkProgressBar" id="allprogress"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">start</property> + <property name="hexpand">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">4</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkGrid" id="grid2"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="row_spacing">6</property> + <property name="column_spacing">12</property> + <child> + <object class="GtkLabel" id="label6"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Current progress:</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="GtkLabel" id="current"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkProgressBar" id="currentprogress"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="valign">start</property> + <property name="hexpand">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">1</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">3</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + <child> + <object class="GtkGrid" id="grid3"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="row_spacing">6</property> + <property name="column_spacing">12</property> + <child> + <object class="GtkLabel" id="label5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Current object:</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="GtkLabel" id="object"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="hexpand">True</property> + <property name="xalign">0</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="top_attach">0</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + </object> + <packing> + <property name="left_attach">0</property> + <property name="top_attach">2</property> + <property name="width">1</property> + <property name="height">1</property> + </packing> + </child> + </object> + <object class="GtkSizeGroup" id="sizegroup1"> + <widgets> + <widget name="overall"/> + <widget name="current"/> + <widget name="object"/> + </widgets> + </object> + <object class="GtkSizeGroup" id="sizegroup2"> + <widgets> + <widget name="label4"/> + <widget name="label6"/> + <widget name="label5"/> + </widgets> + </object> +</interface> |