actions.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* Copyright (C) 2005-2010 Valeriy Argunov (nporep AT mail DOT ru) */
  2. /*
  3. * This library is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU Lesser General Public License as published by
  5. * the Free Software Foundation; either version 2.1 of the License, or
  6. * (at your option) any later version.
  7. *
  8. * This library is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU Lesser General Public License for more details.
  12. *
  13. * You should have received a copy of the GNU Lesser General Public License
  14. * along with this library; if not, write to the Free Software
  15. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16. */
  17. #include "declarations.h"
  18. #include "codetools.h"
  19. #include "variant.h"
  20. #ifndef QSP_ACTSDEFINES
  21. #define QSP_ACTSDEFINES
  22. #define QSP_MAXACTIONS 50
  23. typedef struct
  24. {
  25. QSP_CHAR *Image;
  26. QSP_CHAR *Desc;
  27. QSPLineOfCode *OnPressLines;
  28. int OnPressLinesCount;
  29. int Location;
  30. int ActIndex;
  31. int StartLine;
  32. QSP_BOOL IsManageLines;
  33. } QSPCurAct;
  34. extern QSPCurAct qspCurActions[QSP_MAXACTIONS];
  35. extern int qspCurActionsCount;
  36. extern int qspCurSelAction;
  37. extern QSP_BOOL qspIsActionsChanged;
  38. extern QSP_BOOL qspCurIsShowActs;
  39. /* External functions */
  40. void qspClearActions(QSP_BOOL);
  41. void qspAddAction(QSPVariant *, int, QSPLineOfCode *, int, int, QSP_BOOL);
  42. void qspExecAction(int);
  43. QSP_CHAR *qspGetAllActionsAsCode();
  44. /* Statements */
  45. void qspStatementSinglelineAddAct(QSPLineOfCode *, int, int);
  46. void qspStatementMultilineAddAct(QSPLineOfCode *, int, int, QSP_BOOL);
  47. QSP_BOOL qspStatementDelAct(QSPVariant *, int, QSP_CHAR **, int);
  48. #endif