00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef OBARCOLLECTION_H
00030 #define OBARCOLLECTION_H
00031
00032
00033
00034 #include <qstring.h>
00035 #include <qwidget.h>
00036
00037 class QAction;
00038 class QPopupMenu;
00039
00040 namespace Opie
00041 {
00042
00043
00044
00045
00046
00047
00048
00064 class OBarGroup
00065 {
00066 public:
00067 enum Preference { Allways, Never, IfPlace };
00068 OBarGroup( const QString& name, enum Preference groupPreference );
00069 ~OBarGroup();
00070
00071 void add( QAction* action, enum Preference menuPreference,
00072 enum Preference toolpreference );
00073 void add( const QString&, QPopupMenu* );
00074
00075 void add( OBarGroup* );
00076
00077 void remove( QAction* action );
00078 void remove( QMap* );
00079
00080 protected:
00081 OBarGroup* parent()const;
00082
00083 private:
00084 };
00085
00086
00093 class OBarManager : public QObject
00094 {
00095 public:
00096 OBarManager( QWindow* parent );
00097 ~OBarManager();
00098
00099 void add( OBarGroup*, int pos = -1 );
00100 void remove( OBarGroup* );
00101
00102 bool eventFilter( QObject* , QEvent* );
00103
00104 public slots:
00105 void createGUI();
00106 };
00107
00108
00109
00110
00111
00112 };
00113
00114 #endif
00115
00116