-rw-r--r-- | core/pim/todo/mainwindow.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/core/pim/todo/mainwindow.h b/core/pim/todo/mainwindow.h index 5a18e64..270cbd1 100644 --- a/core/pim/todo/mainwindow.h +++ b/core/pim/todo/mainwindow.h | |||
@@ -37,6 +37,7 @@ | |||
37 | 37 | ||
38 | #include "smalltodo.h" | 38 | #include "smalltodo.h" |
39 | #include "todoview.h" | 39 | #include "todoview.h" |
40 | #include "quickedit.h" | ||
40 | #include "todomanager.h" | 41 | #include "todomanager.h" |
41 | 42 | ||
42 | class QPopupMenu; | 43 | class QPopupMenu; |
@@ -45,7 +46,7 @@ class QToolBar; | |||
45 | class QAction; | 46 | class QAction; |
46 | class QWidgetStack; | 47 | class QWidgetStack; |
47 | class Ir; | 48 | class Ir; |
48 | 49 | class QVBox; | |
49 | 50 | ||
50 | namespace Todo { | 51 | namespace Todo { |
51 | typedef TodoView View; | 52 | typedef TodoView View; |
@@ -53,6 +54,7 @@ namespace Todo { | |||
53 | class Editor; | 54 | class Editor; |
54 | class TodoShow; | 55 | class TodoShow; |
55 | class TemplateEditor; | 56 | class TemplateEditor; |
57 | struct QuickEditBase; | ||
56 | 58 | ||
57 | class MainWindow : public QMainWindow { | 59 | class MainWindow : public QMainWindow { |
58 | Q_OBJECT | 60 | Q_OBJECT |
@@ -83,12 +85,14 @@ namespace Todo { | |||
83 | QString currentCategory()const; | 85 | QString currentCategory()const; |
84 | int currentCatId(); | 86 | int currentCatId(); |
85 | TemplateManager* templateManager(); | 87 | TemplateManager* templateManager(); |
88 | QuickEditBase* quickEditor(); | ||
86 | 89 | ||
87 | void updateTodo( const OTodo& ); | 90 | void updateTodo( const OTodo& ); |
88 | void populateTemplates(); | 91 | void populateTemplates(); |
89 | Editor* currentEditor(); | 92 | Editor* currentEditor(); |
90 | void setReadAhead(uint count ); | 93 | void setReadAhead(uint count ); |
91 | private slots: | 94 | private slots: |
95 | void slotQuickEntered(); | ||
92 | void populateCategories(); | 96 | void populateCategories(); |
93 | void slotReload(); | 97 | void slotReload(); |
94 | void slotFlush(); | 98 | void slotFlush(); |
@@ -109,6 +113,7 @@ private slots: | |||
109 | void raiseCurrentView(); | 113 | void raiseCurrentView(); |
110 | ViewBase* currentView(); | 114 | ViewBase* currentView(); |
111 | ViewBase* m_curView; | 115 | ViewBase* m_curView; |
116 | QuickEditBase* m_curQuick; | ||
112 | Editor* m_curEdit; | 117 | Editor* m_curEdit; |
113 | TodoShow* currentShow(); | 118 | TodoShow* currentShow(); |
114 | TodoShow* m_curShow; | 119 | TodoShow* m_curShow; |
@@ -133,6 +138,13 @@ private slots: | |||
133 | *m_options, | 138 | *m_options, |
134 | *m_view, | 139 | *m_view, |
135 | *m_template; | 140 | *m_template; |
141 | /* box with two rows | ||
142 | * top will be the quick edit | ||
143 | * this will bite my ass once | ||
144 | * we want to have all parts | ||
145 | * exchangeable | ||
146 | */ | ||
147 | QVBox* m_mainBox; | ||
136 | 148 | ||
137 | bool m_syncing:1; | 149 | bool m_syncing:1; |
138 | bool m_deadline:1; | 150 | bool m_deadline:1; |
@@ -141,9 +153,11 @@ private slots: | |||
141 | TodoManager m_todoMgr; | 153 | TodoManager m_todoMgr; |
142 | QString m_curCat; | 154 | QString m_curCat; |
143 | QList<ViewBase> m_views; | 155 | QList<ViewBase> m_views; |
156 | QList<QuickEditBase> m_quickEdit; | ||
144 | uint m_counter; | 157 | uint m_counter; |
145 | TemplateManager* m_tempManager; | 158 | TemplateManager* m_tempManager; |
146 | 159 | ||
160 | |||
147 | private slots: | 161 | private slots: |
148 | void slotShow(int); | 162 | void slotShow(int); |
149 | void slotEdit(int); | 163 | void slotEdit(int); |