00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef CHANNELCOLORSPAGE_H
00021 #define CHANNELCOLORSPAGE_H
00022
00023
00024 #include <channelcolorslayout.h>
00025 #include "channelcolors.h"
00026
00027
00028 #include <qwidget.h>
00029 #include <qtable.h>
00030
00031
00035 class ChannelColorsPage : public ChannelColorsLayout
00036 {
00037 Q_OBJECT
00038 public:
00039 ChannelColorsPage(QWidget* parent = 0, const char *name = 0);
00040 ~ChannelColorsPage();
00041
00045 inline void setNbChannels(int nbChannels){
00046 this->nbChannels = nbChannels;
00047 for(int i =0; i<colorTable->numRows();++i) colorTable->removeRow(i);
00048 colorTable->setNumRows(nbChannels);
00049 };
00050
00054 void getColors(QValueList<ChannelColors>& colors);
00055
00059 void setColors(QValueList<ChannelColors>& colors);
00060
00062 inline bool isModified()const{return modified;};
00063
00064 public slots:
00070 void chooseColor(int row,int column,int button);
00071
00073 inline void propertyModified(){modified = true;};
00074
00076 inline void resetModificationStatus(){modified = false;};
00077
00078 private:
00079 int nbChannels;
00080 bool modified;
00081 };
00082
00083 #endif