~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to src/ui/widget/rendering-options.h

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
12
 
 
13
#ifndef INKSCAPE_UI_WIDGET_RENDERING_OPTIONS_H
 
14
#define INKSCAPE_UI_WIDGET_RENDERING_OPTIONS_H
 
15
 
 
16
#include <gtkmm.h>
 
17
#include "scalar.h"
 
18
 
 
19
namespace Inkscape {
 
20
namespace UI {
 
21
namespace Widget {
 
22
 
 
23
class RenderingOptions : public Gtk::VBox
 
24
{
 
25
public:
 
26
    RenderingOptions();
 
27
 
 
28
    bool as_bitmap();   // should we render as a bitmap?
 
29
    double bitmap_dpi();   // at what DPI should we render the bitmap?
 
30
 
 
31
protected:
 
32
    // Radio buttons to select desired rendering
 
33
    Gtk::Frame       _frame_backends;
 
34
    Gtk::RadioButton _radio_vector;
 
35
    Gtk::RadioButton _radio_bitmap;
 
36
 
 
37
    // Bitmap options
 
38
    Gtk::Frame       _frame_bitmap;
 
39
    Scalar           _dpi; // DPI of bitmap to render
 
40
 
 
41
    // Tooltip manager
 
42
    Gtk::Tooltips    _tt;
 
43
 
 
44
    // callback for bitmap button
 
45
    void _toggled();
 
46
};
 
47
 
 
48
} // namespace Widget
 
49
} // namespace UI
 
50
} // namespace Inkscape
 
51
 
 
52
#endif // INKSCAPE_UI_WIDGET_RENDERING_OPTIONS_H
 
53
 
 
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 :