SilentEye 0.4.1

modules/seformatbmp/optionwidget.h

Go to the documentation of this file.
00001 //  This file is part of SilentEye.
00002 //
00003 //  SilentEye is free software: you can redistribute it and/or modify
00004 //  it under the terms of the GNU General Public License as published by
00005 //  the Free Software Foundation, either version 3 of the License, or
00006 //  (at your option) any later version.
00007 //
00008 //  SilentEye is distributed in the hope that it will be useful,
00009 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011 //  GNU General Public License for more details.
00012 //
00013 //  You should have received a copy of the GNU General Public License
00014 //  along with SilentEye.  If not, see <http://www.gnu.org/licenses/>.
00015 
00016 #ifndef OPTIONWIDGETBMP_H_
00017 #define OPTIONWIDGETBMP_H_
00018 
00019 #include <QtGui>
00020 #include "logger.h"
00021 #include "ui_optionwidget.h"
00022 #include "imagebmp.h"
00023 
00024 using namespace SilentEyeFramework;
00025 
00026 namespace SEFormatBMP {
00027 
00028     class OptionWidget : public QWidget, public Ui::OptionWidgetSilentEyeBmp
00029     {
00030         Q_OBJECT;
00031 
00032     private:
00033         QPointer<Logger> m_logger;
00034         bool m_dontUpdate;
00035 
00036     public:
00037         OptionWidget(QWidget* parent=0);
00038         ~OptionWidget();
00039 
00040         int nbBits() const;
00041         bool isRedUsed() const;
00042         bool isGreenUsed() const;
00043         bool isBlueUsed() const;
00044         ImageBMP::DataDistribution distribution() const;
00045         ImageBMP::HeaderPosition headerPosition() const;
00046 
00047     protected slots:
00048         void advButtonPressed(bool);
00049         void qualityChanged(int=-1);
00050         void settingsChanged(int=-1);
00051 
00052     signals:
00053         void optionHasChanged();
00054     };
00055 }
00056 
00057 #endif