|
@ -16,7 +16,7 @@ |
|
|
#include "menu_dlg.h"
|
|
|
#include "menu_dlg.h"
|
|
|
|
|
|
|
|
|
MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : |
|
|
MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : |
|
|
QDialog(parent, f) |
|
|
|
|
|
|
|
|
QWidget(parent, f) |
|
|
{ |
|
|
{ |
|
|
QGridLayout *mainLayout = new QGridLayout; |
|
|
QGridLayout *mainLayout = new QGridLayout; |
|
|
|
|
|
|
|
@ -32,27 +32,15 @@ MenuDlg::MenuDlg(QWidget *parent, Qt::WindowFlags f) : |
|
|
mainLayout->addWidget(exit_btn, 1, 0); |
|
|
mainLayout->addWidget(exit_btn, 1, 0); |
|
|
mainLayout->addWidget(back_btn, 1, 2); |
|
|
mainLayout->addWidget(back_btn, 1, 2); |
|
|
|
|
|
|
|
|
connect(holiday_btn, SIGNAL(clicked(void)), this, SLOT(show_holiday_dlg(void))); |
|
|
|
|
|
connect(save_cfg_btn, SIGNAL(clicked(void)), this, SLOT(show_save_cfg_dlg(void))); |
|
|
|
|
|
connect(load_cfg_btn, SIGNAL(clicked(void)), this, SLOT(show_load_cfg_dlg(void))); |
|
|
|
|
|
connect(back_btn, SIGNAL(clicked(void)), this, SLOT(accept(void))); |
|
|
|
|
|
|
|
|
connect(holiday_btn, SIGNAL(clicked(void)), this, SIGNAL(show_holiday_dlg(void))); |
|
|
|
|
|
connect(save_cfg_btn, SIGNAL(clicked(void)), this, SIGNAL(show_save_cfg_dlg(void))); |
|
|
|
|
|
connect(load_cfg_btn, SIGNAL(clicked(void)), this, SIGNAL(show_load_cfg_dlg(void))); |
|
|
|
|
|
connect(back_btn, SIGNAL(clicked(void)), this, SIGNAL(closed(void))); |
|
|
connect(exit_btn, SIGNAL(clicked(void)), this, SLOT(show_confirm_exit_dlg(void))); |
|
|
connect(exit_btn, SIGNAL(clicked(void)), this, SLOT(show_confirm_exit_dlg(void))); |
|
|
|
|
|
|
|
|
this->setLayout(mainLayout); |
|
|
this->setLayout(mainLayout); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void MenuDlg::show_holiday_dlg(void) |
|
|
|
|
|
{ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MenuDlg::show_save_cfg_dlg(void) |
|
|
|
|
|
{ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MenuDlg::show_load_cfg_dlg(void) |
|
|
|
|
|
{ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void MenuDlg::show_confirm_exit_dlg(void) |
|
|
void MenuDlg::show_confirm_exit_dlg(void) |
|
|
{ |
|
|
{ |
|
|
QMessageBox::StandardButton retval; |
|
|
QMessageBox::StandardButton retval; |
|
@ -67,5 +55,3 @@ MenuDlg::~MenuDlg() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */ |
|
|
/* vim: set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab: */ |
|
|
|
|
|
|
|
|
|
|
|
|