X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fpreviewholder.h;h=046cdf7c7dfbef03c5707dc5c286796d80238530;hb=e8adb186c1baa5b521802b4a9128e27e4e181bf7;hp=d165e5bf93b3f3dd4531bfc845902f6a2ecfb176;hpb=e898b1ae89b3084fb5ab1b4e54a9a9dc6df60aba;p=inkscape.git diff --git a/src/ui/previewholder.h b/src/ui/previewholder.h index d165e5bf9..046cdf7c7 100644 --- a/src/ui/previewholder.h +++ b/src/ui/previewholder.h @@ -17,6 +17,7 @@ #include #include #include "previewfillable.h" +#include "../icon-size.h" namespace Inkscape { namespace UI { @@ -29,12 +30,16 @@ 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( Inkscape::IconSize size, ViewType view ); 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 Inkscape::IconSize getPreviewSize() const { return _baseSize; } virtual ViewType getPreviewType() const { return _view; } + virtual void setWrap( bool b ); + virtual bool getWrap() const { return _wrap; } protected: virtual void on_size_allocate( Gtk::Allocation& allocation ); @@ -49,9 +54,11 @@ private: Gtk::Bin *_scroller; Gtk::Table *_insides; int _prefCols; + bool _updatesFrozen; Gtk::AnchorType _anchor; - Gtk::BuiltinIconSize _baseSize; + Inkscape::IconSize _baseSize; ViewType _view; + bool _wrap; }; } //namespace UI