00001
00002
00003
00004
00005
00006
00007
00008 #ifndef LOGGERCONFIGDIALOG_H_
00009 #define LOGGERCONFIGDIALOG_H_
00010
00011 #include <QtGui/QtGui>
00012
00013 class LoggerConfigDialog: public QDialog {
00014 Q_OBJECT
00015
00016 public:
00017 LoggerConfigDialog(QWidget* parent=0);
00018 bool usefile() { return fileBox->isChecked(); }
00019 bool usecerr() { return cerrBox->isChecked(); }
00020 bool color() { return colorBox->isChecked(); }
00021 bool appendDate() { return dateBox->isChecked(); }
00022 QString file() { return fileEdit->text(); }
00023
00024 public slots:
00025 void setFilename();
00026
00027 private:
00028 QCheckBox* cerrBox;
00029 QCheckBox* fileBox;
00030 QLineEdit* fileEdit;
00031
00032 QCheckBox* colorBox;
00033 QCheckBox* dateBox;
00034 QPushButton* save;
00035 QPushButton* ok;
00036 QPushButton* cancel;
00037 };
00038
00039 #endif