Nemiver  0.3
nmv-expr-inspector-dialog.h
Go to the documentation of this file.
1 //Author: Dodji Seketeli
2 /*
3  *This file is part of the Nemiver project
4  *
5  *Nemiver is free software; you can redistribute
6  *it and/or modify it under the terms of
7  *the GNU General Public License as published by the
8  *Free Software Foundation; either version 2,
9  *or (at your option) any later version.
10  *
11  *Nemiver is distributed in the hope that it will
12  *be useful, but WITHOUT ANY WARRANTY;
13  *without even the implied warranty of
14  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *See the GNU General Public License for more details.
16  *
17  *You should have received a copy of the
18  *GNU General Public License along with Nemiver;
19  *see the file COPYING.
20  *If not, write to the Free Software Foundation,
21  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
22  *
23  *See COPYRIGHT file copyright information.
24  */
25 #ifndef __NMV_EXPR_INSPECTOR_DIALOG_H__
26 #define __NMV_EXPR_INSPECTOR_DIALOG_H__
27 
28 #include "nmv-dialog.h"
29 #include "nmv-i-perspective.h"
30 #include "nmv-i-debugger.h"
31 #include "nmv-expr-inspector.h"
32 
33 NEMIVER_BEGIN_NAMESPACE (nemiver)
34 
35 class ExprInspectorDialog : public Dialog {
36  //non copyable
38  ExprInspectorDialog& operator= (const ExprInspectorDialog &);
39 
40  //tell me why you would want to extend this.
42 
43  class Priv;
44  SafePtr<Priv> m_priv;
45 
46 public:
47 
51  FUNCTIONALITY_NONE = 0,
55  FUNCTIONALITY_EXPR_INSPECTOR = 1,
59  FUNCTIONALITY_EXPR_MONITOR_PICKER = 1 << 1,
60  // This one should be the last one, and should contain all the
61  // flags above.
62  FUNCTIONALITY_ALL =
63  (FUNCTIONALITY_EXPR_INSPECTOR
64  | FUNCTIONALITY_EXPR_MONITOR_PICKER)
65  };
66 
67  ExprInspectorDialog (Gtk::Window &a_parent,
68  IDebugger &a_debugger,
69  IPerspective &a_perspective);
70  virtual ~ExprInspectorDialog ();
71 
72  UString expression_name () const;
73  void inspect_expression (const UString &a_expression_name);
74  void inspect_expression (const UString &a_expression_name,
75  const sigc::slot<void,
77  const IDebugger::VariableSafePtr expression () const;
78  ExprInspector& inspector () const;
79  void set_history (const std::list<UString> &);
80  void get_history (std::list<UString> &) const;
81  void functionality_mask (int functionality_mask);
82  unsigned functionality_mask ();
83 
84  // <Signals>
85 
86  sigc::signal<void, IDebugger::VariableSafePtr>& expr_monitoring_requested ();
87 
88  // </Signals>
89 };//end class ExprInspectorDialog
90 
91 NEMIVER_END_NAMESPACE (nemiver)
92 
93 #endif //__NMV_EXPR_INSPECTOR_DIALOG_H__
nemiver::ExprInspectorDialog::FunctionalityFlags
FunctionalityFlags
Definition: nmv-expr-inspector-dialog.h:50
nemiver
Definition: nmv-address.h:31
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::ExprInspectorDialog
Definition: nmv-expr-inspector-dialog.h:35
nemiver::IDebugger
a debugger engine.
Definition: nmv-i-debugger.h:74
nmv-i-perspective.h
nmv-i-debugger.h
nemiver::IPerspective
Definition: nmv-i-perspective.h:54
nemiver::Dialog
Definition: nmv-dialog.h:50
nemiver::ExprInspector
Definition: nmv-expr-inspector.h:43
nmv-expr-inspector.h
nemiver::common::SafePtr< Priv >
nmv-dialog.h