Moved BSeparatorItem's interface to its own file. Everything still builds, amazing :P
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10550 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -114,35 +114,11 @@ private:
|
|||||||
uint32 _reserved[4];
|
uint32 _reserved[4];
|
||||||
};
|
};
|
||||||
|
|
||||||
/*----------------------------------------------------------------*/
|
|
||||||
/*----- BSeparatorItem class -------------------------------------*/
|
|
||||||
|
|
||||||
class BSeparatorItem : public BMenuItem
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
BSeparatorItem();
|
|
||||||
BSeparatorItem(BMessage *data);
|
|
||||||
virtual ~BSeparatorItem();
|
|
||||||
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
|
||||||
static BArchivable *Instantiate(BMessage *data);
|
|
||||||
virtual void SetEnabled(bool state);
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
virtual void GetContentSize(float *width, float *height);
|
|
||||||
virtual void Draw();
|
|
||||||
|
|
||||||
/*----- Private or reserved -----------------------------------------*/
|
|
||||||
private:
|
|
||||||
virtual void _ReservedSeparatorItem1();
|
|
||||||
virtual void _ReservedSeparatorItem2();
|
|
||||||
|
|
||||||
BSeparatorItem &operator=(const BSeparatorItem &);
|
|
||||||
|
|
||||||
uint32 _reserved[1];
|
|
||||||
};
|
|
||||||
|
|
||||||
/*-------------------------------------------------------------*/
|
/*-------------------------------------------------------------*/
|
||||||
/*-------------------------------------------------------------*/
|
/*-------------------------------------------------------------*/
|
||||||
|
|
||||||
|
// We moved BSeparatorItem's declaration to its own file, but for source
|
||||||
|
// compatibility we have to export that class from here too.
|
||||||
|
#include <SeparatorItem.h>
|
||||||
|
|
||||||
#endif /* _MENU_ITEM_H */
|
#endif /* _MENU_ITEM_H */
|
||||||
|
|||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#ifndef _SEPARATOR_ITEM_H
|
||||||
|
#define _SEPARATOR_ITEM_H
|
||||||
|
|
||||||
|
#include <MenuItem.h>
|
||||||
|
|
||||||
|
class BMessage;
|
||||||
|
class BSeparatorItem : public BMenuItem {
|
||||||
|
public:
|
||||||
|
BSeparatorItem();
|
||||||
|
BSeparatorItem(BMessage *data);
|
||||||
|
|
||||||
|
virtual ~BSeparatorItem();
|
||||||
|
virtual status_t Archive(BMessage *data, bool deep = true) const;
|
||||||
|
|
||||||
|
static BArchivable *Instantiate(BMessage *data);
|
||||||
|
virtual void SetEnabled(bool state);
|
||||||
|
|
||||||
|
protected:
|
||||||
|
virtual void GetContentSize(float *width, float *height);
|
||||||
|
virtual void Draw();
|
||||||
|
|
||||||
|
private:
|
||||||
|
virtual void _ReservedSeparatorItem1();
|
||||||
|
virtual void _ReservedSeparatorItem2();
|
||||||
|
|
||||||
|
BSeparatorItem &operator=(const BSeparatorItem &);
|
||||||
|
|
||||||
|
uint32 _reserved[1];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _SEPARATOR_ITEM_H */
|
||||||
Reference in New Issue
Block a user