-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.cpp | 5 | ||||
-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libopie2/opiepim/ui/opimmainwindow.cpp b/libopie2/opiepim/ui/opimmainwindow.cpp index cf05329..bdf20a9 100644 --- a/libopie2/opiepim/ui/opimmainwindow.cpp +++ b/libopie2/opiepim/ui/opimmainwindow.cpp | |||
@@ -281,32 +281,37 @@ void OPimMainWindow::setItemEditEnabled( bool enable ) { | |||
281 | void OPimMainWindow::setItemDuplicateEnabled( bool enable ) { | 281 | void OPimMainWindow::setItemDuplicateEnabled( bool enable ) { |
282 | m_itemDuplicateAction->setEnabled( enable ); | 282 | m_itemDuplicateAction->setEnabled( enable ); |
283 | } | 283 | } |
284 | 284 | ||
285 | void OPimMainWindow::setItemDeleteEnabled( bool enable ) { | 285 | void OPimMainWindow::setItemDeleteEnabled( bool enable ) { |
286 | m_itemDeleteAction->setEnabled( enable ); | 286 | m_itemDeleteAction->setEnabled( enable ); |
287 | } | 287 | } |
288 | 288 | ||
289 | void OPimMainWindow::setItemBeamEnabled( bool enable ) { | 289 | void OPimMainWindow::setItemBeamEnabled( bool enable ) { |
290 | m_itemBeamAction->setEnabled( enable ); | 290 | m_itemBeamAction->setEnabled( enable ); |
291 | } | 291 | } |
292 | 292 | ||
293 | void OPimMainWindow::setConfigureEnabled( bool enable ) { | 293 | void OPimMainWindow::setConfigureEnabled( bool enable ) { |
294 | m_configureAction->setEnabled( enable ); | 294 | m_configureAction->setEnabled( enable ); |
295 | } | 295 | } |
296 | 296 | ||
297 | void OPimMainWindow::setShowCategories( bool show ) { | ||
298 | show ? m_catSelect->show() | ||
299 | : m_catSelect->hide(); | ||
300 | } | ||
301 | |||
297 | void OPimMainWindow::initBars( const QString &itemName ) { | 302 | void OPimMainWindow::initBars( const QString &itemName ) { |
298 | QString itemStr = itemName.lower(); | 303 | QString itemStr = itemName.lower(); |
299 | 304 | ||
300 | setToolBarsMovable( false ); | 305 | setToolBarsMovable( false ); |
301 | 306 | ||
302 | // Create application menu bar | 307 | // Create application menu bar |
303 | QToolBar *mbHold = new QToolBar( this ); | 308 | QToolBar *mbHold = new QToolBar( this ); |
304 | mbHold->setHorizontalStretchable( true ); | 309 | mbHold->setHorizontalStretchable( true ); |
305 | QMenuBar *menubar = new QMenuBar( mbHold ); | 310 | QMenuBar *menubar = new QMenuBar( mbHold ); |
306 | menubar->setMargin( 0 ); | 311 | menubar->setMargin( 0 ); |
307 | 312 | ||
308 | // Create application menu bar | 313 | // Create application menu bar |
309 | QToolBar *toolbar = new QToolBar( this ); | 314 | QToolBar *toolbar = new QToolBar( this ); |
310 | 315 | ||
311 | // Create sub-menus | 316 | // Create sub-menus |
312 | m_itemMenu = new QPopupMenu( this ); | 317 | m_itemMenu = new QPopupMenu( this ); |
diff --git a/libopie2/opiepim/ui/opimmainwindow.h b/libopie2/opiepim/ui/opimmainwindow.h index 9aa0ded..fa7a730 100644 --- a/libopie2/opiepim/ui/opimmainwindow.h +++ b/libopie2/opiepim/ui/opimmainwindow.h | |||
@@ -121,32 +121,33 @@ protected: | |||
121 | 121 | ||
122 | /** UI-related functions */ | 122 | /** UI-related functions */ |
123 | QPopupMenu *itemContextMenu(); | 123 | QPopupMenu *itemContextMenu(); |
124 | 124 | ||
125 | void insertItemMenuItems( QActionGroup *items ); | 125 | void insertItemMenuItems( QActionGroup *items ); |
126 | void insertViewMenuItems( QActionGroup *items ); | 126 | void insertViewMenuItems( QActionGroup *items ); |
127 | 127 | ||
128 | void setViewCategory( const QString &category ); | 128 | void setViewCategory( const QString &category ); |
129 | void reloadCategories(); | 129 | void reloadCategories(); |
130 | 130 | ||
131 | void setItemNewEnabled( bool enable ); | 131 | void setItemNewEnabled( bool enable ); |
132 | void setItemEditEnabled( bool enable ); | 132 | void setItemEditEnabled( bool enable ); |
133 | void setItemDuplicateEnabled( bool enable ); | 133 | void setItemDuplicateEnabled( bool enable ); |
134 | void setItemDeleteEnabled( bool enable ); | 134 | void setItemDeleteEnabled( bool enable ); |
135 | void setItemBeamEnabled( bool enable ); | 135 | void setItemBeamEnabled( bool enable ); |
136 | void setConfigureEnabled( bool enable ); | 136 | void setConfigureEnabled( bool enable ); |
137 | void setShowCategories( bool show ); | ||
137 | 138 | ||
138 | private slots: | 139 | private slots: |
139 | void appMessage( const QCString&, const QByteArray& ); | 140 | void appMessage( const QCString&, const QByteArray& ); |
140 | void setDocument( const QString& ); | 141 | void setDocument( const QString& ); |
141 | 142 | ||
142 | private: | 143 | private: |
143 | class Private; | 144 | class Private; |
144 | Private* d; | 145 | Private* d; |
145 | 146 | ||
146 | int m_rtti; | 147 | int m_rtti; |
147 | QCopChannel* m_channel; | 148 | QCopChannel* m_channel; |
148 | QString m_service; | 149 | QString m_service; |
149 | QCString m_str; | 150 | QCString m_str; |
150 | OPimRecord* m_fallBack; | 151 | OPimRecord* m_fallBack; |
151 | int m_alarmCount; | 152 | int m_alarmCount; |
152 | int m_playedCount; | 153 | int m_playedCount; |