Nemiver  0.3
nmv-vars-treeview.h
Go to the documentation of this file.
1 //Author: Jonathon Jongsma
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_VARS_TREEVIEW_H__
26 #define __NMV_VARS_TREEVIEW_H__
27 
28 #include <gtkmm/treeview.h>
29 #include <gtkmm/treestore.h>
30 #include "common/nmv-safe-ptr.h"
31 #include "nmv-ui-utils.h"
32 
34 
35 NEMIVER_BEGIN_NAMESPACE (nemiver)
37 
38 typedef SafePtr<VarsTreeView,
39  nemiver::ui_utils::WidgetRef,
40  nemiver::ui_utils::WidgetUnref> VarsTreeViewSafePtr;
41 
42 class NEMIVER_API VarsTreeView : public Gtk::TreeView
43 {
44  public:
45  enum ColumIndex {
46  VARIABLE_NAME_COLUMN_INDEX = 0,
48  VARIABLE_TYPE_COLUMN_INDEX
49  };
50  static VarsTreeView* create ();
51  Glib::RefPtr<Gtk::TreeStore>& get_tree_store ();
52 
53  protected:
54  VarsTreeView ();
55  VarsTreeView (Glib::RefPtr<Gtk::TreeStore>& model);
56 
57  private:
58  Glib::RefPtr<Gtk::TreeStore> m_tree_store;
59 };
60 NEMIVER_END_NAMESPACE (nemiver)
61 #endif // __NMV_VARS_TREEVIEW_H__
nemiver
Definition: nmv-address.h:31
nmv-safe-ptr.h
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nemiver::VarsTreeView
Definition: nmv-vars-treeview.h:42
nemiver::VarsTreeView::VARIABLE_VALUE_COLUMN_INDEX
@ VARIABLE_VALUE_COLUMN_INDEX
Definition: nmv-vars-treeview.h:47
nmv-ui-utils.h
nemiver::VarsTreeView::ColumIndex
ColumIndex
Definition: nmv-vars-treeview.h:45
Gtk
Definition: nmv-asm-utils.h:30
nemiver::common::SafePtr
Definition: nmv-safe-ptr.h:71