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

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

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

@ -23,7 +23,8 @@
<property name="orientation">vertical</property>
<property name="spacing">2</property>
<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="layout-style">end</property>
</object>
@ -743,7 +744,7 @@ Format: DD.MM.YYYY</property>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>

Loading…
Cancel
Save