Исправлен дизайн

pull/55/head
Igor Belitskiy 3 years ago
parent dcd5cac543
commit 7e5f2a4e29

@ -75,10 +75,12 @@ void MainWindow::settings(){
numTimeMin->set_increments(1.0,1.0); numTimeMin->set_increments(1.0,1.0);
this->get_config(); this->get_config();
this->flag_block_gui(); this->flag_block_gui();
btnBoxAboutDialog->set_visible(false);
this->event(); this->event();
this->parse_text_date(); this->parse_text_date();
btnSaveGlobl->set_sensitive(false); btnSaveGlobl->set_sensitive(false);
this->download_local_cfg(); this->download_local_cfg();
} }
else{ else{
btnSaveLocal->set_sensitive(false); btnSaveLocal->set_sensitive(false);
@ -102,6 +104,7 @@ void MainWindow::settings(){
txtNtpServer->set_sensitive(false); txtNtpServer->set_sensitive(false);
lblZone1Glob->set_sensitive(false); lblZone1Glob->set_sensitive(false);
lblDateTimeSetting->set_sensitive(false); lblDateTimeSetting->set_sensitive(false);
btnBoxAboutDialog->set_visible(false);
this->event(); this->event();
} }
@ -117,6 +120,8 @@ int MainWindow::check_root(){
} }
void MainWindow::lacalization(){ void MainWindow::lacalization(){
//aboutWindows->set_title(_(""));
aboutWindows->set_comments(_("Settings the date and time"));
lblSave->set_label(_("Save")); lblSave->set_label(_("Save"));
lblDownload->set_label(_("Download")); lblDownload->set_label(_("Download"));
btnDownloadGlobal->set_label(_("Download global")); btnDownloadGlobal->set_label(_("Download global"));
@ -242,9 +247,8 @@ void MainWindow::get_builder(){
builder->get_widget("btnDownloadlocal", btnDownloadlocal); builder->get_widget("btnDownloadlocal", btnDownloadlocal);
builder->get_widget("btnSettings", btnSettings); builder->get_widget("btnSettings", btnSettings);
builder->get_widget("aboutWindows", aboutWindows); builder->get_widget("aboutWindows", aboutWindows);
builder->get_widget("btnBoxAboutDialog", btnBoxAboutDialog);
//builder->get_widget("cbxSynchronizeNtp",cbxSynchronizeNtp); //builder->get_widget("cbxSynchronizeNtp",cbxSynchronizeNtp);
this->add_CSS(); this->add_CSS();
} }
void MainWindow::gui_exit(){ void MainWindow::gui_exit(){

@ -92,6 +92,7 @@ class MainWindow : public Gtk::ApplicationWindow {
Gtk::MenuItem *btnDownloadGlobal; Gtk::MenuItem *btnDownloadGlobal;
Gtk::MenuItem *btnDownloadlocal; Gtk::MenuItem *btnDownloadlocal;
Gtk::AboutDialog *aboutWindows; Gtk::AboutDialog *aboutWindows;
Gtk::ButtonBox *btnBoxAboutDialog;
//Gtk::MenuButton *btnSave; //Gtk::MenuButton *btnSave;
//Gtk::MenuButton *btnDownload; //Gtk::MenuButton *btnDownload;
Gtk::Button *btnSettings; Gtk::Button *btnSettings;

@ -23,7 +23,8 @@
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">2</property> <property name="spacing">2</property>
<child internal-child="action_area"> <child internal-child="action_area">
<object class="GtkButtonBox"> <object class="GtkButtonBox" id="btnBoxAboutDialog">
<property name="name">btnBoxAboutDialog</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
<property name="layout-style">end</property> <property name="layout-style">end</property>
</object> </object>
@ -743,7 +744,7 @@ Format: DD.MM.YYYY</property>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">True</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>

Loading…
Cancel
Save