Cleaner BeIDE project
This commit is contained in:
@@ -16,20 +16,14 @@
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef _POINT_CPP
|
||||
#define _POINT_CPP
|
||||
#ifndef _POINT_CPP_
|
||||
#define _POINT_CPP_
|
||||
|
||||
#include <Point.h>
|
||||
#include <Rect.h>
|
||||
|
||||
#include <beobj.cpp>
|
||||
|
||||
class BPPoint : public BPoint, public BPasObject
|
||||
{
|
||||
public:
|
||||
BPPoint(TPasObject PasObject, float x, float y);
|
||||
BPPoint(TPasObject PasObject, const BPoint& point);
|
||||
BPPoint(TPasObject PasObject);
|
||||
};
|
||||
#include <point.h>
|
||||
#include <beobj.h>
|
||||
|
||||
BPPoint::BPPoint(TPasObject PasObject, float x, float y) : BPoint(x, y), BPasObject(PasObject)
|
||||
{
|
||||
@@ -87,4 +81,4 @@ void BPoint_Set(TCPlusObject Point, float x, float y)
|
||||
#endif
|
||||
|
||||
|
||||
#endif _POINT_CPP /* _POINT_CPP */
|
||||
#endif _POINT_CPP_ /* _POINT_CPP_ */
|
||||
@@ -16,22 +16,14 @@
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#ifndef _RECT_CPP
|
||||
#define _RECT_CPP
|
||||
#ifndef _RECT_CPP_
|
||||
#define _RECT_CPP_
|
||||
|
||||
#include <Point.h>
|
||||
#include <Rect.h>
|
||||
|
||||
#include <beobj.cpp>
|
||||
|
||||
class BPRect : public BRect, public BPasObject
|
||||
{
|
||||
public:
|
||||
BPRect(TPasObject PasObject);
|
||||
BPRect(TPasObject PasObject, const BRect & rect);
|
||||
BPRect(TPasObject PasObject, float l, float t, float r, float b);
|
||||
BPRect(TPasObject PasObject, BPoint leftTop, BPoint rightBottom);
|
||||
};
|
||||
#include <rect.h>
|
||||
#include <beobj.h>
|
||||
|
||||
BPRect::BPRect(TPasObject PasObject) : BRect(), BPasObject(PasObject)
|
||||
{
|
||||
@@ -89,4 +81,4 @@ void BRect_PrintToStream(TCPlusObject rect)
|
||||
#endif
|
||||
|
||||
|
||||
#endif _RECT_CPP /* _RECT_CPP */
|
||||
#endif _RECT_CPP_ /* _RECT_CPP_ */
|
||||
@@ -23,7 +23,9 @@
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
#include <beobj.cpp>
|
||||
#include <handler.h>
|
||||
#include <view.h>
|
||||
#include <beobj.h>
|
||||
|
||||
// definition of callback function in BView
|
||||
typedef void (*BView_AllAttached_hook) (TPasObject PasObject);
|
||||
@@ -86,38 +88,6 @@ BView_WindowActivated_hook View_WindowActivated_hook;
|
||||
}
|
||||
#endif
|
||||
|
||||
class BPView : public BView, public virtual BPHandler
|
||||
{
|
||||
public:
|
||||
BPView(TPasObject PasObject,
|
||||
BRect frame,
|
||||
const char *name,
|
||||
uint32 resizingMode,
|
||||
uint32 flags);
|
||||
BPView(TPasObject PasObject, BMessage *archive);
|
||||
// virtual void DispatchMessage(BMessage *message, BHandler *target);
|
||||
// virtual bool QuitRequested(void);
|
||||
virtual void AllAttached(void);
|
||||
virtual void AttachedToWindow(void);
|
||||
virtual void AllDetached(void);
|
||||
virtual void DetachedFromWindow(void);
|
||||
virtual void Draw(BRect updateRect);
|
||||
virtual void DrawAfterChildren(BRect updateRect);
|
||||
virtual void FrameMoved(BPoint parentPoint);
|
||||
virtual void FrameResized(float width, float height);
|
||||
virtual void GetPreferredSize(float *width, float *height);
|
||||
virtual void ResizeToPreferred(void);
|
||||
virtual void KeyDown(const char *bytes, int32 numBytes);
|
||||
virtual void KeyUp(const char *bytes, int32 numBytes);
|
||||
virtual void MouseDown(BPoint point);
|
||||
virtual void MouseMoved(BPoint point, uint32 transit, const BMessage *message);
|
||||
virtual void MouseUp(BPoint point);
|
||||
virtual void Pulse(void);
|
||||
// virtual void TargetedByScrollView(BScrollView *scroller);
|
||||
virtual void WindowActivated(bool active);
|
||||
private:
|
||||
};
|
||||
|
||||
BPView::BPView(TPasObject PasObject,
|
||||
BRect frame,
|
||||
const char *name,
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
|
||||
#include <OS.h>
|
||||
|
||||
#include <beobj.cpp>
|
||||
#include <window.h>
|
||||
#include <beobj.h>
|
||||
|
||||
// definition of callback function in BWindow
|
||||
|
||||
@@ -37,20 +38,6 @@ extern "C" {
|
||||
}
|
||||
#endif
|
||||
|
||||
class BPWindow : public BWindow, public BPLooper
|
||||
{
|
||||
public:
|
||||
BPWindow(TPasObject PasObject,
|
||||
BRect frame,
|
||||
const char *title,
|
||||
window_type type,
|
||||
uint32 flags,
|
||||
uint32 workspaces = B_CURRENT_WORKSPACE);
|
||||
// virtual void DispatchMessage(BMessage *message, BHandler *target);
|
||||
// virtual bool QuitRequested(void);
|
||||
private:
|
||||
};
|
||||
|
||||
BPWindow::BPWindow(TPasObject PasObject,
|
||||
BRect frame,
|
||||
const char *title,
|
||||
|
||||
Reference in New Issue
Block a user