doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
MEOptions Class Reference

Wrapper class that is responsible for reading and writing Material Editor settings to the registry. More...

#include <MEOptions.h>

Public Member Functions

 MEOptions ()
 Constructor for MEOptions. More...
 
 ~MEOptions ()
 Destructor for MEOptions. More...
 
bool Save (void)
 Saves the material editor options to the registry. More...
 
bool Load (void)
 Loads the material editor options from the registry. More...
 
void SetModified (bool mod=true)
 Sets the flag that determines if the settings need to be saved because they where modified. More...
 
bool GetModified ()
 Get the flag that determines if the settings need to be saved because they where modified. More...
 
void SetWindowPlacement (const char *name, HWND hwnd)
 
bool GetWindowPlacement (const char *name, HWND hwnd)
 
void SetMaterialTreeWidth (int width)
 
int GetMaterialTreeWidth ()
 
void SetStageWidth (int width)
 
int GetStageWidth ()
 
void SetPreviewPropertiesWidth (int width)
 
int GetPreviewPropertiesWidth ()
 
void SetMaterialEditHeight (int height)
 
int GetMaterialEditHeight ()
 
void SetMaterialPropHeadingWidth (int width)
 
int GetMaterialPropHeadingWidth ()
 
void SetPreviewPropHeadingWidth (int width)
 
int GetPreviewPropHeadingWidth ()
 

Protected Attributes

rvRegistryOptions registry
 
bool modified
 
int materialTreeWidth
 
int stageWidth
 
int previewPropertiesWidth
 
int materialEditHeight
 
int materialPropHeadingWidth
 
int previewPropHeadingWidth
 

Detailed Description

Wrapper class that is responsible for reading and writing Material Editor settings to the registry.

Settings are written to Software\id Software\DOOM3\Tools\MaterialEditor

Definition at line 37 of file MEOptions.h.

Constructor & Destructor Documentation

MEOptions::MEOptions ( )

Constructor for MEOptions.

Definition at line 36 of file MEOptions.cpp.

MEOptions::~MEOptions ( )

Destructor for MEOptions.

Definition at line 52 of file MEOptions.cpp.

Member Function Documentation

ID_INLINE int MEOptions::GetMaterialEditHeight ( )

Definition at line 132 of file MEOptions.h.

ID_INLINE int MEOptions::GetMaterialPropHeadingWidth ( )

Definition at line 141 of file MEOptions.h.

ID_INLINE int MEOptions::GetMaterialTreeWidth ( )

Definition at line 105 of file MEOptions.h.

bool MEOptions::GetModified ( )
inline

Get the flag that determines if the settings need to be saved because they where modified.

Definition at line 55 of file MEOptions.h.

ID_INLINE int MEOptions::GetPreviewPropertiesWidth ( )

Definition at line 123 of file MEOptions.h.

ID_INLINE int MEOptions::GetPreviewPropHeadingWidth ( )

Definition at line 150 of file MEOptions.h.

ID_INLINE int MEOptions::GetStageWidth ( )

Definition at line 114 of file MEOptions.h.

ID_INLINE bool MEOptions::GetWindowPlacement ( const char *  name,
HWND  hwnd 
)

Definition at line 96 of file MEOptions.h.

bool MEOptions::Load ( void  )

Loads the material editor options from the registry.

Definition at line 73 of file MEOptions.cpp.

bool MEOptions::Save ( void  )

Saves the material editor options to the registry.

Definition at line 58 of file MEOptions.cpp.

ID_INLINE void MEOptions::SetMaterialEditHeight ( int  height)

Definition at line 127 of file MEOptions.h.

ID_INLINE void MEOptions::SetMaterialPropHeadingWidth ( int  width)

Definition at line 136 of file MEOptions.h.

ID_INLINE void MEOptions::SetMaterialTreeWidth ( int  width)

Definition at line 100 of file MEOptions.h.

void MEOptions::SetModified ( bool  mod = true)
inline

Sets the flag that determines if the settings need to be saved because they where modified.

Definition at line 50 of file MEOptions.h.

ID_INLINE void MEOptions::SetPreviewPropertiesWidth ( int  width)

Definition at line 118 of file MEOptions.h.

ID_INLINE void MEOptions::SetPreviewPropHeadingWidth ( int  width)

Definition at line 145 of file MEOptions.h.

ID_INLINE void MEOptions::SetStageWidth ( int  width)

Definition at line 109 of file MEOptions.h.

ID_INLINE void MEOptions::SetWindowPlacement ( const char *  name,
HWND  hwnd 
)

Definition at line 92 of file MEOptions.h.

Member Data Documentation

int MEOptions::materialEditHeight
protected

Definition at line 86 of file MEOptions.h.

int MEOptions::materialPropHeadingWidth
protected

Definition at line 87 of file MEOptions.h.

int MEOptions::materialTreeWidth
protected

Definition at line 83 of file MEOptions.h.

bool MEOptions::modified
protected

Definition at line 81 of file MEOptions.h.

int MEOptions::previewPropertiesWidth
protected

Definition at line 85 of file MEOptions.h.

int MEOptions::previewPropHeadingWidth
protected

Definition at line 88 of file MEOptions.h.

rvRegistryOptions MEOptions::registry
protected

Definition at line 79 of file MEOptions.h.

int MEOptions::stageWidth
protected

Definition at line 84 of file MEOptions.h.


The documentation for this class was generated from the following files: