diff options
Diffstat (limited to 'src/ui/previewholder.h')
| -rw-r--r-- | src/ui/previewholder.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ui/previewholder.h b/src/ui/previewholder.h index 58d0dba5d..1be306ba4 100644 --- a/src/ui/previewholder.h +++ b/src/ui/previewholder.h @@ -31,18 +31,23 @@ public: virtual void addPreview( Previewable* preview ); virtual void setStyle(Gtk::BuiltinIconSize 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 ViewType getPreviewType() const { return _view; } +protected: + virtual void on_size_allocate( Gtk::Allocation& allocation ); + virtual void on_size_request( Gtk::Requisition* requisition ); + + private: void rebuildUI(); std::vector<Previewable*> items; Gtk::Bin *_scroller; Gtk::Table *_insides; - Gtk::Box *_zee0; - Gtk::Box *_zee1; - Gtk::Box *_zee2; + int _prefCols; Gtk::AnchorType _anchor; Gtk::BuiltinIconSize _baseSize; ViewType _view; |
