ktigcc.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 AssistantClient;
  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 AssistantClient *assistant;
  43. extern QClipboard *clipboard;
  44. extern QStringList findHistory, replacementHistory;
  45. extern QPtrList<SourceFile> sourceFiles;
  46. extern tprSettings settings;
  47. extern tprLibOpts libopts;
  48. struct Tool {
  49. Tool() : title(), commandLine(), workingDirectory(), runInTerminal(false) {}
  50. Tool(const QString &t, const QString &c, const QString &w, bool r) :
  51. title(t), commandLine(c), workingDirectory(w), runInTerminal(r) {}
  52. QString title;
  53. QString commandLine;
  54. QString workingDirectory;
  55. bool runInTerminal;
  56. };
  57. typedef QValueVector<Tool> Tools;
  58. extern Tools tools, tempTools;
  59. extern int toolIndex;
  60. extern bool disableViewEvents;