TBValidityChecker.qo.h

Go to the documentation of this file.
00001 //# TBValidityChecker.qo.h: Widget for running TBTests on opened tables.
00002 //# Copyright (C) 2005
00003 //# Associated Universities, Inc. Washington DC, USA.
00004 //#
00005 //# This library is free software; you can redistribute it and/or modify it
00006 //# under the terms of the GNU Library General Public License as published by
00007 //# the Free Software Foundation; either version 2 of the License, or (at your
00008 //# option) any later version.
00009 //#
00010 //# This library is distributed in the hope that it will be useful, but WITHOUT
00011 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00012 //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00013 //# License for more details.
00014 //#
00015 //# You should have received a copy of the GNU Library General Public License
00016 //# along with this library; if not, write to the Free Software Foundation,
00017 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
00018 //#
00019 //# Correspondence concerning AIPS++ should be addressed as follows:
00020 //#        Internet email: aips2-request@nrao.edu.
00021 //#        Postal address: AIPS++ Project Office
00022 //#                        National Radio Astronomy Observatory
00023 //#                        520 Edgemont Road
00024 //#                        Charlottesville, VA 22903-2475 USA
00025 //#
00026 //# $Id: $
00027 #ifndef TBVALIDITYCHECKER_H_
00028 #define TBVALIDITYCHECKER_H_
00029 
00030 #include <casaqt/QtBrowser/TBValidityChecker.ui.h>
00031 
00032 #include <casa/BasicSL/String.h>
00033 
00034 #include <vector>
00035 
00036 #include <QtGui>
00037 
00038 namespace casa {
00039 
00040 //# Forward Declarations
00041 class TBBrowser;
00042 class TBTest;
00043 
00044 // <summary>
00045 // Widget for running TBTests on opened tables.
00046 // </summary>
00047 //
00048 // <synopsis>
00049 // A TBValidityChecker allows the user to select a table and then run any
00050 // defined TBTests on it.  The pass/fail results are then shown to the user.
00051 // </synopsis>
00052 
00053 class TBValidityChecker : public QWidget, Ui::ValidityChecker {
00054     Q_OBJECT
00055     
00056 public:
00057         // Constructor that takes the browser parent.
00058     TBValidityChecker(TBBrowser* browser);
00059 
00060     ~TBValidityChecker();
00061 
00062 private:
00063         // Browser parent.
00064     TBBrowser* browser;
00065     
00066     // List of tests that can be run.
00067     std::vector<TBTest*> tests;
00068 
00069     
00070     // Sets up the tests in the GUI.
00071     void setupTests();
00072 
00073 private slots:
00074         // Slot for when the user selects a new table.
00075     void tableChanged(QString newTable);
00076 
00077     // Slot for when the user selects a new test.  Loads the checks in the
00078     // right side of the widget.
00079     void loadTest(int index);
00080 
00081     // Slot to run all checks in the selected test on the selected table.
00082     void runChecks();
00083 
00084     // Slot to run the selected check in the selected test on the selected
00085     // table.
00086     void runCheck();
00087 
00088     // Slot for when a new table is opened in the browser.  Adds the name to
00089     // the list of opened tables.
00090     void tableOpened(String table);
00091 
00092     // Slot for when a table is closed in the browser.  Removes the name from
00093     // the list of opened tables. 
00094     void tableClosed(String table);
00095 };
00096 
00097 }
00098 
00099 #endif /* TBVALIDITYCHECKER_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1