File: TItemEditDialog.h

package info (click to toggle)
gentle 1.9+cvs20100605+dfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: squeeze
  • size: 12,264 kB
  • ctags: 5,235
  • sloc: cpp: 41,571; ansic: 3,978; sh: 1,420; makefile: 291
file content (38 lines) | stat: -rwxr-xr-x 1,424 bytes parent folder | download | duplicates (6)
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
/** \file
	\brief Contains the TItemEditDialog class
*/
#ifndef _T_ITEM_EDIT_DIALOG_
#define _T_ITEM_EDIT_DIALOG_

#include "main.h"

class TVectorItem ;

/**	\brief Dialog to set item/feature color, offset, type etc.; called from TVectorEditor
*/
class TItemEditDialog : public wxDialog
    {
    public :
    TItemEditDialog ( wxWindow *parent, const wxString& title ,
                        TVectorItem &_vi ) ; ///< Constructor
    virtual ~TItemEditDialog () ; ///< Destructor

    virtual void OnCharHook(wxKeyEvent& event) ; ///< Key event handler
    virtual void OnColor ( wxCommandEvent &ev ) ; ///< Color button event handler
    virtual void OnOK ( wxCommandEvent &ev ) ; ///< OK button event handler
    virtual void OnCancel ( wxCommandEvent &ev ) ; ///< Cancel button event handler
    virtual void OnUseOffset ( wxCommandEvent &ev ) ; ///< Offset checkbox event handler
    virtual void OnList ( wxCommandEvent & WXUNUSED(ev) ) ; ///< Context list box event handler
    virtual void initlb () ; ///< Initialized list box
                                            
    // Variables
    TVectorItem *vi ; ///< Pointer to the TVectorItem
    wxRadioBox *rb ; ///< The different item types
    wxCheckBox *useOffset ; ///< The offset checkbox
    wxTextCtrl *offset ; ///< The offset value
    wxListBox *lb ; ///< The list box

    DECLARE_EVENT_TABLE()
    } ;

#endif