* Updated indentation style
* Fixed copyright +alphabranch git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32711 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2006-2009, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
* Copyright 2006-2009, Haiku Inc. All rights reserved.
|
||||
* Distributed under the terms of the MIT license.
|
||||
*/
|
||||
#ifndef _MENU_FIELD_H
|
||||
#define _MENU_FIELD_H
|
||||
@@ -35,7 +35,8 @@ public:
|
||||
virtual ~BMenuField();
|
||||
|
||||
static BArchivable* Instantiate(BMessage* archive);
|
||||
virtual status_t Archive(BMessage* archive, bool deep = true) const;
|
||||
virtual status_t Archive(BMessage* archive,
|
||||
bool deep = true) const;
|
||||
|
||||
virtual void Draw(BRect update);
|
||||
virtual void AttachedToWindow();
|
||||
@@ -45,13 +46,13 @@ public:
|
||||
virtual void MakeFocus(bool state);
|
||||
virtual void MessageReceived(BMessage* message);
|
||||
virtual void WindowActivated(bool state);
|
||||
virtual void MouseUp(BPoint pt);
|
||||
virtual void MouseMoved(BPoint pt, uint32 code,
|
||||
virtual void MouseUp(BPoint where);
|
||||
virtual void MouseMoved(BPoint where, uint32 transit,
|
||||
const BMessage* dragMessage);
|
||||
virtual void DetachedFromWindow();
|
||||
virtual void AllDetached();
|
||||
virtual void FrameMoved(BPoint new_position);
|
||||
virtual void FrameResized(float new_width, float new_height);
|
||||
virtual void FrameMoved(BPoint where);
|
||||
virtual void FrameResized(float width, float height);
|
||||
|
||||
BMenu* Menu() const;
|
||||
BMenuBar* MenuBar() const;
|
||||
@@ -88,13 +89,20 @@ public:
|
||||
BLayoutItem* CreateLabelLayoutItem();
|
||||
BLayoutItem* CreateMenuBarLayoutItem();
|
||||
|
||||
|
||||
/*----- Private or reserved -----------------------------------------*/
|
||||
virtual status_t Perform(perform_code d, void* arg);
|
||||
|
||||
protected:
|
||||
virtual void DoLayout();
|
||||
|
||||
private:
|
||||
// FBC padding
|
||||
virtual void _ReservedMenuField1();
|
||||
virtual void _ReservedMenuField2();
|
||||
virtual void _ReservedMenuField3();
|
||||
|
||||
// Forbidden
|
||||
BMenuField& operator=(const BMenuField& other);
|
||||
|
||||
private:
|
||||
class LabelLayoutItem;
|
||||
class MenuBarLayoutItem;
|
||||
@@ -105,12 +113,6 @@ private:
|
||||
friend class MenuBarLayoutItem;
|
||||
friend class LayoutData;
|
||||
|
||||
virtual void _ReservedMenuField1();
|
||||
virtual void _ReservedMenuField2();
|
||||
virtual void _ReservedMenuField3();
|
||||
|
||||
BMenuField& operator=(const BMenuField& other);
|
||||
|
||||
void InitObject(const char* label);
|
||||
void InitObject2();
|
||||
void DrawLabel(BRect bounds, BRect update);
|
||||
@@ -127,6 +129,7 @@ private:
|
||||
float _MenuBarOffset() const;
|
||||
float _MenuBarWidth() const;
|
||||
|
||||
private:
|
||||
char* fLabel;
|
||||
BMenu* fMenu;
|
||||
BMenuBar* fMenuBar;
|
||||
|
||||
Reference in New Issue
Block a user