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_ALERTSWIDGET_H 00012 #define CONFIGURATION_ALERTSWIDGET_H 00013 00014 #include <qdialog.h> 00015 00016 //forward declarations 00017 class QGridLayout; 00018 class QLabel; 00019 class QFrame; 00020 class QCheckBox; 00021 class QVGroupBox; 00022 class Configuration; 00023 00024 //===================================== 00027 //===================================== 00028 00029 //====================== 00030 class AlertsWidget : public QWidget 00031 { 00032 Q_OBJECT 00033 //---------------------- 00034 public: 00035 AlertsWidget( Configuration* config, QWidget *parent=0, const char* name=0); 00036 static void setDefaults(Configuration* config); 00037 void loadSettings(); 00038 void saveSettings(); 00039 //---------------------- 00040 private: 00042 Configuration* config; 00043 00044 QGridLayout* grid; 00045 00046 QLabel* categoryLabel; 00047 QFrame* horizontalLine; 00048 00049 QVGroupBox* behavior; 00050 QCheckBox* showDestructiveAlerts; 00051 QCheckBox* showSoftwareUpdateAlerts; 00052 00053 //---------------------- 00054 }; 00055 //====================== 00056 00057 #endif //CONFIGURATION_ALERTSWIDGET_H