Logo Search packages:      
Sourcecode: pan version File versions  Download package

pan::Prefs Class Reference
[GUI]

#include <prefs.h>

Inherited by pan::PrefsFile.

List of all members.


Detailed Description

UI-oriented prefs.

Definition at line 36 of file prefs.h.


Public Member Functions

void add_listener (Listener *l)
void from_string (const StringView &xml)
GdkColor get_color (const StringView &key, const StringView &fallback_str) const
GdkColor get_color (const StringView &key, const GdkColor &fallback) const
std::string get_color_str (const StringView &key, const StringView &fallback_str) const
std::string get_color_str (const StringView &key, const GdkColor &fallback) const
bool get_flag (const StringView &key, bool fallback) const
bool get_geometry (const StringView &, int &, int &, int &, int &) const
int get_int (const StringView &key, int fallback) const
std::string get_string (const StringView &key, const StringView &fallback) const
void remove_listener (Listener *l)
virtual void save () const
void set_color (const StringView &key, const StringView &color_str)
void set_color (const StringView &key, const GdkColor &color)
void set_default_geometry (const StringView &, int, int, int, int)
void set_flag (const StringView &key, bool)
void set_geometry (const StringView &, int, int, int, int)
void set_int (const StringView &key, int)
void set_string (const StringView &key, const StringView &)
void set_window (const StringView &key, GtkWindow *window, int default_x, int default_y, int default_width, int default_height)
void to_string (int indent, std::string &setme) const

Static Public Member Functions

static void start_element (GMarkupParseContext *context, const gchar *element_name, const gchar **attribute_names, const gchar **attribute_vals, gpointer user_data, GError **error)

Private Types

typedef std::map< std::string,
GdkColor > 
colors_t
typedef std::map< std::string,
bool > 
flags_t
typedef std::map< std::string,
int > 
ints_t
typedef std::set< Listener * > listeners_t
typedef std::map< std::string,
std::string > 
strings_t
typedef std::map< std::string,
Geometry > 
window_to_geometry_t

Private Member Functions

void fire_color_changed (const StringView &key, const GdkColor &value)
void fire_flag_changed (const StringView &key, bool value)
void fire_int_changed (const StringView &key, int value)
void fire_string_changed (const StringView &key, const StringView &value)

Static Private Member Functions

static void window_size_allocated_cb (GtkWidget *, GtkAllocation *, gpointer)

Private Attributes

colors_t _colors
flags_t _flags
ints_t _ints
listeners_t _listeners
strings_t _strings
window_to_geometry_t _window_to_geometry

Classes

struct  Geometry
struct  Listener

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index