From 0ada6e8547cbad42e852ab187808ed467c9ecc7a Mon Sep 17 00:00:00 2001 From: Herwig Birke Date: Wed, 27 Jun 2018 15:50:11 +0200 Subject: [PATCH] implementation of file properties --- cpropertieswindow.cpp | 17 +- cpropertieswindow.h | 8 + cpropertieswindow.ui | 801 +++++++++++++++++++++++++++++------------- cscene.cpp | 1 - cstorybook.cpp | 227 +++++++++++- cstorybook.h | 96 ++++- 6 files changed, 880 insertions(+), 270 deletions(-) diff --git a/cpropertieswindow.cpp b/cpropertieswindow.cpp index 5cb3030..96d7974 100644 --- a/cpropertieswindow.cpp +++ b/cpropertieswindow.cpp @@ -15,6 +15,13 @@ cPropertiesWindow::cPropertiesWindow(QWidget *parent) : ui->setupUi(this); ui->m_lpTab->setCurrentIndex(0); + fillFontSize(ui->m_lpAuthorFontSize); + fillFontSize(ui->m_lpChapterNameFontSize); + fillFontSize(ui->m_lpPartNameFontSize); + fillFontSize(ui->m_lpSceneNameFontSize); + fillFontSize(ui->m_lpSubtitleFontSize); + fillFontSize(ui->m_lpTitleFontSize); + connect(ui->m_lpTitle, &cLineEdit::gotFocus, (cMainWindow*)parent, &cMainWindow::onLineEditGotFocus); connect(ui->m_lpTitle, &cLineEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onLineEditLostFocus); @@ -40,7 +47,6 @@ cPropertiesWindow::cPropertiesWindow(QWidget *parent) : connect(ui->m_lpDescription, &cTextEdit::lostFocus, (cMainWindow*)parent, &cMainWindow::onTextEditLostFocus); } - cPropertiesWindow::~cPropertiesWindow() { delete ui; @@ -125,3 +131,12 @@ void cPropertiesWindow::onDescriptionChanged() { m_lpMainWindow->somethingChanged(); } + +void cPropertiesWindow::fillFontSize(QComboBox* lpComboBox) +{ + lpComboBox->setEditable(true); + + const QList standardSizes = QFontDatabase::standardSizes(); + foreach(int size, standardSizes) + lpComboBox->addItem(QString::number(size)); +} diff --git a/cpropertieswindow.h b/cpropertieswindow.h index 0e6b2d8..b6c2c09 100644 --- a/cpropertieswindow.h +++ b/cpropertieswindow.h @@ -121,6 +121,14 @@ private: Ui::cPropertiesWindow* ui; /*!< TODO: describe */ cMainWindow* m_lpMainWindow; /*!< TODO: describe */ cBook* m_lpBook; /*!< TODO: describe */ + + /*! + \brief + + \fn fillFontSize + \param lpComboBox + */ + void fillFontSize(QComboBox* lpComboBox); }; #endif // CPROPERTIESWINDOW_H diff --git a/cpropertieswindow.ui b/cpropertieswindow.ui index c65d031..f0f2753 100644 --- a/cpropertieswindow.ui +++ b/cpropertieswindow.ui @@ -147,7 +147,7 @@ Export/Print - + true @@ -161,242 +161,8 @@ 707 - - - - - Chapter - - - - - - - - print name - - - - - - - print text - - - - - - - print description - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - Part - - - - - - - - print name - - - - - - - print description - - - - - - - print text - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Scene - - - - - - - - name - - - - - - - description - - - - - - - text - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Book - - - - - - - - print title - - - - - - - print subtitle - - - - - - - print short description - - - - - - - print description - - - - - - - print author - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Page @@ -404,13 +170,6 @@ - - - - paper size: - - - @@ -419,7 +178,7 @@ - + @@ -432,10 +191,7 @@ - - - - + @@ -452,16 +208,555 @@ - + - + + + + + + paper size: + + + + + + + + + + portrait + + + m_lpOrientation + + + + + + + landscape + + + m_lpOrientation + + + + + + + unit: + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + + + + Qt::Horizontal + + + + + + + print description + + + + + + + print text + + + + + + + bold + + + + + + + text + + + + + + + bold + + + + + + + Qt::Horizontal + + + + + + + underline + + + + + + + + + + underline + + + + + + + description + + + + + + + right + + + + + + + italic + + + + + + + + + + print short description + + + + + + + underline + + + + + + + center + + + m_lpTitleAlign + + + + + + + underline + + + + + + + italic + + + + + + + left + + + + + + + bold + + + + + + + italic + + + + + + + + + + underline + + + + + + + print description + + + + + + + + + + Book + + + + + + + center + + + + + + + italic + + + + + + + + + + right + + + m_lpAuthorAlign + + + + + + + underline + + + + + + + print name + + + + + + + left + + + + + + + + + + left + + + + + + + italic + + + + + + + center + + + + + + + print subtitle + + + + + + + + + + print name + + + + + + + right + + + m_lpTitleAlign + + + + + + + right + + + + + + + center + + + m_lpAuthorAlign + + + + + + + print description + + + + + + + print text + + + + + + + right + + + m_lpSubtitleAlign + + + + + + + print author + + + + + + + + + + bold + + + + + + + bold + + + + + + + left + + + m_lpSubtitleAlign + + + + + + + + + + Chapter + + + + + + + bold + + + + + + + name + + + + + + + italic + + + + + + + + + + center + + + + + + + left + + + m_lpAuthorAlign + + + + + + + Scene + + + + + + + + + + center + + + m_lpSubtitleAlign + + + + + + + right + + + + + + + print title + + + + + + + Qt::Horizontal + + + + + + + Part + + + + + + + left + + + m_lpTitleAlign + + + + + + + + + + Qt::Horizontal + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + @@ -501,4 +796,10 @@ + + + + + + diff --git a/cscene.cpp b/cscene.cpp index 25e2cb7..32d2ade 100644 --- a/cscene.cpp +++ b/cscene.cpp @@ -471,7 +471,6 @@ bool cSceneList::save() objectDelete.prepare("DELETE FROM sceneObject WHERE sceneID=:sceneID;"); objectAdd.prepare("INSERT INTO sceneObject (sceneID, objectID, description) VALUES (:sceneID, :objectID, :description);"); - myDebug; for(int x = 0;x < count();x++) { cScene* lpScene = at(x); diff --git a/cstorybook.cpp b/cstorybook.cpp index 1d0bb83..cf39a28 100644 --- a/cstorybook.cpp +++ b/cstorybook.cpp @@ -44,6 +44,9 @@ cStoryBook::cStoryBook(const QString &szProject, QObject *parent) : if(!openDatabase()) return; + if(!loadConfig()) + return; + if(!loadCharacterList()) return; @@ -85,6 +88,9 @@ bool cStoryBook::save() if(!m_db.isOpen()) return(false); + if(!saveConfig()) + return(false); + if(!saveCharacterList()) return(false); @@ -249,7 +255,7 @@ bool cStoryBook::openDatabase() { QSqlQuery query; - query.prepare("SELECT value FROM config WHERE key = 'version';"); + query.prepare("SELECT version FROM config;"); if(!query.exec()) { myDebug << query.lastError().text(); @@ -258,7 +264,7 @@ bool cStoryBook::openDatabase() } query.first(); - if(query.value("value").toDouble() < 0.1) + if(query.value("version").toDouble() < 0.1) updateDatabase(); } @@ -284,14 +290,69 @@ bool cStoryBook::createDatabase() QSqlQuery query; if(!createTable("CREATE TABLE config ( " - " [key] STRING, " - " value STRING " + " version REAL, " + " printTitle BOOLEAN, " + " titleFont TEXT, " + " titleFontSize INTEGER, " + " titleBold BOOLEAN, " + " titleItalic BOOLEAN, " + " titleUnderline BOOLEAN, " + " titleAlign INTEGER, " + " printSubTitle BOOLEAN, " + " subtitleFont TEXT, " + " subtitleFontSize INTEGER, " + " subtitleBold BOOLEAN, " + " subtitleItalic BOOLEAN, " + " subtitleUnderline BOOLEAN, " + " subtitleAlign INTEGER, " + " printShortDescription BOOLEAN, " + " printDescription BOOLEAN, " + " printAuthor BOOLEAN, " + " authorFont TEXT, " + " authorFontSize INTEGER, " + " authorBold BOOLEAN, " + " authorItalic BOOLEAN, " + " authorUnderline BOOLEAN, " + " authorAlign INTEGER, " + " printPartName BOOLEAN, " + " partFont TEXT, " + " partFontSize INTEGER, " + " partBold BOOLEAN, " + " partItalic BOOLEAN, " + " partUnderline BOOLEAN, " + " partAlign INTEGER, " + " printPartDescription BOOLEAN, " + " printPartText BOOLEAN, " + " printChapterName BOOLEAN, " + " chapterFont TEXT, " + " chapterFontSize INTEGER, " + " chapterBold BOOLEAN, " + " chapterItalic BOOLEAN, " + " chapterUnderline BOOLEAN, " + " chapterAlign INTEGER, " + " printChapterDescription BOOLEAN, " + " printChapterText BOOLEAN, " + " printSceneName BOOLEAN, " + " sceneFont TEXT, " + " sceneFontSize INTEGER, " + " sceneBold BOOLEAN, " + " sceneItalic BOOLEAN, " + " sceneUnderline BOOLEAN, " + " sceneAlign INTEGER, " + " printSceneDescription BOOLEAN, " + " printSceneText BOOLEAN, " + " paperSize TEXT, " + " paperOrientation INTEGER, " + " leftMargin REAL, " + " rightMargin REAL, " + " topMargin REAL, " + " bottomMargin REAL, " + " unit INTEGER" "); ")) return(false); - query.prepare("INSERT INTO config (key, value) VALUES (:key, :value);"); - query.bindValue(":key", "version"); - query.bindValue(":value", 0.1); + query.prepare("INSERT INTO config (version) VALUES (:version);"); + query.bindValue(":version", 0.1); if(!query.exec()) { myDebug << query.lastError().text(); @@ -491,6 +552,80 @@ bool cStoryBook::verify() return(true); } +bool cStoryBook::loadConfig() +{ + QSqlQuery query; + + query.prepare("SELECT version, printTitle, titleFont, titleFontSize, titleBold, titleItalic, titleUnderline, titleAlign, printSubTitle, subtitleFont, subtitleFontSize, subtitleBold, subtitleItalic, subtitleUnderline, subtitleAlign, printShortDescription, printDescription, printAuthor, authorFont, authorFontSize, authorBold, authorItalic, authorUnderline, authorAlign, printPartName, partFont, partFontSize, partBold, partItalic, partUnderline, partAlign, printPartDescription, printPartText, printChapterName, chapterFont, chapterFontSize, chapterBold, chapterItalic, chapterUnderline, chapterAlign, printChapterDescription, printChapterText, printSceneName, sceneFont, sceneFontSize, sceneBold, sceneItalic, sceneUnderline, sceneAlign, printSceneDescription, printSceneText, paperSize, paperOrientation, leftMargin, rightMargin, topMargin, bottomMargin, unit FROM config;"); + + if(!query.exec()) + { + myDebug << query.lastError().text(); + return(false); + } + query.first(); + + m_bPrintTitle = query.value("printTitle").toBool(); + m_szTitleFont = query.value("titleFont").toString(); + m_iTitleFontSize = query.value("titleFontSize").toInt(); + m_bTitleBold = query.value("titleBold").toBool(); + m_bTitleItalic = query.value("titleItalic").toBool(); + m_bTitleUnderline = query.value("titleUnderline").toBool(); + m_iTitleAlign = query.value("titleAlign").toInt(); + m_bPrintSubTitle = query.value("printSubTitle").toBool(); + m_szSubtitleFont = query.value("subtitleFont").toString(); + m_iSubtitleFontSize = query.value("subtitleFontSize").toInt(); + m_bSubtitleBold = query.value("subtitleBold").toBool(); + m_bSubtitleItalic = query.value("subtitleItalic").toBool(); + m_bSubtitleUnderline = query.value("subtitleUnderline").toBool(); + m_iSubtitleAlign = query.value("subtitleAlign").toInt(); + m_bPrintShortDescription = query.value("printShortDescription").toBool(); + m_bPrintDescription = query.value("printDescription").toBool(); + m_bPrintAuthor = query.value("printAuthor").toBool(); + m_szAuthorFont = query.value("authorFont").toString(); + m_iAuthorFontSize = query.value("authorFontSize").toInt(); + m_bAuthorBold = query.value("authorBold").toBool(); + m_bAuthorItalic = query.value("authorItalic").toBool(); + m_bAuthorUnderline = query.value("authorUnderline").toBool(); + m_iAuthorAlign = query.value("authorAlign").toInt(); + m_bPrintPartName = query.value("printPartName").toBool(); + m_szPartFont = query.value("partFont").toString(); + m_iPartFontSize = query.value("partFontSize").toInt(); + m_bPartBold = query.value("partBold").toBool(); + m_bPartItalic = query.value("partItalic").toBool(); + m_bPartUnderline = query.value("partUnderline").toBool(); + m_iPartAlign = query.value("partAlign").toInt(); + m_bPrintPartDescription = query.value("printPartDescription").toBool(); + m_bPrintPartText = query.value("printPartText").toBool(); + m_bPrintChapterName = query.value("printChapterName").toBool(); + m_szChapterFont = query.value("chapterFont").toString(); + m_iChapterFontSize = query.value("chapterFontSize").toInt(); + m_bChapterBold = query.value("chapterBold").toBool(); + m_bChapterItalic = query.value("chapterItalic").toBool(); + m_bChapterUnderline = query.value("chapterUnderline").toBool(); + m_iChapterAlign = query.value("chapterAlign").toInt(); + m_bPrintChapterDescription = query.value("printChapterDescription").toBool(); + m_bPrintChapterText = query.value("printChapterText").toBool(); + m_bPrintSceneName = query.value("printSceneName").toBool(); + m_szSceneFont = query.value("sceneFont").toString(); + m_iSceneFontSize = query.value("sceneFontSize").toInt(); + m_bSceneBold = query.value("sceneBold").toBool(); + m_bSceneItalic = query.value("sceneItalic").toBool(); + m_bSceneUnderline = query.value("sceneUnderline").toBool(); + m_iSceneAlign = query.value("sceneAlign").toInt(); + m_bPrintSceneDescription = query.value("printSceneDescription").toBool(); + m_bPrintSceneText = query.value("printSceneText").toBool(); + m_szPaperSize = query.value("paperSize").toString(); + m_iPaperOrientation = query.value("paperOrientation").toInt(); + m_dLeftMargin = query.value("leftMargin").toDouble(); + m_dRightMargin = query.value("rightMargin").toDouble(); + m_dTopMargin = query.value("topMargin").toDouble(); + m_dBottomMargin = query.value("bottomMargin").toDouble(); + m_iUnit = query.value("unit").toInt(); + + return(true); +} + bool cStoryBook::loadBook() { return(m_book.load()); @@ -531,6 +666,84 @@ bool cStoryBook::loadRechercheList() return(m_rechercheList.load(&m_characterList, &m_objectList, &m_placeList)); } +bool cStoryBook::saveConfig() +{ + QSqlQuery query; + + query.prepare("DELETE FROM config;"); + if(!query.exec()) + { + myDebug << query.lastError().text(); + return(false); + } + + query.prepare("INSERT INTO config (version, printTitle, titleFont, titleFontSize, titleBold, titleItalic, titleUnderline, titleAlign, printSubTitle, subtitleFont, subtitleFontSize, subtitleBold, subtitleItalic, subtitleUnderline, subtitleAlign, printShortDescription, printDescription, printAuthor, authorFont, authorFontSize, authorBold, authorItalic, authorUnderline, authorAlign, printPartName, partFont, partFontSize, partBold, partItalic, partUnderline, partAlign, printPartDescription, printPartText, printChapterName, chapterFont, chapterFontSize, chapterBold, chapterItalic, chapterUnderline, chapterAlign, printChapterDescription, printChapterText, printSceneName, sceneFont, sceneFontSize, sceneBold, sceneItalic, sceneUnderline, sceneAlign, printSceneDescription, printSceneText, paperSize, paperOrientation, leftMargin, rightMargin, topMargin, bottomMargin, unit) VALUES (0.1, :printTitle, :titleFont, :titleFontSize, :titleBold, :titleItalic, :titleUnderline, :titleAlign, :printSubTitle, :subtitleFont, :subtitleFontSize, :subtitleBold, :subtitleItalic, :subtitleUnderline, :subtitleAlign, :printShortDescription, :printDescription, :printAuthor, :authorFont, :authorFontSize, :authorBold, :authorItalic, :authorUnderline, :authorAlign, :printPartName, :partFont, :partFontSize, :partBold, :partItalic, :partUnderline, :partAlign, :printPartDescription, :printPartText, :printChapterName, :chapterFont, :chapterFontSize, :chapterBold, :chapterItalic, :chapterUnderline, :chapterAlign, :printChapterDescription, :printChapterText, :printSceneName, :sceneFont, :sceneFontSize, :sceneBold, :sceneItalic, :sceneUnderline, :sceneAlign, :printSceneDescription, :printSceneText, :paperSize, :paperOrientation, :leftMargin, :rightMargin, :topMargin, :bottomMargin, :unit);"); + query.bindValue("printTitle", m_bPrintTitle); + query.bindValue("titleFont", m_szTitleFont); + query.bindValue("titleFontSize", m_iTitleFontSize); + query.bindValue("titleBold", m_bTitleBold); + query.bindValue("titleItalic", m_bTitleItalic); + query.bindValue("titleUnderline", m_bTitleUnderline); + query.bindValue("titleAlign", m_iTitleAlign); + query.bindValue("printSubTitle", m_bPrintSubTitle); + query.bindValue("subtitleFont", m_szSubtitleFont); + query.bindValue("subtitleFontSize", m_iSubtitleFontSize); + query.bindValue("subtitleBold", m_bSubtitleBold); + query.bindValue("subtitleItalic", m_bSubtitleItalic); + query.bindValue("subtitleUnderline", m_bSubtitleUnderline); + query.bindValue("subtitleAlign", m_iSubtitleAlign); + query.bindValue("printShortDescription", m_bPrintShortDescription); + query.bindValue("printDescription", m_bPrintDescription); + query.bindValue("printAuthor", m_bPrintAuthor); + query.bindValue("authorFont", m_szAuthorFont); + query.bindValue("authorFontSize", m_iAuthorFontSize); + query.bindValue("authorBold", m_bAuthorBold); + query.bindValue("authorItalic", m_bAuthorItalic); + query.bindValue("authorUnderline", m_bAuthorUnderline); + query.bindValue("authorAlign", m_iAuthorAlign); + query.bindValue("printPartName", m_bPrintPartName); + query.bindValue("partFont", m_szPartFont); + query.bindValue("partFontSize", m_iPartFontSize); + query.bindValue("partBold", m_bPartBold); + query.bindValue("partItalic", m_bPartItalic); + query.bindValue("partUnderline", m_bPartUnderline); + query.bindValue("partAlign", m_iPartAlign); + query.bindValue("printPartDescription", m_bPrintPartDescription); + query.bindValue("printPartText", m_bPrintPartText); + query.bindValue("printChapterName", m_bPrintChapterName); + query.bindValue("chapterFont", m_szChapterFont); + query.bindValue("chapterFontSize", m_iChapterFontSize); + query.bindValue("chapterBold", m_bChapterBold); + query.bindValue("chapterItalic", m_bChapterItalic); + query.bindValue("chapterUnderline", m_bChapterUnderline); + query.bindValue("chapterAlign", m_iChapterAlign); + query.bindValue("printChapterDescription", m_bPrintChapterDescription); + query.bindValue("printChapterText", m_bPrintChapterText); + query.bindValue("printSceneName", m_bPrintSceneName); + query.bindValue("sceneFont", m_szSceneFont); + query.bindValue("sceneFontSize", m_iSceneFontSize); + query.bindValue("sceneBold", m_bSceneBold); + query.bindValue("sceneItalic", m_bSceneItalic); + query.bindValue("sceneUnderline", m_bSceneUnderline); + query.bindValue("sceneAlign", m_iSceneAlign); + query.bindValue("printSceneDescription", m_bPrintSceneDescription); + query.bindValue("printSceneText", m_bPrintSceneText); + query.bindValue("paperSize", m_szPaperSize); + query.bindValue("paperOrientation", m_iPaperOrientation); + query.bindValue("leftMargin", m_dLeftMargin); + query.bindValue("rightMargin", m_dRightMargin); + query.bindValue("topMargin", m_dTopMargin); + query.bindValue("bottomMargin", m_dBottomMargin); + query.bindValue("unit", m_iUnit); + + if(!query.exec()) + { + myDebug << query.lastError().text(); + return(false); + } + return(true); +} + bool cStoryBook::saveBook() { return(m_book.save()); diff --git a/cstorybook.h b/cstorybook.h index cae188d..075d246 100644 --- a/cstorybook.h +++ b/cstorybook.h @@ -323,17 +323,75 @@ public: bool rechercheInUse(cRecherche* lpRecherche); private: - QString m_szProject; /*!< TODO: describe */ - bool m_bIsOpen; /*!< TODO: describe */ - QSqlDatabase m_db; /*!< TODO: describe */ - cBook m_book; /*!< TODO: describe */ - cPartList m_partList; /*!< TODO: describe */ - cChapterList m_chapterList; /*!< TODO: describe */ - cSceneList m_sceneList; /*!< TODO: describe */ - cCharacterList m_characterList; /*!< TODO: describe */ - cPlaceList m_placeList; /*!< TODO: describe */ - cObjectList m_objectList; /*!< TODO: describe */ - cRechercheList m_rechercheList; /*!< TODO: describe */ + QString m_szProject; /*!< TODO: describe */ + bool m_bIsOpen; /*!< TODO: describe */ + QSqlDatabase m_db; /*!< TODO: describe */ + cBook m_book; /*!< TODO: describe */ + cPartList m_partList; /*!< TODO: describe */ + cChapterList m_chapterList; /*!< TODO: describe */ + cSceneList m_sceneList; /*!< TODO: describe */ + cCharacterList m_characterList; /*!< TODO: describe */ + cPlaceList m_placeList; /*!< TODO: describe */ + cObjectList m_objectList; /*!< TODO: describe */ + cRechercheList m_rechercheList; /*!< TODO: describe */ + + bool m_bPrintTitle; /*!< TODO: describe */ + QString m_szTitleFont; /*!< TODO: describe */ + qint16 m_iTitleFontSize; /*!< TODO: describe */ + bool m_bTitleBold; /*!< TODO: describe */ + bool m_bTitleItalic; /*!< TODO: describe */ + bool m_bTitleUnderline; /*!< TODO: describe */ + qint16 m_iTitleAlign; /*!< TODO: describe */ + bool m_bPrintSubTitle; /*!< TODO: describe */ + QString m_szSubtitleFont; /*!< TODO: describe */ + qint16 m_iSubtitleFontSize; /*!< TODO: describe */ + bool m_bSubtitleBold; /*!< TODO: describe */ + bool m_bSubtitleItalic; /*!< TODO: describe */ + bool m_bSubtitleUnderline; /*!< TODO: describe */ + qint16 m_iSubtitleAlign; /*!< TODO: describe */ + bool m_bPrintShortDescription; /*!< TODO: describe */ + bool m_bPrintDescription; /*!< TODO: describe */ + bool m_bPrintAuthor; /*!< TODO: describe */ + QString m_szAuthorFont; /*!< TODO: describe */ + qint16 m_iAuthorFontSize; /*!< TODO: describe */ + bool m_bAuthorBold; /*!< TODO: describe */ + bool m_bAuthorItalic; /*!< TODO: describe */ + bool m_bAuthorUnderline; /*!< TODO: describe */ + qint16 m_iAuthorAlign; /*!< TODO: describe */ + bool m_bPrintPartName; /*!< TODO: describe */ + QString m_szPartFont; /*!< TODO: describe */ + qint16 m_iPartFontSize; /*!< TODO: describe */ + bool m_bPartBold; /*!< TODO: describe */ + bool m_bPartItalic; /*!< TODO: describe */ + bool m_bPartUnderline; /*!< TODO: describe */ + qint16 m_iPartAlign; /*!< TODO: describe */ + bool m_bPrintPartDescription; /*!< TODO: describe */ + bool m_bPrintPartText; /*!< TODO: describe */ + bool m_bPrintChapterName; /*!< TODO: describe */ + QString m_szChapterFont; /*!< TODO: describe */ + qint16 m_iChapterFontSize; /*!< TODO: describe */ + bool m_bChapterBold; /*!< TODO: describe */ + bool m_bChapterItalic; /*!< TODO: describe */ + bool m_bChapterUnderline; /*!< TODO: describe */ + qint16 m_iChapterAlign; /*!< TODO: describe */ + bool m_bPrintChapterDescription; /*!< TODO: describe */ + bool m_bPrintChapterText; /*!< TODO: describe */ + bool m_bPrintSceneName; /*!< TODO: describe */ + QString m_szSceneFont; /*!< TODO: describe */ + qint16 m_iSceneFontSize; /*!< TODO: describe */ + bool m_bSceneBold; /*!< TODO: describe */ + bool m_bSceneItalic; /*!< TODO: describe */ + bool m_bSceneUnderline; /*!< TODO: describe */ + qint16 m_iSceneAlign; /*!< TODO: describe */ + bool m_bPrintSceneDescription; /*!< TODO: describe */ + bool m_bPrintSceneText; /*!< TODO: describe */ + QString m_szPaperSize; /*!< TODO: describe */ + qint16 m_iPaperOrientation; /*!< TODO: describe */ + qreal m_dLeftMargin; /*!< TODO: describe */ + qreal m_dRightMargin; /*!< TODO: describe */ + qreal m_dTopMargin; /*!< TODO: describe */ + qreal m_dBottomMargin; /*!< TODO: describe */ + qint16 m_iUnit; /*!< TODO: describe */ /*! \brief @@ -358,6 +416,14 @@ private: */ bool createTable(const QString& szSQL); + /*! + \brief + + \fn loadConfig + \return bool + */ + bool loadConfig(); + /*! \brief @@ -415,6 +481,14 @@ private: */ bool loadRechercheList(); + /*! + \brief + + \fn saveConfig + \return bool + */ + bool saveConfig(); + /*! \brief