Partly solving issue 1490: "Comparator Tab / Light Table / Inspector" with the addition of an "Inspect" tab to the File Browser panel.

This commit is contained in:
Hombre
2014-12-26 02:51:33 +01:00
parent 1ff4055f0d
commit 3939ce675e
37 changed files with 1318 additions and 421 deletions

View File

@@ -25,7 +25,7 @@
using namespace std;
ThumbBrowserBase::ThumbBrowserBase ()
: lastClicked(NULL), previewHeight(options.thumbSize), numOfCols(1) {
: lastClicked(NULL), previewHeight(options.thumbSize), numOfCols(1), inspector(NULL), isInspectorActive(false) {
location = THLOC_FILEBROWSER;
inW = -1; inH = -1;
@@ -546,6 +546,15 @@ void ThumbBrowserBase::arrangeFiles () {
}
}
void ThumbBrowserBase::disableInspector() {
if (inspector)
inspector->setActive(false);
}
void ThumbBrowserBase::enableInspector() {
if (inspector)
inspector->setActive(true);
}
void ThumbBrowserBase::Internal::on_realize() {
// Gtk signals automatically acquire the GUI (i.e. this method is enclosed by gdk_thread_enter and gdk_thread_leave)