Nemiver  0.3
nmv-expr-inspector.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_INSPECTOR2_H__
26 #define __NMV_EXPR_INSPECTOR2_H__
27 
28 #include "common/nmv-object.h"
30 #include "nmv-i-debugger.h"
31 #include "nmv-i-perspective.h"
32 
33 namespace Gtk {
34  class Widget;
35 }
36 
37 NEMIVER_BEGIN_NAMESPACE (nemiver)
38 
39 namespace common {
40  class UString;
41 }
42 
44  ExprInspector (const ExprInspector &);
45  ExprInspector& operator= (const ExprInspector &);
46  ExprInspector ();
47  class Priv;
48  SafePtr<Priv> m_priv;
49 
50 public:
51  ExprInspector (IDebugger &a_debugger,
52  IPerspective &a_perspective);
53  virtual ~ExprInspector ();
54  Gtk::Widget& widget () const;
55  void set_expression (IDebugger::VariableSafePtr a_variable,
56  bool a_expand = false,
57  bool a_re_visualize = false);
58  void inspect_expression (const UString &a_variable_name,
59  bool a_expand = false);
60  void inspect_expression (const UString &a_variable_name,
61  bool a_expand,
62  const sigc::slot<void,
63  const IDebugger::VariableSafePtr> &a_s);
64  IDebugger::VariableSafePtr get_expression () const;
65  void enable_contextual_menu (bool a_flag);
66  bool is_contextual_menu_enabled () const;
67  void clear ();
68 
69  // Signals
70  sigc::signal<void, const IDebugger::VariableSafePtr>&
71  expr_inspected_signal () const;
72  sigc::signal<void>& cleared_signal () const;
73 
74 };//end class ExprInspector
75 
76 NEMIVER_END_NAMESPACE (nemiver)
77 
78 #endif //__NMV_EXPR_INSPECTOR2_H__
79 
nmv-safe-ptr-utils.h
nemiver::common::Object
Definition: nmv-object.h:43
nemiver
Definition: nmv-address.h:31
nemiver::common::UString
Definition: nmv-ustring.h:45
Gtk
Definition: nmv-asm-utils.h:30
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
nmv-object.h
nemiver::ExprInspector
Definition: nmv-expr-inspector.h:43
nemiver::common::SafePtr< Priv >
common
Definition: nmv-proc-list-dialog.h:32