home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 February
/
Chip_2004-02_cd1.bin
/
zkuste
/
konfig
/
download
/
msic
/
Help
/
Int
/
MSI_GUI.int
< prev
next >
Wrap
Text File
|
2003-08-26
|
4KB
|
95 lines
{*******************************************************}
{ }
{ MiTeC System Information Component }
{ version 8.3 for Delphi 5,6,7 }
{ }
{ Copyright ⌐ 1997,2003 Michal Mutl }
{ }
{*******************************************************}
{$INCLUDE MITEC_DEF.INC}
unit MSI_GUI;
interface
uses
MSI_CPU, MSI_Machine, MSI_Devices, MSI_Display, MSI_Network, MSI_Media,
MSI_Memory, MSI_Engines, MSI_APM, MSI_Disk, MSI_OS, MSI_SMBIOS,
MSI_Printers, MSI_Software, MSI_Startup, MSI_Common, MSI_Storage,
MSI_USB, MSI_Processes,
SysUtils, Windows, Classes;
type
TInfoPage = (pgWksta, pgOS, pgCPU, pgMem, pgDisplay, pgAPM, pgMedia, pgNet, pgDev,
pgPrn, pgStorage, pgUSB, pgEng, pgDisk, pgTZ, pgStartup, pgSoftware,
pgProcesses, pgAbout);
TInfoPages = set of TInfoPage;
const
pgAll = [pgWksta, pgOS, pgCPU, pgMem, pgDisplay, pgAPM, pgMedia, pgNet, pgDev,
pgPrn, pgEng, pgStorage, pgUSB, pgDisk, pgTZ, pgStartup, pgSoftware, pgProcesses];
type
TMSystemInfo = class(TComponent)
private
FCPU: TCPU;
FMemory: TMemory;
FOS :TOperatingSystem;
FDisk :TDisk;
FMachine: TMachine;
FNetwork: TNetwork;
FDisplay: TDisplay;
FEngines: TEngines;
FDevices: TDevices;
FAPM :TAPM;
FAbout: string;
FMedia: TMedia;
FPrinters: TPrinters;
FSoftware: TSoftware;
FStartup: TStartup;
FMode: TExceptionMode;
FStorage: TStorage;
FUSB: TUSB;
FProcessList: TProcessList;
{$IFNDEF D6PLUS}
procedure SetAbout(const Value: string);
{$ENDIF}
procedure SetMode(const Value: TExceptionMode);
public
constructor Create(AOwner :TComponent); override;
destructor Destroy; override;
procedure Refresh;
procedure Report(var sl :TStringList); virtual;
procedure ShowModalOverview(ReportButton: Boolean = True; ForceRefresh: Boolean = True; APages: TInfoPages = pgAll);
procedure ShowModalOverviewWithAbout(ReportButton: Boolean = True; ForceRefresh: Boolean = True; APages: TInfoPages = pgAll);
procedure ShowOverview(ReportButton: Boolean = True; ForceRefresh: Boolean = True; APages: TInfoPages = pgAll);
procedure ShowOverviewWithAbout(ReportButton: Boolean = True; ForceRefresh: Boolean = True; APages: TInfoPages = pgAll);
procedure ExportOverview(var sl: TStringList);
published
property About :string read FAbout {$IFNDEF D6PLUS} write SetAbout {$ENDIF} stored False;
property ExceptionMode: TExceptionMode read FMode Write SetMode;
property CPU :TCPU read FCPU {$IFNDEF D6PLUS} write FCPU {$ENDIF};
property Memory :TMemory read FMemory {$IFNDEF D6PLUS} write FMemory {$ENDIF};
property OS :TOperatingSystem read FOS {$IFNDEF D6PLUS} write FOS {$ENDIF};
property Disk :TDisk read FDisk {$IFNDEF D6PLUS} write FDisk {$ENDIF};
property Machine :TMachine read FMachine {$IFNDEF D6PLUS} write FMachine {$ENDIF};
property Network :TNetwork read FNetwork {$IFNDEF D6PLUS} write FNetwork {$ENDIF};
property Display :TDisplay read FDisplay {$IFNDEF D6PLUS} write FDisplay {$ENDIF};
property Media :TMedia read FMedia {$IFNDEF D6PLUS} write FMedia {$ENDIF};
property Devices :TDevices read FDevices {$IFNDEF D6PLUS} write FDevices {$ENDIF};
property Storage :TStorage read FStorage {$IFNDEF D6PLUS} write FStorage {$ENDIF};
property USB :TUSB read FUSB {$IFNDEF D6PLUS} write FUSB {$ENDIF};
property Engines :TEngines read FEngines {$IFNDEF D6PLUS} write FEngines {$ENDIF};
property APM :TAPM read FAPM {$IFNDEF D6PLUS} write FAPM {$ENDIF};
property Printers :TPrinters read FPrinters {$IFNDEF D6PLUS} write FPrinters {$ENDIF};
property Software :TSoftware read FSoftware {$IFNDEF D6PLUS} write FSoftware {$ENDIF};
property Startup: TStartup read FStartup {$IFNDEF D6PLUS} write FStartup {$ENDIF};
property ProcessList: TProcessList read FProcessList {$IFNDEF D6PLUS} write FProcessList {$ENDIF};
end;
implementation