KiCad PCB EDA Suite
dialog_edit_label.cpp File Reference
#include <fctsys.h>
#include <wx/valgen.h>
#include <wx/valnum.h>
#include <sch_edit_frame.h>
#include <base_units.h>
#include <sch_draw_panel.h>
#include <general.h>
#include <draw_graphic_text.h>
#include <confirm.h>
#include <sch_text.h>
#include <typeinfo>
#include <widgets/unit_binder.h>
#include <dialog_edit_label_base.h>

Go to the source code of this file.

Classes

class  DIALOG_LABEL_EDITOR
 

Functions

static int mapOrientation (KICAD_T labelType, int aOrientation)
 

Variables

const int minSize = (int)( 0.01 * IU_PER_MM )
 
const int maxSize = (int)( 250 * IU_PER_MM )
 

Function Documentation

static int mapOrientation ( KICAD_T  labelType,
int  aOrientation 
)
static

Definition at line 190 of file dialog_edit_label.cpp.

References SCH_LABEL_T.

Referenced by DIALOG_LABEL_EDITOR::TransferDataFromWindow(), and DIALOG_LABEL_EDITOR::TransferDataToWindow().

191 {
192  if( labelType == SCH_LABEL_T )
193  return aOrientation;
194 
195  switch( aOrientation )
196  {
197  case 0: return 2;
198  case 2: return 0;
199  default: return aOrientation;
200  }
201 }

Variable Documentation

const int maxSize = (int)( 250 * IU_PER_MM )

Definition at line 106 of file dialog_edit_label.cpp.

Referenced by KIGFX::PCB_PAINTER::draw().

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

Definition at line 105 of file dialog_edit_label.cpp.