00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 
00032 
00033 #include "mmsgui/mmsmainwindow.h"
00034 
00035 MMSMainWindow::MMSMainWindow(string className, string dx, string dy, string w, string h, MMSALIGNMENT alignment,
00036                              MMSWINDOW_FLAGS flags, MMSTheme *theme, bool *own_surface, bool *backbuffer) {
00037     create(className, dx, dy, w, h, alignment, flags, theme, own_surface, backbuffer);
00038 }
00039 
00040 MMSMainWindow::MMSMainWindow(string className, string w, string h, MMSALIGNMENT alignment,
00041                              MMSWINDOW_FLAGS flags, MMSTheme *theme, bool *own_surface, bool *backbuffer) {
00042     create(className, "", "", w, h, alignment, flags, theme, own_surface, backbuffer);
00043 }
00044 
00045 MMSMainWindow::~MMSMainWindow() {
00046 }
00047 
00048 bool MMSMainWindow::create(string className, string dx, string dy, string w, string h, MMSALIGNMENT alignment,
00049                            MMSWINDOW_FLAGS flags, MMSTheme *theme, bool *own_surface, bool *backbuffer) {
00050     this->type = MMSWINDOWTYPE_MAINWINDOW;
00051     this->className = className;
00052     if (theme) this->theme = theme; else this->theme = globalTheme;
00053     this->mainWindowClass = this->theme->getMainWindowClass(className);
00054     this->baseWindowClass = &(this->theme->mainWindowClass.windowClass);
00055     if (this->mainWindowClass) this->windowClass = &(this->mainWindowClass->windowClass); else this->windowClass = NULL;
00056 
00057     return MMSWindow::create(dx, dy, w, h, alignment, flags, own_surface, backbuffer);
00058 }
00059 
00060 
00061 
00062 
00063 
00064 void MMSMainWindow::updateFromThemeClass(MMSMainWindowClass *themeClass) {
00065     MMSWindow::updateFromThemeClass(&(themeClass->windowClass));
00066 }
00067 
00068 
00069 
00070