~cahr-gr/gloobus-preview/monitors

« back to all changes in this revision

Viewing changes to src/gloobus-preview-config.h

  • Committer: Jordi Puigdellívol
  • Date: 2010-05-26 14:35:12 UTC
  • mfrom: (213.1.33 gloobus-preview)
  • Revision ID: jordi@badchoice-20100526143512-bhndzc2y7o8un30v
Merged, now its really good

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#ifndef _GLOOBUSCONFIG_
2
2
#define _GLOOBUSCONFIG_
3
3
 
4
 
#include <stdlib.h>
5
 
#include <gtk/gtk.h>
6
 
//#include <glib.h>
7
 
#include <string>
8
 
#include <string.h>
9
 
#include <stdio.h>
10
 
//#include <gconf/gconf-client.h>
11
 
#include "config.h"
12
 
 
13
 
class gloobusConfig;
14
 
 
15
 
#include "gloobus-preview-defines.h"
 
4
enum gp_action {
 
5
        GP_ACTION_PREVIEW,
 
6
        GP_ACTION_FILETYPES,
 
7
        GP_ACTION_HELP,
 
8
        GP_ACTION_CONFIG
 
9
};
 
10
 
 
11
enum gp_sort {
 
12
        GP_SORT_BY_NAME,
 
13
        GP_SORT_BY_DATE,
 
14
        GP_SORT_BY_TYPE,
 
15
        GP_SORT_BY_SIZE
 
16
};
16
17
 
17
18
using namespace std;
18
19
 
19
 
class gloobusConfig
 
20
class GloobusConfig
20
21
{
21
22
        private:
22
 
                bool m_taskbar;
23
 
                bool m_ontop;
24
 
                bool m_focus;
25
 
                bool m_winbar_layout;
 
23
                bool                    m_taskbar;
 
24
                bool                    m_ontop;
 
25
                bool                    m_focus;
 
26
                bool                    m_winbar_layout;
26
27
 
27
 
                bool            cli_debug;
28
 
                gp_action       cli_action;
29
 
                char *          cli_target;
 
28
                gboolean                cli_debug;
 
29
                gp_action               cli_action;
 
30
                char            *       cli_target;
 
31
                gp_sort                 cli_sort;
 
32
                
 
33
                char            *       theme_path;
 
34
                bool                    theme_gtk;
 
35
                int                             theme_shadow_radius;
 
36
                double                  theme_shadow_alpha;
 
37
                //GdkColor      *       theme_shadow_color;
30
38
 
31
39
        public:
32
 
                gloobusConfig                                   (void);
33
 
                ~gloobusConfig                                  (void);
 
40
                GloobusConfig                                   (void);
 
41
                ~GloobusConfig                                  (void);
34
42
 
35
43
                /* loads and parses configuration file
36
44
                 * */
56
64
                /* parses command line arguments
57
65
                 * */
58
66
                void            parse_args                      (int, char **);
 
67
                void            parse_args                      (int*, char ***);
59
68
 
60
69
                /* returns TRUE if debug mode is requested
61
70
                 * */
68
77
                /* returns what gloobus-preview must do
69
78
                 * */
70
79
                gp_action       get_cli_action          (void);
 
80
 
 
81
                /* get a gconf value
 
82
                 * */
 
83
                char*           get_gconf_value_string( const char*);
 
84
 
 
85
                char*           get_theme                       ( void );
 
86
 
 
87
                bool            get_theme_gtk           ( void );
 
88
                int                     get_shadow_radius       ( void );
 
89
                double          get_shadow_alpha        ( void );
71
90
};
72
91
 
73
92
#endif