Re-add inspector tab as an option (#5867)
- add option "inspectorWindow" to switch from tab to fullscreen view - add option "zoomOnScroll" to configure scroll device for zoom or pan - add both options to preferences - filepanel creates tab if not inspectorWindow - inspector adapts to settings inspectorWindow and zoomOnScroll - filebrowser shows context menu item for inspector only if inspectorWindow
This commit is contained in:
@@ -115,9 +115,12 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
|
||||
Gtk::Label* devLab = Gtk::manage ( new Gtk::Label (M("MAIN_TAB_DEVELOP")) );
|
||||
devLab->set_name ("LabelRightNotebook");
|
||||
devLab->set_angle (90);
|
||||
//Gtk::Label* inspectLab = Gtk::manage ( new Gtk::Label (M("MAIN_TAB_INSPECT")) );
|
||||
//inspectLab->set_name ("LabelRightNotebook");
|
||||
//inspectLab->set_angle (90);
|
||||
Gtk::Label* inspectLab = nullptr;
|
||||
if (!options.inspectorWindow) {
|
||||
inspectLab = Gtk::manage ( new Gtk::Label (M("MAIN_TAB_INSPECT")) );
|
||||
inspectLab->set_name ("LabelRightNotebook");
|
||||
inspectLab->set_angle (90);
|
||||
}
|
||||
Gtk::Label* filtLab = Gtk::manage ( new Gtk::Label (M("MAIN_TAB_FILTER")) );
|
||||
filtLab->set_name ("LabelRightNotebook");
|
||||
filtLab->set_angle (90);
|
||||
@@ -132,7 +135,8 @@ FilePanel::FilePanel () : parent(nullptr), error(0)
|
||||
tpcPaned->pack2 (*history, true, false);
|
||||
|
||||
rightNotebook->append_page (*sFilterPanel, *filtLab);
|
||||
//rightNotebook->append_page (*inspectorPanel, *inspectLab);
|
||||
if (!options.inspectorWindow)
|
||||
rightNotebook->append_page (*inspectorPanel, *inspectLab);
|
||||
rightNotebook->append_page (*tpcPaned, *devLab);
|
||||
//rightNotebook->append_page (*taggingBox, *tagLab); commented out: currently the tab is empty ...
|
||||
rightNotebook->append_page (*sExportPanel, *exportLab);
|
||||
|
Reference in New Issue
Block a user