|
|
|
|
@ -636,6 +636,30 @@ bool MainWindow::focus_out_txt_OTT(GdkEventFocus*) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool MainWindow::focus_in_txt_kernel(GdkEventFocus*) {
|
|
|
|
|
auto selection_kernel = treeViewKernel->get_selection();
|
|
|
|
|
selection_kernel->unselect_all();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool MainWindow::focus_in_txt_IPT(GdkEventFocus*) {
|
|
|
|
|
auto selection_IPT = treeViewIPT->get_selection();
|
|
|
|
|
selection_IPT->unselect_all();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
bool MainWindow::focus_in_txt_OTT(GdkEventFocus*) {
|
|
|
|
|
auto selection_OTT = treeViewIPT->get_selection();
|
|
|
|
|
selection_OTT->unselect_all();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void MainWindow::set_entry_to_tree_view(Glib::RefPtr<Gtk::ListStore> &list_store, Gtk::Entry &entry, std::vector<std::string> &vec_Option, int size, string key) {
|
|
|
|
|
flag_blocked_tree_view = true;
|
|
|
|
|
vector<string> vec_params;
|
|
|
|
|
@ -727,12 +751,12 @@ void MainWindow::event(){
|
|
|
|
|
treeViewIPTModel->signal_row_changed().connect(sigc::mem_fun(*this, &MainWindow::item_selected_IPT));
|
|
|
|
|
Glib::RefPtr<Gtk::TreeModel> treeViewOTTModel = treeViewOTT->get_model();
|
|
|
|
|
treeViewOTTModel->signal_row_changed().connect(sigc::mem_fun(*this, &MainWindow::item_selected_OTT));
|
|
|
|
|
// entryKernel->signal_focus_out_event().connect(sigc::mem_fun(*this, &MainWindow::focus_out_txt_kernel));
|
|
|
|
|
// entryIPT->signal_focus_out_event().connect(sigc::mem_fun(*this, &MainWindow::focus_out_txt_IPT));
|
|
|
|
|
// entryOTT->signal_focus_out_event().connect(sigc::mem_fun(*this, &MainWindow::focus_out_txt_OTT));
|
|
|
|
|
// entryKernel->signal_focus_in_event().connect(sigc::mem_fun(*this, &MainWindow::focus_tree_view));
|
|
|
|
|
// entryIPT->signal_focus_in_event().connect(sigc::mem_fun(*this, &MainWindow::focus_tree_view));
|
|
|
|
|
// entryOTT->signal_focus_in_event().connect(sigc::mem_fun(*this, &MainWindow::focus_tree_view));
|
|
|
|
|
entryKernel->signal_focus_out_event().connect(sigc::mem_fun(*this, &MainWindow::focus_out_txt_kernel));
|
|
|
|
|
entryIPT->signal_focus_out_event().connect(sigc::mem_fun(*this, &MainWindow::focus_out_txt_IPT));
|
|
|
|
|
entryOTT->signal_focus_out_event().connect(sigc::mem_fun(*this, &MainWindow::focus_out_txt_OTT));
|
|
|
|
|
// entryKernel->signal_focus_in_event().connect(sigc::mem_fun(*this, &MainWindow::focus_in_txt_kernel));
|
|
|
|
|
// entryIPT->signal_focus_in_event().connect(sigc::mem_fun(*this, &MainWindow::focus_in_txt_IPT));
|
|
|
|
|
// entryOTT->signal_focus_in_event().connect(sigc::mem_fun(*this, &MainWindow::focus_in_txt_OTT));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this->signal_delete_event().connect(sigc::mem_fun(*this, &MainWindow::gui_exit));
|
|
|
|
|
|