Browse Source

Move TEXT_ANGLE defines to eda_text.

6.0.7
Marek Roszko 5 years ago
parent
commit
dbcb1ecdb7
  1. 2
      gerbview/gerber_draw_item.cpp
  2. 6
      include/common.h
  3. 5
      include/eda_text.h

2
gerbview/gerber_draw_item.cpp

@ -24,7 +24,7 @@
#include <trigo.h>
#include <bitmaps.h>
#include <common.h>
#include <eda_text.h>
#include <msgpanel.h>
#include <gerbview_frame.h>
#include <convert_basic_shapes_to_polygon.h>

6
include/common.h

@ -56,12 +56,6 @@ class REPORTER;
/// default name for nameless projects
#define NAMELESS_PROJECT wxT( "noname" )
/// Frequent text rotations, used with {Set,Get}TextAngle(),
/// in 0.1 degrees for now, hoping to migrate to degrees eventually.
#define TEXT_ANGLE_HORIZ 0
#define TEXT_ANGLE_VERT 900
/**
* Return the size of @a aSingleLine of text when it is rendered in @a aWindow
* using whatever font is currently set in that window.

5
include/eda_text.h

@ -45,6 +45,11 @@ namespace KIGFX
using KIGFX::RENDER_SETTINGS;
using KIGFX::COLOR4D;
/// Frequent text rotations, used with {Set,Get}TextAngle(),
/// in 0.1 degrees for now, hoping to migrate to degrees eventually.
#define TEXT_ANGLE_HORIZ 0
#define TEXT_ANGLE_VERT 900
// part of the kicad_plugin.h family of defines.
// See kicad_plugin.h for the choice of the value
// When set when calling EDA_TEXT::Format, disable writing the "hide" keyword in save file

Loading…
Cancel
Save