ResourceUsageWindow is now the correct type and size. Researching that tabby thing atm ...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4026 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
57d8f1d980
commit
b87ce267f2
@ -280,6 +280,11 @@ void DevicesWindow::MessageReceived (BMessage *message)
|
|||||||
QuitRequested();
|
QuitRequested();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MENU_DEVICES_RESOURCE_USAGE:
|
||||||
|
{
|
||||||
|
ptrResourceUsageWindow = new ResourceUsageWindow(BRect (0,0,430,350));
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
BWindow::MessageReceived(message);
|
BWindow::MessageReceived(message);
|
||||||
break;
|
break;
|
||||||
|
@ -15,6 +15,18 @@ Devices Windows Header by Sikosis
|
|||||||
class DevicesView;
|
class DevicesView;
|
||||||
class ResourceUsageView;
|
class ResourceUsageView;
|
||||||
|
|
||||||
|
class ResourceUsageWindow : public BWindow
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
ResourceUsageWindow(BRect frame);
|
||||||
|
~ResourceUsageWindow();
|
||||||
|
virtual void MessageReceived(BMessage *message);
|
||||||
|
private:
|
||||||
|
void InitWindow(void);
|
||||||
|
ResourceUsageView* ptrResourceUsageView;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
class DevicesWindow : public BWindow
|
class DevicesWindow : public BWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -27,6 +39,7 @@ class DevicesWindow : public BWindow
|
|||||||
void InitWindow(void);
|
void InitWindow(void);
|
||||||
void LoadSettings(BMessage *msg);
|
void LoadSettings(BMessage *msg);
|
||||||
void SaveSettings(void);
|
void SaveSettings(void);
|
||||||
|
ResourceUsageWindow* ptrResourceUsageWindow;
|
||||||
|
|
||||||
BStringView *stvDeviceName;
|
BStringView *stvDeviceName;
|
||||||
BStringView *stvCurrentState;
|
BStringView *stvCurrentState;
|
||||||
@ -35,18 +48,6 @@ class DevicesWindow : public BWindow
|
|||||||
DevicesView* ptrDevicesView;
|
DevicesView* ptrDevicesView;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ResourceUsageWindow : public BWindow
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
ResourceUsageWindow(BRect frame);
|
|
||||||
~ResourceUsageWindow();
|
|
||||||
virtual void MessageReceived(BMessage *message);
|
|
||||||
private:
|
|
||||||
void InitWindow(void);
|
|
||||||
ResourceUsageView* ptrResourceUsageView;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ static void CenterWindowOnScreen(BWindow* w)
|
|||||||
// -------------------------------------------------------------------------------------------------- //
|
// -------------------------------------------------------------------------------------------------- //
|
||||||
|
|
||||||
// ResourceUsageWindow - Constructor
|
// ResourceUsageWindow - Constructor
|
||||||
ResourceUsageWindow::ResourceUsageWindow(BRect frame) : BWindow (frame, "ResourceUsageWindow", B_TITLED_WINDOW, B_NORMAL_WINDOW_FEEL , 0)
|
ResourceUsageWindow::ResourceUsageWindow(BRect frame) : BWindow (frame, "Resource Usage", B_TITLED_WINDOW, B_MODAL_SUBSET_WINDOW_FEEL , 0)
|
||||||
{
|
{
|
||||||
InitWindow();
|
InitWindow();
|
||||||
CenterWindowOnScreen(this);
|
CenterWindowOnScreen(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user