📄 suimgr.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Suimgr.pas' rev: 10.00
#ifndef SuimgrHPP
#define SuimgrHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Typinfo.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Suithemes.hpp> // Pascal unit
#include <Sui2define.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Suimgr
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TsuiFileTheme;
class PASCALIMPLEMENTATION TsuiFileTheme : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
Suithemes::TsuiFileThemeMgr* m_Mgr;
AnsiString m_ThemeFile;
bool m_CanUse;
AnsiString m_Password;
void __fastcall SetThemeFile(const AnsiString Value);
void __fastcall SetCanUse(const bool Value);
void __fastcall SetPassword(const AnsiString Value);
public:
__fastcall virtual TsuiFileTheme(Classes::TComponent* AOwner);
__fastcall virtual ~TsuiFileTheme(void);
bool __fastcall CanUse(void);
Graphics::TBitmap* __fastcall GetBitmap(const Sui2define::Tsk2SkinBitmapElement Index);
void __fastcall GetBitmap2(const Sui2define::Tsk2SkinBitmapElement Index, const Graphics::TBitmap* Buf, int SpitCount, int SpitIndex);
int __fastcall GetInt(const Sui2define::Tsk2IntElement Index);
Graphics::TColor __fastcall GetColor(const Sui2define::Tsk2SkinColorElement Index);
bool __fastcall GetBool(const Sui2define::Tsk2BoolElement Index);
__published:
__property AnsiString ThemeFile = {read=m_ThemeFile, write=SetThemeFile};
__property AnsiString Password = {read=m_Password, write=SetPassword};
__property bool Ready = {read=m_CanUse, write=SetCanUse, nodefault};
};
class DELPHICLASS TsuiBuiltInFileTheme;
class PASCALIMPLEMENTATION TsuiBuiltInFileTheme : public TsuiFileTheme
{
typedef TsuiFileTheme inherited;
private:
AnsiString m_OldThemeFile;
void __fastcall SetThemeFile2(const AnsiString Value);
void __fastcall ReadSkinData(Classes::TStream* Stream);
void __fastcall WriteSkinData(Classes::TStream* Stream);
protected:
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
__published:
__property AnsiString ThemeFile = {read=m_OldThemeFile, write=SetThemeFile2};
public:
#pragma option push -w-inl
/* TsuiFileTheme.Create */ inline __fastcall virtual TsuiBuiltInFileTheme(Classes::TComponent* AOwner) : TsuiFileTheme(AOwner) { }
#pragma option pop
#pragma option push -w-inl
/* TsuiFileTheme.Destroy */ inline __fastcall virtual ~TsuiBuiltInFileTheme(void) { }
#pragma option pop
};
class DELPHICLASS TsuiThemeMgrCompList;
class PASCALIMPLEMENTATION TsuiThemeMgrCompList : public Classes::TStringList
{
typedef Classes::TStringList inherited;
public:
#pragma option push -w-inl
/* TStringList.Destroy */ inline __fastcall virtual ~TsuiThemeMgrCompList(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TsuiThemeMgrCompList(void) : Classes::TStringList() { }
#pragma option pop
};
class DELPHICLASS TsuiThemeManager;
class PASCALIMPLEMENTATION TsuiThemeManager : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
Suithemes::TsuiUIStyle m_UIStyle;
TsuiFileTheme* m_FileTheme;
TsuiThemeMgrCompList* m_List;
Classes::TNotifyEvent m_OnUIStyleChanged;
void __fastcall SetUIStyle(const Suithemes::TsuiUIStyle Value);
void __fastcall UpdateAll(void);
void __fastcall SetList(const TsuiThemeMgrCompList* Value);
void __fastcall SetFileTheme(const TsuiFileTheme* Value);
protected:
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
public:
__fastcall virtual TsuiThemeManager(Classes::TComponent* AOwner);
__fastcall virtual ~TsuiThemeManager(void);
void __fastcall UpdateTheme(void);
__published:
__property Suithemes::TsuiUIStyle UIStyle = {read=m_UIStyle, write=SetUIStyle, nodefault};
__property TsuiFileTheme* FileTheme = {read=m_FileTheme, write=SetFileTheme};
__property TsuiThemeMgrCompList* CompList = {read=m_List, write=SetList};
__property Classes::TNotifyEvent OnUIStyleChanged = {read=m_OnUIStyleChanged, write=m_OnUIStyleChanged};
};
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall ThemeManagerEdit(TsuiThemeManager* AComp);
extern PACKAGE void __fastcall FileThemeEdit(TsuiFileTheme* AComp);
extern PACKAGE void __fastcall BuiltInFileThemeEdit(TsuiBuiltInFileTheme* AComp);
extern PACKAGE bool __fastcall UsingFileTheme(const TsuiFileTheme* FileTheme, const Suithemes::TsuiUIStyle UIStyle, /* out */ Suithemes::TsuiUIStyle &SuggUIStyle);
} /* namespace Suimgr */
using namespace Suimgr;
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // Suimgr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -