1 /**
2 * \brief Rendering Options Widget - A container for selecting rendering options
3 *
4 * Author:
5 * Kees Cook <kees@outflux.net>
6 *
7 * Copyright (C) 2007 Kees Cook
8 * Copyright (C) 2004 Bryce Harrington
9 *
10 * Released under GNU GPL. Read the file 'COPYING' for more information.
11 */
13 #ifndef INKSCAPE_UI_WIDGET_RENDERING_OPTIONS_H
14 #define INKSCAPE_UI_WIDGET_RENDERING_OPTIONS_H
16 #include <gtkmm.h>
17 #include "scalar.h"
19 namespace Inkscape {
20 namespace UI {
21 namespace Widget {
23 class RenderingOptions : public Gtk::VBox
24 {
25 public:
26 RenderingOptions();
28 bool as_bitmap(); // should we render as a bitmap?
29 double bitmap_dpi(); // at what DPI should we render the bitmap?
31 protected:
32 // Radio buttons to select desired rendering
33 Gtk::Frame _frame_backends;
34 Gtk::RadioButton _radio_vector;
35 Gtk::RadioButton _radio_bitmap;
37 // Bitmap options
38 Gtk::Frame _frame_bitmap;
39 Scalar _dpi; // DPI of bitmap to render
41 // Tooltip manager
42 Gtk::Tooltips _tt;
44 // callback for bitmap button
45 void _toggled();
46 };
48 } // namespace Widget
49 } // namespace UI
50 } // namespace Inkscape
52 #endif // INKSCAPE_UI_WIDGET_RENDERING_OPTIONS_H
54 /*
55 Local Variables:
56 mode:c++
57 c-file-style:"stroustrup"
58 c-file-offsets:((innamespace . 0)(inline-open . 0))
59 indent-tabs-mode:nil
60 fill-column:99
61 End:
62 */
63 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :