Code

* added tooltip (see bug 358921) and translator comments
[inkscape.git] / src / ui / previewholder.h
index d165e5bf93b3f3dd4531bfc845902f6a2ecfb176..3c1a161955e9c5ef2a9916fbb12965a8a48d75dd 100644 (file)
@@ -17,6 +17,7 @@
 #include <gtkmm/bin.h>
 #include <gtkmm/table.h>
 #include "previewfillable.h"
+#include "../widgets/eek-preview.h"
 
 namespace Inkscape {
 namespace UI {
@@ -29,12 +30,17 @@ public:
 
     virtual void clear();
     virtual void addPreview( Previewable* preview );
-    virtual void setStyle(Gtk::BuiltinIconSize size, ViewType view);
+    virtual void freezeUpdates();
+    virtual void thawUpdates();
+    virtual void setStyle( ::PreviewSize size, ViewType view, guint ratio );
     virtual void setOrientation( Gtk::AnchorType how );
     virtual int getColumnPref() const { return _prefCols; }
     virtual void setColumnPref( int cols );
-    virtual Gtk::BuiltinIconSize getPreviewSize() const { return _baseSize; }
+    virtual ::PreviewSize getPreviewSize() const { return _baseSize; }
     virtual ViewType getPreviewType() const { return _view; }
+    virtual guint getPreviewRatio() const { return _ratio; }
+    virtual void setWrap( bool b );
+    virtual bool getWrap() const { return _wrap; }
 
 protected:
     virtual void on_size_allocate( Gtk::Allocation& allocation );
@@ -49,9 +55,12 @@ private:
     Gtk::Bin *_scroller;
     Gtk::Table *_insides;
     int _prefCols;
+    bool _updatesFrozen;
     Gtk::AnchorType _anchor;
-    Gtk::BuiltinIconSize _baseSize;
+    ::PreviewSize _baseSize;
+    guint _ratio;
     ViewType _view;
+    bool _wrap;
 };
 
 } //namespace UI