Google
Web alhem.net
Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

Main.h

Go to the documentation of this file.
00001 00006 /* 00007 Copyright (C) 2004 Anders Hedstrom 00008 00009 This program is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU General Public License 00011 as published by the Free Software Foundation; either version 2 00012 of the License, or (at your option) any later version. 00013 00014 This program is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 */ 00023 #ifndef _MAIN_H 00024 #define _MAIN_H 00025 00026 #ifdef WIN32 00027 #include "WinSockInit.h" 00028 #endif 00029 00030 00031 // SDL_Event.user.code 00032 #define SDL_USEREVENT_ADDFORM 1 00033 #define SDL_USEREVENT_DISCONNECT 2 00034 // 00035 #define UICOMMAND_QUIT 1 00036 #define UICOMMAND_XMLSAVE 2 00037 // 00038 00039 typedef std::vector<Form::Form *> forms_t; 00040 00041 using iotm::IOMessage; 00042 using gui::SDLControl; 00043 using gui::GuiEvent; 00044 00045 class WinSockInit; 00046 class InitSDL; 00047 class MainWindow; 00048 class ConnectThread; 00049 00050 class Main : public gui::GuiEvent 00051 { 00052 public: 00053 Main(int argc,char *argv[]); 00054 ~Main(); 00055 bool IsOK(); 00056 void MainLoop(); 00057 MainWindow *GetWindow(); 00058 00059 private: 00060 void AddForm(IOMessage *); 00061 void KeyboardEvent(SDL_KeyboardEvent &); 00062 void UserEvent(SDL_UserEvent &); 00063 00064 #ifdef WIN32 00065 WinSockInit m_clWinSock; 00066 #endif 00067 // InitSDL m_clInitSDL; 00068 SDLControl m_clControl; 00069 MainWindow *m_pclMainWindow; 00070 // forms_t m_forms; 00071 // mandel test 00072 double m_angle1; 00073 double m_angle2; 00074 }; 00075 00076 00077 #endif // _MAIN_H

Generated for SDL C++ GUI by doxygen 1.3.6