objects.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 "variant.h"
  19. #ifndef QSP_OBJSDEFINES
  20. #define QSP_OBJSDEFINES
  21. #define QSP_MAXOBJECTS 1000
  22. typedef struct
  23. {
  24. QSP_CHAR *Image;
  25. QSP_CHAR *Desc;
  26. } QSPObj;
  27. extern QSPObj qspCurObjects[QSP_MAXOBJECTS];
  28. extern int qspCurObjectsCount;
  29. extern int qspCurSelObject;
  30. extern QSP_BOOL qspIsObjectsChanged;
  31. extern QSP_BOOL qspCurIsShowObjs;
  32. /* External functions */
  33. void qspClearObjects(QSP_BOOL);
  34. void qspClearObjectsWithNotify();
  35. int qspObjIndex(QSP_CHAR *);
  36. /* Statements */
  37. QSP_BOOL qspStatementAddObject(QSPVariant *, int, QSP_CHAR **, int);
  38. QSP_BOOL qspStatementDelObj(QSPVariant *, int, QSP_CHAR **, int);
  39. QSP_BOOL qspStatementUnSelect(QSPVariant *, int, QSP_CHAR **, int);
  40. #endif