My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
ConfigString Class Reference

#include <configimpl.h>

Inheritance diagram for ConfigString:
ConfigOption

Public Types

enum  WidgetType { String, File, Dir, Image }
 
- Public Types inherited from ConfigOption
enum  OptionType {
  O_Info, O_List, O_Enum, O_String,
  O_Int, O_Bool, O_Obsolete, O_Disabled
}
 
enum  { MAX_OPTION_LENGTH = 23 }
 

Public Member Functions

 ConfigString (const char *name, const char *doc)
 
 ~ConfigString ()
 
void setWidgetType (WidgetType w)
 
WidgetType widgetType () const
 
void setDefaultValue (const char *v)
 
QCString * valueRef ()
 
void writeTemplate (FTextStream &t, bool sl, bool)
 
void substEnvVars ()
 
void init ()
 
- Public Member Functions inherited from ConfigOption
 ConfigOption (OptionType t)
 
virtual ~ConfigOption ()
 
OptionType kind () const
 
QCString name () const
 
QCString docs () const
 
QCString dependsOn () const
 
void addDependency (const char *dep)
 
void setEncoding (const QCString &e)
 
void setUserComment (const QCString &u)
 

Private Attributes

QCString m_value
 
QCString m_defValue
 
WidgetType m_widgetType
 

Additional Inherited Members

- Protected Member Functions inherited from ConfigOption
virtual void convertStrToVal ()
 
void writeBoolValue (FTextStream &t, bool v)
 
void writeIntValue (FTextStream &t, int i)
 
void writeStringValue (FTextStream &t, QCString &s)
 
void writeStringList (FTextStream &t, QStrList &l)
 
- Protected Attributes inherited from ConfigOption
QCString m_spaces
 
QCString m_name
 
QCString m_doc
 
QCString m_dependency
 
QCString m_encoding
 
QCString m_userComment
 
OptionType m_kind
 

Detailed Description

Class representing a string type option.

Definition at line 166 of file configimpl.h.

Member Enumeration Documentation

Enumerator
String 
File 
Dir 
Image 

Definition at line 169 of file configimpl.h.

Constructor & Destructor Documentation

ConfigString::ConfigString ( const char *  name,
const char *  doc 
)
inline
ConfigString::~ConfigString ( )
inline

Definition at line 177 of file configimpl.h.

{
}

Member Function Documentation

void ConfigString::init ( )
inlinevirtual

Reimplemented from ConfigOption.

Definition at line 186 of file configimpl.h.

References m_defValue, and m_value.

{ m_value = m_defValue.copy(); }
void ConfigString::setDefaultValue ( const char *  v)
inline

Definition at line 182 of file configimpl.h.

References m_defValue.

{ m_defValue = v; }
void ConfigString::setWidgetType ( WidgetType  w)
inline

Definition at line 180 of file configimpl.h.

References m_widgetType.

{ m_widgetType = w; }
void ConfigString::substEnvVars ( )
virtual

Implements ConfigOption.

QCString* ConfigString::valueRef ( )
inline

Definition at line 183 of file configimpl.h.

References m_value.

{ return &m_value; }
WidgetType ConfigString::widgetType ( ) const
inline

Definition at line 181 of file configimpl.h.

References m_widgetType.

{ return m_widgetType; }
void ConfigString::writeTemplate ( FTextStream t,
bool  sl,
bool   
)
virtual

Implements ConfigOption.

Member Data Documentation

QCString ConfigString::m_defValue
private

Definition at line 190 of file configimpl.h.

Referenced by init(), and setDefaultValue().

QCString ConfigString::m_value
private

Definition at line 189 of file configimpl.h.

Referenced by init(), and valueRef().

WidgetType ConfigString::m_widgetType
private

Definition at line 191 of file configimpl.h.

Referenced by ConfigString(), setWidgetType(), and widgetType().


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