callbacks.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. #ifndef QSP_CALLSDEFINES
  19. #define QSP_CALLSDEFINES
  20. typedef struct
  21. {
  22. QSP_BOOL IsInCallBack;
  23. QSP_BOOL IsDisableCodeExec;
  24. QSP_BOOL IsExitOnError;
  25. QSP_BOOL IsMainDescChanged;
  26. QSP_BOOL IsVarsDescChanged;
  27. QSP_BOOL IsObjectsChanged;
  28. QSP_BOOL IsActionsChanged;
  29. } QSPCallState;
  30. extern QSP_CALLBACK qspCallBacks[QSP_CALL_DUMMY];
  31. extern QSP_BOOL qspIsInCallBack;
  32. extern QSP_BOOL qspIsDisableCodeExec;
  33. extern QSP_BOOL qspIsExitOnError;
  34. /* External functions */
  35. void qspSaveCallState(QSPCallState *, QSP_BOOL, QSP_BOOL);
  36. void qspRestoreCallState(QSPCallState *);
  37. void qspInitCallBacks();
  38. void qspSetCallBack(int, QSP_CALLBACK);
  39. void qspCallDebug(QSP_CHAR *);
  40. void qspCallSetTimer(int);
  41. void qspCallRefreshInt(QSP_BOOL);
  42. void qspCallSetInputStrText(QSP_CHAR *);
  43. void qspCallAddMenuItem(QSP_CHAR *, QSP_CHAR *);
  44. void qspCallSystem(QSP_CHAR *);
  45. void qspCallOpenGame(QSP_CHAR *);
  46. void qspCallSaveGame(QSP_CHAR *);
  47. void qspCallShowMessage(QSP_CHAR *);
  48. int qspCallShowMenu();
  49. void qspCallShowPicture(QSP_CHAR *);
  50. void qspCallShowWindow(int, QSP_BOOL);
  51. void qspCallPlayFile(QSP_CHAR *, int);
  52. QSP_BOOL qspCallIsPlayingFile(QSP_CHAR *);
  53. void qspCallSleep(int);
  54. int qspCallGetMSCount();
  55. void qspCallCloseFile(QSP_CHAR *);
  56. void qspCallDeleteMenu();
  57. QSP_CHAR *qspCallInputBox(QSP_CHAR *);
  58. #endif