![]() |
IOT
0.5
I Only Think
|
00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- 00002 00003 /* IOT Copyright (C) 2010 CEG development team 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 00007 * as published by the Free Software Foundation. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00017 * 00018 * Authors: CEG <ceg@ionlythink.com>, http://www.ionlythink.com 00019 */ 00020 00021 #ifndef WINDOWSYSTEM_H 00022 #define WINDOWSYSTEM_H 00023 00024 #if defined(__MINGW32__) 00025 00026 #include "ICommunicationGraphicalServer.h" 00027 00028 class WindowSystem : public ICommunicationGraphicalServer 00029 { 00030 public: 00031 WindowSystem() 00032 {} 00033 00034 virtual inline bool getFocusedWindow(Ceg::Window & focusedWindow) 00035 {return true;} 00036 00037 virtual inline bool setFocusToWindow(Ceg::Window & oldFocusedWindow, Ceg::Window & newFocusedWindow) 00038 {return true;} 00039 00040 virtual inline bool refreshWindowInfo(Ceg::Window &) 00041 {return true;} 00042 00043 virtual inline bool generateClickEvent(quint32 buttonID) 00044 {return true;} 00045 00046 virtual inline bool generateKeybdEvent(quint32 key) 00047 {return true;} 00048 }; 00049 00050 #elif defined(Q_WS_WIN) 00051 #include "Win32Explorer.h" 00052 typedef Win32Explorer WindowSystem; 00053 #elif defined(Q_WS_X11) || defined(Q_WS_MAC) 00054 #include "XWindowSystem.h" 00055 typedef XWindowSystem WindowSystem; 00056 #endif 00057 00058 #endif // !WINDOWSYSTEM_H