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 EXPERIMENTBROWSER_H
00026 #define EXPERIMENTBROWSER_H
00027
00028
00029 #include "DigestGuiCore/guicomponentwidgets.h"
00030
00031 #include <jni.h>
00032
00033 #include "ui_experimentbrowserform.h"
00034
00035
00036 class QItemSelection;
00037 class QItemSelectionModel;
00038 class QSqlQueryModel;
00039 class QStandardItemModel;
00040
00041 class SettingsController;
00042
00043
00044 class ExperimentBrowser : public GuiDbComponentDialog {
00045
00046 Q_OBJECT
00047
00048 public:
00049 ExperimentBrowser( DigestDbController* digestDbController,
00050 SettingsController* settingsController,
00051 JavaVM* jvm,
00052 QWidget* parent = 0, Qt::WindowFlags flags = 0 );
00053 ~ExperimentBrowser();
00054
00055
00056 public slots:
00057 void refreshExperimentsModel();
00058
00059
00060 protected:
00061 void showEvent( QShowEvent* );
00062
00063 void resetEvent( VEvent* );
00064 void experimentsEvent( VExperimentsEvent* );
00065
00066
00067 private slots:
00068 void on_newExperimentButton_clicked();
00069 void on_removeButton_clicked();
00070 void on_showGesturesButton_clicked();
00071
00072 void onSelectionChanged();
00073
00074 void updateDetailsText();
00075 void updateResults();
00076
00077
00078 private:
00079 QString experimentRecordAsHtml( const DExperimentRecord& record ) const;
00080
00081 SettingsController* m_settingsController;
00082 JavaVM* m_jvm;
00083
00084 Ui::ExperimentBrowserForm m_ui;
00085
00086 QSqlQueryModel* m_experimentsModel;
00087 QItemSelectionModel* m_selectionModel;
00088
00089 QSqlQueryModel* m_resultsModel;
00090
00091 QStandardItemModel* m_dummyModel;
00092 };
00093
00094
00095 #endif // ! EXPERIMENTBROWSER_H