preferences-widget.h revision e9a243b0d67ea158e1612ae08ed3fa1b6bc94b4f
/**
* @file
* Widgets for Inkscape Preferences dialog.
*/
/*
* Authors:
* Marco Scholten
* Bruno Dilly <bruno.dilly@gmail.com>
*
* Copyright (C) 2004, 2006, 2007 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#include <iostream>
#include <vector>
#include <gtkmm/filechooserbutton.h>
#include "ui/widget/spinbutton.h"
#include <stddef.h>
#include <gtkmm/checkbutton.h>
#include <gtkmm/radiobutton.h>
#include <gtkmm/comboboxtext.h>
#include <gtkmm/drawingarea.h>
#include "ui/widget/color-picker.h"
#include "ui/widget/unit-menu.h"
#include "ui/widget/spinbutton.h"
#include "ui/widget/scalar-unit.h"
{
bool default_value);
void on_toggled();
};
{
int _value_type;
enum
{
};
int _int_value;
void on_toggled();
};
{
bool _is_int;
bool _is_percent;
void on_value_changed();
};
{
double default_value,
bool _is_percent;
void on_my_value_changed();
};
void set_size(int x, int y);
void redraw();
static const double textsize;
static const double textpadding;
double _unitconv;
int _min_width;
int _height;
int _border;
int _drawing_width;
};
{
void on_slider_value_changed();
void on_spinbutton_value_changed();
void on_unit_changed();
bool freeze; // used to block recursive updates of slider and spinbutton
};
{
double lower, double upper, double step_increment, double page_increment, double default_value, int digits);
void on_slider_value_changed();
void on_spinbutton_value_changed();
bool freeze; // used to block recursive updates of slider and spinbutton
};
{
/**
* Initialize a combo box.
* second form uses strings as key values.
*/
std::vector<Glib::ustring> _ustr_values; ///< string key values used optionally instead of numeric _values
void on_changed();
};
{
void on_changed();
};
{
void onRelatedEntryChangedCallback();
void onRelatedButtonClickedCallback();
};
{
bool mask);
void onRelatedEntryChangedCallback();
void onRelatedButtonClickedCallback();
};
{
void onFileChanged();
};
{
virtual ~PrefColorPicker() {};
};
{
void on_changed();
};
{
DialogPage();
void add_line(bool indent, Glib::ustring const &label, Gtk::Widget& widget, Glib::ustring const &suffix, Glib::ustring const &tip, bool expand = true, Gtk::Widget *other_widget = NULL);
};
} // namespace Widget
} // namespace UI
} // namespace Inkscape
#endif //INKSCAPE_UI_WIDGET_INKSCAPE_PREFERENCES_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :