1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
#ifndef DASHER_MAIN_PRIVATE_H
#define DASHER_MAIN_PRIVATE_H
#include "dasher_main.h"
struct _DasherMainPrivate {
GtkBuilder *pXML;
GtkBuilder *pPrefXML;
// Child objects owned here
DasherAppSettings *pAppSettings;
DasherPreferencesDialogue *pPreferencesDialogue;
DasherEditor *pEditor;
CKeyboardHelper *pKeyboardHelper;
// Various widgets which need to be cached:
// GtkWidget *pBufferView;
GtkPaned *pDivider;
GtkWindow *pMainWindow;
GtkWidget *pToolbar;
GtkSpinButton *pSpeedBox;
GtkWidget *pAlphabetCombo;
GtkWidget *pStatusControl;
GtkWidget *pDasherWidget;
GtkListStore *pAlphabetList;
GtkAccelGroup *pAccel;
// Widgets used for maemo
#ifdef WITH_MAEMO
DasherMaemoHelper *pMaemoHelper;
#ifdef WITH_MAEMOFULLSCREEN
HildonProgram *pProgram;
HildonWindow *pHWindow;
#endif
#endif
// Properties of the main window
int iWidth;
int iHeight;
bool bWidgetsInitialised;
int parameter_callback_id_ = 0;
};
typedef struct _DasherMainPrivate DasherMainPrivate;
#define DASHER_MAIN_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE((o), DASHER_TYPE_MAIN, DasherMainPrivate))
#endif
|