Various bug fixes.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4025 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Phil Greenway 2003-07-20 03:47:34 +00:00
parent 796880c693
commit 57d8f1d980
4 changed files with 8 additions and 5 deletions

View File

@ -35,7 +35,7 @@ DevicesWindow *ptrDevicesWindow;
Devices::Devices() : BApplication (APP_SIGNATURE) Devices::Devices() : BApplication (APP_SIGNATURE)
{ {
// Default Window Size - even though we centre the form to the current screen size // Default Window Size - even though we centre the form to the current screen size
BRect screenFrame = (BScreen(B_MAIN_SCREEN_ID).Frame()); //BRect screenFrame = (BScreen(B_MAIN_SCREEN_ID).Frame());
float FormTopDefault = 0; float FormTopDefault = 0;
float FormLeftDefault = 0; float FormLeftDefault = 0;

View File

@ -16,7 +16,7 @@ class DevicesView : public BView
{ {
public: public:
DevicesView(BRect frame); DevicesView(BRect frame);
virtual void Draw(BRect updateRect); virtual void Draw(BRect updateRect);
}; };
@ -27,3 +27,4 @@ class ResourceUsageView : public BView
}; };
#endif #endif

View File

@ -108,14 +108,14 @@ void DevicesWindow::InitWindow(void)
// Add File menu to menu bar // Add File menu to menu bar
FileMenu = new BMenu("File"); FileMenu = new BMenu("File");
FileMenu->AddItem(new BMenuItem("About Devices" B_UTF8_ELLIPSIS, new BMessage(MENU_FILE_ABOUT_DEVICES), NULL)); FileMenu->AddItem(new BMenuItem("About Devices" B_UTF8_ELLIPSIS, new BMessage(MENU_FILE_ABOUT_DEVICES), 0));
FileMenu->AddSeparatorItem(); FileMenu->AddSeparatorItem();
FileMenu->AddItem(new BMenuItem("Quit", new BMessage(MENU_FILE_QUIT), 'Q')); FileMenu->AddItem(new BMenuItem("Quit", new BMessage(MENU_FILE_QUIT), 'Q'));
DevicesMenu = new BMenu("Devices"); DevicesMenu = new BMenu("Devices");
JumperedDevicesMenu = new BMenu("New Jumpered Device"); JumperedDevicesMenu = new BMenu("New Jumpered Device");
JumperedDevicesMenu->AddItem(new BMenuItem("Custom ...", new BMessage(MENU_DEVICES_NEW_JUMPERED_DEVICE_CUSTOM), NULL)); JumperedDevicesMenu->AddItem(new BMenuItem("Custom ...", new BMessage(MENU_DEVICES_NEW_JUMPERED_DEVICE_CUSTOM), 0));
JumperedDevicesMenu->AddItem(new BMenuItem("Modem ...", new BMessage(MENU_DEVICES_NEW_JUMPERED_DEVICE_MODEM), NULL)); JumperedDevicesMenu->AddItem(new BMenuItem("Modem ...", new BMessage(MENU_DEVICES_NEW_JUMPERED_DEVICE_MODEM), 0));
//DevicesMenu->AddItem(new BMenuItem("New Jumpered Device", new BMessage(MENU_DEVICES_NEW_JUMPERED_DEVICE), NULL)); //DevicesMenu->AddItem(new BMenuItem("New Jumpered Device", new BMessage(MENU_DEVICES_NEW_JUMPERED_DEVICE), NULL));
DevicesMenu->AddItem(JumperedDevicesMenu); DevicesMenu->AddItem(JumperedDevicesMenu);

View File

@ -13,6 +13,7 @@ Devices Windows Header by Sikosis
#include "DevicesViews.h" #include "DevicesViews.h"
class DevicesView; class DevicesView;
class ResourceUsageView;
class DevicesWindow : public BWindow class DevicesWindow : public BWindow
{ {
@ -48,3 +49,4 @@ class ResourceUsageWindow : public BWindow
#endif #endif