FlowVis 1.0
|
00001 #ifndef TRANSFERSETTINGSWIDGET_H 00002 #define TRANSFERSETTINGSWIDGET_H 00003 00004 #include <QDataStream> 00005 #include <QWidget> 00006 #include "transferwidget.h" 00007 #include "qtcolortriangle.h" 00008 00019 00020 00021 class TransferSettingsWidget : public QWidget 00022 { 00023 Q_OBJECT 00024 00025 public: 00026 TransferSettingsWidget(QWidget *parent=NULL); 00027 ~TransferSettingsWidget(); 00028 00029 00041 friend QDataStream &operator<<(QDataStream &out, const TransferSettingsWidget *item); 00042 00054 friend QDataStream &operator>>(QDataStream &in, TransferSettingsWidget *item); 00055 00056 public slots: 00057 00068 00069 void Load(); 00070 00081 00082 void Save(); 00083 00084 signals: 00085 00099 00100 void TransferImageUpdated(const QImage& image); 00101 00112 00113 void SaveConfig(); 00114 00115 private: 00116 TransferWidget* transfer; 00117 QtColorTriangle* triangle; 00118 00119 00120 }; 00121 00122 QDataStream &operator<<(QDataStream &out, const TransferSettingsWidget *item); 00123 QDataStream &operator>>(QDataStream &in, TransferSettingsWidget *item); 00124 #endif // TRANSFERSETTINGSWIDGET_H