preferences-widget.h revision 400b8d183ba7c4109e8134ffdd44bf9cb9fa159e
/**
* @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>
#if WITH_GTKMM_3_0
#else
#endif
#include "ui/widget/color-picker.h"
#include "ui/widget/unit-menu.h"
#include "ui/widget/spinbutton.h"
#include "ui/widget/scalar-unit.h"
#if WITH_GTKMM_3_0
#else
#endif
}
{
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);
static const double textsize;
static const double textpadding;
#if !WITH_GTKMM_3_0
#endif
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();
#if WITH_GTKMM_3_0
#else
#endif
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();
#if WITH_GTKMM_3_0
#else
#endif
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();
};
#if WITH_GTKMM_3_0
#else
#endif
{
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 :