aboutsummaryrefslogtreecommitdiff
path: root/lib/gui
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-12-19 15:41:53 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-12-19 15:41:53 +0000
commit12f90800104b06e819eb9a7c2cd6ffcaf2003e0a (patch)
treee2f0e8f79526ddbca3a52f197904bfdeaf62f775 /lib/gui
parentb2fe29b773ada2caf62721d7dfe07d9807876055 (diff)
downloadenigma2-12f90800104b06e819eb9a7c2cd6ffcaf2003e0a.tar.gz
enigma2-12f90800104b06e819eb9a7c2cd6ffcaf2003e0a.zip
remove unneeded test object,
export windowstyle enums to python
Diffstat (limited to 'lib/gui')
-rw-r--r--lib/gui/ewindowstyle.h39
1 files changed, 24 insertions, 15 deletions
diff --git a/lib/gui/ewindowstyle.h b/lib/gui/ewindowstyle.h
index 91f2f0b7..a2a9e67b 100644
--- a/lib/gui/ewindowstyle.h
+++ b/lib/gui/ewindowstyle.h
@@ -7,22 +7,13 @@ class gFont;
#include <lib/base/object.h>
-SWIG_IGNORE(eWindowStyle);
-class eWindowStyle: public iObject
+class eWindowStyle_ENUMS
{
#ifdef SWIG
- eWindowStyle();
+ eWindowStyle_ENUMS();
+ ~eWindowStyle_ENUMS();
#endif
public:
-#ifndef SWIG
- virtual void handleNewSize(eWindow *wnd, eSize &size, eSize &offset) = 0;
- virtual void paintWindowDecoration(eWindow *wnd, gPainter &painter, const std::string &title) = 0;
- virtual void paintBackground(gPainter &painter, const ePoint &offset, const eSize &size) = 0;
- virtual void setStyle(gPainter &painter, int what) = 0;
- virtual void drawFrame(gPainter &painter, const eRect &frame, int type) = 0;
- virtual RESULT getFont(int what, ePtr<gFont> &font) = 0;
-#endif
- virtual ~eWindowStyle() = 0;
enum {
styleLabel,
styleListboxSelected,
@@ -30,18 +21,36 @@ public:
styleListboxMarked,
styleListboxMarkedAndSelected
};
-
+
enum {
frameButton,
frameListboxEntry
};
-
+
enum {
fontStatic,
fontButton,
fontTitlebar
};
};
+
+SWIG_IGNORE(eWindowStyle);
+class eWindowStyle: public eWindowStyle_ENUMS, public iObject
+{
+#ifdef SWIG
+ eWindowStyle();
+#endif
+public:
+#ifndef SWIG
+ virtual void handleNewSize(eWindow *wnd, eSize &size, eSize &offset) = 0;
+ virtual void paintWindowDecoration(eWindow *wnd, gPainter &painter, const std::string &title) = 0;
+ virtual void paintBackground(gPainter &painter, const ePoint &offset, const eSize &size) = 0;
+ virtual void setStyle(gPainter &painter, int what) = 0;
+ virtual void drawFrame(gPainter &painter, const eRect &frame, int type) = 0;
+ virtual RESULT getFont(int what, ePtr<gFont> &font) = 0;
+#endif
+ virtual ~eWindowStyle() = 0;
+};
SWIG_TEMPLATE_TYPEDEF(ePtr<eWindowStyle>, eWindowStylePtr);
SWIG_IGNORE(eWindowStyleManager);
@@ -56,10 +65,10 @@ public:
#ifndef SWIG
eWindowStyleManager();
~eWindowStyleManager();
+ static SWIG_VOID(int) getInstance(ePtr<eWindowStyleManager> &SWIG_NAMED_OUTPUT(mgr)) { mgr = m_instance; if (!mgr) return -1; return 0; }
#endif
void getStyle(int style_id, ePtr<eWindowStyle> &SWIG_OUTPUT);
void setStyle(int style_id, eWindowStyle *style);
- static SWIG_VOID(int) getInstance(ePtr<eWindowStyleManager> &SWIG_NAMED_OUTPUT(mgr)) { mgr = m_instance; if (!mgr) return -1; return 0; }
private:
static eWindowStyleManager *m_instance;
std::map<int, ePtr<eWindowStyle> > m_current_style;