1/*
2
3The Amazing TreeView Header !
4
5Author: Misza (misza@ihug.com.au)
6
7(C) 2002 OpenBeOS under MIT license
8
9*/
10
11#ifndef __TREEVIEW_H__
12#define __TREEVIEW_H__
13
14#include <iostream>
15#include <stdio.h>
16#include <Application.h>
17#include <InterfaceKit.h>
18
19class TreeView : public BView
20{
21	public:
22		TreeView(BRect r);
23		virtual void Draw(BRect updateRect);//Draws the little triangle depending on the state
24		virtual void MouseDown(BPoint point);
25		virtual void MouseUp(BPoint point);
26		bool TreeViewStatus() { return status;}
27		void SetTreeViewStatus(bool condition);
28	private:
29		bool status;//0 == off && 1 == on
30		bool down;
31};
32#endif
33