srcfile.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 "srcfilewin.h"
  18. #include <qstring.h>
  19. class MainForm;
  20. namespace Kate {
  21. class View;
  22. }
  23. class KReplaceWithSelectionS;
  24. class QLabel;
  25. class QPopupMenu;
  26. class QClipboard;
  27. class QAccel;
  28. class KFindDialog;
  29. class KDirWatch;
  30. struct SourceFile : public SourceFileWindow {
  31. SourceFile(MainForm *mainfrm, const QString &fn, const QString &ft,
  32. const QString &hlm, void *cat, bool isc, bool isasm) :
  33. SourceFileWindow(), mainForm(mainfrm), fileName(fn), fileText(ft),
  34. hlMode(hlm), category(cat), isCFile(isc), isASMFile(isasm)
  35. {
  36. initBase(); // We can do this only after initializing the variables here.
  37. show();
  38. }
  39. MainForm *mainForm;
  40. QString fileName;
  41. QString fileText;
  42. QString hlMode;
  43. void *category;
  44. bool isCFile;
  45. bool isASMFile;
  46. KReplaceWithSelectionS *kreplace;
  47. Kate::View *kateView;
  48. QLabel *rowStatusLabel;
  49. QLabel *colStatusLabel;
  50. QLabel *charsStatusLabel;
  51. QLabel *rightStatusLabel;
  52. QPopupMenu *te_popup;
  53. QAccel *accel;
  54. KFindDialog *kfinddialog;
  55. unsigned findCurrentLine;
  56. KDirWatch *dirWatch;
  57. };