diff options
author | handbrake <[email protected]> | 2006-01-14 13:21:55 +0000 |
---|---|---|
committer | handbrake <[email protected]> | 2006-01-14 13:21:55 +0000 |
commit | dc8de40de13c3f3e643b980a95ef48ccafb542e3 (patch) | |
tree | 953b97afe7082bbe2ce4247c703a51aa8e29a3c9 /beos/liblayout/MPopup.h | |
parent | 4beb6a8b483c9d84677b21cc271ce315f136335c (diff) |
HandBrake 0.6.0-test1
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@10 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'beos/liblayout/MPopup.h')
-rw-r--r-- | beos/liblayout/MPopup.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/beos/liblayout/MPopup.h b/beos/liblayout/MPopup.h new file mode 100644 index 000000000..2223664ec --- /dev/null +++ b/beos/liblayout/MPopup.h @@ -0,0 +1,45 @@ + +#ifndef _MPOPUP_H +#define _MPOPUP_H +#include "layout.h" +#include "MDividable.h" +#include <MenuField.h> + +class BPopUpMenu; + +#if __POWERPC__ +#pragma simple_class_byval off +#endif + +class IMPEXPLIBLAYOUT MPopup: + public MView, public MDividable, public BMenuField +{ + public: MPopup(char *label, char *item ...); + MPopup(char *label, BMessage*, BHandler *, char *item ...); + MPopup(BMessage*); + virtual ~MPopup(); + virtual long Archive(BMessage *archive, bool deep=true) const; + static BArchivable *Instantiate(BMessage *archive); + + virtual float LabelWidth(); + + virtual minimax layoutprefs(); + virtual BRect layout(BRect rect); + virtual void reloadfont(BFont *font[]); + void SetActive(ulong, bool send=true); + void EnableItem(ulong index, bool enabled); + virtual void AttachedToWindow(); + virtual void DetachedFromWindow(); + + private: virtual void _expansionmpopup1(); + + char *poplabel; + BHandler *target; + BPopUpMenu *popup; + + uint32 _expansiondata[2]; +}; + +extern const IMPEXPLIBLAYOUT char M_POPUP_POINTER_NAME[]; + +#endif |