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 <class_drawpanel.h>
#include <general.h>
#include <draw_graphic_text.h>
#include <confirm.h>
#include <sch_text.h>
#include <typeinfo>
#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)
 

Function Documentation

static int mapOrientation ( KICAD_T  labelType,
int  aOrientation 
)
static

Definition at line 154 of file dialog_edit_label.cpp.

References SCH_LABEL_T.

Referenced by DIALOG_LABEL_EDITOR::InitDialog(), and DIALOG_LABEL_EDITOR::TextPropertiesAccept().

155 {
156  if( labelType == SCH_LABEL_T )
157  return aOrientation;
158 
159  switch( aOrientation )
160  {
161  case 0: return 2;
162  case 2: return 0;
163  default: return aOrientation;
164  }
165 }