7 changed files with 130 additions and 85 deletions
-
27eeschema/dialogs/dialog_edit_label.cpp
-
41eeschema/dialogs/dialog_edit_label.h
-
1eeschema/libeditframe.cpp
-
73include/dialog_helpers.h
-
7include/fctsys.h
-
34pcbnew/dialogs/dialog_pcb_text_properties.cpp
-
32pcbnew/dialogs/dialog_pcb_text_properties.h
@ -1,41 +0,0 @@ |
|||
///////////////////////////////////////////////////////////////////////////// |
|||
// Name: dialog_edit_label.h |
|||
// Author: jean-pierre Charras |
|||
// Modified by: |
|||
// Licence: GPL |
|||
///////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef _DIALOG_EDIT_LABEL_H_ |
|||
#define _DIALOG_EDIT_LABEL_H_ |
|||
|
|||
#include <dialog_edit_label_base.h> |
|||
|
|||
|
|||
class SCH_EDIT_FRAME; |
|||
class SCH_TEXT; |
|||
|
|||
|
|||
class DialogLabelEditor : public DialogLabelEditor_Base |
|||
{ |
|||
private: |
|||
SCH_EDIT_FRAME* m_Parent; |
|||
SCH_TEXT* m_CurrentText; |
|||
wxTextCtrl* m_textLabel; |
|||
|
|||
public: |
|||
DialogLabelEditor( SCH_EDIT_FRAME* parent, SCH_TEXT* aTextItem ); |
|||
~DialogLabelEditor(){}; |
|||
|
|||
|
|||
public: |
|||
|
|||
private: |
|||
void InitDialog( ); |
|||
virtual void OnEnterKey( wxCommandEvent& aEvent ); |
|||
virtual void OnOkClick( wxCommandEvent& aEvent ); |
|||
virtual void OnCancelClick( wxCommandEvent& aEvent ); |
|||
void TextPropertiesAccept( wxCommandEvent& aEvent ); |
|||
}; |
|||
|
|||
|
|||
#endif // _DIALOG_EDIT_LABEL_H_ |
|||
@ -1,32 +0,0 @@ |
|||
#ifndef DIALOG_PCB_TEXT_PROPERTIES_H |
|||
#define DIALOG_PCB_TEXT_PROPERTIES_H |
|||
|
|||
#include <vector> |
|||
#include <wx/wx.h> |
|||
#include <dialog_pcb_text_properties_base.h> |
|||
|
|||
class PCB_EDIT_FRAME; |
|||
class TEXTE_PCB; |
|||
|
|||
/** Implementing DIALOG_PCB_TEXT_PROPERTIES_BASE */ |
|||
class DIALOG_PCB_TEXT_PROPERTIES : public DIALOG_PCB_TEXT_PROPERTIES_BASE |
|||
{ |
|||
private: |
|||
PCB_EDIT_FRAME* m_Parent; |
|||
wxDC* m_DC; |
|||
TEXTE_PCB* m_SelectedPCBText; |
|||
std::vector<int> layerList; |
|||
|
|||
void MyInit(); |
|||
|
|||
protected: |
|||
// Handlers for DIALOG_PCB_TEXT_PROPERTIES_BASE events. |
|||
void OnClose( wxCloseEvent& event ); |
|||
void OnCancelClick( wxCommandEvent& event ); |
|||
void OnOkClick( wxCommandEvent& event ); |
|||
|
|||
public: |
|||
DIALOG_PCB_TEXT_PROPERTIES( PCB_EDIT_FRAME* parent, TEXTE_PCB* passedTextPCB, wxDC* DC ); |
|||
}; |
|||
|
|||
#endif // DIALOG_PCB_TEXT_PROPERTIES_H |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue