srcfile.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. /*
  2. ktigcc - TIGCC IDE for KDE
  3. Copyright (C) 2006 Kevin Kofler
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2, or (at your option)
  7. any later version.
  8. This program 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 General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software Foundation,
  14. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. #pragma once
  17. #include "tpr.h"
  18. #include "srcfilewin.h"
  19. #include "parsing.h"
  20. #include <qstring.h>
  21. class MainForm;
  22. namespace Kate {
  23. class View;
  24. }
  25. class KReplaceWithSelectionS;
  26. class QLabel;
  27. class QPopupMenu;
  28. class QClipboard;
  29. class QAccel;
  30. class KFindDialog;
  31. class KDirWatch;
  32. class FunctionDialog;
  33. struct SourceFile : public SourceFileWindow {
  34. SourceFile(MainForm *mainfrm, const QString &fn, const QString &ft,
  35. const QString &hlm, const bool *hle, void *cat,
  36. bool isc, bool isasm, bool istxt) :
  37. SourceFileWindow(), mainForm(mainfrm), fileName(fn), fileText(ft),
  38. hlMode(hlm), hlEnabled(hle), category(cat),
  39. isCFile(isc), isASMFile(isasm), isTextFile(istxt)
  40. {
  41. initBase(); // We can do this only after initializing the variables here.
  42. show();
  43. }
  44. MainForm *mainForm;
  45. QString fileName;
  46. QString fileText;
  47. QString hlMode;
  48. const bool *hlEnabled;
  49. void *category;
  50. bool isCFile;
  51. bool isASMFile;
  52. bool isTextFile;
  53. LineStartList lineStartList;
  54. KReplaceWithSelectionS *kreplace;
  55. Kate::View *kateView;
  56. QLabel *rowStatusLabel;
  57. QLabel *colStatusLabel;
  58. QLabel *charsStatusLabel;
  59. QLabel *rightStatusLabel;
  60. QPopupMenu *te_popup;
  61. QAccel *accel;
  62. KFindDialog *kfinddialog;
  63. unsigned findCurrentLine;
  64. KDirWatch *dirWatch;
  65. QPopupMenu *findFunctionsPopup;
  66. SourceFileFunctions sourceFileFunctions;
  67. FunctionDialog *functionDialog;
  68. };