File: ValueListCtrl.h

package info (click to toggle)
ace 6.0.3%2Bdfsg-0.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 49,368 kB
  • sloc: cpp: 341,826; perl: 30,850; ansic: 20,952; makefile: 10,144; sh: 4,744; python: 828; exp: 787; yacc: 511; xml: 330; lex: 158; lisp: 116; csh: 48; tcl: 5
file content (47 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* -*- C++ -*- */
// $Id: ValueListCtrl.h 91743 2010-09-13 18:24:51Z johnnyw $

#ifndef _ConfigurationViewer_ValueListCtrl_H
#define _ConfigurationViewer_ValueListCtrl_H

class ValueListCtrl : public wxListCtrl
{
public:
  ///////////////////////////////////////////
  // Initializers
  ///////////////////////////////////////////
  ValueListCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition,
        const wxSize& size = wxDefaultSize, long style = wxLC_ICON,
        const wxValidator& validator = wxDefaultValidator,
        const wxString& name = "listCtrl");
  virtual ~ValueListCtrl();

  ///////////////////////////////////////////
  // Methods
  ///////////////////////////////////////////
  void DisplaySection(const ACE_Configuration_Section_Key& Key);
  long GetSelectedItem();
  void SelectItem(long ItemID);
  void OnRightDown(wxMouseEvent& event);
  void OnModify(wxCommandEvent& event);
  void OnDelete(wxCommandEvent& event);
  void OnRename(wxCommandEvent& event);
  void ChangeConfig(ACE_Configuration* pConfig);
  ///////////////////////////////////////////
  // Attribute Accessors
  ///////////////////////////////////////////

protected:
  // Not Used
  ValueListCtrl(const ValueListCtrl& RHS);
  const ValueListCtrl& operator=(const ValueListCtrl& RHS);

  DECLARE_EVENT_TABLE()
private:

  ACE_Configuration*              m_pConfig;
  ACE_Configuration_Section_Key   m_Key;
};

#endif