summaryrefslogtreecommitdiffstats
path: root/src/ui/previewable.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/ui/previewable.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/ui/previewable.h')
-rw-r--r--src/ui/previewable.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/src/ui/previewable.h b/src/ui/previewable.h
new file mode 100644
index 000000000..86ee71ca5
--- /dev/null
+++ b/src/ui/previewable.h
@@ -0,0 +1,62 @@
+
+#ifndef SEEN_PREVIEWABLE_H
+#define SEEN_PREVIEWABLE_H
+/*
+ * A simple interface for previewing representations.
+ *
+ * Authors:
+ * Jon A. Cruz
+ *
+ * Copyright (C) 2005 Jon A. Cruz
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+
+#include <gtkmm/widget.h>
+
+
+namespace Inkscape {
+namespace UI {
+
+typedef enum {
+ PREVIEW_STYLE_ICON = 0,
+ PREVIEW_STYLE_PREVIEW,
+ PREVIEW_STYLE_NAME,
+ PREVIEW_STYLE_BLURB,
+ PREVIEW_STYLE_ICON_NAME,
+ PREVIEW_STYLE_ICON_BLURB,
+ PREVIEW_STYLE_PREVIEW_NAME,
+ PREVIEW_STYLE_PREVIEW_BLURB
+} PreviewStyle;
+
+typedef enum {
+ VIEW_TYPE_LIST = 0,
+ VIEW_TYPE_GRID
+} ViewType;
+
+class Previewable
+{
+public:
+// TODO need to add some nice parameters
+ virtual ~Previewable() {}
+ virtual Gtk::Widget* getPreview( PreviewStyle style, ViewType view, Gtk::BuiltinIconSize size ) = 0;
+};
+
+
+} //namespace UI
+} //namespace Inkscape
+
+
+#endif // SEEN_PREVIEWABLE_H
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :