Back to index

easystroke  0.5.5.1
Classes | Functions | Variables
prefs.cc File Reference
#include "prefs.h"
#include "win.h"
#include "main.h"
#include "grabber.h"
#include <glibmm/i18n.h>
#include <set>
#include <iostream>
#include <sys/stat.h>

Go to the source code of this file.

Classes

class  Check
class  Adjustment< T >
class  Color
class  Combo< T >
struct  Combo< T >::Info
class  ButtonSet< T >
class  Sensitive
class  Autostart

Functions

static bool is_custom (TimeoutType profile)
static bool draw_trace (TraceType t)
void remove_last_entry (const Glib::ustring &name)

Variables

const Combo< TraceType >::Info trace_info []
const Combo< TimeoutType >::Info timeout_info []
const Combo< TimeoutType >::Info timeout_info_exp []
Source< bool > autostart_ok (true)
const char * desktop_file
Autostart autostart

Class Documentation

struct Combo::Info

template<class T>
struct Combo< T >::Info

Definition at line 88 of file prefs.cc.

Collaboration diagram for Combo< T >::Info:
Class Members
const char * name
T value

Function Documentation

static bool draw_trace ( TraceType  t) [static]

Definition at line 151 of file prefs.cc.

{ return t == TraceDefault || t == TraceShape; }

Here is the caller graph for this function:

static bool is_custom ( TimeoutType  profile) [static]

Definition at line 150 of file prefs.cc.

{ return profile == TimeoutCustom; }

Here is the caller graph for this function:

void remove_last_entry ( const Glib::ustring &  name)

Definition at line 226 of file prefs.cc.

                                                 {
       Gtk::ComboBox *combo;
       widgets->get_widget(name, combo);
       Glib::RefPtr<Gtk::ListStore> combo_model = Glib::RefPtr<Gtk::ListStore>::cast_dynamic(combo->get_model());
       Gtk::TreeIter i = combo_model->children().end();
       combo_model->erase(--i);
}

Variable Documentation

Definition at line 224 of file prefs.cc.

Source<bool> autostart_ok(true)
const char* desktop_file
const Combo<TimeoutType>::Info timeout_info[]
Initial value:
 {
       { TimeoutOff, N_("Timeout Off") },
       { TimeoutConservative, N_("Conservative") },
       { TimeoutDefault, N_("Default") },
       { TimeoutMedium, N_("Medium") },
       { TimeoutAggressive, N_("Aggressive") },
       { TimeoutFlick, N_("Flick") },
       { TimeoutDefault, 0 }
}

Definition at line 163 of file prefs.cc.

Initial value:
 {
       { TimeoutOff, N_("Timeout Off") },
       { TimeoutConservative, N_("Conservative") },
       { TimeoutDefault, N_("Default") },
       { TimeoutMedium, N_("Medium") },
       { TimeoutAggressive, N_("Aggressive") },
       { TimeoutFlick, N_("Flick") },
       { TimeoutCustom, N_("Custom") },
       { TimeoutDefault, 0 }
}

Definition at line 173 of file prefs.cc.

const Combo<TraceType>::Info trace_info[]
Initial value:
 {
       { TraceNone, N_("None") },
       { TraceDefault, N_("Default") },
       { TraceShape, N_("XShape") },
       { TraceAnnotate, N_("Annotate (compiz)") },
       { TraceFire, N_("Fire (compiz)") },
       { TraceWater, N_("Water (compiz)") },
       { TraceDefault, 0 }
}

Definition at line 153 of file prefs.cc.