Namespaces | Defines | Enumerations

C:/CVUT/diplomka/Automata_editor/sources/constants.h File Reference

#include "dbglog.h"
Include dependency graph for constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  CheckedColor
namespace  SelectedColor

Defines

#define DBGLOG_AI(x)   DBGLOG_("IAUTOMATA", x)
#define DEFAULT_SUFFIX_VCG   false
 default save suffix
#define DONT_USE_OPENGL_RENDERING
#define DONT_USE_SVG_MODULE
#define GRAPHVIZ_VERSION   "2.20.2"
 set GraphViz library version, which will be required in runtime (can be reset in sources.pro)
#define INIT_ACTION   0
 init action (Editor::EAction)
#define M_PI   3.1415926535
 math custom constant
#define MEASURE_PARSER_RUN
#define NEW_FILENAME   (DEFAULT_SUFFIX_VCG ? "untitled.vcg" : "untitled.tex")
 default export format
#define PERFORMANCE_MEASUREMENT
#define PROGRAM_NAME   "Automata editor"
 name of this program
#define PROGRAM_VERSION   "2.0"
 current version of editor
#define TESTING
#define TESTING_ADDING
#define TESTING_AUTOMATA_CREATOR
#define TESTING_AUTOMATA_INTERFACES
#define TESTING_DRAWING
#define TESTING_GRAPHVIZDRAWER
#define TESTING_PARSER
#define TESTING_SERIALIZERS
#define TESTING_SIMULATION
#define TESTING_STRING_PROCESSOR
#define TESTING_SYNTAX_CHECKER
#define TEXT_DISTANCE   5.f
 transition text distnace
#define TR_SE_LENGTH   40
 transition initial/final line length
#define ZOOM_DIVIDER   600.0
 zooming divider
start settings

#define SNAP_TO_GRID   false
#define SHOW_GRID   true
#define SHOW_FRAME   true
#define INIT_ANTIALIASING   false
clipboards formats

#define CLIPBOARD_FORMAT_STATE   "application/AutotmataEditor;type=State"
#define CLIPBOARD_FORMAT   "application/AutomataEditor;type=Selection"
areas bounds

used when creating click and selection areas using path stroker

#define CLICK_BOUNDS   2
#define SELECTION_BOUNDS   4
arrow size

#define ARROW_LEN   10
#define ARROW_WIDTH   6
transition loop parameters

#define TR_LOOP_OPENING_ANGLE   30
#define TR_CLOOP_OPENING_ANGLE   22
#define TR_LOOPVAR_OPENING_ANGLE   28
#define TR_LOOP_MULTIPLICATOR   3.5f
view transformations

#define TR_LINE_VIEW_COEF   2.f
#define STATE_LINE_VIEW_COEF   1.6f
#define STATE_DOUBLE_LINE_VIEW_COEF   1.4f
default values of transitions

#define DEF_EDGE_LAB_POS   0.45f
#define DEF_ARC_LAB_POS   0.4f
#define DEF_LOOP_LAB_POS   0.25f
#define DEF_TR_S_DIR   WEST
#define DEF_TR_E_DIR   EAST
#define DEF_ARC_ANGLE   30
#define DEF_VCURV_ANGLE   0
#define DEF_VCURV_ANGLE_B   180
#define DEF_VCURVR_ANGLE_B   0
#define DEF_ARC_CURV   0.8f
#define DEF_VCURV_CURV   1.0f
default style values

#define DEF_LINE_STYLE   Qt::SolidLine
#define DEF_STATE_LINE_WIDTH   1.8f
#define DEF_EDGE_LINE_WIDTH   1.f
#define DEF_COLOR   "black"
#define DEF_LABEL_SCALE   1.7f
#define DEF_FILL_STATUS   Qt::SolidPattern
#define DEF_FILL_COLOR   "white"
#define DEF_EDGE_LINE_DBL_STATUS   false
#define DEF_DIM_LINE_STYLE   Qt::SolidLine
#define DEF_DIM_COLOR   "gray"
#define DEF_DIM_STATE_LINE_COEF   1.0f
#define DEF_DIM_EDGE_LINE_COEF   1.2f
#define DEF_DIM_FILL_COLOR   "white"
#define DEF_STATE_LINE_DBL_COEF   0.6f
#define DEF_STATE_LINE_DBL_SEP   0.4f
#define DEF_EDGE_LINE_BORDER_COEF   2
#define DEF_EDGE_LINE_BORDER_COLOR   "white"
#define DEF_EDGE_LINE_DBL_COEF   0.5f
#define DEF_EDGE_LINE_DBL_SEP   0.6f
#define STATE_LABEL_SIZE   10
#define EDGE_LABEL_SIZE   10
StringProcessor settings

#define EPS_FONT_SIZE_MULTIPLIER   1.4f
#define SCRIPT_STYLE_MULT   0.75f
#define SCRIPT_SCRIPT_STYLE_MULT   0.7f

#define SIMULATION_STEP_DEFAULT   1.0
#define SIMULATION_STEP_MIN   0.5
#define SIMULATION_STEP_MAX   10.0
#define USE_ANIMS_BY_DEFAULT   true
#define ANIM_SPEED_DEFAULT   500.0
#define ANIM_SPEED_MIN   100.0
#define ANIM_SPEED_MAX   10000.0
#define ANIMATION_FRAME_TIME   40.0f
#define RESET_UNDO_STACK_AFTER_SIMULATION

Enumerations

enum  {
  LLX = 0,
  LLY = 0,
  URX = 12,
  URY = 10
}
enum  {
  Z_STATE,
  Z_TRANSITION,
  Z_TR_LABEL
}
 

ZValues.

More...
enum  {
  EXACT_HSPACE = 2,
  HAMMING_HSPACE = 2,
  HAMMING_VSPACE = 2,
  LEVEN_HSPACE = 3,
  LEVEN_VSPACE = 3
}
 

searching automata generation options

More...
enum  {
  CheckedColor::r = 255,
  CheckedColor::g = 100,
  CheckedColor::b = 100,
  CheckedColor::a = 255
}
enum  {
  SelectedColor::r = 100,
  SelectedColor::g = 100,
  SelectedColor::b = 100,
  SelectedColor::a = 200
}
enum  {
  NORTH,
  SOUTH,
  EAST,
  WEST,
  NORTH_EAST,
  NORTH_WEST,
  SOUTH_EAST,
  SOUTH_WEST
}
 

directions

More...
enum  { GRID_STEP = 40 }
 

grid step

More...
enum  {
  S_LX = -18,
  S_LY = -18,
  S_W = -2*S_LX,
  S_H = -2*S_LY
}
 

normal state size proportions

More...
enum  {
  VAR_STATE_R_X = 20,
  VAR_STATE_R_Y = 50,
  VAR_STATE_R_X_DBL = 25,
  VAR_STATE_WIDTH_ADDITION = 20
}
 

radices of StateVar

More...
enum  { UNDO_LIMIT = 0 }
 

undo and redo setting

More...
enum  {
  MAX_RECT_VALUE = 500,
  MIN_RECT_VALUE = -MAX_RECT_VALUE
}
 

gridRect's size limit

More...
enum  {
  SCENE_BORDER = 100,
  MIN_BORDER_VALUE = 10,
  MAX_BORDER_VALUE = 500
}
 

scene border (only editor setting)

More...
enum  {
  SBS_STATES = 3,
  SBS_TRAN = 2,
  SBS_IF = 4,
  SBS_LABELS = 3
}
 

number of side by side states and transitions in VauCanSon-G

More...

Detailed Description

Contains all constants and editor's settings.

Definition in file constants.h.


Define Documentation

#define ANIM_SPEED_DEFAULT   500.0

Definition at line 265 of file constants.h.

Referenced by SimulationDialog::SimulationDialog().

#define ANIM_SPEED_MAX   10000.0

Definition at line 267 of file constants.h.

Referenced by SimulationDialog::SimulationDialog().

#define ANIM_SPEED_MIN   100.0

Definition at line 266 of file constants.h.

Referenced by SimulationDialog::SimulationDialog().

#define ANIMATION_FRAME_TIME   40.0f
#define ARROW_LEN   10

Definition at line 148 of file constants.h.

Referenced by Transition::Transition().

#define ARROW_WIDTH   6

Definition at line 149 of file constants.h.

Referenced by Transition::Transition().

#define CLICK_BOUNDS   2

Definition at line 126 of file constants.h.

Referenced by Transition::createStrokes().

#define CLIPBOARD_FORMAT   "application/AutomataEditor;type=Selection"

Definition at line 115 of file constants.h.

Referenced by Editor::copySelection(), Editor::isPastePossible(), and Editor::paste().

#define CLIPBOARD_FORMAT_STATE   "application/AutotmataEditor;type=State"

Definition at line 114 of file constants.h.

Referenced by Editor::copyState(), Editor::isPastePossible(), and Editor::paste().

#define DBGLOG_AI (   x  )     DBGLOG_("IAUTOMATA", x)
#define DEF_ARC_ANGLE   30
#define DEF_ARC_CURV   0.8f
#define DEF_ARC_LAB_POS   0.4f
#define DEF_COLOR   "black"

Definition at line 218 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_DIM_COLOR   "gray"

Definition at line 225 of file constants.h.

Referenced by Parser::checkTrParam(), and Parser::StateDeclaration().

#define DEF_DIM_EDGE_LINE_COEF   1.2f

Definition at line 227 of file constants.h.

Referenced by Parser::checkTrParam().

#define DEF_DIM_FILL_COLOR   "white"

Definition at line 228 of file constants.h.

Referenced by Parser::StateDeclaration().

#define DEF_DIM_LINE_STYLE   Qt::SolidLine

Definition at line 224 of file constants.h.

Referenced by Parser::checkTrParam(), and Parser::StateDeclaration().

#define DEF_DIM_STATE_LINE_COEF   1.0f

Definition at line 226 of file constants.h.

Referenced by Parser::StateDeclaration().

#define DEF_EDGE_LAB_POS   0.45f
#define DEF_EDGE_LINE_BORDER_COEF   2

Definition at line 232 of file constants.h.

Referenced by Parser::checkTrParam().

#define DEF_EDGE_LINE_BORDER_COLOR   "white"

Definition at line 233 of file constants.h.

Referenced by Parser::checkTrParam().

#define DEF_EDGE_LINE_DBL_COEF   0.5f

Definition at line 235 of file constants.h.

Referenced by Parser::checkTrParam().

#define DEF_EDGE_LINE_DBL_SEP   0.6f

Definition at line 236 of file constants.h.

Referenced by Parser::checkTrParam().

#define DEF_EDGE_LINE_DBL_STATUS   false

Definition at line 222 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_EDGE_LINE_WIDTH   1.f

Definition at line 217 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_FILL_COLOR   "white"

Definition at line 221 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_FILL_STATUS   Qt::SolidPattern

Definition at line 220 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_LABEL_SCALE   1.7f

Definition at line 219 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_LINE_STYLE   Qt::SolidLine

Definition at line 215 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_LOOP_LAB_POS   0.25f
#define DEF_STATE_LINE_DBL_COEF   0.6f

Definition at line 230 of file constants.h.

Referenced by Parser::StateDeclaration().

#define DEF_STATE_LINE_DBL_SEP   0.4f

Definition at line 231 of file constants.h.

Referenced by Parser::StateDeclaration().

#define DEF_STATE_LINE_WIDTH   1.8f

Definition at line 216 of file constants.h.

Referenced by Editor::saveVCSettings().

#define DEF_TR_E_DIR   EAST

Definition at line 204 of file constants.h.

Referenced by TransitionSELine::getVCCommand().

#define DEF_TR_S_DIR   WEST

Definition at line 203 of file constants.h.

Referenced by TransitionSELine::getVCCommand().

#define DEF_VCURV_ANGLE   0
#define DEF_VCURV_ANGLE_B   180
#define DEF_VCURV_CURV   1.0f
#define DEF_VCURVR_ANGLE_B   0

Definition at line 208 of file constants.h.

Referenced by TransitionVCurve::getVCCommand().

#define DEFAULT_SUFFIX_VCG   false

default save suffix

Definition at line 110 of file constants.h.

Referenced by MainWindow::saveAs().

#define DONT_USE_OPENGL_RENDERING

Definition at line 26 of file constants.h.

#define DONT_USE_SVG_MODULE

Definition at line 30 of file constants.h.

#define EDGE_LABEL_SIZE   10

Definition at line 239 of file constants.h.

Referenced by Transition::Transition().

#define EPS_FONT_SIZE_MULTIPLIER   1.4f

Definition at line 247 of file constants.h.

#define GRAPHVIZ_VERSION   "2.20.2"

set GraphViz library version, which will be required in runtime (can be reset in sources.pro)

Definition at line 19 of file constants.h.

Referenced by Editor::addGraphVizDrawAlgorithm().

#define INIT_ACTION   0

init action (Editor::EAction)

Definition at line 107 of file constants.h.

Referenced by MainWindow::MainWindow().

#define INIT_ANTIALIASING   false

Definition at line 103 of file constants.h.

Referenced by MainWindow::createActions().

#define M_PI   3.1415926535

math custom constant

Definition at line 243 of file constants.h.

Referenced by TransitionVCurve::adjust(), TransitionVArc::adjust(), TransitionArc::adjust(), and Transition::createStrokes().

#define MEASURE_PARSER_RUN

Definition at line 84 of file constants.h.

#define NEW_FILENAME   (DEFAULT_SUFFIX_VCG ? "untitled.vcg" : "untitled.tex")

default export format

Definition at line 188 of file constants.h.

Referenced by Editor::Editor(), MainWindow::MainWindow(), and Editor::newFile().

#define PERFORMANCE_MEASUREMENT

Definition at line 78 of file constants.h.

#define PROGRAM_NAME   "Automata editor"
#define PROGRAM_VERSION   "2.0"

current version of editor

Definition at line 11 of file constants.h.

#define RESET_UNDO_STACK_AFTER_SIMULATION

Definition at line 271 of file constants.h.

#define SCRIPT_SCRIPT_STYLE_MULT   0.7f

Definition at line 250 of file constants.h.

#define SCRIPT_STYLE_MULT   0.75f

Definition at line 249 of file constants.h.

#define SELECTION_BOUNDS   4

Definition at line 127 of file constants.h.

Referenced by Transition::createStrokes().

#define SHOW_FRAME   true

Definition at line 102 of file constants.h.

Referenced by MainWindow::createActions().

#define SHOW_GRID   true

Definition at line 101 of file constants.h.

Referenced by MainWindow::createActions().

#define SIMULATION_STEP_DEFAULT   1.0

Simulation settings

Definition at line 260 of file constants.h.

Referenced by AutomataWorkSimulator::AutomataWorkSimulator(), and SimulationDialog::SimulationDialog().

#define SIMULATION_STEP_MAX   10.0

Definition at line 262 of file constants.h.

Referenced by SimulationDialog::SimulationDialog().

#define SIMULATION_STEP_MIN   0.5

Definition at line 261 of file constants.h.

Referenced by SimulationDialog::SimulationDialog().

#define SNAP_TO_GRID   false

Definition at line 100 of file constants.h.

Referenced by MainWindow::createActions().

#define STATE_DOUBLE_LINE_VIEW_COEF   1.4f

Definition at line 170 of file constants.h.

#define STATE_LABEL_SIZE   10

Definition at line 238 of file constants.h.

Referenced by State::State().

#define STATE_LINE_VIEW_COEF   1.6f

Definition at line 169 of file constants.h.

#define TESTING

Definition at line 37 of file constants.h.

#define TESTING_ADDING

Definition at line 47 of file constants.h.

#define TESTING_AUTOMATA_CREATOR

Definition at line 48 of file constants.h.

#define TESTING_AUTOMATA_INTERFACES

Definition at line 50 of file constants.h.

#define TESTING_DRAWING

Definition at line 49 of file constants.h.

#define TESTING_GRAPHVIZDRAWER

Definition at line 54 of file constants.h.

#define TESTING_PARSER

Definition at line 44 of file constants.h.

#define TESTING_SERIALIZERS

Definition at line 46 of file constants.h.

#define TESTING_SIMULATION

Definition at line 52 of file constants.h.

#define TESTING_STRING_PROCESSOR

Definition at line 42 of file constants.h.

#define TESTING_SYNTAX_CHECKER

Definition at line 53 of file constants.h.

#define TEXT_DISTANCE   5.f

transition text distnace

Definition at line 164 of file constants.h.

Referenced by Transition::setLabelPosition().

#define TR_CLOOP_OPENING_ANGLE   22

Definition at line 158 of file constants.h.

Referenced by TransitionLoop::adjust().

#define TR_LINE_VIEW_COEF   2.f

Definition at line 168 of file constants.h.

#define TR_LOOP_MULTIPLICATOR   3.5f

Definition at line 160 of file constants.h.

#define TR_LOOP_OPENING_ANGLE   30

Definition at line 157 of file constants.h.

Referenced by TransitionLoop::adjust().

#define TR_LOOPVAR_OPENING_ANGLE   28

Definition at line 159 of file constants.h.

#define TR_SE_LENGTH   40

transition initial/final line length

Definition at line 153 of file constants.h.

Referenced by TransitionSELine::adjust().

#define USE_ANIMS_BY_DEFAULT   true

Definition at line 264 of file constants.h.

#define ZOOM_DIVIDER   600.0

zooming divider

Definition at line 137 of file constants.h.

Referenced by Editor::Editor().


Enumeration Type Documentation

anonymous enum
Enumerator:
LLX 
LLY 
URX 
URY 

Definition at line 118 of file constants.h.

anonymous enum

ZValues.

Enumerator:
Z_STATE 
Z_TRANSITION 
Z_TR_LABEL 

Definition at line 121 of file constants.h.

anonymous enum

searching automata generation options

Enumerator:
EXACT_HSPACE 
HAMMING_HSPACE 
HAMMING_VSPACE 
LEVEN_HSPACE 
LEVEN_VSPACE 

Definition at line 194 of file constants.h.

anonymous enum

directions

Enumerator:
NORTH 
SOUTH 
EAST 
WEST 
NORTH_EAST 
NORTH_WEST 
SOUTH_EAST 
SOUTH_WEST 

Definition at line 131 of file constants.h.

anonymous enum

grid step

Enumerator:
GRID_STEP 

Definition at line 134 of file constants.h.

anonymous enum

normal state size proportions

Enumerator:
S_LX 
S_LY 
S_W 
S_H 

Definition at line 140 of file constants.h.

anonymous enum

radices of StateVar

Enumerator:
VAR_STATE_R_X 
VAR_STATE_R_Y 
VAR_STATE_R_X_DBL 
VAR_STATE_WIDTH_ADDITION 

Definition at line 143 of file constants.h.

anonymous enum

undo and redo setting

Enumerator:
UNDO_LIMIT 

Definition at line 174 of file constants.h.

anonymous enum

gridRect's size limit

Enumerator:
MAX_RECT_VALUE 
MIN_RECT_VALUE 

Definition at line 177 of file constants.h.

anonymous enum

scene border (only editor setting)

Enumerator:
SCENE_BORDER 
MIN_BORDER_VALUE 
MAX_BORDER_VALUE 

Definition at line 179 of file constants.h.

anonymous enum

number of side by side states and transitions in VauCanSon-G

Enumerator:
SBS_STATES 
SBS_TRAN 
SBS_IF 
SBS_LABELS 

Definition at line 191 of file constants.h.