Updated by Mark Hogben <[email protected]>
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8142 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
+514
-501
File diff suppressed because it is too large
Load Diff
+109
-109
@@ -1,109 +1,109 @@
|
|||||||
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
//
|
//
|
||||||
// Copyright (c) 2003-2004, OpenBeOS
|
// Copyright (c) 2003-2004, OpenBeOS
|
||||||
//
|
//
|
||||||
// This software is part of the OpenBeOS distribution and is covered
|
// This software is part of the OpenBeOS distribution and is covered
|
||||||
// by the OpenBeOS license.
|
// by the OpenBeOS license.
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// File: DevicesWindows.h
|
// File: DevicesWindows.h
|
||||||
// Author: Sikosis, Jérôme Duval
|
// Author: Sikosis, Jérôme Duval
|
||||||
// Description: Devices Preferences
|
// Description: Devices Preferences
|
||||||
// Created : March 04, 2003
|
// Created : March 04, 2003
|
||||||
//
|
//
|
||||||
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
// ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
|
||||||
|
|
||||||
|
|
||||||
#ifndef __DEVICESWINDOWS_H__
|
#ifndef __DEVICESWINDOWS_H__
|
||||||
#define __DEVICESWINDOWS_H__
|
#define __DEVICESWINDOWS_H__
|
||||||
|
|
||||||
#include <ListView.h>
|
#include <ListView.h>
|
||||||
#include <Menu.h>
|
#include <Menu.h>
|
||||||
#include <PopUpMenu.h>
|
#include <PopUpMenu.h>
|
||||||
#include <Window.h>
|
#include <Window.h>
|
||||||
|
|
||||||
#include "DevicesInfo.h"
|
#include "DevicesInfo.h"
|
||||||
|
|
||||||
#include "cm_wrapper.h"
|
#include "cm_wrapper.h"
|
||||||
|
|
||||||
#define MODEM_ADDED 'moad'
|
#define MODEM_ADDED 'moad'
|
||||||
|
|
||||||
void CenterWindowOnScreen(BWindow* w);
|
void CenterWindowOnScreen(BWindow* w);
|
||||||
|
|
||||||
class ResourceUsageWindow : public BWindow
|
class ResourceUsageWindow : public BWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ResourceUsageWindow(BRect frame, BList &);
|
ResourceUsageWindow(BRect frame, BList &);
|
||||||
~ResourceUsageWindow();
|
~ResourceUsageWindow();
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage *message);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void InitWindow(BList &);
|
void InitWindow(BList &);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class ModemWindow : public BWindow
|
class ModemWindow : public BWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ModemWindow(BRect frame, BMessenger);
|
ModemWindow(BRect frame, BMessenger);
|
||||||
~ModemWindow();
|
~ModemWindow();
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage *message);
|
||||||
private:
|
private:
|
||||||
void InitWindow(void);
|
void InitWindow(void);
|
||||||
BMessenger fMessenger;
|
BMessenger fMessenger;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ConfigurationWindow : public BWindow
|
class ConfigurationWindow : public BWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ConfigurationWindow(BRect frame, DeviceItem *item);
|
ConfigurationWindow(BRect frame, DeviceItem *item);
|
||||||
~ConfigurationWindow();
|
~ConfigurationWindow();
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage *message);
|
||||||
private:
|
private:
|
||||||
void InitWindow(void);
|
void InitWindow(void);
|
||||||
DeviceItem *fItem;
|
DeviceItem *fItem;
|
||||||
BMenu *fConfigurationMenu;
|
BMenu *fConfigurationMenu;
|
||||||
BPopUpMenu *fIRQMenu[3];
|
BPopUpMenu *fIRQMenu[3];
|
||||||
BMenuField *fIRQField[3];
|
BMenuField *fIRQField[3];
|
||||||
BPopUpMenu *fDMAMenu[3];
|
BPopUpMenu *fDMAMenu[3];
|
||||||
BMenuField *fDMAField[3];
|
BMenuField *fDMAField[3];
|
||||||
BListView *ioListView, *memoryListView;
|
BListView *ioListView, *memoryListView;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class DevicesWindow : public BWindow
|
class DevicesWindow : public BWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DevicesWindow(BRect frame);
|
DevicesWindow(BRect frame);
|
||||||
~DevicesWindow();
|
~DevicesWindow();
|
||||||
virtual bool QuitRequested();
|
virtual bool QuitRequested();
|
||||||
virtual void MessageReceived(BMessage *message);
|
virtual void MessageReceived(BMessage *message);
|
||||||
private:
|
private:
|
||||||
void InitWindow(void);
|
void InitWindow(void);
|
||||||
void InitDevices(bus_type bus);
|
void InitDevices(bus_type bus);
|
||||||
void LoadSettings(BMessage *msg);
|
void LoadSettings(BMessage *msg);
|
||||||
void SaveSettings(void);
|
void SaveSettings(void);
|
||||||
void UpdateDeviceInfo();
|
void UpdateDeviceInfo();
|
||||||
|
void BlankDeviceInfoBox();
|
||||||
ResourceUsageWindow* ptrResourceUsageWindow;
|
|
||||||
ModemWindow* ptrModemWindow;
|
ResourceUsageWindow* ptrResourceUsageWindow;
|
||||||
|
ModemWindow* ptrModemWindow;
|
||||||
BStringView *stvDeviceName;
|
|
||||||
BStringView *stvCurrentState;
|
BStringView *stvDeviceName;
|
||||||
BMenuBar *menubar;
|
BStringView *stvCurrentState;
|
||||||
|
BMenuBar *menubar;
|
||||||
BList fList;
|
|
||||||
|
BList fList;
|
||||||
BListItem *systemMenu, *isaMenu, *pciMenu, *jumperedMenu;
|
|
||||||
BOutlineListView *outline;
|
BListItem *systemMenu, *isaMenu, *pciMenu, *jumperedMenu;
|
||||||
BStringView *stvIRQ;
|
BOutlineListView *outline;
|
||||||
BStringView *stvDMA;
|
BStringView *stvIRQ;
|
||||||
BStringView *stvIORanges;
|
BStringView *stvDMA;
|
||||||
BStringView *stvMemoryRanges;
|
BStringView *stvIORanges;
|
||||||
BButton *btnConfigure;
|
BStringView *stvMemoryRanges;
|
||||||
};
|
BButton *btnConfigure;
|
||||||
|
};
|
||||||
#endif
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user