Пример #1
0
void Ash::readSaveData(std::istream& is)
{
	std::cout << "Ash::readSaveData()\t: reading and setting save data" << std::endl;
	boost::archive::text_iarchive ia(is);
	SaveData data;	ia >> data;
	setSaveData(data);
	std::cout << "Ash::readSaveData()\t: done." << std::endl;
}
Пример #2
0
Settings::Settings(QMap<QString, QVariant> language, QMap<QString, QString> settings, QWidget *parent) :
    QDialog(parent),
    ui(new Ui::Settings)
{
    ui->setupUi(this);

    setLanguageChoice(language);

    setLanguage(settings);
    setNewData(settings);
    setLoadData(settings);
    setSaveAsData(settings);
    setSaveData(settings);
    setQuit(settings);
    setUsers(settings);
    setSearch(settings);
    setSeeCategory(settings);
    setAddCategory(settings);
    setRemoveCategory(settings);
    setSeeMedia(settings);
    setAddMedia(settings);
    setRemoveMedia(settings);
    setSettings(settings);
}