00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef SPLITCOLLECTIONDIALOG_H
00026 #define SPLITCOLLECTIONDIALOG_H
00027
00028
00029 #include <QDialog>
00030
00031 #include <QHash>
00032 #include <QList>
00033
00034 #include <MvcDigestDb/abstractdigestdbview.h>
00035
00036 #include "ui_splitcollectionform.h"
00037
00038 class DigestDbController;
00039
00040
00041 class SplitCollectionDialog : public QDialog, public AbstractDigestDbView {
00042
00043 Q_OBJECT
00044
00045 public:
00046 SplitCollectionDialog( int collectionId,
00047 DigestDbController* controller,
00048 QWidget * parent = 0, Qt::WFlags f = 0 );
00049
00050
00051 public slots:
00052 void accept();
00053
00054
00055 protected:
00056 DEFINE_CUSTOM_VIEWEVENT_HANDLER
00057 void resetEvent( VEvent* );
00058 void collectionsEvent( VCollectionsEvent* );
00059
00060
00061 private slots:
00062 void on_trainPercentSpinBox_valueChanged( double value );
00063 void on_trainCountSpinBox_valueChanged( int value );
00064 void on_testPercentSpinBox_valueChanged( double value );
00065 void on_testCountSpinBox_valueChanged( int value );
00066
00067
00068 private:
00069 Ui::SplitCollectionForm m_ui;
00070
00071 int m_srcCollectionId;
00072 int m_trainCollectionId;
00073 int m_testCollectionId;
00074
00075 QString c_label;
00076 int c_totalGestures;
00077 QHash< int, QList<int> > c_classToGestures;
00078 };
00079
00080
00081 #endif // ! SPLITCOLLECTIONDIALOG_H