KiCad PCB EDA Suite
dialog_edit_label.cpp File Reference
#include <fctsys.h>
#include <sch_edit_frame.h>
#include <base_units.h>
#include <sch_validators.h>
#include <tool/tool_manager.h>
#include <general.h>
#include <gr_text.h>
#include <confirm.h>
#include <sch_text.h>
#include <widgets/unit_binder.h>
#include <dialog_edit_label_base.h>
#include <kicad_string.h>
#include <tool/actions.h>

Go to the source code of this file.

Classes

class  DIALOG_LABEL_EDITOR
 

Functions

int InvokeDialogLabelEditor (SCH_EDIT_FRAME *aCaller, SCH_TEXT *aTextItem)
 Launches the "Edit Text/Label" dialog. More...
 

Variables

const int MIN_TEXTSIZE = (int)( 0.01 * IU_PER_MM )
 
const int MAX_TEXTSIZE = INT_MAX
 

Function Documentation

◆ InvokeDialogLabelEditor()

int InvokeDialogLabelEditor ( SCH_EDIT_FRAME aCaller,
SCH_TEXT aText 
)

Launches the "Edit Text/Label" dialog.

Returns
the ShowModal() result (wxID_OK, wxID_CANCEL, etc.)

Definition at line 87 of file dialog_edit_label.cpp.

88 {
89  DIALOG_LABEL_EDITOR dialog( aCaller, aTextItem );
90 
91  return dialog.ShowModal();
92 }

Referenced by SCH_EDIT_FRAME::CreateNewText(), and SCH_EDIT_TOOL::Properties().

Variable Documentation

◆ MAX_TEXTSIZE

const int MAX_TEXTSIZE = INT_MAX

Definition at line 97 of file dialog_edit_label.cpp.

Referenced by DIALOG_LABEL_EDITOR::TransferDataFromWindow().

◆ MIN_TEXTSIZE

const int MIN_TEXTSIZE = (int)( 0.01 * IU_PER_MM )

Definition at line 96 of file dialog_edit_label.cpp.

Referenced by DIALOG_LABEL_EDITOR::TransferDataFromWindow().