2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dialog_edit_label.h
|
|
|
|
// Author: jean-pierre Charras
|
2008-03-20 01:50:21 +00:00
|
|
|
// Modified by:
|
2008-12-19 20:40:08 +00:00
|
|
|
// Licence: GPL
|
2007-05-06 16:03:28 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _DIALOG_EDIT_LABEL_H_
|
|
|
|
#define _DIALOG_EDIT_LABEL_H_
|
|
|
|
|
2008-12-19 20:40:08 +00:00
|
|
|
#include "dialog_edit_label_base.h"
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2010-11-10 15:30:12 +00:00
|
|
|
|
2010-12-08 20:12:46 +00:00
|
|
|
class SCH_EDIT_FRAME;
|
2010-11-10 15:30:12 +00:00
|
|
|
class SCH_TEXT;
|
|
|
|
|
|
|
|
|
2009-02-10 20:02:51 +00:00
|
|
|
class DialogLabelEditor : public DialogLabelEditor_Base
|
2008-03-20 01:50:21 +00:00
|
|
|
{
|
2008-12-19 20:40:08 +00:00
|
|
|
private:
|
2010-12-08 20:12:46 +00:00
|
|
|
SCH_EDIT_FRAME* m_Parent;
|
|
|
|
SCH_TEXT* m_CurrentText;
|
|
|
|
wxTextCtrl* m_textLabel;
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2009-12-27 14:01:21 +00:00
|
|
|
public:
|
2010-12-08 20:12:46 +00:00
|
|
|
DialogLabelEditor( SCH_EDIT_FRAME* parent, SCH_TEXT* aTextItem );
|
2008-12-19 20:40:08 +00:00
|
|
|
~DialogLabelEditor(){};
|
2009-02-10 20:02:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2008-12-19 20:40:08 +00:00
|
|
|
private:
|
2009-12-27 14:01:21 +00:00
|
|
|
void InitDialog( );
|
2010-03-16 18:22:59 +00:00
|
|
|
virtual void OnEnterKey( wxCommandEvent& aEvent );
|
|
|
|
virtual void OnOkClick( wxCommandEvent& aEvent );
|
|
|
|
virtual void OnCancelClick( wxCommandEvent& aEvent );
|
|
|
|
void TextPropertiesAccept( wxCommandEvent& aEvent );
|
2007-05-06 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
2008-12-19 20:40:08 +00:00
|
|
|
|
|
|
|
#endif // _DIALOG_EDIT_LABEL_H_
|