ktigcc.h 2.2 KB

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