equal
deleted
inserted
replaced
17 |
17 |
18 #ifndef EDITORVIEW_H |
18 #ifndef EDITORVIEW_H |
19 #define EDITORVIEW_H |
19 #define EDITORVIEW_H |
20 |
20 |
21 #include <hbview.h> |
21 #include <hbview.h> |
22 #include <hbmainwindow.h> |
|
23 //#include <QtGui> |
|
24 |
22 |
25 class HbTextEdit; |
23 class HbTextEdit; |
26 class HbAction; |
24 class HbAction; |
27 |
25 |
28 class EditorView : public HbView |
26 class EditorView : public HbView |
29 { |
27 { |
30 Q_OBJECT |
28 Q_OBJECT |
31 |
29 |
32 public: |
30 public: |
33 EditorView(HbMainWindow &mainWindow); |
31 EditorView(); |
34 ~EditorView(); |
32 ~EditorView(); |
35 void open(const QString& fileName, bool flagReadOnly); |
33 void open(const QString& fileName, bool flagReadOnly); |
36 |
34 |
37 signals: |
35 signals: |
38 void finished(bool ok); |
36 void finished(bool ok); |
54 |
52 |
55 private: |
53 private: |
56 void loadFile(const QString &fileName); |
54 void loadFile(const QString &fileName); |
57 void createMenu(); |
55 void createMenu(); |
58 |
56 |
59 /* Main Window of folderbrowser */ |
|
60 HbMainWindow &mMainWindow; |
|
61 // editor |
57 // editor |
62 HbTextEdit *mTextEdit; |
58 HbTextEdit *mTextEdit; |
63 // if flag true, file is currently in hex format |
59 // if flag true, file is currently in hex format |
64 bool mFileHex; |
60 bool mFileHex; |
65 bool mFlagReadOnly; |
61 bool mFlagReadOnly; |
67 QString mFileContent; |
63 QString mFileContent; |
68 |
64 |
69 HbAction* mToTextAction; |
65 HbAction* mToTextAction; |
70 HbAction* mToHexAction; |
66 HbAction* mToHexAction; |
71 HbAction* mExitAction; |
67 HbAction* mExitAction; |
72 |
|
73 }; |
68 }; |
74 |
69 |
75 #endif // EDITORVIEW_H |
70 #endif // EDITORVIEW_H |