ktigcc.h 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*
  2. ktigcc - TIGCC IDE for KDE
  3. Copyright (C) 2004-2006 Kevin Kofler
  4. Copyright (C) 2006 Joey Adams
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software Foundation,
  15. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  16. */
  17. #include <cstddef>
  18. #include <qptrlist.h>
  19. #include <kconfig.h>
  20. #include <kaboutdata.h>
  21. #include <qstring.h>
  22. #include <qvaluevector.h>
  23. class QAssistantClient;
  24. class QClipboard;
  25. class SourceFile;
  26. typedef struct tprsettings tprSettings;
  27. typedef struct tprlibopts tprLibOpts;
  28. extern const char *tigcc_base;
  29. extern const char *quill_drv;
  30. extern bool have_fargo;
  31. extern bool have_flashos;
  32. extern bool have_usb;
  33. extern char tempdir[];
  34. void write_temp_file(const char *filename, const char *data, const size_t len);
  35. void delete_temp_file(const char *filename);
  36. void clear_temp_dir(void);
  37. void force_qt_assistant_page(int n);
  38. const char *lookup_doc_keyword(const char *keyword);
  39. extern KConfig *pconfig;
  40. extern KAboutData *pabout;
  41. extern const char *parg;
  42. extern QAssistantClient *assistant;
  43. extern QClipboard *clipboard;
  44. extern QPtrList<SourceFile> sourceFiles;
  45. extern tprSettings settings;
  46. extern tprLibOpts libopts;
  47. struct Tool {
  48. Tool() : title(), commandLine(), workingDirectory(), runInTerminal(false) {}
  49. Tool(const QString &t, const QString &c, const QString &w, bool r) :
  50. title(t), commandLine(c), workingDirectory(w), runInTerminal(r) {}
  51. QString title;
  52. QString commandLine;
  53. QString workingDirectory;
  54. bool runInTerminal;
  55. };
  56. typedef QValueVector<Tool> Tools;
  57. extern Tools tools, tempTools;
  58. extern int toolIndex;