KiCad PCB EDA Suite
PROPERTIES_FRAME Class Reference

PROPERTIES_FRAME display properties of the current item. More...

#include <properties_frame.h>

Inheritance diagram for PROPERTIES_FRAME:
PANEL_PROPERTIES_BASE

Public Member Functions

 PROPERTIES_FRAME (PL_EDITOR_FRAME *aParent)
 
 ~PROPERTIES_FRAME ()
 
void OnPageChanged (wxNotebookEvent &event) override
 
void OnAcceptPrms (wxCommandEvent &event) override
 
void OnSetDefaultValues (wxCommandEvent &event) override
 
void onScintillaCharAdded (wxStyledTextEvent &aEvent)
 
void onHelp (wxCommandEvent &aEvent) override
 
void onHAlignButton (wxCommandEvent &aEvent)
 
void onVAlignButton (wxCommandEvent &aEvent)
 
void CopyPrmsFromGeneralToPanel ()
 
bool CopyPrmsFromPanelToGeneral ()
 
void CopyPrmsFromItemToPanel (DS_DATA_ITEM *aItem)
 
bool CopyPrmsFromPanelToItem (DS_DATA_ITEM *aItem)
 
wxSize GetMinSize () const override
 

Protected Attributes

wxNotebook * m_notebook
 
wxScrolledWindow * m_swItemProperties
 
wxBoxSizer * m_SizerItemProperties
 
wxStaticText * m_staticTextType
 
wxButton * m_buttonHelp
 
wxChoice * m_choicePageOpt
 
wxBoxSizer * m_SizerTextOptions
 
wxStyledTextCtrl * m_stcText
 
BITMAP_BUTTONm_bold
 
BITMAP_BUTTONm_italic
 
BITMAP_BUTTONm_separator2
 
BITMAP_BUTTONm_alignLeft
 
BITMAP_BUTTONm_alignCenter
 
BITMAP_BUTTONm_alignRight
 
BITMAP_BUTTONm_separator3
 
BITMAP_BUTTONm_vAlignTop
 
BITMAP_BUTTONm_vAlignMiddle
 
BITMAP_BUTTONm_vAlignBottom
 
BITMAP_BUTTONm_separator4
 
wxPanel * m_panelBorderColor1
 
COLOR_SWATCHm_textColorSwatch
 
wxStaticText * m_fontLabel
 
FONT_CHOICEm_fontCtrl
 
wxStaticText * m_staticTextTsizeX
 
wxTextCtrl * m_textCtrlTextSizeX
 
wxStaticText * m_textSizeXUnits
 
wxStaticText * m_staticTextTsizeY
 
wxTextCtrl * m_textCtrlTextSizeY
 
wxStaticText * m_textSizeYUnits
 
wxStaticText * m_constraintXLabel
 
wxTextCtrl * m_constraintXCtrl
 
wxStaticText * m_constraintXUnits
 
wxStaticText * m_constraintYLabel
 
wxTextCtrl * m_constraintYCtrl
 
wxStaticText * m_constraintYUnits
 
wxStaticText * m_staticTextSizeInfo
 
wxStaticText * m_staticTextComment
 
wxTextCtrl * m_textCtrlComment
 
wxStaticBoxSizer * sbSizerPos
 
wxStaticText * m_staticTextPosX
 
wxTextCtrl * m_textCtrlPosX
 
wxStaticText * m_TextPosXUnits
 
wxStaticText * m_staticTextPosY
 
wxTextCtrl * m_textCtrlPosY
 
wxStaticText * m_TextPosYUnits
 
wxStaticText * m_staticTextOrgPos
 
wxComboBox * m_comboBoxCornerPos
 
wxStaticBoxSizer * m_sbSizerEndPosition
 
wxStaticText * m_staticTextEndX
 
wxTextCtrl * m_textCtrlEndX
 
wxStaticText * m_TextEndXUnits
 
wxStaticText * m_staticTextEndY
 
wxTextCtrl * m_textCtrlEndY
 
wxStaticText * m_TextEndYUnits
 
wxStaticText * m_staticTextOrgEnd
 
wxComboBox * m_comboBoxCornerEnd
 
wxStaticText * m_lineWidthLabel
 
wxTextCtrl * m_lineWidthCtrl
 
wxStaticText * m_lineWidthUnits
 
wxStaticText * m_staticTextRot
 
wxTextCtrl * m_textCtrlRotation
 
wxStaticText * m_staticTextBitmapDPI
 
wxTextCtrl * m_textCtrlBitmapDPI
 
wxStaticText * m_staticTextRepeatCnt
 
wxTextCtrl * m_textCtrlRepeatCount
 
wxStaticText * m_staticTextInclabel
 
wxTextCtrl * m_textCtrlTextIncrement
 
wxStaticText * m_staticTextStepX
 
wxTextCtrl * m_textCtrlStepX
 
wxStaticText * m_TextStepXUnits
 
wxStaticText * m_staticTextStepY
 
wxTextCtrl * m_textCtrlStepY
 
wxStaticText * m_TextStepYUnits
 
wxButton * m_buttonOK
 
wxScrolledWindow * m_swGeneralOpts
 
wxStaticText * m_staticTextDefTsX
 
wxTextCtrl * m_textCtrlDefaultTextSizeX
 
wxStaticText * m_defaultTextSizeXUnits
 
wxStaticText * m_staticTextDefTsY
 
wxTextCtrl * m_textCtrlDefaultTextSizeY
 
wxStaticText * m_defaultTextSizeYUnits
 
wxStaticText * m_defaultLineWidthLabel
 
wxTextCtrl * m_defaultLineWidthCtrl
 
wxStaticText * m_defaultLineWidthUnits
 
wxStaticText * m_defaultTextThicknessLabel
 
wxTextCtrl * m_defaultTextThicknessCtrl
 
wxStaticText * m_defaultTextThicknessUnits
 
wxButton * m_buttonDefault
 
wxStaticText * m_leftMarginLabel
 
wxTextCtrl * m_leftMarginCtrl
 
wxStaticText * m_leftMarginUnits
 
wxStaticText * m_rightMarginLabel
 
wxTextCtrl * m_rightMarginCtrl
 
wxStaticText * m_rightMarginUnits
 
wxStaticText * m_topMarginLabel
 
wxTextCtrl * m_topMarginCtrl
 
wxStaticText * m_topMarginUnits
 
wxStaticText * m_bottomMarginLabel
 
wxTextCtrl * m_bottomMarginCtrl
 
wxStaticText * m_bottomMarginUnits
 
wxButton * m_buttonGeneralOptsOK
 

Private Attributes

PL_EDITOR_FRAMEm_parent
 
SCINTILLA_TRICKSm_scintillaTricks
 
UNIT_BINDER m_textSizeX
 
UNIT_BINDER m_textSizeY
 
UNIT_BINDER m_constraintX
 
UNIT_BINDER m_constraintY
 
UNIT_BINDER m_textPosX
 
UNIT_BINDER m_textPosY
 
UNIT_BINDER m_textEndX
 
UNIT_BINDER m_textEndY
 
UNIT_BINDER m_textStepX
 
UNIT_BINDER m_textStepY
 
UNIT_BINDER m_defaultTextSizeX
 
UNIT_BINDER m_defaultTextSizeY
 
UNIT_BINDER m_defaultLineWidth
 
UNIT_BINDER m_defaultTextThickness
 
UNIT_BINDER m_textLeftMargin
 
UNIT_BINDER m_textRightMargin
 
UNIT_BINDER m_textTopMargin
 
UNIT_BINDER m_textBottomMargin
 
UNIT_BINDER m_lineWidth
 

Detailed Description

PROPERTIES_FRAME display properties of the current item.

Definition at line 44 of file properties_frame.h.

Constructor & Destructor Documentation

◆ PROPERTIES_FRAME()

PROPERTIES_FRAME::PROPERTIES_FRAME ( PL_EDITOR_FRAME aParent)

Definition at line 45 of file properties_frame.cpp.

45 :
46 PANEL_PROPERTIES_BASE( aParent ),
47 m_scintillaTricks( nullptr ),
67{
68 m_parent = aParent;
69
70 m_stcText->SetUseVerticalScrollBar( false );
71 m_stcText->SetUseHorizontalScrollBar( false );
72 m_stcText->SetEOLMode( wxSTC_EOL_LF ); // Always use LF as eol char, regardless the platform
73 m_scintillaTricks = new SCINTILLA_TRICKS( m_stcText, wxT( "{}" ), false );
74
75 m_staticTextSizeInfo->SetFont( KIUI::GetInfoFont( this ).Italic() );
76
81
83
90
92
99
101
102 m_textColorSwatch->SetDefaultColor( COLOR4D::UNSPECIFIED );
104
105 m_buttonOK->SetDefault();
106
107 // ensure sizers are up to date
108 // (fix an issue on GTK but should not create issues on other platforms):
109 m_swItemProperties->Fit();
110 m_swGeneralOpts->Fit();
111
112 m_stcText->Bind( wxEVT_STC_CHARADDED, &PROPERTIES_FRAME::onScintillaCharAdded, this );
113 m_alignLeft->Bind( wxEVT_BUTTON, &PROPERTIES_FRAME::onHAlignButton, this );
114 m_alignCenter->Bind( wxEVT_BUTTON, &PROPERTIES_FRAME::onHAlignButton, this );
115 m_alignRight->Bind( wxEVT_BUTTON, &PROPERTIES_FRAME::onHAlignButton, this );
116 m_vAlignTop->Bind( wxEVT_BUTTON, &PROPERTIES_FRAME::onVAlignButton, this );
117 m_vAlignMiddle->Bind( wxEVT_BUTTON, &PROPERTIES_FRAME::onVAlignButton, this );
118 m_vAlignBottom->Bind( wxEVT_BUTTON, &PROPERTIES_FRAME::onVAlignButton, this );
119}
wxBitmap KiBitmap(BITMAPS aBitmap, int aHeightTag)
Construct a wxBitmap from an image identifier Returns the image from the active theme if the image ha...
Definition: bitmap.cpp:105
@ text_align_right
@ text_valign_top
@ text_align_left
@ text_valign_center
@ text_align_center
@ text_valign_bottom
void SetIsRadioButton()
void SetBitmap(const wxBitmap &aBmp)
Set the bitmap shown when the button is enabled.
void SetIsSeparator()
Render button as a toolbar separator.
void SetIsCheckButton()
Setup the control as a two-state button (checked or unchecked).
void SetDefaultColor(const KIGFX::COLOR4D &aColor)
Sets the color that will be chosen with the "Reset to Default" button in the chooser.
void SetSwatchBackground(const KIGFX::COLOR4D &aBackground)
Set the swatch background color.
virtual COLOR4D GetDrawBgColor() const
wxStaticText * m_bottomMarginUnits
wxScrolledWindow * m_swItemProperties
wxStaticText * m_constraintYUnits
wxStaticText * m_constraintXLabel
wxStaticText * m_staticTextTsizeX
wxStyledTextCtrl * m_stcText
wxScrolledWindow * m_swGeneralOpts
wxStaticText * m_staticTextTsizeY
wxTextCtrl * m_defaultTextThicknessCtrl
wxStaticText * m_constraintYLabel
wxTextCtrl * m_textCtrlDefaultTextSizeY
wxStaticText * m_defaultLineWidthUnits
PANEL_PROPERTIES_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
COLOR_SWATCH * m_textColorSwatch
wxStaticText * m_defaultTextSizeXUnits
BITMAP_BUTTON * m_vAlignMiddle
wxStaticText * m_bottomMarginLabel
wxStaticText * m_staticTextSizeInfo
wxTextCtrl * m_textCtrlDefaultTextSizeX
wxStaticText * m_defaultLineWidthLabel
wxStaticText * m_defaultTextThicknessLabel
wxStaticText * m_defaultTextThicknessUnits
wxStaticText * m_constraintXUnits
BITMAP_BUTTON * m_vAlignBottom
wxStaticText * m_defaultTextSizeYUnits
UNIT_BINDER m_defaultTextSizeX
UNIT_BINDER m_lineWidth
UNIT_BINDER m_constraintX
UNIT_BINDER m_defaultLineWidth
UNIT_BINDER m_textBottomMargin
PL_EDITOR_FRAME * m_parent
UNIT_BINDER m_textSizeY
UNIT_BINDER m_textLeftMargin
UNIT_BINDER m_defaultTextThickness
void onScintillaCharAdded(wxStyledTextEvent &aEvent)
UNIT_BINDER m_textEndX
void onHAlignButton(wxCommandEvent &aEvent)
UNIT_BINDER m_textEndY
UNIT_BINDER m_textSizeX
void onVAlignButton(wxCommandEvent &aEvent)
UNIT_BINDER m_constraintY
UNIT_BINDER m_defaultTextSizeY
UNIT_BINDER m_textPosX
UNIT_BINDER m_textStepY
UNIT_BINDER m_textTopMargin
UNIT_BINDER m_textRightMargin
UNIT_BINDER m_textPosY
UNIT_BINDER m_textStepX
SCINTILLA_TRICKS * m_scintillaTricks
Add cut/copy/paste, dark theme, autocomplete and brace highlighting to a wxStyleTextCtrl instance.
wxFont GetInfoFont(wxWindow *aWindow)
Definition: ui_common.cpp:144

References EDA_DRAW_FRAME::GetDrawBgColor(), KIUI::GetInfoFont(), KiBitmap(), PANEL_PROPERTIES_BASE::m_alignCenter, PANEL_PROPERTIES_BASE::m_alignLeft, PANEL_PROPERTIES_BASE::m_alignRight, PANEL_PROPERTIES_BASE::m_bold, PANEL_PROPERTIES_BASE::m_buttonOK, PANEL_PROPERTIES_BASE::m_italic, m_parent, m_scintillaTricks, PANEL_PROPERTIES_BASE::m_separator2, PANEL_PROPERTIES_BASE::m_separator3, PANEL_PROPERTIES_BASE::m_separator4, PANEL_PROPERTIES_BASE::m_staticTextSizeInfo, PANEL_PROPERTIES_BASE::m_stcText, PANEL_PROPERTIES_BASE::m_swGeneralOpts, PANEL_PROPERTIES_BASE::m_swItemProperties, PANEL_PROPERTIES_BASE::m_textColorSwatch, PANEL_PROPERTIES_BASE::m_vAlignBottom, PANEL_PROPERTIES_BASE::m_vAlignMiddle, PANEL_PROPERTIES_BASE::m_vAlignTop, onHAlignButton(), onScintillaCharAdded(), onVAlignButton(), BITMAP_BUTTON::SetBitmap(), COLOR_SWATCH::SetDefaultColor(), BITMAP_BUTTON::SetIsCheckButton(), BITMAP_BUTTON::SetIsRadioButton(), BITMAP_BUTTON::SetIsSeparator(), COLOR_SWATCH::SetSwatchBackground(), text_align_center, text_align_left, text_align_right, text_bold, text_italic, text_valign_bottom, text_valign_center, and text_valign_top.

◆ ~PROPERTIES_FRAME()

PROPERTIES_FRAME::~PROPERTIES_FRAME ( )

Definition at line 122 of file properties_frame.cpp.

123{
124 delete m_scintillaTricks;
125}

References m_scintillaTricks.

Member Function Documentation

◆ CopyPrmsFromGeneralToPanel()

void PROPERTIES_FRAME::CopyPrmsFromGeneralToPanel ( )

Definition at line 145 of file properties_frame.cpp.

146{
147 static EDA_UNITS units = EDA_UNITS::MILLIMETRES;
149
150 // Set default parameters
153
160
169}
constexpr EDA_IU_SCALE drawSheetIUScale
Definition: base_units.h:110
Handle the graphic items list to draw/plot the frame and title block.
Definition: ds_data_model.h:39
double GetRightMargin()
Definition: ds_data_model.h:66
VECTOR2D m_DefaultTextSize
static DS_DATA_MODEL & GetTheInstance()
static function: returns the instance of DS_DATA_MODEL used in the application
double GetTopMargin()
Definition: ds_data_model.h:69
double m_DefaultLineWidth
double GetBottomMargin()
Definition: ds_data_model.h:72
double GetLeftMargin()
Definition: ds_data_model.h:63
double m_DefaultTextThickness
virtual void SetDoubleValue(double aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
EDA_UNITS
Definition: eda_units.h:43
double FromUserUnit(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnit, double aValue)
Return in internal units the value "val" given in a real unit such as "in", "mm" or "deg".
Definition: eda_units.cpp:389

References drawSheetIUScale, EDA_UNIT_UTILS::UI::FromUserUnit(), DS_DATA_MODEL::GetBottomMargin(), DS_DATA_MODEL::GetLeftMargin(), DS_DATA_MODEL::GetRightMargin(), DS_DATA_MODEL::GetTheInstance(), DS_DATA_MODEL::GetTopMargin(), DS_DATA_MODEL::m_DefaultLineWidth, m_defaultLineWidth, DS_DATA_MODEL::m_DefaultTextSize, m_defaultTextSizeX, m_defaultTextSizeY, DS_DATA_MODEL::m_DefaultTextThickness, m_defaultTextThickness, m_textBottomMargin, m_textLeftMargin, m_textRightMargin, m_textTopMargin, MILLIMETRES, UNIT_BINDER::SetDoubleValue(), VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by PL_EDITOR_FRAME::HardRedraw(), OnAcceptPrms(), PL_EDITOR_FRAME::OnNewDrawingSheet(), OnSetDefaultValues(), and PL_EDITOR_CONTROL::UpdateMessagePanel().

◆ CopyPrmsFromItemToPanel()

void PROPERTIES_FRAME::CopyPrmsFromItemToPanel ( DS_DATA_ITEM aItem)

Definition at line 202 of file properties_frame.cpp.

203{
204 if( !aItem )
205 {
206 m_SizerItemProperties->Show( false );
207 return;
208 }
209
210 static EDA_UNITS units = EDA_UNITS::MILLIMETRES;
211 wxString msg;
212
213 // Set parameters common to all DS_DATA_ITEM types
214 m_staticTextType->SetLabel( aItem->GetClassName() );
215 m_textCtrlComment->SetValue( aItem->m_Info );
216
217 switch( aItem->GetPage1Option() )
218 {
219 default:
220 case ALL_PAGES: m_choicePageOpt->SetSelection( 0 ); break;
221 case FIRST_PAGE_ONLY: m_choicePageOpt->SetSelection( 1 ); break;
222 case SUBSEQUENT_PAGES: m_choicePageOpt->SetSelection( 2 ); break;
223 }
224
225 // Position/ start point
228
229 switch( aItem->m_Pos.m_Anchor )
230 {
231 case RB_CORNER: m_comboBoxCornerPos->SetSelection( 2 ); break;
232 case RT_CORNER: m_comboBoxCornerPos->SetSelection( 0 ); break;
233 case LB_CORNER: m_comboBoxCornerPos->SetSelection( 3 ); break;
234 case LT_CORNER: m_comboBoxCornerPos->SetSelection( 1 ); break;
235 }
236
237 // End point
240
241 switch( aItem->m_End.m_Anchor )
242 {
243 case RB_CORNER: m_comboBoxCornerEnd->SetSelection( 2 ); break;
244 case RT_CORNER: m_comboBoxCornerEnd->SetSelection( 0 ); break;
245 case LB_CORNER: m_comboBoxCornerEnd->SetSelection( 3 ); break;
246 case LT_CORNER: m_comboBoxCornerEnd->SetSelection( 1 ); break;
247 }
248
250
251 // Now, set prms more specific to DS_DATA_ITEM types
252 // For a given type, disable widgets which are not relevant,
253 // and be sure widgets which are relevant are enabled
254 if( aItem->GetType() == DS_DATA_ITEM::DS_TEXT )
255 {
256 DS_DATA_ITEM_TEXT* item = static_cast<DS_DATA_ITEM_TEXT*>( aItem );
257 item->m_FullText = item->m_TextBase;
258
259 // Replace our '\' 'n' sequence by the EOL char
261 m_stcText->SetValue( item->m_FullText );
262 m_stcText->EmptyUndoBuffer();
263
264 msg.Printf( wxT( "%d" ), item->m_IncrementLabel );
265 m_textCtrlTextIncrement->SetValue( msg );
266
267 // Rotation (poly and text)
268 msg.Printf( wxT( "%.3f" ), item->m_Orient );
269 m_textCtrlRotation->SetValue( msg );
270
271 // Constraints:
274
275 // Font Options
277
278 m_bold->Check( item->m_Bold );
279 m_italic->Check( item->m_Italic );
280
282
284 btn->Check( false );
285
286 switch( item->m_Hjustify )
287 {
288 case GR_TEXT_H_ALIGN_LEFT: m_alignLeft->Check(); break;
291 }
292
294 btn->Check( false );
295
296 switch( item->m_Vjustify )
297 {
298 case GR_TEXT_V_ALIGN_TOP: m_vAlignTop->Check(); break;
301 }
302
303 // Text size
306 }
307
308 if( aItem->GetType() == DS_DATA_ITEM::DS_POLYPOLYGON )
309 {
310 DS_DATA_ITEM_POLYGONS* item = static_cast<DS_DATA_ITEM_POLYGONS*>( aItem );
311
312 // Rotation (poly and text)
313 msg.Printf( wxT( "%.3f" ), item->m_Orient.AsDegrees() );
314 m_textCtrlRotation->SetValue( msg );
315 }
316
317 if( aItem->GetType() == DS_DATA_ITEM::DS_BITMAP )
318 {
319 DS_DATA_ITEM_BITMAP* item = static_cast<DS_DATA_ITEM_BITMAP*>( aItem );
320
321 // select definition in PPI
322 msg.Printf( wxT( "%d" ), item->GetPPI() );
323 m_textCtrlBitmapDPI->SetValue( msg );
324 }
325
326 m_SizerItemProperties->Show( true );
327
329 m_buttonHelp->Show( aItem->GetType() == DS_DATA_ITEM::DS_TEXT );
330
332 || aItem->GetType() == DS_DATA_ITEM::DS_RECT );
333
335
336 if( aItem->GetType() == DS_DATA_ITEM::DS_TEXT
338 {
339 m_staticTextRot->Show( true );
340 m_textCtrlRotation->Show( true );
341 }
342 else
343 {
344 m_staticTextRot->Show( false );
345 m_textCtrlRotation->Show( false );
346 }
347
350
353
354 // Repeat parameters
355 msg.Printf( wxT( "%d" ), aItem->m_RepeatCount );
356 m_textCtrlRepeatCount->SetValue( msg );
357
360
361 // The number of widgets was modified, so recalculate sizers
362 m_swItemProperties->Layout();
363#ifdef __WXGTK__
364 // This call is mandatory on wxGTK to initialize the right virtual size and therefore
365 // scrollbars, but for some reason, create issues on Windows (incorrect display
366 // until the frame is resized). Joys of multiplatform dev.
367 m_swItemProperties->Fit();
368#endif
369
370 // send a size event to be sure scrollbars will be added/removed as needed
371 m_swItemProperties->PostSizeEvent();
372 m_swItemProperties->Refresh();
373}
A bitmap button widget that behaves like an AUI toolbar item's button when it is drawn.
Definition: bitmap_button.h:41
void Check(bool aCheck=true)
Check the control.
void SetSwatchColor(const KIGFX::COLOR4D &aColor, bool aSendEvent)
Set the current swatch color directly.
bool ReplaceAntiSlashSequence()
Replace the '\''n' sequence by EOL and the sequence '\''\' by only one '\' inside m_FullText.
KIFONT::FONT * m_Font
Definition: ds_data_item.h:342
GR_TEXT_H_ALIGN_T m_Hjustify
Definition: ds_data_item.h:338
KIGFX::COLOR4D m_TextColor
Definition: ds_data_item.h:344
VECTOR2D m_BoundingBoxSize
Definition: ds_data_item.h:345
GR_TEXT_V_ALIGN_T m_Vjustify
Definition: ds_data_item.h:339
PAGE_OPTION GetPage1Option() const
Definition: ds_data_item.h:133
DS_ITEM_TYPE GetType() const
Definition: ds_data_item.h:128
const wxString GetClassName() const
VECTOR2D m_IncrementVector
Definition: ds_data_item.h:204
POINT_COORD m_Pos
Definition: ds_data_item.h:200
wxString m_Info
Definition: ds_data_item.h:199
double m_LineWidth
Definition: ds_data_item.h:202
POINT_COORD m_End
Definition: ds_data_item.h:201
int m_IncrementLabel
Definition: ds_data_item.h:205
double AsDegrees() const
Definition: eda_angle.h:149
void SetFontSelection(KIFONT::FONT *aFont)
Definition: font_choice.cpp:67
wxStaticBoxSizer * m_sbSizerEndPosition
wxStaticText * m_staticTextInclabel
wxStaticText * m_staticTextBitmapDPI
VECTOR2D m_Pos
Definition: ds_data_item.h:80
void Show(bool aShow, bool aResize=false)
Show/hide the label, widget and units label.
@ FIRST_PAGE_ONLY
Definition: ds_data_item.h:58
@ SUBSEQUENT_PAGES
Definition: ds_data_item.h:59
@ ALL_PAGES
Definition: ds_data_item.h:57
@ RB_CORNER
Definition: ds_data_item.h:49
@ RT_CORNER
Definition: ds_data_item.h:50
@ LT_CORNER
Definition: ds_data_item.h:52
@ LB_CORNER
Definition: ds_data_item.h:51
@ GR_TEXT_H_ALIGN_CENTER
@ GR_TEXT_H_ALIGN_RIGHT
@ GR_TEXT_H_ALIGN_LEFT
@ GR_TEXT_V_ALIGN_BOTTOM
@ GR_TEXT_V_ALIGN_CENTER
@ GR_TEXT_V_ALIGN_TOP

References ALL_PAGES, EDA_ANGLE::AsDegrees(), BITMAP_BUTTON::Check(), drawSheetIUScale, DS_DATA_ITEM::DS_BITMAP, DS_DATA_ITEM::DS_POLYPOLYGON, DS_DATA_ITEM::DS_RECT, DS_DATA_ITEM::DS_SEGMENT, DS_DATA_ITEM::DS_TEXT, FIRST_PAGE_ONLY, EDA_UNIT_UTILS::UI::FromUserUnit(), DS_DATA_ITEM::GetClassName(), DS_DATA_ITEM::GetPage1Option(), DS_DATA_ITEM_BITMAP::GetPPI(), DS_DATA_ITEM::GetType(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, LB_CORNER, LT_CORNER, PANEL_PROPERTIES_BASE::m_alignCenter, PANEL_PROPERTIES_BASE::m_alignLeft, PANEL_PROPERTIES_BASE::m_alignRight, POINT_COORD::m_Anchor, DS_DATA_ITEM_TEXT::m_Bold, PANEL_PROPERTIES_BASE::m_bold, DS_DATA_ITEM_TEXT::m_BoundingBoxSize, PANEL_PROPERTIES_BASE::m_buttonHelp, PANEL_PROPERTIES_BASE::m_choicePageOpt, PANEL_PROPERTIES_BASE::m_comboBoxCornerEnd, PANEL_PROPERTIES_BASE::m_comboBoxCornerPos, m_constraintX, m_constraintY, DS_DATA_ITEM::m_End, DS_DATA_ITEM_TEXT::m_Font, PANEL_PROPERTIES_BASE::m_fontCtrl, DS_DATA_ITEM_TEXT::m_FullText, DS_DATA_ITEM_TEXT::m_Hjustify, DS_DATA_ITEM::m_IncrementLabel, DS_DATA_ITEM::m_IncrementVector, DS_DATA_ITEM::m_Info, DS_DATA_ITEM_TEXT::m_Italic, PANEL_PROPERTIES_BASE::m_italic, DS_DATA_ITEM::m_LineWidth, m_lineWidth, DS_DATA_ITEM_POLYGONS::m_Orient, DS_DATA_ITEM_TEXT::m_Orient, POINT_COORD::m_Pos, DS_DATA_ITEM::m_Pos, DS_DATA_ITEM::m_RepeatCount, PANEL_PROPERTIES_BASE::m_sbSizerEndPosition, PANEL_PROPERTIES_BASE::m_SizerItemProperties, PANEL_PROPERTIES_BASE::m_SizerTextOptions, PANEL_PROPERTIES_BASE::m_staticTextBitmapDPI, PANEL_PROPERTIES_BASE::m_staticTextInclabel, PANEL_PROPERTIES_BASE::m_staticTextRot, PANEL_PROPERTIES_BASE::m_staticTextType, PANEL_PROPERTIES_BASE::m_stcText, PANEL_PROPERTIES_BASE::m_swItemProperties, DS_DATA_ITEM_TEXT::m_TextBase, DS_DATA_ITEM_TEXT::m_TextColor, PANEL_PROPERTIES_BASE::m_textColorSwatch, PANEL_PROPERTIES_BASE::m_textCtrlBitmapDPI, PANEL_PROPERTIES_BASE::m_textCtrlComment, PANEL_PROPERTIES_BASE::m_textCtrlRepeatCount, PANEL_PROPERTIES_BASE::m_textCtrlRotation, PANEL_PROPERTIES_BASE::m_textCtrlTextIncrement, m_textEndX, m_textEndY, m_textPosX, m_textPosY, DS_DATA_ITEM_TEXT::m_TextSize, m_textSizeX, m_textSizeY, m_textStepX, m_textStepY, PANEL_PROPERTIES_BASE::m_vAlignBottom, PANEL_PROPERTIES_BASE::m_vAlignMiddle, PANEL_PROPERTIES_BASE::m_vAlignTop, DS_DATA_ITEM_TEXT::m_Vjustify, MILLIMETRES, RB_CORNER, DS_DATA_ITEM_TEXT::ReplaceAntiSlashSequence(), RT_CORNER, UNIT_BINDER::SetDoubleValue(), FONT_CHOICE::SetFontSelection(), COLOR_SWATCH::SetSwatchColor(), UNIT_BINDER::Show(), SUBSEQUENT_PAGES, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by PL_EDITOR_FRAME::HardRedraw(), OnAcceptPrms(), DIALOG_INSPECTOR::onCellClicked(), PL_EDITOR_FRAME::OnNewDrawingSheet(), PL_POINT_EDITOR::updateItem(), and PL_EDITOR_CONTROL::UpdateMessagePanel().

◆ CopyPrmsFromPanelToGeneral()

bool PROPERTIES_FRAME::CopyPrmsFromPanelToGeneral ( )

Definition at line 172 of file properties_frame.cpp.

173{
174 static EDA_UNITS units = EDA_UNITS::MILLIMETRES;
176
177 // Import default parameters from widgets
180
187
188 // Get page margins values
197
198 return true;
199}
void SetBottomMargin(double aMargin)
Definition: ds_data_model.h:73
void SetRightMargin(double aMargin)
Definition: ds_data_model.h:67
void SetLeftMargin(double aMargin)
Definition: ds_data_model.h:64
void SetTopMargin(double aMargin)
Definition: ds_data_model.h:70
virtual long long int GetValue()
Return the current value in Internal Units.
double ToUserUnit(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnit, double aValue)
Function To_User_Unit convert aValue in internal units to the appropriate user units defined by aUnit...
Definition: eda_units.cpp:194

References drawSheetIUScale, DS_DATA_MODEL::GetTheInstance(), UNIT_BINDER::GetValue(), DS_DATA_MODEL::m_DefaultLineWidth, m_defaultLineWidth, DS_DATA_MODEL::m_DefaultTextSize, m_defaultTextSizeX, m_defaultTextSizeY, DS_DATA_MODEL::m_DefaultTextThickness, m_defaultTextThickness, m_textBottomMargin, m_textLeftMargin, m_textRightMargin, m_textTopMargin, MILLIMETRES, DS_DATA_MODEL::SetBottomMargin(), DS_DATA_MODEL::SetLeftMargin(), DS_DATA_MODEL::SetRightMargin(), DS_DATA_MODEL::SetTopMargin(), EDA_UNIT_UTILS::UI::ToUserUnit(), VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by OnAcceptPrms().

◆ CopyPrmsFromPanelToItem()

bool PROPERTIES_FRAME::CopyPrmsFromPanelToItem ( DS_DATA_ITEM aItem)

Definition at line 445 of file properties_frame.cpp.

446{
447 if( aItem == nullptr )
448 return false;
449
450 const EDA_UNITS units = EDA_UNITS::MILLIMETRES;
451 wxString msg;
452
453 // Import common parameters:
454 aItem->m_Info = m_textCtrlComment->GetValue();
455
456 switch( m_choicePageOpt->GetSelection() )
457 {
458 default:
459 case 0: aItem->SetPage1Option( ALL_PAGES ); break;
460 case 1: aItem->SetPage1Option( FIRST_PAGE_ONLY ); break;
461 case 2: aItem->SetPage1Option( SUBSEQUENT_PAGES ); break;
462 }
463
464 // Import thickness
465 aItem->m_LineWidth =
467
468 // Import Start point
469 aItem->m_Pos.m_Pos.x =
471 aItem->m_Pos.m_Pos.y =
473
474 switch( m_comboBoxCornerPos->GetSelection() )
475 {
476 case 2: aItem->m_Pos.m_Anchor = RB_CORNER; break;
477 case 0: aItem->m_Pos.m_Anchor = RT_CORNER; break;
478 case 3: aItem->m_Pos.m_Anchor = LB_CORNER; break;
479 case 1: aItem->m_Pos.m_Anchor = LT_CORNER; break;
480 }
481
482 // Import End point
483 aItem->m_End.m_Pos.x =
485 aItem->m_End.m_Pos.y =
487
488 switch( m_comboBoxCornerEnd->GetSelection() )
489 {
490 case 2: aItem->m_End.m_Anchor = RB_CORNER; break;
491 case 0: aItem->m_End.m_Anchor = RT_CORNER; break;
492 case 3: aItem->m_End.m_Anchor = LB_CORNER; break;
493 case 1: aItem->m_End.m_Anchor = LT_CORNER; break;
494 }
495
496 // Import Repeat prms
497 long itmp;
498 msg = m_textCtrlRepeatCount->GetValue();
499 msg.ToLong( &itmp );
500 aItem->m_RepeatCount = itmp;
501
502 aItem->m_IncrementVector.x =
504 aItem->m_IncrementVector.y =
506
507 if( aItem->GetType() == DS_DATA_ITEM::DS_TEXT )
508 {
509 DS_DATA_ITEM_TEXT* item = static_cast<DS_DATA_ITEM_TEXT*>( aItem );
510
511 item->m_TextBase = m_stcText->GetValue();
512
513 msg = m_textCtrlTextIncrement->GetValue();
514 msg.ToLong( &itmp );
515 item->m_IncrementLabel = itmp;
516
517 item->m_Bold = m_bold->IsChecked();
518 item->m_Italic = m_italic->IsChecked();
520
521 if( m_alignLeft->IsChecked() )
523 else if( m_alignCenter->IsChecked() )
525 else if( m_alignRight->IsChecked() )
527
528 if( m_vAlignTop->IsChecked() )
530 else if( m_vAlignMiddle->IsChecked() )
532 else if( m_vAlignBottom->IsChecked() )
534
536 item->m_Font = m_fontCtrl->GetFontSelection( item->m_Bold, item->m_Italic );
537
538 msg = m_textCtrlRotation->GetValue();
540
541 // Import text size
542 item->m_TextSize.x =
544 item->m_TextSize.y =
546
547 // Import constraints:
548 item->m_BoundingBoxSize.x =
550 item->m_BoundingBoxSize.y =
552 }
553
554 if( aItem->GetType() == DS_DATA_ITEM::DS_POLYPOLYGON )
555 {
556 DS_DATA_ITEM_POLYGONS* item = static_cast<DS_DATA_ITEM_POLYGONS*>( aItem );
557
558 msg = m_textCtrlRotation->GetValue();
559 item->m_Orient = EDA_ANGLE(
561 }
562
563 if( aItem->GetType() == DS_DATA_ITEM::DS_BITMAP )
564 {
565 DS_DATA_ITEM_BITMAP* item = static_cast<DS_DATA_ITEM_BITMAP*>( aItem );
566 long value;
567
568 msg = m_textCtrlBitmapDPI->GetValue();
569
570 if( msg.ToLong( &value ) )
571 item->SetPPI( (int)value );
572 }
573
574 return true;
575}
bool IsChecked() const
KIGFX::COLOR4D GetSwatchColor() const
void SetPPI(int aBitmapPPI)
void SetPage1Option(PAGE_OPTION aChoice)
Definition: ds_data_item.h:134
bool HaveFontSelection() const
Definition: font_choice.cpp:88
KIFONT::FONT * GetFontSelection(bool aBold, bool aItalic) const
@ DEGREES_T
Definition: eda_angle.h:31
double DoubleValueFromString(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, const wxString &aTextValue, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Function DoubleValueFromString converts aTextValue to a double.
Definition: eda_units.cpp:449

References ALL_PAGES, DEGREES_T, EDA_UNIT_UTILS::UI::DoubleValueFromString(), drawSheetIUScale, DS_DATA_ITEM::DS_BITMAP, DS_DATA_ITEM::DS_POLYPOLYGON, DS_DATA_ITEM::DS_TEXT, FIRST_PAGE_ONLY, FONT_CHOICE::GetFontSelection(), COLOR_SWATCH::GetSwatchColor(), DS_DATA_ITEM::GetType(), UNIT_BINDER::GetValue(), GR_TEXT_H_ALIGN_CENTER, GR_TEXT_H_ALIGN_LEFT, GR_TEXT_H_ALIGN_RIGHT, GR_TEXT_V_ALIGN_BOTTOM, GR_TEXT_V_ALIGN_CENTER, GR_TEXT_V_ALIGN_TOP, FONT_CHOICE::HaveFontSelection(), BITMAP_BUTTON::IsChecked(), LB_CORNER, LT_CORNER, PANEL_PROPERTIES_BASE::m_alignCenter, PANEL_PROPERTIES_BASE::m_alignLeft, PANEL_PROPERTIES_BASE::m_alignRight, POINT_COORD::m_Anchor, DS_DATA_ITEM_TEXT::m_Bold, PANEL_PROPERTIES_BASE::m_bold, DS_DATA_ITEM_TEXT::m_BoundingBoxSize, PANEL_PROPERTIES_BASE::m_choicePageOpt, PANEL_PROPERTIES_BASE::m_comboBoxCornerEnd, PANEL_PROPERTIES_BASE::m_comboBoxCornerPos, m_constraintX, m_constraintY, DS_DATA_ITEM::m_End, DS_DATA_ITEM_TEXT::m_Font, PANEL_PROPERTIES_BASE::m_fontCtrl, DS_DATA_ITEM_TEXT::m_Hjustify, DS_DATA_ITEM::m_IncrementLabel, DS_DATA_ITEM::m_IncrementVector, DS_DATA_ITEM::m_Info, DS_DATA_ITEM_TEXT::m_Italic, PANEL_PROPERTIES_BASE::m_italic, DS_DATA_ITEM::m_LineWidth, m_lineWidth, DS_DATA_ITEM_POLYGONS::m_Orient, DS_DATA_ITEM_TEXT::m_Orient, POINT_COORD::m_Pos, DS_DATA_ITEM::m_Pos, DS_DATA_ITEM::m_RepeatCount, PANEL_PROPERTIES_BASE::m_stcText, DS_DATA_ITEM_TEXT::m_TextBase, DS_DATA_ITEM_TEXT::m_TextColor, PANEL_PROPERTIES_BASE::m_textColorSwatch, PANEL_PROPERTIES_BASE::m_textCtrlBitmapDPI, PANEL_PROPERTIES_BASE::m_textCtrlComment, PANEL_PROPERTIES_BASE::m_textCtrlRepeatCount, PANEL_PROPERTIES_BASE::m_textCtrlRotation, PANEL_PROPERTIES_BASE::m_textCtrlTextIncrement, m_textEndX, m_textEndY, m_textPosX, m_textPosY, DS_DATA_ITEM_TEXT::m_TextSize, m_textSizeX, m_textSizeY, m_textStepX, m_textStepY, PANEL_PROPERTIES_BASE::m_vAlignBottom, PANEL_PROPERTIES_BASE::m_vAlignMiddle, PANEL_PROPERTIES_BASE::m_vAlignTop, DS_DATA_ITEM_TEXT::m_Vjustify, MILLIMETRES, RB_CORNER, RT_CORNER, DS_DATA_ITEM::SetPage1Option(), DS_DATA_ITEM_BITMAP::SetPPI(), SUBSEQUENT_PAGES, EDA_UNIT_UTILS::UI::ToUserUnit(), UNSCALED, VECTOR2< T >::x, and VECTOR2< T >::y.

Referenced by OnAcceptPrms().

◆ GetMinSize()

wxSize PROPERTIES_FRAME::GetMinSize ( ) const
override

Definition at line 139 of file properties_frame.cpp.

140{
141 return wxSize( 150, -1 );
142}

◆ OnAcceptPrms()

void PROPERTIES_FRAME::OnAcceptPrms ( wxCommandEvent &  event)
overridevirtual

Reimplemented from PANEL_PROPERTIES_BASE.

Definition at line 396 of file properties_frame.cpp.

397{
399 PL_SELECTION& selection = selTool->GetSelection();
400
402
403 DS_DRAW_ITEM_BASE* drawItem = (DS_DRAW_ITEM_BASE*) selection.Front();
404
405 if( drawItem )
406 {
407 DS_DATA_ITEM* dataItem = drawItem->GetPeer();
408 CopyPrmsFromPanelToItem( dataItem );
409
410 // Be sure what is displayed is what is set for item
411 // (mainly, texts can be modified if they contain "\n")
412 CopyPrmsFromItemToPanel( dataItem );
413 m_parent->GetCanvas()->GetView()->Update( drawItem );
414 }
415
417
418 // Refresh values, exactly as they are converted, to avoid any mistake
420
422
423 // Rebuild the draw list with the new parameters
426}
Drawing sheet structure type definitions.
Definition: ds_data_item.h:96
Base class to handle basic graphic items.
Definition: ds_draw_item.h:59
DS_DATA_ITEM * GetPeer() const
Definition: ds_draw_item.h:63
virtual KIGFX::VIEW * GetView() const
Return a pointer to the #VIEW instance used in the panel.
virtual void Refresh(bool aEraseBackground=true, const wxRect *aRect=nullptr) override
Update the board display after modifying it by a python script (note: it is automatically called by a...
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...
Definition: view.cpp:1574
void DisplayDrawingSheet()
Build and update the list of WS_DRAW_ITEM_xxx showing the frame layout.
void OnModify() override
Must be called after a change in order to set the "modify" flag.
void SaveCopyInUndoList()
Save a copy of the description (in a S expr string) for Undo/redo commands.
PL_DRAW_PANEL_GAL * GetCanvas() const override
Return a pointer to GAL-based canvas of given EDA draw frame.
PL_SELECTION & GetSelection()
Return the set of currently selected items.
void CopyPrmsFromItemToPanel(DS_DATA_ITEM *aItem)
bool CopyPrmsFromPanelToItem(DS_DATA_ITEM *aItem)
TOOL_MANAGER * GetToolManager() const
Return the MVC controller.
Definition: tools_holder.h:54

References CopyPrmsFromGeneralToPanel(), CopyPrmsFromItemToPanel(), CopyPrmsFromPanelToGeneral(), CopyPrmsFromPanelToItem(), PL_DRAW_PANEL_GAL::DisplayDrawingSheet(), PL_EDITOR_FRAME::GetCanvas(), DS_DRAW_ITEM_BASE::GetPeer(), PL_SELECTION_TOOL::GetSelection(), TOOL_MANAGER::GetTool(), TOOLS_HOLDER::GetToolManager(), EDA_DRAW_PANEL_GAL::GetView(), m_parent, PL_EDITOR_FRAME::OnModify(), EDA_DRAW_PANEL_GAL::Refresh(), PL_EDITOR_FRAME::SaveCopyInUndoList(), and KIGFX::VIEW::Update().

◆ onHAlignButton()

void PROPERTIES_FRAME::onHAlignButton ( wxCommandEvent &  aEvent)

Definition at line 376 of file properties_frame.cpp.

377{
379 {
380 if( btn->IsChecked() && btn != aEvent.GetEventObject() )
381 btn->Check( false );
382 }
383}

References PANEL_PROPERTIES_BASE::m_alignCenter, PANEL_PROPERTIES_BASE::m_alignLeft, and PANEL_PROPERTIES_BASE::m_alignRight.

Referenced by PROPERTIES_FRAME().

◆ onHelp()

void PROPERTIES_FRAME::onHelp ( wxCommandEvent &  aEvent)
overridevirtual

Reimplemented from PANEL_PROPERTIES_BASE.

Definition at line 602 of file properties_frame.cpp.

603{
604 // Show the system variables for worksheet text:
605 HTML_MESSAGE_BOX dlg( this, _( "Predefined Keywords" ) );
606 wxString message;
607
608 message << _( "Texts can include keywords." ) << "<br>";
609 message << _( "Keyword notation is ${keyword}" ) << "<br>";
610 message << _( "Each keyword is replaced by its value" ) << "<br><br>";
611 message << _( "These build-in keywords are always available:" ) << "<br><br>";
612 dlg.AddHTML_Text( message );
613
614 message = "KICAD_VERSION\n";
615 message << "# " << _( "(sheet number)" ) << "\n";
616 message << "## " << _( "(sheet count)" ) << "\n";
617 message << "COMMENT1 thru COMMENT9\n";
618 message << "COMPANY\n";
619 message << "FILENAME\n";
620 message << "ISSUE_DATE\n";
621 message << "LAYER\n";
622 message << "PAPER " << _( "(paper size)" ) << "\n";
623 message << "REVISION\n";
624 message << "SHEETNAME\n";
625 message << "SHEETPATH\n";
626 message << "TITLE\n";
627
628 dlg.ListSet( message );
629 dlg.ShowModal();
630}
#define _(s)

References _, HTML_MESSAGE_BOX::AddHTML_Text(), and HTML_MESSAGE_BOX::ListSet().

◆ OnPageChanged()

void PROPERTIES_FRAME::OnPageChanged ( wxNotebookEvent &  event)
overridevirtual

Reimplemented from PANEL_PROPERTIES_BASE.

Definition at line 128 of file properties_frame.cpp.

129{
130 if( event.GetSelection() == 0 )
131 m_buttonOK->SetDefault();
132 else
133 m_buttonGeneralOptsOK->SetDefault();
134
135 event.Skip();
136}

References PANEL_PROPERTIES_BASE::m_buttonGeneralOptsOK, and PANEL_PROPERTIES_BASE::m_buttonOK.

◆ onScintillaCharAdded()

void PROPERTIES_FRAME::onScintillaCharAdded ( wxStyledTextEvent &  aEvent)

Definition at line 578 of file properties_frame.cpp.

579{
580 wxArrayString autocompleteTokens;
581 int pos = m_stcText->GetCurrentPos();
582 int start = m_stcText->WordStartPosition( pos, true );
583 wxString partial;
584
585 if( start >= 2
586 && m_stcText->GetCharAt( start-2 ) == '$'
587 && m_stcText->GetCharAt( start-1 ) == '{' )
588 {
589 DS_DRAW_ITEM_LIST::GetTextVars( &autocompleteTokens );
590
591 partial = m_stcText->GetTextRange( start, pos );
592
593 for( std::pair<wxString, wxString> entry : m_parent->Prj().GetTextVars() )
594 autocompleteTokens.push_back( entry.first );
595 }
596
597 m_scintillaTricks->DoAutocomplete( partial, autocompleteTokens );
598 m_stcText->SetFocus();
599}
static void GetTextVars(wxArrayString *aVars)
Definition: ds_painter.cpp:97
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
virtual std::map< wxString, wxString > & GetTextVars() const
Definition: project.cpp:82
void DoAutocomplete(const wxString &aPartial, const wxArrayString &aTokens)

References SCINTILLA_TRICKS::DoAutocomplete(), PROJECT::GetTextVars(), DS_DRAW_ITEM_LIST::GetTextVars(), m_parent, m_scintillaTricks, PANEL_PROPERTIES_BASE::m_stcText, and KIWAY_HOLDER::Prj().

Referenced by PROPERTIES_FRAME().

◆ OnSetDefaultValues()

void PROPERTIES_FRAME::OnSetDefaultValues ( wxCommandEvent &  event)
overridevirtual

◆ onVAlignButton()

void PROPERTIES_FRAME::onVAlignButton ( wxCommandEvent &  aEvent)

Definition at line 386 of file properties_frame.cpp.

387{
389 {
390 if( btn->IsChecked() && btn != aEvent.GetEventObject() )
391 btn->Check( false );
392 }
393}

References PANEL_PROPERTIES_BASE::m_vAlignBottom, PANEL_PROPERTIES_BASE::m_vAlignMiddle, and PANEL_PROPERTIES_BASE::m_vAlignTop.

Referenced by PROPERTIES_FRAME().

Member Data Documentation

◆ m_alignCenter

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_alignCenter
protectedinherited

◆ m_alignLeft

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_alignLeft
protectedinherited

◆ m_alignRight

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_alignRight
protectedinherited

◆ m_bold

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_bold
protectedinherited

◆ m_bottomMarginCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_bottomMarginCtrl
protectedinherited

◆ m_bottomMarginLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_bottomMarginLabel
protectedinherited

◆ m_bottomMarginUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_bottomMarginUnits
protectedinherited

◆ m_buttonDefault

wxButton* PANEL_PROPERTIES_BASE::m_buttonDefault
protectedinherited

◆ m_buttonGeneralOptsOK

wxButton* PANEL_PROPERTIES_BASE::m_buttonGeneralOptsOK
protectedinherited

◆ m_buttonHelp

wxButton* PANEL_PROPERTIES_BASE::m_buttonHelp
protectedinherited

◆ m_buttonOK

wxButton* PANEL_PROPERTIES_BASE::m_buttonOK
protectedinherited

◆ m_choicePageOpt

wxChoice* PANEL_PROPERTIES_BASE::m_choicePageOpt
protectedinherited

◆ m_comboBoxCornerEnd

wxComboBox* PANEL_PROPERTIES_BASE::m_comboBoxCornerEnd
protectedinherited

◆ m_comboBoxCornerPos

wxComboBox* PANEL_PROPERTIES_BASE::m_comboBoxCornerPos
protectedinherited

◆ m_constraintX

UNIT_BINDER PROPERTIES_FRAME::m_constraintX
private

Definition at line 52 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_constraintXCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_constraintXCtrl
protectedinherited

◆ m_constraintXLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_constraintXLabel
protectedinherited

◆ m_constraintXUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_constraintXUnits
protectedinherited

◆ m_constraintY

UNIT_BINDER PROPERTIES_FRAME::m_constraintY
private

Definition at line 53 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_constraintYCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_constraintYCtrl
protectedinherited

◆ m_constraintYLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_constraintYLabel
protectedinherited

◆ m_constraintYUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_constraintYUnits
protectedinherited

◆ m_defaultLineWidth

UNIT_BINDER PROPERTIES_FRAME::m_defaultLineWidth
private

Definition at line 67 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_defaultLineWidthCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_defaultLineWidthCtrl
protectedinherited

◆ m_defaultLineWidthLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_defaultLineWidthLabel
protectedinherited

◆ m_defaultLineWidthUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_defaultLineWidthUnits
protectedinherited

◆ m_defaultTextSizeX

UNIT_BINDER PROPERTIES_FRAME::m_defaultTextSizeX
private

Definition at line 64 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_defaultTextSizeXUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_defaultTextSizeXUnits
protectedinherited

◆ m_defaultTextSizeY

UNIT_BINDER PROPERTIES_FRAME::m_defaultTextSizeY
private

Definition at line 65 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_defaultTextSizeYUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_defaultTextSizeYUnits
protectedinherited

◆ m_defaultTextThickness

UNIT_BINDER PROPERTIES_FRAME::m_defaultTextThickness
private

Definition at line 68 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_defaultTextThicknessCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_defaultTextThicknessCtrl
protectedinherited

◆ m_defaultTextThicknessLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_defaultTextThicknessLabel
protectedinherited

◆ m_defaultTextThicknessUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_defaultTextThicknessUnits
protectedinherited

◆ m_fontCtrl

FONT_CHOICE* PANEL_PROPERTIES_BASE::m_fontCtrl
protectedinherited

◆ m_fontLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_fontLabel
protectedinherited

◆ m_italic

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_italic
protectedinherited

◆ m_leftMarginCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_leftMarginCtrl
protectedinherited

◆ m_leftMarginLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_leftMarginLabel
protectedinherited

◆ m_leftMarginUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_leftMarginUnits
protectedinherited

◆ m_lineWidth

UNIT_BINDER PROPERTIES_FRAME::m_lineWidth
private

Definition at line 76 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_lineWidthCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_lineWidthCtrl
protectedinherited

◆ m_lineWidthLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_lineWidthLabel
protectedinherited

◆ m_lineWidthUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_lineWidthUnits
protectedinherited

◆ m_notebook

wxNotebook* PANEL_PROPERTIES_BASE::m_notebook
protectedinherited

◆ m_panelBorderColor1

wxPanel* PANEL_PROPERTIES_BASE::m_panelBorderColor1
protectedinherited

◆ m_parent

PL_EDITOR_FRAME* PROPERTIES_FRAME::m_parent
private

◆ m_rightMarginCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_rightMarginCtrl
protectedinherited

◆ m_rightMarginLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_rightMarginLabel
protectedinherited

◆ m_rightMarginUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_rightMarginUnits
protectedinherited

◆ m_sbSizerEndPosition

wxStaticBoxSizer* PANEL_PROPERTIES_BASE::m_sbSizerEndPosition
protectedinherited

◆ m_scintillaTricks

SCINTILLA_TRICKS* PROPERTIES_FRAME::m_scintillaTricks
private

Definition at line 47 of file properties_frame.h.

Referenced by onScintillaCharAdded(), PROPERTIES_FRAME(), and ~PROPERTIES_FRAME().

◆ m_separator2

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_separator2
protectedinherited

◆ m_separator3

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_separator3
protectedinherited

◆ m_separator4

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_separator4
protectedinherited

◆ m_SizerItemProperties

wxBoxSizer* PANEL_PROPERTIES_BASE::m_SizerItemProperties
protectedinherited

◆ m_SizerTextOptions

wxBoxSizer* PANEL_PROPERTIES_BASE::m_SizerTextOptions
protectedinherited

◆ m_staticTextBitmapDPI

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextBitmapDPI
protectedinherited

◆ m_staticTextComment

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextComment
protectedinherited

◆ m_staticTextDefTsX

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextDefTsX
protectedinherited

◆ m_staticTextDefTsY

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextDefTsY
protectedinherited

◆ m_staticTextEndX

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextEndX
protectedinherited

◆ m_staticTextEndY

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextEndY
protectedinherited

◆ m_staticTextInclabel

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextInclabel
protectedinherited

◆ m_staticTextOrgEnd

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextOrgEnd
protectedinherited

◆ m_staticTextOrgPos

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextOrgPos
protectedinherited

◆ m_staticTextPosX

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextPosX
protectedinherited

◆ m_staticTextPosY

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextPosY
protectedinherited

◆ m_staticTextRepeatCnt

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextRepeatCnt
protectedinherited

◆ m_staticTextRot

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextRot
protectedinherited

◆ m_staticTextSizeInfo

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextSizeInfo
protectedinherited

◆ m_staticTextStepX

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextStepX
protectedinherited

◆ m_staticTextStepY

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextStepY
protectedinherited

◆ m_staticTextTsizeX

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextTsizeX
protectedinherited

◆ m_staticTextTsizeY

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextTsizeY
protectedinherited

◆ m_staticTextType

wxStaticText* PANEL_PROPERTIES_BASE::m_staticTextType
protectedinherited

◆ m_stcText

wxStyledTextCtrl* PANEL_PROPERTIES_BASE::m_stcText
protectedinherited

◆ m_swGeneralOpts

wxScrolledWindow* PANEL_PROPERTIES_BASE::m_swGeneralOpts
protectedinherited

◆ m_swItemProperties

wxScrolledWindow* PANEL_PROPERTIES_BASE::m_swItemProperties
protectedinherited

◆ m_textBottomMargin

UNIT_BINDER PROPERTIES_FRAME::m_textBottomMargin
private

Definition at line 74 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_textColorSwatch

COLOR_SWATCH* PANEL_PROPERTIES_BASE::m_textColorSwatch
protectedinherited

◆ m_textCtrlBitmapDPI

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlBitmapDPI
protectedinherited

◆ m_textCtrlComment

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlComment
protectedinherited

◆ m_textCtrlDefaultTextSizeX

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlDefaultTextSizeX
protectedinherited

◆ m_textCtrlDefaultTextSizeY

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlDefaultTextSizeY
protectedinherited

◆ m_textCtrlEndX

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlEndX
protectedinherited

◆ m_textCtrlEndY

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlEndY
protectedinherited

◆ m_textCtrlPosX

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlPosX
protectedinherited

◆ m_textCtrlPosY

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlPosY
protectedinherited

◆ m_textCtrlRepeatCount

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlRepeatCount
protectedinherited

◆ m_textCtrlRotation

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlRotation
protectedinherited

◆ m_textCtrlStepX

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlStepX
protectedinherited

◆ m_textCtrlStepY

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlStepY
protectedinherited

◆ m_textCtrlTextIncrement

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlTextIncrement
protectedinherited

◆ m_textCtrlTextSizeX

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlTextSizeX
protectedinherited

◆ m_textCtrlTextSizeY

wxTextCtrl* PANEL_PROPERTIES_BASE::m_textCtrlTextSizeY
protectedinherited

◆ m_textEndX

UNIT_BINDER PROPERTIES_FRAME::m_textEndX
private

Definition at line 58 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_TextEndXUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_TextEndXUnits
protectedinherited

◆ m_textEndY

UNIT_BINDER PROPERTIES_FRAME::m_textEndY
private

Definition at line 59 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_TextEndYUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_TextEndYUnits
protectedinherited

◆ m_textLeftMargin

UNIT_BINDER PROPERTIES_FRAME::m_textLeftMargin
private

Definition at line 70 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_textPosX

UNIT_BINDER PROPERTIES_FRAME::m_textPosX
private

Definition at line 55 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_TextPosXUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_TextPosXUnits
protectedinherited

◆ m_textPosY

UNIT_BINDER PROPERTIES_FRAME::m_textPosY
private

Definition at line 56 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_TextPosYUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_TextPosYUnits
protectedinherited

◆ m_textRightMargin

UNIT_BINDER PROPERTIES_FRAME::m_textRightMargin
private

Definition at line 71 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_textSizeX

UNIT_BINDER PROPERTIES_FRAME::m_textSizeX
private

Definition at line 49 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_textSizeXUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_textSizeXUnits
protectedinherited

◆ m_textSizeY

UNIT_BINDER PROPERTIES_FRAME::m_textSizeY
private

Definition at line 50 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_textSizeYUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_textSizeYUnits
protectedinherited

◆ m_textStepX

UNIT_BINDER PROPERTIES_FRAME::m_textStepX
private

Definition at line 61 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_TextStepXUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_TextStepXUnits
protectedinherited

◆ m_textStepY

UNIT_BINDER PROPERTIES_FRAME::m_textStepY
private

Definition at line 62 of file properties_frame.h.

Referenced by CopyPrmsFromItemToPanel(), and CopyPrmsFromPanelToItem().

◆ m_TextStepYUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_TextStepYUnits
protectedinherited

◆ m_textTopMargin

UNIT_BINDER PROPERTIES_FRAME::m_textTopMargin
private

Definition at line 73 of file properties_frame.h.

Referenced by CopyPrmsFromGeneralToPanel(), and CopyPrmsFromPanelToGeneral().

◆ m_topMarginCtrl

wxTextCtrl* PANEL_PROPERTIES_BASE::m_topMarginCtrl
protectedinherited

◆ m_topMarginLabel

wxStaticText* PANEL_PROPERTIES_BASE::m_topMarginLabel
protectedinherited

◆ m_topMarginUnits

wxStaticText* PANEL_PROPERTIES_BASE::m_topMarginUnits
protectedinherited

◆ m_vAlignBottom

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_vAlignBottom
protectedinherited

◆ m_vAlignMiddle

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_vAlignMiddle
protectedinherited

◆ m_vAlignTop

BITMAP_BUTTON* PANEL_PROPERTIES_BASE::m_vAlignTop
protectedinherited

◆ sbSizerPos

wxStaticBoxSizer* PANEL_PROPERTIES_BASE::sbSizerPos
protectedinherited

The documentation for this class was generated from the following files: