blob: c517e4f28d1540443d34b0a9b47e4c87afaf9812 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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>
#include "../dialogs/eek-preview.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, ::PreviewSize size, guint ratio ) = 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 :
|