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
ConfigList Class Reference

#include <configimpl.h>

Inheritance diagram for ConfigList:
ConfigOption

Public Types

enum  WidgetType { String, File, Dir, FileAndDir }
 
- 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

 ConfigList (const char *name, const char *doc)
 
void addValue (const char *v)
 
void setWidgetType (WidgetType w)
 
WidgetType widgetType () const
 
QStrList * 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

QStrList m_value
 
QStrList m_defaultValue
 
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 respresenting a list type option.

Definition at line 111 of file configimpl.h.

Member Enumeration Documentation

Enumerator
String 
File 
Dir 
FileAndDir 

Definition at line 114 of file configimpl.h.

Constructor & Destructor Documentation

ConfigList::ConfigList ( const char *  name,
const char *  doc 
)
inline

Member Function Documentation

void ConfigList::addValue ( const char *  v)
inline

Definition at line 122 of file configimpl.h.

References m_defaultValue.

{ m_defaultValue.append(v); }
void ConfigList::init ( )
inlinevirtual

Reimplemented from ConfigOption.

Definition at line 128 of file configimpl.h.

References m_defaultValue, and m_value.

void ConfigList::setWidgetType ( WidgetType  w)
inline

Definition at line 123 of file configimpl.h.

References m_widgetType.

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

Implements ConfigOption.

QStrList* ConfigList::valueRef ( )
inline

Definition at line 125 of file configimpl.h.

References m_value.

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

Definition at line 124 of file configimpl.h.

References m_widgetType.

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

Implements ConfigOption.

Member Data Documentation

QStrList ConfigList::m_defaultValue
private

Definition at line 131 of file configimpl.h.

Referenced by addValue(), and init().

QStrList ConfigList::m_value
private

Definition at line 130 of file configimpl.h.

Referenced by init(), and valueRef().

WidgetType ConfigList::m_widgetType
private

Definition at line 132 of file configimpl.h.

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


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