inkscape-preferences.h revision fc107cfef5bc34e9a1cf5e4ff419f754e68129f5
/** @file
* @brief Inkscape Preferences dialog
*/
/* Authors:
* Carl Hetherington
* Marco Scholten
* Johan Engelen <j.b.c.engelen@ewi.utwente.nl>
* Bruno Dilly <bruno.dilly@gmail.com>
*
* Copyright (C) 2004-2013 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#if HAVE_CONFIG_H
# include "config.h"
#endif
#include <iostream>
#include <vector>
#include "ui/widget/preferences-widget.h"
#include <stddef.h>
#include <gtkmm/colorbutton.h>
#include <gtkmm/comboboxtext.h>
#include <gtkmm/treestore.h>
#include <gtkmm/treeview.h>
#include <gtkmm/notebook.h>
#include <gtkmm/textview.h>
#include <gtkmm/scrolledwindow.h>
#include <gtkmm/liststore.h>
#include <gtkmm/treemodel.h>
#include <gtkmm/treemodelfilter.h>
// UPDATE THIS IF YOU'RE ADDING PREFS PAGES.
// Otherwise the commands that open the dialog with the new page will fail.
enum {
#if HAVE_POTRACE
#endif
};
#if WITH_GTKMM_3_0
#else
#endif
}
//Pagelist model columns:
{
{ Gtk::TreeModelColumnRecord::add(_col_name); Gtk::TreeModelColumnRecord::add(_col_page); Gtk::TreeModelColumnRecord::add(_col_id); }
};
#if WITH_GTKMM_3_0
#else
#endif
UI::Widget::PrefSpinButton _win_trans_focus; /**< The dialog transparency setting for when the dialog is focused. */
UI::Widget::PrefSpinButton _win_trans_blur; /**< The dialog transparency setting for when the dialog is out of focus. */
UI::Widget::PrefSpinButton _win_trans_time; /**< How much time to go from one transparency setting to another */
// System page
// UI page
//Spellcheck
// Bitmaps
// CanvasXYGrid properties:
// CanvasAxonomGrid properties:
// SVG Output page:
// Attribute Checking controls for SVG Output page:
/*
* Keyboard shortcut members
*/
ModelColumns() {
}
virtual ~ModelColumns() {
}
};
static ModelColumns &onKBGetCols();
int _max_dialog_width;
int _max_dialog_height;
int _sb_width;
Gtk::TreeModel::iterator AddPage(UI::Widget::DialogPage& p, Glib::ustring title, Gtk::TreeModel::iterator parent, int id);
static void AddSelcueCheckbox(UI::Widget::DialogPage& p, Glib::ustring const &prefs_path, bool def_value);
static void AddGradientCheckbox(UI::Widget::DialogPage& p, Glib::ustring const &prefs_path, bool def_value);
static void AddConvertGuidesCheckbox(UI::Widget::DialogPage& p, Glib::ustring const &prefs_path, bool def_value);
static void AddFirstAndLastCheckbox(UI::Widget::DialogPage& p, Glib::ustring const &prefs_path, bool def_value);
static void AddDotSizeSpinbutton(UI::Widget::DialogPage& p, Glib::ustring const &prefs_path, double def_value);
static void AddNewObjectsStyle(UI::Widget::DialogPage& p, Glib::ustring const &prefs_path, const gchar* banner = NULL);
void on_pagelist_selection_changed();
void on_reset_open_recent_clicked();
void initPageTools();
void initPageUI();
void initPageBehavior();
void initPageIO();
void initPageRendering();
void initPageSpellcheck();
void initPageBitmaps();
void initPageSystem();
void initPageI18n(); // Do we still need it?
void _presentPages();
/*
* Functions for the Keyboard shortcut editor panel
*/
void onKBReset();
void onKBImport();
void onKBExport();
void onKBList();
void onKBRealize();
void onKBListKeyboardShortcuts();
void onKBTreeEdited (const Glib::ustring& path, guint accel_key, Gdk::ModifierType accel_mods, guint hardware_keycode);
InkscapePreferences(InkscapePreferences const &d);
bool _init;
};
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
#endif //INKSCAPE_UI_DIALOG_INKSCAPE_PREFERENCES_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :