srcfile.h 2.1 KB

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