casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TBRowLocate.qo.h
Go to the documentation of this file.
1 //# TBRowLocate.qo.h: Displays results of a row locate.
2 //# Copyright (C) 2005
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be addressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //# $Id: $
27 #ifndef TBROWLOCATE_H_
28 #define TBROWLOCATE_H_
29 
30 #include <casaqt/QtBrowser/TBRowLocate.ui.h>
31 
32 #include <QtGui>
33 
34 #include <casa/BasicSL/String.h>
35 
36 namespace casa {
37 
38 //# Forward Declarations
39 class TBLocatedRows;
40 class TBTableTabs;
41 
42 // <summary>
43 // Displays results of a row locate.
44 // </summary>
45 //
46 // <synopsis>
47 // A TBRowLocate is basically a tab widget, where each tab holds a table that
48 // lists the given row data. The TBRowLocate also has buttons to perform
49 // actions on the located rows. Currently these actions include highlighting
50 // the row in the table browser.
51 // </synopsis>
52 
53 class TBRowLocate : public QDialog, Ui::RowLocate {
54  Q_OBJECT
55 
56 public:
57  // Constructor which takes the row data to display.
59 
60  ~TBRowLocate();
61 
62 private:
63  // Displayed row data.
65 
66  // casacore::List of tables.
67  std::vector<TBTableTabs*> tables;
68 
69 private slots:
70  // Slot for when the user clicks a cell.
71  void cellClicked(int row);
72 
73  // Slot for when the user clicks the "Highlight" button.
74  void highlight();
75 
76  // Slot for when the user clicks the "Next" button.
77  void next();
78 
79  // Slot for when the user changes the tab.
80  void tabChanged(int newIndex);
81 };
82 
83 }
84 
85 #endif /* TBROWLOCATE_H_ */
Results of a row locate on at least one table.
Definition: TBConstants.h:117
std::vector< TBTableTabs * > tables
casacore::List of tables.
void highlight()
Slot for when the user clicks the &quot;Highlight&quot; button.
TBRowLocate(TBLocatedRows *rows)
Constructor which takes the row data to display.
void cellClicked(int row)
Slot for when the user clicks a cell.
TBLocatedRows * rows
Displayed row data.
void tabChanged(int newIndex)
Slot for when the user changes the tab.
Displays results of a row locate.
void next()
Slot for when the user clicks the &quot;Next&quot; button.