casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CleanGui.qo.h
Go to the documentation of this file.
1 //# Copyright (C) 2013
2 //# Associated Universities, Inc. Washington DC, USA.
3 //#
4 //# This library is free software; you can redistribute it and/or modify it
5 //# under the terms of the GNU Library General Public License as published by
6 //# the Free Software Foundation; either version 2 of the License, or (at your
7 //# option) any later version.
8 //#
9 //# This library is distributed in the hope that it will be useful, but WITHOUT
10 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 //# License for more details.
13 //#
14 //# You should have received a copy of the GNU Library General Public License
15 //# along with this library; if not, write to the Free Software Foundation,
16 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
17 //#
18 //# Correspondence concerning AIPS++ should be addressed as follows:
19 //# Internet email: aips2-request@nrao.edu.
20 //# Postal address: AIPS++ Project Office
21 //# National Radio Astronomy Observatory
22 //# 520 Edgemont Road
23 //# Charlottesville, VA 22903-2475 USA
24 //#
25 #ifndef DISPLAY_CLEANGUI_H_
26 #define DISPLAY_CLEANGUI_H_
27 
28 #include <map>
29 #if ! defined(WITHOUT_DBUS)
30 #include <casadbus/types/variant.h>
31 #else
32 #include <casagrpc/types/variant.h>
33 #endif
34 #include <QDialog>
35 #include <display/Clean/CleanGui.ui.h>
36 
37 namespace casa {
38 
39  class ImagerControl;
40 
41  namespace viewer {
42 
43  class CleanGui : public QDialog, private Ui::CleanGui {
44  Q_OBJECT
45  public:
46  CleanGui( QWidget *parent = 0 );
47  virtual ~CleanGui( );
48 
49  private slots:
50  void selection_change( );
51  void check_box_change( QTreeWidgetItem*, int );
52 
53  void send_state_event( );
54  void play_button_event( );
55  void pause_button_event( );
56  void stop_button_event( );
57  void refresh_button_event( );
58 
59  void entry_changed_event(const QString&);
60 
61  private:
63  // this class is not intended for copy or assignment...
64  CleanGui( const CleanGui & );
65  CleanGui operator=( const CleanGui & );
66 
67  // update information for the process currently selected...
68  void refresh( );
69 #if ! defined(WITHOUT_DBUS)
70  std::map<std::string,dbus::variant> collect( );
71 #else
72  std::map<std::string,grpc::variant> collect( );
73 #endif
74 
75  // indicate (or unindicate) that values have changed,
76  // and a send is required...
77  void set_send_needed( bool );
78  void allow_editing( bool );
79 
83 
84  std::map<QObject*,QString> current_clean_state;
86  };
87  }
88 }
89 #endif
ImagerControl * ic
Definition: CleanGui.qo.h:80
std::map< std::string, dbus::variant > collect()
CleanGui(QWidget *parent=0)
std::map< QObject *, QString > current_clean_state
Definition: CleanGui.qo.h:84
void refresh()
update information for the process currently selected...
void set_send_needed(bool)
indicate (or unindicate) that values have changed, and a send is required...
CleanGui operator=(const CleanGui &)
QString default_send_tooltip
Definition: CleanGui.qo.h:85
void check_box_change(QTreeWidgetItem *, int)
void entry_changed_event(const QString &)
clean_state_t current_process_state
Definition: CleanGui.qo.h:82