|
|
|
|
@ -120,20 +120,12 @@ void MainWindow::get_builder(){
|
|
|
|
|
builder->get_widget("iconDevelopment", iconDevelopment);
|
|
|
|
|
builder->get_widget("iconSystem", iconSystem);
|
|
|
|
|
builder->get_widget("lblSystem", lblSystem);
|
|
|
|
|
this->template_apps_obj(iconGraphics, list_Graphics);
|
|
|
|
|
|
|
|
|
|
this->template_apps_obj(iconTools, list_Tools);
|
|
|
|
|
this->template_apps_obj(iconInternet, list_Internet);
|
|
|
|
|
this->template_apps_obj(iconMultimedia, list_Multimedia);
|
|
|
|
|
this->template_apps_obj(iconSettings, list_Settings);
|
|
|
|
|
this->template_apps_obj(iconEducation, list_Education);
|
|
|
|
|
this->template_apps_obj(iconOffice, list_Office);
|
|
|
|
|
this->template_apps_obj(iconOther, list_Other);
|
|
|
|
|
this->template_apps_obj(iconDevelopment, list_Development);
|
|
|
|
|
this->template_apps_obj(iconSystem, list_System);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::template_apps_obj(Gtk::IconView *icon, Glib::RefPtr<Gtk::ListStore> >k_list_app){
|
|
|
|
|
gtk_list_app = Gtk::ListStore::create(m_Columns);
|
|
|
|
|
gtk_list_app->set_sort_column(m_Columns.m_col_description, Gtk::SORT_ASCENDING);
|
|
|
|
|
@ -199,7 +191,7 @@ void MainWindow::event(){
|
|
|
|
|
cbxExecuteEpriority->signal_toggled().connect(sigc::mem_fun(*this, &MainWindow::activ_or_block_execute_epriority));
|
|
|
|
|
btnMessageErrorOk->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::message_gui_close));
|
|
|
|
|
btnStartMenuOK->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::start_menu_entry_app));
|
|
|
|
|
btnStartMenuExit->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::close_start_menu));
|
|
|
|
|
btnStartMenuExit->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::close_entry_app));
|
|
|
|
|
btnStartMenuOK->signal_clicked().connect(sigc::mem_fun(*this, &MainWindow::ok_close_entry_app));
|
|
|
|
|
iconGraphics->signal_selection_changed().connect(sigc::mem_fun(*this,&MainWindow::select_Graphics));
|
|
|
|
|
iconTools->signal_selection_changed().connect(sigc::mem_fun(*this,&MainWindow::select_Tools));
|
|
|
|
|
@ -215,7 +207,22 @@ void MainWindow::event(){
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::icon_clear(){
|
|
|
|
|
list_Graphics->clear();
|
|
|
|
|
list_Tools->clear();
|
|
|
|
|
list_Internet->clear();
|
|
|
|
|
list_Multimedia->clear();
|
|
|
|
|
list_Settings->clear();
|
|
|
|
|
list_Education->clear();
|
|
|
|
|
list_Graphics->clear();
|
|
|
|
|
list_Office->clear();
|
|
|
|
|
list_Other->clear();
|
|
|
|
|
list_Development->clear();
|
|
|
|
|
list_System->clear();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::ok_close_entry_app(){
|
|
|
|
|
this->icon_clear();
|
|
|
|
|
dialogStartMenu->hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -291,7 +298,8 @@ void MainWindow::settings(){
|
|
|
|
|
rbSudo->set_sensitive(false);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
void MainWindow::close_start_menu(){
|
|
|
|
|
void MainWindow::close_entry_app(){
|
|
|
|
|
this->icon_clear();
|
|
|
|
|
dialogStartMenu->hide();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -340,6 +348,17 @@ void MainWindow::tempalte_row(string Name, string Exec, string path , Glib::Ref
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::open_list_app(){
|
|
|
|
|
this->template_apps_obj(iconGraphics, list_Graphics);
|
|
|
|
|
|
|
|
|
|
this->template_apps_obj(iconTools, list_Tools);
|
|
|
|
|
this->template_apps_obj(iconInternet, list_Internet);
|
|
|
|
|
this->template_apps_obj(iconMultimedia, list_Multimedia);
|
|
|
|
|
this->template_apps_obj(iconSettings, list_Settings);
|
|
|
|
|
this->template_apps_obj(iconEducation, list_Education);
|
|
|
|
|
this->template_apps_obj(iconOffice, list_Office);
|
|
|
|
|
this->template_apps_obj(iconOther, list_Other);
|
|
|
|
|
this->template_apps_obj(iconDevelopment, list_Development);
|
|
|
|
|
this->template_apps_obj(iconSystem, list_System);
|
|
|
|
|
string path = "";
|
|
|
|
|
for ( const auto &st_app : list_app){
|
|
|
|
|
for ( const auto &str_categor : st_app.Categories){
|
|
|
|
|
|