96d9b8228ab206c98748094b1f7474237adb873e
2 #ifndef SEEN_PREVIEW_HOLDER_H
3 #define SEEN_PREVIEW_HOLDER_H
4 /*
5 * A simple interface for previewing representations.
6 *
7 * Authors:
8 * Jon A. Cruz
9 *
10 * Copyright (C) 2005 Jon A. Cruz
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
16 #include <gtkmm/box.h>
17 #include <gtkmm/bin.h>
18 #include <gtkmm/table.h>
19 #include "previewfillable.h"
21 namespace Inkscape {
22 namespace UI {
24 class PreviewHolder : public Gtk::VBox, public PreviewFillable
25 {
26 public:
27 PreviewHolder();
28 virtual ~PreviewHolder();
30 virtual void clear();
31 virtual void addPreview( Previewable* preview );
32 virtual void setStyle(Gtk::BuiltinIconSize size, ViewType view);
33 virtual Gtk::BuiltinIconSize getPreviewSize() const { return _baseSize; }
34 virtual ViewType getPreviewType() const { return _view; }
36 private:
37 void rebuildUI();
39 std::vector<Previewable*> items;
40 Gtk::Bin *_scroller;
41 Gtk::Table *_insides;
42 Gtk::BuiltinIconSize _baseSize;
43 ViewType _view;
44 };
46 } //namespace UI
47 } //namespace Inkscape
49 #endif // SEEN_PREVIEW_HOLDER_H
51 /*
52 Local Variables:
53 mode:c++
54 c-file-style:"stroustrup"
55 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
56 indent-tabs-mode:nil
57 fill-column:99
58 End:
59 */
60 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :