summaryrefslogtreecommitdiff
authordrw <drw>2005-02-07 20:32:21 (UTC)
committer drw <drw>2005-02-07 20:32:21 (UTC)
commitaeda5d05178f635c05ce4556e3a0b7f9be7d6401 (patch) (unidiff)
treefd7dffb1ce16c02e80396294ac100cf0522c9bfe
parented8328723ff32caee7db4064a0436703623a2de2 (diff)
downloadopie-aeda5d05178f635c05ce4556e3a0b7f9be7d6401.zip
opie-aeda5d05178f635c05ce4556e3a0b7f9be7d6401.tar.gz
opie-aeda5d05178f635c05ce4556e3a0b7f9be7d6401.tar.bz2
Minor addition
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/ui/opimmainwindow.cpp5
-rw-r--r--libopie2/opiepim/ui/opimmainwindow.h1
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
@@ -285,24 +285,29 @@ void OPimMainWindow::setItemDuplicateEnabled( bool enable ) {
285void OPimMainWindow::setItemDeleteEnabled( bool enable ) { 285void OPimMainWindow::setItemDeleteEnabled( bool enable ) {
286 m_itemDeleteAction->setEnabled( enable ); 286 m_itemDeleteAction->setEnabled( enable );
287} 287}
288 288
289void OPimMainWindow::setItemBeamEnabled( bool enable ) { 289void OPimMainWindow::setItemBeamEnabled( bool enable ) {
290 m_itemBeamAction->setEnabled( enable ); 290 m_itemBeamAction->setEnabled( enable );
291} 291}
292 292
293void OPimMainWindow::setConfigureEnabled( bool enable ) { 293void OPimMainWindow::setConfigureEnabled( bool enable ) {
294 m_configureAction->setEnabled( enable ); 294 m_configureAction->setEnabled( enable );
295} 295}
296 296
297void OPimMainWindow::setShowCategories( bool show ) {
298 show ? m_catSelect->show()
299 : m_catSelect->hide();
300}
301
297void OPimMainWindow::initBars( const QString &itemName ) { 302void 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
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
@@ -125,24 +125,25 @@ protected:
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
138private slots: 139private 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
142private: 143private:
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;