~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/dialogs/iconpreview.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef SEEN_ICON_PREVIEW_H
2
 
#define SEEN_ICON_PREVIEW_H
3
 
/*
4
 
 * A simple dialog for previewing icon representation.
5
 
 *
6
 
 * Authors:
7
 
 *   Jon A. Cruz
8
 
 *   Bob Jamison
9
 
 *   Other dudes from The Inkscape Organization
10
 
 *
11
 
 * Copyright (C) 2004,2005 The Inkscape Organization
12
 
 *
13
 
 * Released under GNU GPL, read the file 'COPYING' for more information
14
 
 */
15
 
 
16
 
#include <gtkmm/box.h>
17
 
#include <gtkmm/button.h>
18
 
#include <gtkmm/label.h>
19
 
#include <gtkmm/paned.h>
20
 
#include <gtkmm/image.h>
21
 
#include <gtkmm/togglebutton.h>
22
 
#include <gtkmm/toggletoolbutton.h>
23
 
 
24
 
#include "ui/widget/panel.h"
25
 
 
26
 
struct SPObject;
27
 
 
28
 
namespace Inkscape {
29
 
namespace UI {
30
 
namespace Dialogs {
31
 
 
32
 
 
33
 
/**
34
 
 * A panel that displays an icon preview
35
 
 */
36
 
class IconPreviewPanel : public UI::Widget::Panel
37
 
{
38
 
public:
39
 
    IconPreviewPanel();
40
 
    //IconPreviewPanel(Glib::ustring const &label);
41
 
 
42
 
    static IconPreviewPanel& getInstance();
43
 
 
44
 
    void refreshPreview();
45
 
    void modeToggled();
46
 
 
47
 
private:
48
 
    IconPreviewPanel(IconPreviewPanel const &); // no copy
49
 
    IconPreviewPanel &operator=(IconPreviewPanel const &); // no assign
50
 
 
51
 
 
52
 
    void on_button_clicked(int which);
53
 
    void renderPreview( SPObject* obj );
54
 
    void updateMagnify();
55
 
 
56
 
    Gtk::Tooltips   tips;
57
 
 
58
 
    Gtk::VBox       iconBox;
59
 
    Gtk::HPaned     splitter;
60
 
 
61
 
    int hot;
62
 
    int numEntries;
63
 
    int* sizes;
64
 
 
65
 
    Gtk::Image      magnified;
66
 
    Gtk::Label      magLabel;
67
 
 
68
 
    Gtk::Button           *refreshButton;
69
 
    Gtk::ToggleButton     *selectionButton;
70
 
 
71
 
    guchar** pixMem;
72
 
    Gtk::Image** images;
73
 
    Glib::ustring** labels;
74
 
    Gtk::ToggleToolButton** buttons;
75
 
};
76
 
 
77
 
} //namespace Dialogs
78
 
} //namespace UI
79
 
} //namespace Inkscape
80
 
 
81
 
 
82
 
 
83
 
#endif // SEEN_ICON_PREVIEW_H