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

« back to all changes in this revision

Viewing changes to src/widgets/dash-selector.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 __SP_DASH_SELECTOR_H__
2
 
#define __SP_DASH_SELECTOR_H__
 
1
#ifndef __SP_DASH_SELECTOR_NEW_H__
 
2
#define __SP_DASH_SELECTOR_NEW_H__
3
3
 
4
 
/*
5
 
 * Optionmenu for selecting dash patterns
6
 
 *
7
 
 * Author:
 
4
/** @file
 
5
 * @brief Option menu for selecting dash patterns
 
6
 */
 
7
/* Authors:
8
8
 *   Lauris Kaplinski <lauris@kaplinski.com>
 
9
 *   Maximilian Albert <maximilian.albert> (gtkmm-ification)
9
10
 *
10
11
 * Copyright (C) 2002 Lauris Kaplinski
11
12
 *
12
13
 * Released under GNU GPL, read the file 'COPYING' for more information
13
14
 */
14
15
 
15
 
struct SPDashSelector;
16
 
 
17
 
#include <gtk/gtkwidget.h>
18
 
#include "../xml/repr.h"
19
 
 
20
 
#include <glib.h>
21
 
 
22
 
 
23
 
 
24
 
#define SP_TYPE_DASH_SELECTOR (sp_dash_selector_get_type ())
25
 
#define SP_DASH_SELECTOR(o) (GTK_CHECK_CAST ((o), SP_TYPE_DASH_SELECTOR, SPDashSelector))
26
 
#define SP_IS_DASH_SELECTOR(o) (GTK_CHECK_TYPE ((o), SP_TYPE_DASH_SELECTOR))
27
 
 
28
 
GtkType sp_dash_selector_get_type (void);
29
 
 
30
 
GtkWidget *sp_dash_selector_new (Inkscape::XML::Node *repr);
31
 
 
32
 
void sp_dash_selector_set_dash (SPDashSelector *dsel, int ndash, double *dash, double offset);
33
 
void sp_dash_selector_get_dash (SPDashSelector *dsel, int *ndash, double **dash, double *offset);
34
 
 
35
 
 
 
16
#include <glibmm/ustring.h>
 
17
#include <gtkmm/box.h>
 
18
#include <sigc++/signal.h>
 
19
 
 
20
namespace Gtk {
 
21
class Container;
 
22
class OptionMenu;
 
23
class MenuItem;
 
24
class Adjustment;
 
25
}
 
26
 
 
27
// TODO: should we rather derive this from OptionMenu and add the spinbutton somehow else?
 
28
class SPDashSelector : public Gtk::HBox {
 
29
public:
 
30
    SPDashSelector();
 
31
    ~SPDashSelector();
 
32
 
 
33
    void set_dash(int ndash, double *dash, double offset);
 
34
    void get_dash(int *ndash, double **dash, double *offset);
 
35
 
 
36
    sigc::signal<void> changed_signal;
 
37
 
 
38
private:
 
39
    static void init_dashes();
 
40
    void dash_activate(Gtk::MenuItem *mi);
 
41
    void offset_value_changed();
 
42
    Gtk::MenuItem *menu_item_new(double *pattern);
 
43
 
 
44
    Gtk::OptionMenu *dash;
 
45
    Gtk::Adjustment *offset;
 
46
    
 
47
    static gchar const *const _prefs_path;
 
48
};
36
49
 
37
50
#endif
38
51