srcfile.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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, void *cat, bool isc, bool isasm, bool istxt) :
  36. SourceFileWindow(), mainForm(mainfrm), fileName(fn), fileText(ft),
  37. hlMode(hlm), category(cat), isCFile(isc), isASMFile(isasm), isTextFile(istxt)
  38. {
  39. initBase(); // We can do this only after initializing the variables here.
  40. show();
  41. }
  42. MainForm *mainForm;
  43. QString fileName;
  44. QString fileText;
  45. QString hlMode;
  46. void *category;
  47. bool isCFile;
  48. bool isASMFile;
  49. bool isTextFile;
  50. LineStartList lineStartList;
  51. KReplaceWithSelectionS *kreplace;
  52. Kate::View *kateView;
  53. QLabel *rowStatusLabel;
  54. QLabel *colStatusLabel;
  55. QLabel *charsStatusLabel;
  56. QLabel *rightStatusLabel;
  57. QPopupMenu *te_popup;
  58. QAccel *accel;
  59. KFindDialog *kfinddialog;
  60. unsigned findCurrentLine;
  61. KDirWatch *dirWatch;
  62. QPopupMenu *findFunctionsPopup;
  63. SourceFileFunctions sourceFileFunctions;
  64. FunctionDialog *functionDialog;
  65. };