X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fpreviewholder.h;h=3c1a161955e9c5ef2a9916fbb12965a8a48d75dd;hb=af1a583d2a5ba69be566ae3dfa393aedaeca5371;hp=d165e5bf93b3f3dd4531bfc845902f6a2ecfb176;hpb=e898b1ae89b3084fb5ab1b4e54a9a9dc6df60aba;p=inkscape.git diff --git a/src/ui/previewholder.h b/src/ui/previewholder.h index d165e5bf9..3c1a16195 100644 --- a/src/ui/previewholder.h +++ b/src/ui/previewholder.h @@ -17,6 +17,7 @@ #include #include #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