diff --git a/src/ui/previewholder.h b/src/ui/previewholder.h
index 96d9b8228ab206c98748094b1f7474237adb873e..812d4b27d0259d77008f3e50c47e11f20cfeef80 100644 (file)
--- a/src/ui/previewholder.h
+++ b/src/ui/previewholder.h
#include <gtkmm/bin.h>
#include <gtkmm/table.h>
#include "previewfillable.h"
+#include "../dialogs/eek-preview.h"
namespace Inkscape {
namespace UI {
virtual void clear();
virtual void addPreview( Previewable* preview );
- virtual void setStyle(Gtk::BuiltinIconSize size, ViewType view);
- virtual Gtk::BuiltinIconSize getPreviewSize() const { return _baseSize; }
+ 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 ::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 );
+ virtual void on_size_request( Gtk::Requisition* requisition );
+
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;
- Gtk::BuiltinIconSize _baseSize;
+ int _prefCols;
+ bool _updatesFrozen;
+ Gtk::AnchorType _anchor;
+ ::PreviewSize _baseSize;
+ guint _ratio;
ViewType _view;
+ bool _wrap;
};
} //namespace UI