faithui/faith/menubar.h

Go to the documentation of this file.
00001 #ifndef KDE__MENUBAR_H
00002 #define KDE__MENUBAR_H
00003 
00004 #include <faith/menudata.h>
00005 #include <faith/widget.h>
00006 #include <faith/ui.h>
00007 
00008 namespace Faith
00009 {
00010 
00011 class FAITH_UI_EXPORT MenuBar : public Faith::Widget, public Faith::MenuData
00012 {
00013         struct Private;
00014         Private *d;
00015 public:
00016         MenuBar(Widget *parent, const char *name=0);
00017         ~MenuBar();
00018 
00019         MenuItem *at(const Faith::Point &pt);
00020 
00021         Rect rectOf(const MenuItem *item) const;
00022 
00023 protected:
00024         void paintEvent(Faith::PaintEvent *e);
00025         void leaveEvent(Faith::Event *e);
00026         void mousePressEvent(Faith::MouseEvent *);
00027         void mouseMoveEvent(Faith::MouseEvent *);
00028         bool eventFilter(Faith::Object *filtered, Faith::Event *e);
00029 
00030 protected:
00031         void showPopup(MenuItem *item);
00032         void changed();
00033 
00034 signals:
00035         void activated(int id);
00036         void highlighted(int id);
00037 };
00038 
00039 
00040 }
00041 
00042 #endif

Generated on Fri Sep 1 00:23:08 2006 for Faith by  doxygen 1.4.7