equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef OUTPUTVIEW_H |
|
19 #define OUTPUTVIEW_H |
|
20 |
|
21 #include <hbview.h> |
|
22 |
|
23 class HbDocumentLoader; |
|
24 class HbAction; |
|
25 class HbTextEdit; |
|
26 class CommonActions; |
|
27 |
|
28 class OutputView : public HbView |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 /** |
|
34 * Constructor |
|
35 */ |
|
36 OutputView(); |
|
37 |
|
38 /** |
|
39 * Destructor |
|
40 */ |
|
41 ~OutputView(); |
|
42 |
|
43 /** |
|
44 * Creates output view and adds it into main window |
|
45 */ |
|
46 static OutputView* create(HbDocumentLoader &loader, CommonActions *commonActions); |
|
47 |
|
48 /** |
|
49 * Prints text into output |
|
50 */ |
|
51 void printText(const QString &text); |
|
52 |
|
53 private slots: |
|
54 |
|
55 /** |
|
56 * Clears output |
|
57 */ |
|
58 void clearOutput(); |
|
59 |
|
60 /** |
|
61 * Opens application view |
|
62 */ |
|
63 void openApplicationView(); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * Initializes view |
|
69 */ |
|
70 void init(HbDocumentLoader &loader, CommonActions *commonActions); |
|
71 |
|
72 /** |
|
73 * Loads all output view's ui components from xml-file |
|
74 */ |
|
75 void loadItemsFromXml(HbDocumentLoader &loader); |
|
76 |
|
77 /** |
|
78 * connects signals and slots to each other |
|
79 */ |
|
80 void connectSignalsAndSlots(); |
|
81 |
|
82 |
|
83 private: |
|
84 |
|
85 // Actions |
|
86 HbAction *mActionClear; |
|
87 HbAction *mActionOpenApplicationView; |
|
88 |
|
89 HbTextEdit *mTextOutput; |
|
90 |
|
91 }; |
|
92 |
|
93 #endif // OUTPUTVIEW |
|
94 |