Public Types | Public Member Functions | Private Attributes | List of all members
ConfigList Class Reference

#include <config.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
 
QStrListvalueRef ()
 
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
 
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 config.h.

Member Enumeration Documentation

Enumerator
String 
File 
Dir 
FileAndDir 

Definition at line 114 of file config.h.

Constructor & Destructor Documentation

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

Definition at line 115 of file config.h.

117  {
118  m_name = name;
119  m_doc = doc;
121  }
QCString m_name
Definition: config.h:86
WidgetType m_widgetType
Definition: config.h:131
ConfigOption(OptionType t)
Definition: config.h:56
QCString m_doc
Definition: config.h:87
QCString name() const
Definition: config.h:66
QCString doc

Member Function Documentation

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

Definition at line 122 of file config.h.

122 { m_value.append(v); }
QStrList m_value
Definition: config.h:130
void append(const type *d)
Definition: qinternallist.h:61
void ConfigList::init ( )
inlinevirtual

Reimplemented from ConfigOption.

Definition at line 128 of file config.h.

128 { m_value.clear(); }
QStrList m_value
Definition: config.h:130
void ConfigList::setWidgetType ( WidgetType  w)
inline

Definition at line 123 of file config.h.

123 { m_widgetType = w; }
WidgetType m_widgetType
Definition: config.h:131
void ConfigList::substEnvVars ( )
virtual

Implements ConfigOption.

Definition at line 3007 of file config.cpp.

3008 {
3010 }
QStrList m_value
Definition: config.h:130
static void substEnvVarsInStrList(QStrList &sl)
Definition: config.cpp:2918
QStrList* ConfigList::valueRef ( )
inline

Definition at line 125 of file config.h.

125 { return &m_value; }
QStrList m_value
Definition: config.h:130
WidgetType ConfigList::widgetType ( ) const
inline

Definition at line 124 of file config.h.

124 { return m_widgetType; }
WidgetType m_widgetType
Definition: config.h:131
void ConfigList::writeTemplate ( FTextStream t,
bool  sl,
bool   
)
virtual

Implements ConfigOption.

Definition at line 921 of file config.cpp.

922 {
923  if (!sl)
924  {
925  t << endl;
927  t << endl;
928  }
929  else if (!m_userComment.isEmpty())
930  {
932  }
935  t << "\n";
936 }
QCString m_spaces
Definition: config.h:85
QCString m_name
Definition: config.h:86
bool isEmpty() const
Definition: qcstring.h:189
QCString m_userComment
Definition: config.h:90
static QCString convertToComment(const QCString &s, const QCString &u)
Definition: config.cpp:694
uint length() const
Definition: qcstring.h:195
void writeStringList(FTextStream &t, QStrList &l)
Definition: config.cpp:768
QCString left(uint len) const
Definition: qcstring.cpp:213
QStrList m_value
Definition: config.h:130
QCString m_doc
Definition: config.h:87
QTextStream & endl(QTextStream &s)

Member Data Documentation

QStrList ConfigList::m_value
private

Definition at line 130 of file config.h.

WidgetType ConfigList::m_widgetType
private

Definition at line 131 of file config.h.


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