2013-05-11 10:55:46 +00:00
|
|
|
#ifndef MODEL_SUPPORT_HPP
|
|
|
|
#define MODEL_SUPPORT_HPP
|
2013-05-08 01:36:34 +00:00
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
class QLayout;
|
|
|
|
class QWidget;
|
|
|
|
class QListWidgetItem;
|
|
|
|
|
2013-05-11 10:55:46 +00:00
|
|
|
namespace CSMSettings
|
2013-05-08 01:36:34 +00:00
|
|
|
{
|
|
|
|
class SettingContainer;
|
|
|
|
|
2013-05-11 10:55:46 +00:00
|
|
|
typedef QList<SettingContainer *> SettingList;
|
|
|
|
typedef QMap<QString, SettingContainer *> SettingMap;
|
2013-07-18 01:19:01 +00:00
|
|
|
typedef QMap<QString, SettingMap *> SectionMap;
|
2013-05-08 01:36:34 +00:00
|
|
|
|
|
|
|
struct QStringPair
|
|
|
|
{
|
|
|
|
QStringPair(): left (""), right ("")
|
|
|
|
{}
|
|
|
|
|
|
|
|
QStringPair (const QString &leftValue, const QString &rightValue)
|
|
|
|
: left (leftValue), right(rightValue)
|
|
|
|
{}
|
|
|
|
|
|
|
|
QStringPair (const QStringPair &pair)
|
|
|
|
: left (pair.left), right (pair.right)
|
|
|
|
{}
|
|
|
|
|
|
|
|
QString left;
|
|
|
|
QString right;
|
|
|
|
|
2013-05-11 10:55:46 +00:00
|
|
|
bool isEmpty() const
|
2013-05-08 01:36:34 +00:00
|
|
|
{ return (left.isEmpty() && right.isEmpty()); }
|
|
|
|
};
|
|
|
|
}
|
2013-05-11 10:55:46 +00:00
|
|
|
#endif // MODEL_SUPPORT_HPP
|