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

@@ -24,6 +24,7 @@
#include <set>
#include "options.h"
#include "guiutils.h"
#include "inspector.h"
/*
* Class handling the list of ThumbBrowserEntry objects and their position in it's allocated space
@@ -48,7 +49,7 @@ class ThumbBrowserBase : public Gtk::VBox {
bool on_key_press_event (GdkEventKey* event);
bool on_query_tooltip (int x, int y, bool keyboard_tooltip, const Glib::RefPtr<Gtk::Tooltip>& tooltip);
void setPosition (int x, int y);
void setDirty () { dirty = true; }
bool isDirty () { return dirty; }
};
@@ -72,12 +73,20 @@ class ThumbBrowserBase : public Gtk::VBox {
int inW, inH;
Inspector *inspector;
bool isInspectorActive;
void resizeThumbnailArea (int w, int h);
void internalAreaResized (Gtk::Allocation& req);
void buttonPressed (int x, int y, int button, GdkEventType type, int state, int clx, int cly, int clw, int clh);
public:
void setInspector(Inspector* inspector) { this->inspector = inspector; }
Inspector* getInspector() { return inspector; }
void disableInspector();
void enableInspector();
enum Arrangement {TB_Horizontal, TB_Vertical};
void configScrollBars ();
void scrollChanged ();
@@ -89,6 +98,8 @@ class ThumbBrowserBase : public Gtk::VBox {
void selectFirst (bool enlarge);
void selectLast (bool enlarge);
virtual bool isInTabMode() { return false; }
eLocation getLocation() { return location; }
protected: