~quadrispro/codelite/trunk

« back to all changes in this revision

Viewing changes to LiteEditor/newkeyshortcutdlg.h

  • Committer: eranif
  • Date: 2008-07-05 08:13:49 UTC
  • Revision ID: svn-v4:9da81c78-c036-0410-9e1f-a2b0375e4b5a:trunk:1805
- Updated the layout of the 'Keyboard shortcut dialog': added 'Edit' button + chnaged its title to 'Keyboard shortcuts'

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
//////////////////////////////////////////////////////////////////////////////
2
2
//////////////////////////////////////////////////////////////////////////////
3
3
//
4
 
// copyright            : (C) 2008 by Eran Ifrah                            
5
 
// file name            : newkeyshortcutdlg.h              
6
 
//                                                                          
 
4
// copyright            : (C) 2008 by Eran Ifrah
 
5
// file name            : newkeyshortcutdlg.h
 
6
//
7
7
// -------------------------------------------------------------------------
8
 
// A                                                                        
9
 
//              _____           _      _     _ _                            
10
 
//             /  __ \         | |    | |   (_) |                           
11
 
//             | /  \/ ___   __| | ___| |    _| |_ ___                      
12
 
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )                     
13
 
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/                     
14
 
//              \____/\___/ \__,_|\___\_____/_|\__\___|                     
15
 
//                                                                          
16
 
//                                                  F i l e                 
17
 
//                                                                          
18
 
//    This program is free software; you can redistribute it and/or modify  
19
 
//    it under the terms of the GNU General Public License as published by  
20
 
//    the Free Software Foundation; either version 2 of the License, or     
21
 
//    (at your option) any later version.                                   
22
 
//                                                                          
23
 
//////////////////////////////////////////////////////////////////////////////
24
 
//////////////////////////////////////////////////////////////////////////////
25
 
 #ifndef __newkeyshortcutdlg__
26
 
#define __newkeyshortcutdlg__
27
 
 
28
 
/**
29
 
@file
30
 
Subclass of NewKeyShortcutBaseDlg, which is generated by wxFormBuilder.
31
 
*/
32
 
 
 
8
// A
 
9
//              _____           _      _     _ _
 
10
//             /  __ \         | |    | |   (_) |
 
11
//             | /  \/ ___   __| | ___| |    _| |_ ___
 
12
//             | |    / _ \ / _  |/ _ \ |   | | __/ _ )
 
13
//             | \__/\ (_) | (_| |  __/ |___| | ||  __/
 
14
//              \____/\___/ \__,_|\___\_____/_|\__\___|
 
15
//
 
16
//                                                  F i l e
 
17
//
 
18
//    This program is free software; you can redistribute it and/or modify
 
19
//    it under the terms of the GNU General Public License as published by
 
20
//    the Free Software Foundation; either version 2 of the License, or
 
21
//    (at your option) any later version.
 
22
//
 
23
//////////////////////////////////////////////////////////////////////////////
 
24
//////////////////////////////////////////////////////////////////////////////
 
25
#ifndef __newkeyshortcutdlg__
 
26
#define __newkeyshortcutdlg__
 
27
 
 
28
/**
 
29
@file
 
30
Subclass of NewKeyShortcutBaseDlg, which is generated by wxFormBuilder.
 
31
*/
 
32
 
33
33
#include "manager.h"
34
 
#include "newkeyshortcutbasedlg.h"
35
 
 
36
 
/** Implementing NewKeyShortcutBaseDlg */
37
 
class NewKeyShortcutDlg : public NewKeyShortcutBaseDlg
 
34
#include "newkeyshortcutbasedlg.h"
 
35
 
 
36
/** Implementing NewKeyShortcutBaseDlg */
 
37
class NewKeyShortcutDlg : public NewKeyShortcutBaseDlg
38
38
{
39
39
        MenuItemData m_mid;
40
 
        
41
 
protected:
42
 
        // Handlers for NewKeyShortcutBaseDlg events.
 
40
 
 
41
protected:
 
42
        // Handlers for NewKeyShortcutBaseDlg events.
43
43
        void OnKeyDown( wxKeyEvent& event );
44
44
        void OnButtonClear(wxCommandEvent &event);
45
 
        
 
45
 
46
46
        wxString ToString(wxKeyEvent &e);
47
 
        
48
 
public:
49
 
        /** Constructor */
 
47
 
 
48
public:
 
49
        /** Constructor */
50
50
        NewKeyShortcutDlg( wxWindow* parent, const MenuItemData &mid );
51
 
        wxString GetAccel(){return m_textCtrl1->GetValue();}
52
 
};
53
 
 
54
 
#endif // __newkeyshortcutdlg__
 
51
        wxString GetAccel() {
 
52
                return m_textCtrl1->GetValue();
 
53
        }
 
54
};
 
55
 
 
56
#endif // __newkeyshortcutdlg__