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:
Phil Greenway
2003-02-22 15:23:33 +00:00
parent f12fd5c399
commit a43d640a6c
4 changed files with 31 additions and 1 deletions
+15
View File
@@ -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();
}
// ---------------------------------------------------------------------------------------------------------- //
+9 -1
View File
@@ -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
+5
View File
@@ -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);
+2
View File
@@ -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