srcfile.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. //Added by qt3to4:
  22. #include <Q3PopupMenu>
  23. #include <QLabel>
  24. class MainForm;
  25. namespace Kate {
  26. class View;
  27. }
  28. class KReplaceWithSelectionS;
  29. class QLabel;
  30. class Q3PopupMenu;
  31. class QClipboard;
  32. class Q3Accel;
  33. class KFindDialog;
  34. class KDirWatch;
  35. class FunctionDialog;
  36. struct SourceFile : public SourceFileWindow {
  37. SourceFile(MainForm *mainfrm, const QString &fn, const QString &ft,
  38. const QString &hlm, const bool *hle, void *cat,
  39. bool isc, bool isasm, bool istxt) :
  40. SourceFileWindow(), mainForm(mainfrm), fileName(fn), fileText(ft),
  41. hlMode(hlm), hlEnabled(hle), category(cat),
  42. isCFile(isc), isASMFile(isasm), isTextFile(istxt)
  43. {
  44. initBase(); // We can do this only after initializing the variables here.
  45. show();
  46. }
  47. MainForm *mainForm;
  48. QString fileName;
  49. QString fileText;
  50. QString hlMode;
  51. const bool *hlEnabled;
  52. void *category;
  53. bool isCFile;
  54. bool isASMFile;
  55. bool isTextFile;
  56. LineStartList lineStartList;
  57. KReplaceWithSelectionS *kreplace;
  58. Kate::View *kateView;
  59. QLabel *rowStatusLabel;
  60. QLabel *colStatusLabel;
  61. QLabel *charsStatusLabel;
  62. QLabel *rightStatusLabel;
  63. Q3PopupMenu *te_popup;
  64. Q3Accel *accel;
  65. KFindDialog *kfinddialog;
  66. unsigned findCurrentLine;
  67. KDirWatch *dirWatch;
  68. Q3PopupMenu *findFunctionsPopup;
  69. SourceFileFunctions sourceFileFunctions;
  70. FunctionDialog *functionDialog;
  71. };