00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-02-10 14:14:32 +0100 (Di, 10 Feb 2009) $ 00006 Version: $Revision: 16224 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 00019 #ifndef QMITKGENERALPREFERENCEPAGE_H_ 00020 #define QMITKGENERALPREFERENCEPAGE_H_ 00021 00022 #ifdef __MINGW32__ 00023 // We need to inlclude winbase.h here in order to declare 00024 // atomic intrinsics like InterlockedIncrement correctly. 00025 // Otherwhise, they would be declared wrong within qatomic_windows.h . 00026 #include <windows.h> 00027 #endif 00028 00029 00030 #include "berryIQtPreferencePage.h" 00031 #include "mitkQtCommonDll.h" 00032 00033 //class QCheckBox; 00034 00035 struct MITK_QT_COMMON QmitkGeneralPreferencePage : public berry::IQtPreferencePage 00036 { 00037 00038 public: 00039 00040 QmitkGeneralPreferencePage(); 00041 00045 virtual void Init(berry::IWorkbench::Pointer workbench); 00046 00050 virtual void CreateQtControl(QWidget* parent); 00051 00055 virtual QWidget* GetQtControl() const; 00056 00060 virtual bool PerformOk(); 00061 00065 virtual void PerformCancel(); 00066 00070 virtual void Update(); 00071 00072 protected: 00073 berry::IPreferences::WeakPtr m_GeneralPreferencesNode; 00074 //QCheckBox* m_StartMaximized; 00075 00076 QWidget* m_MainControl; 00077 00078 }; 00079 00080 #endif /* QMITKGENERALPREFERENCEPAGE_H_ */