40 m_scintillaTricks( nullptr ),
41 m_textCtrlTextSizeXBinder( aParent, m_staticTextTsizeX, m_textCtrlTextSizeX, m_TextTextSizeXUnits ),
42 m_textCtrlTextSizeYBinder( aParent, m_staticTextTsizeY, m_textCtrlTextSizeY, m_TextTextSizeYUnits ),
43 m_textCtrlConstraintXBinder( aParent, m_staticTextConstraintX, m_textCtrlConstraintX, m_TextConstraintXUnits ),
44 m_textCtrlConstraintYBinder( aParent, m_staticTextConstraintY, m_textCtrlConstraintY, m_TextConstraintYUnits ),
45 m_textCtrlPosXBinder( aParent, m_staticTextPosX, m_textCtrlPosX, m_TextPosXUnits ),
46 m_textCtrlPosYBinder( aParent, m_staticTextPosY, m_textCtrlPosY, m_TextPosYUnits ),
47 m_textCtrlEndXBinder( aParent, m_staticTextEndX, m_textCtrlEndX, m_TextEndXUnits ),
48 m_textCtrlEndYBinder( aParent, m_staticTextEndY, m_textCtrlEndY, m_TextEndYUnits ),
49 m_textCtrlStepXBinder( aParent, m_staticTextStepX, m_textCtrlStepX, m_TextStepXUnits ),
50 m_textCtrlStepYBinder( aParent, m_staticTextStepY, m_textCtrlStepY, m_TextStepYUnits ),
51 m_textCtrlDefaultTextSizeXBinder( aParent, m_staticTextDefTsX, m_textCtrlDefaultTextSizeX, m_TextDefaultTextSizeXUnits ),
52 m_textCtrlDefaultTextSizeYBinder( aParent, m_staticTextDefTsY, m_textCtrlDefaultTextSizeY, m_TextDefaultTextSizeYUnits ),
53 m_textCtrlDefaultLineWidthBinder( aParent, m_staticTextDefLineW, m_textCtrlDefaultLineWidth, m_TextDefaultLineWidthUnits ),
54 m_textCtrlDefaultTextThicknessBinder( aParent, m_staticTextDefTextThickness, m_textCtrlDefaultTextThickness, m_TextDefaultTextThicknessUnits ),
55 m_textCtrlLeftMarginBinder( aParent, m_staticTextLeftMargin, m_textCtrlLeftMargin, m_TextLeftMarginUnits ),
56 m_textCtrlRightMarginBinder( aParent, m_staticTextDefRightMargin, m_textCtrlRightMargin, m_TextRightMarginUnits ),
57 m_textCtrlTopMarginBinder( aParent, m_staticTextTopMargin, m_textCtrlTopMargin, m_TextTopMarginUnits ),
58 m_textCtrlBottomMarginBinder( aParent, m_staticTextBottomMargin, m_textCtrlBottomMargin, m_TextBottomMarginUnits ),
59 m_textCtrlThicknessBinder( aParent, m_staticTextThickness, m_textCtrlThickness, m_TextLineThicknessUnits )
63 m_stcText->SetUseVerticalScrollBar(
false );
64 m_stcText->SetUseHorizontalScrollBar(
false );
67 wxFont infoFont = wxSystemSettings::GetFont( wxSYS_DEFAULT_GUI_FONT );
68 infoFont.SetSymbolicSize( wxFONTSIZE_X_SMALL );
85 if( event.GetSelection() == 0 )
96 return wxSize( 150, -1 );
227 msg.Printf( wxT(
"%.3f"), item->
m_Orient );
265 msg.Printf( wxT(
"%.3f"), item->
m_Orient );
273 msg.Printf( wxT(
"%d"), item->
GetPPI() );
490 if( msg.ToLong( &value ) )
491 item->
SetPPI( (
int)value );
500 wxArrayString autocompleteTokens;
502 int start =
m_stcText->WordStartPosition( pos,
true );
506 &&
m_stcText->GetCharAt( start-2 ) ==
'$' 507 &&
m_stcText->GetCharAt( start-1 ) ==
'{' )
511 partial =
m_stcText->GetTextRange( start, pos );
514 autocompleteTokens.push_back( entry.first );
UNIT_BINDER m_textCtrlConstraintXBinder
virtual std::map< wxString, wxString > & GetTextVars() const
wxButton * m_buttonGeneralOptsOK
Handle the graphic items list to draw/plot the frame and title block.
wxStaticText * m_staticTextRot
UNIT_BINDER m_textCtrlStepXBinder
PL_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
wxScrolledWindow * m_swItemProperties
EDA_TEXT_VJUSTIFY_T m_Vjustify
UNIT_BINDER m_textCtrlTopMarginBinder
Add cut/copy/paste, autocomplete and brace highlighting to a wxStyleTextCtrl instance.
wxStaticText * m_staticTextInclabel
UNIT_BINDER m_textCtrlBottomMarginBinder
void SetBottomMargin(double aMargin)
UNIT_BINDER m_textCtrlEndXBinder
void OnAcceptPrms(wxCommandEvent &event) override
PL_EDITOR_FRAME is the main window used in the drawing sheet editor.
void DoAutocomplete(const wxString &aPartial, const wxArrayString &aTokens)
double m_DefaultLineWidth
wxStaticText * m_staticTextBitmapDPI
UNIT_BINDER m_textCtrlPosYBinder
UNIT_BINDER m_textCtrlRightMarginBinder
wxTextCtrl * m_textCtrlRepeatCount
void SetLeftMargin(double aMargin)
#define TB_DEFAULT_TEXTSIZE
wxTextCtrl * m_textCtrlTextIncrement
void OnPageChanged(wxNotebookEvent &event) override
void DisplayWorksheet()
Build and update the list of WS_DRAW_ITEM_xxx showing the frame layout.
void SetRightMargin(double aMargin)
wxTextCtrl * m_textCtrlComment
UNIT_BINDER m_textCtrlDefaultTextSizeXBinder
double m_DefaultTextThickness
wxChoice * m_choicePageOpt
void OnModify()
Must be called after a change in order to set the "modify" flag.
EDA_TEXT_HJUSTIFY_T m_Hjustify
wxBoxSizer * m_SizerItemProperties
Base class to handle basic graphic items.
UNIT_BINDER m_textCtrlEndYBinder
void Show(bool aShow, bool aResize=false)
Show/hide the label, widget and units label.
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
wxStyledTextCtrl * m_stcText
DS_ITEM_TYPE GetType() const
const wxString GetClassName() const
UNIT_BINDER m_textCtrlDefaultTextThicknessBinder
static void GetTextVars(wxArrayString *aVars)
bool CopyPrmsFromPanelToGeneral()
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
void SetTopMargin(double aMargin)
void onScintillaCharAdded(wxStyledTextEvent &aEvent)
UNIT_BINDER m_textCtrlConstraintYBinder
void SetPPI(int aBitmapPPI)
wxSize GetMinSize() const override
virtual KIGFX::VIEW * GetView() const
Return a pointer to the #VIEW instance used in the panel.
UNIT_BINDER m_textCtrlStepYBinder
UNIT_BINDER m_textCtrlThicknessBinder
wxStaticBoxSizer * m_sbSizerEndPosition
UNIT_BINDER m_textCtrlDefaultTextSizeYBinder
SCINTILLA_TRICKS * m_scintillaTricks
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=NULL) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
UNIT_BINDER m_textCtrlPosXBinder
UNIT_BINDER m_textCtrlDefaultLineWidthBinder
wxComboBox * m_comboBoxCornerEnd
void SetPage1Option(PAGE_OPTION aChoice)
wxComboBox * m_comboBoxCornerPos
DS_DATA_ITEM * GetPeer() const
wxChoice * m_choiceHjustify
PROPERTIES_FRAME(PL_EDITOR_FRAME *aParent)
double To_User_Unit(EDA_UNITS aUnit, double aValue)
Function To_User_Unit convert aValue in internal units to the appropriate user units defined by aUnit...
bool CopyPrmsFromPanelToItem(DS_DATA_ITEM *aItem)
wxCheckBox * m_checkBoxBold
bool ReplaceAntiSlashSequence()
Replace the '\''n' sequence by EOL and the sequence '\''\' by only one '\' inside m_FullText.
Drawing sheet structure type definitions.
wxTextCtrl * m_textCtrlBitmapDPI
UNIT_BINDER m_textCtrlTextSizeYBinder
PL_EDITOR_FRAME * m_parent
virtual long long int GetValue()
Return the current value in Internal Units.
void SaveCopyInUndoList()
Save a copy of the description (in a S expr string) for Undo/redo commands.
UNIT_BINDER m_textCtrlLeftMarginBinder
wxCheckBox * m_checkBoxItalic
void CopyPrmsFromItemToPanel(DS_DATA_ITEM *aItem)
wxStaticText * m_staticTextSizeInfo
UNIT_BINDER m_textCtrlTextSizeXBinder
void CopyPrmsFromGeneralToPanel()
wxStaticText * m_staticTextType
virtual void SetDoubleValue(double aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
double DoubleValueFromString(EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType)
Function DoubleValueFromString converts aTextValue to a double.
wxTextCtrl * m_textCtrlRotation
void OnSetDefaultValues(wxCommandEvent &event) override
wxChoice * m_choiceVjustify
double From_User_Unit(EDA_UNITS aUnits, double aValue)
Return in internal units the value "val" given in a real unit such as "in", "mm" or "deg".
virtual void Update(const VIEW_ITEM *aItem, int aUpdateFlags) const
For dynamic VIEWs, inform the associated VIEW that the graphical representation of this item has chan...
PAGE_OPTION GetPage1Option() const
Class PANEL_PROPERTIES_BASE.
wxBoxSizer * m_SizerTextOptions