experimentbrowser.h

Go to the documentation of this file.
00001 /*  -*- c++ -*-  (for Emacs)
00002  *
00003  *  experimentbrowser.h
00004  *  Digest
00005  * 
00006  *  Created by Aidan Lane on Thu Nov 3 2005.
00007  *  Copyright (c) 2005-2006 Optimisation and Constraint Solving Group,
00008  *  Monash University. All rights reserved.
00009  *
00010  *  This program is free software; you can redistribute it and/or modify
00011  *  it under the terms of the GNU General Public License as published by
00012  *  the Free Software Foundation; either version 2 of the License, or
00013  *  (at your option) any later version.
00014  *
00015  *  This program is distributed in the hope that it will be useful,
00016  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  *  GNU General Public License for more details.
00019  *
00020  *  You should have received a copy of the GNU General Public License
00021  *  along with this program; if not, write to the Free Software
00022  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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

Generated on Mon Jul 30 09:46:50 2007 for Digest by  doxygen 1.5.2