InterfaceDialog.h
1 //-*-C++-*-
2 /***************************************************************************
3  *
4  * Copyright (C) 2008 by Willem van Straten
5  * Licensed under the Academic Free License version 2.1
6  *
7  ***************************************************************************/
8 
9 #ifndef __QT_InterfaceDialog_H
10 #define __QT_InterfaceDialog_H
11 
12 #include "Pulsar/PlotWindow.h"
13 #include "TextInterface.h"
14 
15 #include <qdialog.h>
16 
17 class QVBox;
18 class QComboBox;
19 class ConfigurableScrollBar;
20 
21 class InterfaceDialog : public QDialog
22 {
23  Q_OBJECT
24 
25  public:
26 
27  InterfaceDialog (QWidget *parent=NULL, const char *name=NULL);
28 
30  void set_window (Pulsar::PlotWindow*);
31 
33  void set_interface (TextInterface::Parser*);
34 
36  void send (const std::string& command);
37 
38  protected slots:
39 
41  void add_scrollbar_CB ();
42 
44  void change_target_CB (const QString&);
45 
46  protected:
47 
50 
51  QComboBox* target;
52  QVBox* vbox;
53 
54  class Forward;
55  Reference::To<Forward> forward;
56 
57 };
58 
60 
62 {
63 public:
64  Forward (InterfaceDialog* parent);
65  void forward (const std::string&);
66 private:
67  InterfaceDialog* parent;
68 };
69 
70 #endif
Forward inherits Reference::Able and forwards Callbacks to InterfaceDialog.
Definition: InterfaceDialog.h:61
const std::string get_message() const
virtual std::string process(const std::string &command)
Manages a window in which to Plot an Archive.
Definition: PlotWindow.h:26

Generated using doxygen 1.8.17