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
|
|
|
|
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:
|
|
|
|
WinEDA_SchematicFrame * m_Parent;
|
2008-03-20 01:50:21 +00:00
|
|
|
SCH_TEXT * m_CurrentText;
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2009-02-10 20:02:51 +00:00
|
|
|
void init();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
// these are protected so that the static ShowModally() gets used.
|
2008-12-19 20:40:08 +00:00
|
|
|
DialogLabelEditor( WinEDA_SchematicFrame* parent, SCH_TEXT * CurrentText);
|
|
|
|
~DialogLabelEditor(){};
|
2009-02-10 20:02:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Function ShowModally
|
|
|
|
* is a static function that constructs and then displays one of these dialogs.
|
|
|
|
* @param parent
|
|
|
|
* @param CurrentText is one of several classes derived from SCH_TEXT
|
|
|
|
* @return int - the result Dialog::ShowModal()
|
|
|
|
*/
|
|
|
|
static int ShowModally( WinEDA_SchematicFrame* parent, SCH_TEXT * CurrentText );
|
|
|
|
|
2008-12-19 20:40:08 +00:00
|
|
|
private:
|
|
|
|
void OnInitDialog( wxInitDialogEvent& event );
|
2009-02-10 20:02:51 +00:00
|
|
|
void OnButtonOKClick( wxCommandEvent& event );
|
|
|
|
void OnButtonCANCEL_Click( wxCommandEvent& event );
|
2008-12-19 20:40:08 +00:00
|
|
|
void TextPropertiesAccept( wxCommandEvent& event );
|
2007-05-06 16:03:28 +00:00
|
|
|
};
|
|
|
|
|
2008-12-19 20:40:08 +00:00
|
|
|
|
|
|
|
#endif // _DIALOG_EDIT_LABEL_H_
|