dialog_edit_label.h 979 Bytes
Newer Older
plyatov's avatar
plyatov committed
1 2 3
/////////////////////////////////////////////////////////////////////////////
// Name:        dialog_edit_label.h
// Author:      jean-pierre Charras
4
// Modified by:
5
// Licence: GPL
plyatov's avatar
plyatov committed
6 7 8 9 10
/////////////////////////////////////////////////////////////////////////////

#ifndef _DIALOG_EDIT_LABEL_H_
#define _DIALOG_EDIT_LABEL_H_

11
#include "dialog_edit_label_base.h"
plyatov's avatar
plyatov committed
12

13

14
class SCH_EDIT_FRAME;
15 16 17
class SCH_TEXT;


18
class DialogLabelEditor : public DialogLabelEditor_Base
19
{
20
private:
21 22 23
    SCH_EDIT_FRAME* m_Parent;
    SCH_TEXT*       m_CurrentText;
    wxTextCtrl*     m_textLabel;
plyatov's avatar
plyatov committed
24

charras's avatar
charras committed
25
public:
26
    DialogLabelEditor( SCH_EDIT_FRAME* parent, SCH_TEXT* aTextItem );
27
    ~DialogLabelEditor(){};
28 29 30 31


public:

32
private:
charras's avatar
charras committed
33
    void InitDialog( );
34 35 36 37
  	virtual void OnEnterKey( wxCommandEvent& aEvent );
    virtual void OnOkClick( wxCommandEvent& aEvent );
    virtual void OnCancelClick( wxCommandEvent& aEvent );
    void TextPropertiesAccept( wxCommandEvent& aEvent );
plyatov's avatar
plyatov committed
38 39
};

40 41

#endif    // _DIALOG_EDIT_LABEL_H_