📄 sequential.h
字号:
/* Classic Ladder Project *//* Copyright (C) 2001-2004 Marc Le Douarain *//* mavati@club-internet.fr *//* http://www.multimania.com/mavati/classicladder *//* September 2002 *//* This library is free software; you can redistribute it and/or *//* modify it under the terms of the GNU Lesser General Public *//* License as published by the Free Software Foundation; either *//* version 2.1 of the License, or (at your option) any later version. *//* This library is distributed in the hope that it will be useful, *//* but WITHOUT ANY WARRANTY; without even the implied warranty of *//* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *//* Lesser General Public License for more details. *//* You should have received a copy of the GNU Lesser General Public *//* License along with this library; if not, write to the Free Software *//* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */#define NBR_SEQUENTIAL_PAGES 5#define NBR_STEPS 128#define NBR_TRANSITIONS 256#define NBR_SWITCHS_MAX 10/* size of the page */#define SEQ_PAGE_WIDTH 16#define SEQ_PAGE_HEIGHT 16/* elements in the sequential pages */#define ELE_SEQ_STEP 1#define ELE_SEQ_TRANSITION 2/* used only for edit */#define EDIT_SEQ_INIT_STEP 20#define EDIT_SEQ_STEP_AND_TRANS 21#define EDIT_SEQ_START_MANY_STEPS 22#define EDIT_SEQ_END_MANY_STEPS 23#define EDIT_SEQ_START_MANY_TRANS 24#define EDIT_SEQ_END_MANY_TRANS 25#define EDIT_SEQ_LINK 26/* size in pixels (default) */#define SEQ_SIZE_DEF 32typedef struct StrStep { /* step is activated at init */ char InitStep; /* step number */ int StepNumber; /* positions on the page and on which page */ char NumPage; /* -1 if do not exist */ char PosiX; char PosiY; /* dynamic state */ char Activated; int TimeActivated; /* for drawing cross step */ char OffDrawCrossStep;} StrStep;typedef struct StrTransition { /* condition for the transition to become activated */ /* if boolean variable true */ int VarTypeCondi; int VarNumCondi; /* number of the steps to activate if condition true >1 if start of 'AND' */ short int NumStepToActiv[NBR_SWITCHS_MAX]; /* number of the steps to desactivate if condition true >1 if end of 'AND' */ short int NumStepToDesactiv[NBR_SWITCHS_MAX]; /* if start of 'OR' */ short int NumTransLinkedForStart[NBR_SWITCHS_MAX]; /* if end of 'OR' */ short int NumTransLinkedForEnd[NBR_SWITCHS_MAX]; /* Positions on the page and on which page */ char NumPage; /* -1 if do not exist */ char PosiX; char PosiY; /* dynamic state */ char Activated;} StrTransition;typedef struct StrReturn { short int NumStepToGo;} StrReturn;typedef struct StrSequential { StrStep Step[NBR_STEPS]; StrTransition Transition[NBR_TRANSITIONS];} StrSequential;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -