srcfile.h 2.0 KB

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