Just more updates ... working on getting Pictures on the OutlineView.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2793 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -34,3 +34,18 @@ void MediaView::Draw(BRect updateRect)
|
||||
}
|
||||
// ---------------------------------------------------------------------------------------------------------- //
|
||||
|
||||
// IconView - Constructor
|
||||
IconView::IconView (BRect frame) : BView (frame, "IconView", B_FOLLOW_ALL_SIDES, B_WILL_DRAW )
|
||||
{
|
||||
|
||||
}
|
||||
// ---------------------------------------------------------------------------------------------------------- //
|
||||
|
||||
|
||||
void IconView::Draw(BRect updateRect)
|
||||
{
|
||||
BRect r;
|
||||
r = Bounds();
|
||||
}
|
||||
// ---------------------------------------------------------------------------------------------------------- //
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
MediaViews Header by Sikosis
|
||||
|
||||
(C)2002
|
||||
(C)2003
|
||||
|
||||
*/
|
||||
|
||||
@@ -19,4 +19,12 @@ class MediaView : public BView
|
||||
virtual void Draw(BRect updateRect);
|
||||
};
|
||||
|
||||
class IconView : public BView
|
||||
{
|
||||
public:
|
||||
IconView(BRect frame);
|
||||
virtual void Draw(BRect updateRect);
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -83,6 +83,11 @@ void MediaWindow::InitWindow(void)
|
||||
outline->AddUnder(submenu = new BStringItem("Video Window Consumer"), topmenu);
|
||||
outlinesv = new BScrollView("scroll_audio", outline, B_FOLLOW_LEFT|B_FOLLOW_TOP, 0, false, false, B_FANCY_BORDER);
|
||||
|
||||
BRect IconRect(0,0,16,16);
|
||||
ptrIconView = new IconView(IconRect);
|
||||
|
||||
topmenu->DrawItem(ptrIconView,IconRect,false);
|
||||
|
||||
// Setup the OutlineView
|
||||
outlinesv->SetBorderHighlighted(true);
|
||||
outline->SetHighColor(0,0,0,0);
|
||||
|
||||
@@ -13,6 +13,7 @@ Media Windows Header by Sikosis
|
||||
#include "MediaViews.h"
|
||||
|
||||
class MediaView;
|
||||
class IconView;
|
||||
|
||||
class MediaWindow : public BWindow
|
||||
{
|
||||
@@ -26,6 +27,7 @@ class MediaWindow : public BWindow
|
||||
void InitWindow(void);
|
||||
|
||||
MediaView* ptrMediaView;
|
||||
IconView* ptrIconView;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user