Code

Tweaked to build with g++4.1. Thanks, <garrett>.
[inkscape.git] / src / ui / previewholder.h
index 1be306ba4f289f3abde36c52704207d8ea1d3d7c..53ffd5f054dc7ea3899e6480a57b2e5ac330b004 100644 (file)
@@ -29,6 +29,8 @@ public:
 
     virtual void clear();
     virtual void addPreview( Previewable* preview );
+    virtual void freezeUpdates();
+    virtual void thawUpdates();
     virtual void setStyle(Gtk::BuiltinIconSize size, ViewType view);
     virtual void setOrientation( Gtk::AnchorType how );
     virtual int getColumnPref() const { return _prefCols; }
@@ -43,11 +45,13 @@ protected:
 
 private:
     void rebuildUI();
+    void calcGridSize( const Gtk::Widget* thing, int itemCount, int& width, int& height );
 
     std::vector<Previewable*> items;
     Gtk::Bin *_scroller;
     Gtk::Table *_insides;
     int _prefCols;
+    bool _updatesFrozen;
     Gtk::AnchorType _anchor;
     Gtk::BuiltinIconSize _baseSize;
     ViewType _view;