Eneboo - Documentación para desarrolladores
|
00001 #ifndef QTC_CONFIG_FILE_H 00002 #define QTC_CONFIG_FILE_H 00003 00004 #include "common.h" 00005 00006 #define MAX_CONFIG_FILENAME_LEN 1024 00007 #define MAX_CONFIG_INPUT_LINE_LEN 256 00008 00009 #if !defined QT_VERSION || QT_VERSION >= 0x040000 00010 00011 #define QTC_MENU_FILE_PREFIX "menubar-" 00012 #define QTC_STATUS_FILE_PREFIX "statusbar-" 00013 00014 #define qtcMenuBarHidden(A) qtcBarHidden((A), QTC_MENU_FILE_PREFIX) 00015 #define qtcSetMenuBarHidden(A, H) qtcSetBarHidden((A), (H), QTC_MENU_FILE_PREFIX) 00016 #define qtcStatusBarHidden(A) qtcBarHidden((A), QTC_STATUS_FILE_PREFIX) 00017 #define qtcSetStatusBarHidden(A, H) qtcSetBarHidden((A), (H), QTC_STATUS_FILE_PREFIX) 00018 00019 #ifdef __cplusplus 00020 extern bool qtcBarHidden(const QString &app, const char *prefix); 00021 extern void qtcSetBarHidden(const QString &app, bool hidden, const char *prefix); 00022 #else // __cplusplus 00023 extern gboolean qtcBarHidden(const char *app, const char *prefix); 00024 extern void qtcSetBarHidden(const char *app, bool hidden, const char *prefix); 00025 #endif // __cplusplus 00026 00027 extern void qtcLoadBgndImage(QtCImage *img); 00028 00029 #endif // !defined QT_VERSION || QT_VERSION >= 0x040000) 00030 00031 extern const char * qtcGetHome(); 00032 extern const char *qtcConfDir(); 00033 extern void qtcSetRgb(color *col, const char *str); 00034 extern void qtcDefaultSettings(Options *opts); 00035 extern void qtcCheckConfig(Options *opts); 00036 #ifdef __cplusplus 00037 extern bool qtcReadConfig(const QString &file, Options *opts, Options *defOpts=0L, bool checkImages=true); 00038 extern WindowBorders qtcGetWindowBorderSize(bool force=false); 00039 #else 00040 extern bool qtcReadConfig(const char *file, Options *opts, Options *defOpts); 00041 extern WindowBorders qtcGetWindowBorderSize(gboolean force); 00042 #endif 00043 00044 #ifdef CONFIG_WRITE 00045 class KConfig; 00046 extern bool qtcWriteConfig(KConfig *cfg, const Options &opts, const Options &def, bool exportingStyle=false); 00047 #endif 00048 00049 #endif