00001 /* 00002 This source file is part of OgreHaptics 00003 (a library for wrapping haptics devices for use with the open-source 00004 graphics engine OGRE, http://www.ogre3d.org) 00005 00006 Copyright (c) 2006 - 2008 Jorrit de Vries 00007 Also see acknowledgements in Readme.html 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Lesser General Public License 00011 as published by the Free Software Foundation; either version 2.1 00012 of the License, or (at your option) any later version. 00013 00014 This library 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 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library; if not, write to the 00021 Free Software Foundation, Inc., 00022 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 */ 00024 #ifndef _OgreHapticsWin32ConfigDialog_H__ 00025 #define _OgreHapticsoWin32ConfigDialog_H__ 00026 00027 #include "OgreHapticsPrerequisites.h" 00028 #include "OgreHapticsRenderSystem.h" 00029 00030 #define WIN32_LEAN_AND_MEAN 00031 #include <windows.h> 00032 00033 // Get around windows hackery 00034 #ifdef max 00035 # undef max 00036 #endif 00037 #ifdef min 00038 # undef min 00039 #endif 00040 00041 namespace OgreHaptics { 00042 00043 class _OgreHapticsExport ConfigDialog 00044 { 00045 public: 00047 ConfigDialog(); 00049 ~ConfigDialog(); 00050 00052 bool display(void); 00053 protected: 00055 #if OGRE_ARCH_TYPE == OGRE_ARCHITECTURE_64 00056 static INT_PTR CALLBACK DlgProc(HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam); 00057 #else 00058 static BOOL CALLBACK DlgProc(HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam); 00059 #endif 00060 // Are devices found on users system? 00061 bool mFoundDevices; 00062 DeviceInitInfo mSelectedSettings; 00063 // HInstance for the application, for dialog 00064 HINSTANCE mHInstance; 00065 }; 00066 00067 } 00068 00069 #endif
Last modified Tue Jan 6 22:31:25 2009