ktigcc.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /*
  2. ktigcc - TIGCC IDE for KDE
  3. Copyright (C) 2004-2007 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. #pragma once
  18. #include <cstddef>
  19. #include <q3ptrlist.h>
  20. #include <kconfig.h>
  21. #include <kaboutdata.h>
  22. #include <qstring.h>
  23. #include <q3valuevector.h>
  24. class AssistantClient;
  25. class QClipboard;
  26. class SourceFile;
  27. typedef struct tprsettings tprSettings;
  28. typedef struct tprlibopts tprLibOpts;
  29. extern const char *tigcc_base;
  30. extern const char *quill_drv;
  31. extern bool have_fargo;
  32. extern bool have_flashos;
  33. extern bool have_usb;
  34. extern char tempdir[];
  35. void write_temp_file(const char *filename, const char *data, const size_t len);
  36. void delete_temp_file(const char *filename);
  37. void clear_temp_dir(void);
  38. void force_qt_assistant_page(int n);
  39. const char *lookup_doc_keyword(const char *keyword);
  40. extern KSharedConfigPtr pconfig;
  41. extern KAboutData *pabout;
  42. extern const char *parg;
  43. extern AssistantClient *assistant;
  44. extern QClipboard *clipboard;
  45. extern QStringList findHistory, replacementHistory;
  46. extern Q3PtrList<SourceFile> sourceFiles;
  47. extern tprSettings settings;
  48. extern tprLibOpts libopts;
  49. struct Tool {
  50. Tool() : title(), commandLine(), workingDirectory(), runInTerminal(false) {}
  51. Tool(const QString &t, const QString &c, const QString &w, bool r) :
  52. title(t), commandLine(c), workingDirectory(w), runInTerminal(r) {}
  53. QString title;
  54. QString commandLine;
  55. QString workingDirectory;
  56. bool runInTerminal;
  57. };
  58. typedef Q3ValueVector<Tool> Tools;
  59. extern Tools tools, tempTools;
  60. extern int toolIndex;
  61. extern bool disableViewEvents;