AlbumShaper
1.0a3
|
00001 //============================================== 00002 // copyright : (C) 2003-2005 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 //============================================== 00010 00011 #ifndef CONFIGURATION_CONFIGURATIONWIDGET_H 00012 #define CONFIGURATION_CONFIGURATIONWIDGET_H 00013 00014 //forward declarations 00015 class QGridLayout; 00016 class QIconView; 00017 class QIconViewItem; 00018 class QPushButton; 00019 class GroupIcon; 00020 class QFrame; 00021 00022 class Configuration; 00023 class AlertsWidget; 00024 class LayoutSettingsWidget; 00025 class LoadingSavingWidget; 00026 class GroupsWidget; 00027 00028 #include <qdialog.h> 00029 00030 //===================================== 00033 //===================================== 00034 00035 class ConfigurationWidget : public QDialog 00036 { 00037 Q_OBJECT 00038 public: 00039 ConfigurationWidget(Configuration* config, 00040 QWidget *parent=0, 00041 const char* name=0); 00042 //---------------------- 00043 signals: 00044 void closed(); 00045 //---------------------- 00046 private slots: 00048 void updateDialogue( QIconViewItem* selection); 00049 00051 void repaintGroup( QIconViewItem* pseudoSelection); 00052 00054 void clearPseudoSelection(); 00055 00056 //save settings 00057 void saveSettings(); 00058 00059 void reject(); 00060 //---------------------- 00061 private: 00062 void closeEvent( QCloseEvent* e); 00063 00065 Configuration* config; 00066 00068 QGridLayout* grid; 00069 00071 GroupsWidget* groups; 00072 00074 LoadingSavingWidget* loadingSavingWidget; 00075 LayoutSettingsWidget* layoutWidget; 00076 AlertsWidget* alertsWidget; 00077 QWidget* currentSettingsWidget; 00078 00079 //currently hovered over group icon 00080 GroupIcon* currentPseudoSelection; 00081 00083 GroupIcon *alertsIcon, *layoutIcon, *loadingSavingIcon; 00084 00085 //ok and cancel buttons, frame, and grid 00086 QFrame* buttonsFrame; 00087 QPushButton *okButton, *cancelButton; 00088 QGridLayout* buttonsGrid; 00089 }; 00090 //====================== 00091 00092 #endif //CONFIGURATION_CONFIGURATIONWIDGET_H