1 /* === S I N F G =========================================================== */
3 ** \brief Template Header
5 ** $Id: main.h,v 1.1.1.1 2005/01/07 03:34:37 darco Exp $
8 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
10 ** This software and associated documentation
11 ** are CONFIDENTIAL and PROPRIETARY property of
12 ** the above-mentioned copyright holder.
14 ** You may not copy, print, publish, or in any
15 ** other way distribute this software without
16 ** a prior written agreement with
17 ** the copyright holder.
20 /* ========================================================================= */
22 /* === S T A R T =========================================================== */
24 #ifndef __SINFGAPP_MAIN_H
25 #define __SINFGAPP_MAIN_H
27 /* === H E A D E R S ======================================================= */
29 #include <ETL/ref_count>
30 #include <sinfg/string.h>
31 #include <sinfg/general.h>
32 #include <sinfg/main.h>
33 #include <sinfg/distance.h>
34 #include <sinfg/real.h>
35 #include <sinfg/waypoint.h>
36 #include <sigc++/signal.h>
37 #include <sigc++/object.h>
38 #include "inputdevice.h"
41 /* === M A C R O S ========================================================= */
43 /* === T Y P E D E F S ===================================================== */
45 /* === C L A S S E S & S T R U C T S ======================================= */
54 /*! \class sinfgapp::Main
59 class Main : public sinfg::Main
61 etl::reference_counter ref_count_;
63 Main(const sinfg::String &basepath,sinfg::ProgressCallback *cb=0);
66 const etl::reference_counter& ref_count()const { return ref_count_; }
68 static const sinfg::Color& get_foreground_color();
69 static const sinfg::Color& get_background_color();
70 static const sinfg::Gradient& get_gradient();
71 static const sinfg::Distance& get_bline_width();
72 static sinfg::Waypoint::Interpolation get_interpolation();
75 static void set_interpolation(sinfg::Waypoint::Interpolation x);
76 static void set_bline_width(sinfg::Distance x);
77 static void set_foreground_color(sinfg::Color color);
78 static void set_background_color(sinfg::Color color);
79 static void set_gradient(sinfg::Gradient gradient);
80 static void set_gradient_default_colors();
81 static void color_swap();
83 static sinfg::Color::BlendMethod get_blend_method();
84 static const sinfg::Real& get_opacity();
85 static void set_blend_method(sinfg::Color::BlendMethod);
86 static void set_opacity(sinfg::Real);
87 static sigc::signal<void>& signal_blend_method_changed();
88 static sigc::signal<void>& signal_opacity_changed();
89 static sigc::signal<void>& signal_interpolation_changed();
92 static InputDevice::Handle add_input_device(const sinfg::String id_, InputDevice::Type type_=InputDevice::TYPE_MOUSE);
93 static InputDevice::Handle find_input_device(const sinfg::String id_);
94 static InputDevice::Handle select_input_device(const sinfg::String id_);
95 static bool select_input_device(InputDevice::Handle input_device);
96 static InputDevice::Handle get_selected_input_device();
97 static void set_state(sinfg::String state);
99 static Settings& settings();
102 static sigc::signal<void>& signal_foreground_color_changed();
103 static sigc::signal<void>& signal_background_color_changed();
104 static sigc::signal<void>& signal_gradient_changed();
105 static sigc::signal<void>& signal_bline_width_changed();
107 }; // END of class Main
109 }; // END if namespace sinfgapp
110 /* === E N D =============================================================== */