OpenMW
apps/opencs/model/settings/support.hpp
Go to the documentation of this file.
00001 #ifndef MODEL_SUPPORT_HPP
00002 #define MODEL_SUPPORT_HPP
00003 
00004 #include <QObject>
00005 #include <QStringList>
00006 
00007 class QLayout;
00008 class QWidget;
00009 class QListWidgetItem;
00010 
00011 namespace CSMSettings
00012 {
00013     class SettingContainer;
00014 
00015     typedef QList<SettingContainer *>          SettingList;
00016     typedef QMap<QString, SettingContainer *>  SettingMap;
00017     typedef QMap<QString, SettingMap *>        SectionMap;
00018 
00019     struct QStringPair
00020     {
00021         QStringPair(): left (""), right ("")
00022         {}
00023 
00024         QStringPair (const QString &leftValue, const QString &rightValue)
00025             : left (leftValue), right(rightValue)
00026         {}
00027 
00028         QStringPair (const QStringPair &pair)
00029             : left (pair.left), right (pair.right)
00030         {}
00031 
00032         QString left;
00033         QString right;
00034 
00035         bool isEmpty() const
00036         { return (left.isEmpty() && right.isEmpty()); }
00037     };
00038 }
00039 #endif // MODEL_SUPPORT_HPP