Diffstat (limited to 'libopie2/opiepim/ui/opimmainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ui/opimmainwindow.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libopie2/opiepim/ui/opimmainwindow.h b/libopie2/opiepim/ui/opimmainwindow.h index b446583..9aa0ded 100644 --- a/libopie2/opiepim/ui/opimmainwindow.h +++ b/libopie2/opiepim/ui/opimmainwindow.h | |||
@@ -119,24 +119,31 @@ protected: | |||
119 | void killAlarm(); | 119 | void killAlarm(); |
120 | void timerEvent( QTimerEvent* ); | 120 | void timerEvent( QTimerEvent* ); |
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 ); | ||
132 | void setItemEditEnabled( bool enable ); | ||
133 | void setItemDuplicateEnabled( bool enable ); | ||
134 | void setItemDeleteEnabled( bool enable ); | ||
135 | void setItemBeamEnabled( bool enable ); | ||
136 | void setConfigureEnabled( bool enable ); | ||
137 | |||
131 | private slots: | 138 | private slots: |
132 | void appMessage( const QCString&, const QByteArray& ); | 139 | void appMessage( const QCString&, const QByteArray& ); |
133 | void setDocument( const QString& ); | 140 | void setDocument( const QString& ); |
134 | 141 | ||
135 | private: | 142 | private: |
136 | class Private; | 143 | class Private; |
137 | Private* d; | 144 | Private* d; |
138 | 145 | ||
139 | int m_rtti; | 146 | int m_rtti; |
140 | QCopChannel* m_channel; | 147 | QCopChannel* m_channel; |
141 | QString m_service; | 148 | QString m_service; |
142 | QCString m_str; | 149 | QCString m_str; |
@@ -147,27 +154,30 @@ private: | |||
147 | 154 | ||
148 | QString m_catGroupName; // Name of category group | 155 | QString m_catGroupName; // Name of category group |
149 | Config m_config; // Configuration settings file | 156 | Config m_config; // Configuration settings file |
150 | 157 | ||
151 | // Menu bar data | 158 | // Menu bar data |
152 | QPopupMenu *m_itemContextMenu; // Pointer to context-sensitive menu | 159 | QPopupMenu *m_itemContextMenu; // Pointer to context-sensitive menu |
153 | QPopupMenu *m_itemMenu; // Pointer to item menu | 160 | QPopupMenu *m_itemMenu; // Pointer to item menu |
154 | QPopupMenu *m_viewMenu; // Pointer to view menu | 161 | QPopupMenu *m_viewMenu; // Pointer to view menu |
155 | QActionGroup *m_itemMenuGroup1; // Action group containing default items in Item menu | 162 | QActionGroup *m_itemMenuGroup1; // Action group containing default items in Item menu |
156 | QActionGroup *m_itemMenuGroup2; // Action group containing default items in Item menu | 163 | QActionGroup *m_itemMenuGroup2; // Action group containing default items in Item menu |
157 | QActionGroup *m_viewMenuAppGroup; // Action group containing application items in View menu | 164 | QActionGroup *m_viewMenuAppGroup; // Action group containing application items in View menu |
158 | QActionGroup *m_viewMenuGroup; // Action group containing default items in View menu | 165 | QActionGroup *m_viewMenuGroup; // Action group containing default items in View menu |
166 | QAction *m_itemNewAction; // Add new item action | ||
159 | QAction *m_itemEditAction; // Edit current item action | 167 | QAction *m_itemEditAction; // Edit current item action |
160 | QAction *m_itemDuplicateAction; // Duplicate current item action | 168 | QAction *m_itemDuplicateAction; // Duplicate current item action |
161 | QAction *m_itemDeleteAction; // Delete current item action | 169 | QAction *m_itemDeleteAction; // Delete current item action |
170 | QAction *m_itemBeamAction; // Beam current item action | ||
171 | QAction *m_configureAction; // Configure application dialog action | ||
162 | 172 | ||
163 | QComboBox *m_catSelect; // Category selection combo box | 173 | QComboBox *m_catSelect; // Category selection combo box |
164 | 174 | ||
165 | /* I would love to do this as a template | 175 | /* I would love to do this as a template |
166 | * but can't think of a right way | 176 | * but can't think of a right way |
167 | * because I need signal and slots -zecke | 177 | * because I need signal and slots -zecke |
168 | */ | 178 | */ |
169 | virtual OPimRecord* record( int rtti, const QByteArray& ) ; | 179 | virtual OPimRecord* record( int rtti, const QByteArray& ) ; |
170 | int service(); | 180 | int service(); |
171 | 181 | ||
172 | /** UI-related functions */ | 182 | /** UI-related functions */ |
173 | void initBars( const QString &itemName = tr( "Item" ) ); | 183 | void initBars( const QString &itemName = tr( "Item" ) ); |