|
|
|
|
@ -29,74 +29,91 @@ private:
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class MainWindow : public Gtk::ApplicationWindow {
|
|
|
|
|
public:
|
|
|
|
|
MainWindow(BaseObjectType* obj, Glib::RefPtr<Gtk::Builder> const& builder);
|
|
|
|
|
MainWindow(Glib::RefPtr<Gtk::Builder> const& builder);
|
|
|
|
|
void get_builder();
|
|
|
|
|
void add_CSS();
|
|
|
|
|
void localization();
|
|
|
|
|
void event();
|
|
|
|
|
void settings();
|
|
|
|
|
void fn_event_intelMax1();
|
|
|
|
|
void fn_event_intelMax4();
|
|
|
|
|
void get_monitor_size();
|
|
|
|
|
bool gui_set_orientation(GdkEventConfigure* configure_event);
|
|
|
|
|
public:
|
|
|
|
|
Glib::RefPtr<Gtk::Builder> builder;
|
|
|
|
|
Gtk::SpinButton *spbSecond;
|
|
|
|
|
public:
|
|
|
|
|
Glib::RefPtr<Gtk::Builder> builder;
|
|
|
|
|
Gtk::SpinButton *spbSecond;
|
|
|
|
|
Gtk::Label *lblInfoSeconds;
|
|
|
|
|
Gtk::Label *lblInfoDefaultDonw;
|
|
|
|
|
Gtk::Label *lblInfoCommand;
|
|
|
|
|
Gtk::Label *lblInfoCommand1;
|
|
|
|
|
Gtk::Label *lblInfoCommand2;
|
|
|
|
|
Gtk::Label *lblDownloadMenu;
|
|
|
|
|
Gtk::Label *lblInfoInputTerminal;
|
|
|
|
|
Gtk::Label *lblInfoOutputTerminal;
|
|
|
|
|
Gtk::Label *lblHeaderName;
|
|
|
|
|
Gtk::Label *lblInfoHead;
|
|
|
|
|
Gtk::CheckButton *chbLoadVariantSelectionTimer;
|
|
|
|
|
Gtk::CheckButton *chbofConsoleOT;
|
|
|
|
|
Gtk::CheckButton *chbSerialOT;
|
|
|
|
|
Gtk::CheckButton *chbconsoleOT;
|
|
|
|
|
Gtk::CheckButton *chbGfxterm;
|
|
|
|
|
Gtk::CheckButton *chbVgaText;
|
|
|
|
|
Gtk::CheckButton *chbconsoleIT;
|
|
|
|
|
Gtk::CheckButton *chbSerialIT;
|
|
|
|
|
Gtk::CheckButton *chbofConsoleIT;
|
|
|
|
|
Gtk::CheckButton *chbAtKeyboard;
|
|
|
|
|
Gtk::CheckButton *chbUsbKeyboard;
|
|
|
|
|
Gtk::CheckButton *chbintelMax4;
|
|
|
|
|
Gtk::CheckButton *chbintelMax1;
|
|
|
|
|
Gtk::CheckButton *chbSndIntel;
|
|
|
|
|
Gtk::CheckButton *chbAhci;
|
|
|
|
|
Gtk::CheckButton *chbI915Enable;
|
|
|
|
|
Gtk::CheckButton *chbAcpi;
|
|
|
|
|
Gtk::CheckButton *chbPlymouth;
|
|
|
|
|
Gtk::CheckButton *chbSplash;
|
|
|
|
|
Gtk::CheckButton *chbQuiet;
|
|
|
|
|
Gtk::CheckButton *chbNоapic;
|
|
|
|
|
Gtk::CheckButton *chbNolapic;
|
|
|
|
|
Gtk::CheckButton *chbSingle;
|
|
|
|
|
Gtk::CheckButton *chbHomodeset;
|
|
|
|
|
Gtk::CheckButton *chbLastSelectionWillBecome;
|
|
|
|
|
Gtk::Entry *entryKernel;
|
|
|
|
|
Gtk::Entry *entryIT;
|
|
|
|
|
Gtk::Entry *entryOT;
|
|
|
|
|
Gtk::Box *boxOtput1;
|
|
|
|
|
Gtk::Box *boxOtput2;
|
|
|
|
|
Gtk::Box *boxInput1;
|
|
|
|
|
Gtk::Box *boxInput2;
|
|
|
|
|
Gtk::Box *boxKernel;
|
|
|
|
|
Gtk::Box *boxKernel1;
|
|
|
|
|
Gtk::Box *boxKernel2;
|
|
|
|
|
Gtk::Box *boxColor;
|
|
|
|
|
Gtk::AboutDialog *aboutWindows;
|
|
|
|
|
Gtk::MenuItem *btnAbout;
|
|
|
|
|
Gtk::MenuItem *btnSynopsis;
|
|
|
|
|
|
|
|
|
|
Gtk::Label *lblInfoSeconds;
|
|
|
|
|
Gtk::Label *lblInfoDefaultDonw;
|
|
|
|
|
Gtk::Label *lblInfoCommand;
|
|
|
|
|
Gtk::Label *lblInfoCommand1;
|
|
|
|
|
Gtk::Label *lblInfoCommand2;
|
|
|
|
|
Gtk::Label *lblDownloadMenu;
|
|
|
|
|
Gtk::Label *lblInfoInputTerminal;
|
|
|
|
|
Gtk::Label *lblInfoOutputTerminal;
|
|
|
|
|
Gtk::Label *lblHeaderName;
|
|
|
|
|
Gtk::Label *lblInfoHead;
|
|
|
|
|
private:
|
|
|
|
|
int width;
|
|
|
|
|
int heigh;
|
|
|
|
|
int screen_width;
|
|
|
|
|
int screen_hight;
|
|
|
|
|
string version_application = "1.0";
|
|
|
|
|
int index_error = 0;
|
|
|
|
|
string str_cmd_error = "";
|
|
|
|
|
template<typename Type>
|
|
|
|
|
struct Result{
|
|
|
|
|
Type response;
|
|
|
|
|
int error;
|
|
|
|
|
};
|
|
|
|
|
std::map <string, string> map_cmd_error;
|
|
|
|
|
|
|
|
|
|
Gtk::CheckButton *chbLoadVariantSelectionTimer;
|
|
|
|
|
Gtk::CheckButton *chbofConsoleOT;
|
|
|
|
|
Gtk::CheckButton *chbSerialOT;
|
|
|
|
|
Gtk::CheckButton *chbconsoleOT;
|
|
|
|
|
Gtk::CheckButton *chbGfxterm;
|
|
|
|
|
Gtk::CheckButton *chbVgaText;
|
|
|
|
|
Gtk::CheckButton *chbconsoleIT;
|
|
|
|
|
Gtk::CheckButton *chbSerialIT;
|
|
|
|
|
Gtk::CheckButton *chbofConsoleIT;
|
|
|
|
|
Gtk::CheckButton *chbAtKeyboard;
|
|
|
|
|
Gtk::CheckButton *chbUsbKeyboard;
|
|
|
|
|
Gtk::CheckButton *chbintelMax4;
|
|
|
|
|
Gtk::CheckButton *chbintelMax1;
|
|
|
|
|
Gtk::CheckButton *chbSndIntel;
|
|
|
|
|
Gtk::CheckButton *chbAhci;
|
|
|
|
|
Gtk::CheckButton *chbI915Enable;
|
|
|
|
|
Gtk::CheckButton *chbAcpi;
|
|
|
|
|
Gtk::CheckButton *chbPlymouth;
|
|
|
|
|
Gtk::CheckButton *chbSplash;
|
|
|
|
|
Gtk::CheckButton *chbQuiet;
|
|
|
|
|
Gtk::CheckButton *chbNоapic;
|
|
|
|
|
Gtk::CheckButton *chbNolapic;
|
|
|
|
|
Gtk::CheckButton *chbSingle;
|
|
|
|
|
Gtk::CheckButton *chbHomodeset;
|
|
|
|
|
Gtk::CheckButton *chbLastSelectionWillBecome;
|
|
|
|
|
Gtk::Entry *entryKernel;
|
|
|
|
|
Gtk::Entry *entryIT;
|
|
|
|
|
Gtk::Entry *entryOT;
|
|
|
|
|
Gtk::Box *boxOtput1;
|
|
|
|
|
Gtk::Box *boxOtput2;
|
|
|
|
|
Gtk::Box *boxInput1;
|
|
|
|
|
Gtk::Box *boxInput2;
|
|
|
|
|
Gtk::Box *boxKernel;
|
|
|
|
|
Gtk::Box *boxKernel1;
|
|
|
|
|
Gtk::Box *boxKernel2;
|
|
|
|
|
Gtk::Box *boxColor;
|
|
|
|
|
Gtk::AboutDialog *aboutWindows;
|
|
|
|
|
int width;
|
|
|
|
|
int heigh;
|
|
|
|
|
int screen_width;
|
|
|
|
|
int screen_hight;
|
|
|
|
|
public:
|
|
|
|
|
MainWindow(BaseObjectType* obj, Glib::RefPtr<Gtk::Builder> const& builder);
|
|
|
|
|
MainWindow(Glib::RefPtr<Gtk::Builder> const& builder);
|
|
|
|
|
void get_builder();
|
|
|
|
|
void add_CSS();
|
|
|
|
|
void localization();
|
|
|
|
|
void event();
|
|
|
|
|
void settings();
|
|
|
|
|
void fn_event_intelMax1();
|
|
|
|
|
void fn_event_intelMax4();
|
|
|
|
|
void get_monitor_size();
|
|
|
|
|
bool gui_set_orientation(GdkEventConfigure* configure_event);
|
|
|
|
|
void synopsis_show();
|
|
|
|
|
string call(string cmd);
|
|
|
|
|
void wrapper_system(string cmd, string thread_str);
|
|
|
|
|
struct Result<string> wrapper_call(string cmd);
|
|
|
|
|
void log_mess_error(string &cmd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|