This commit is contained in:
Herwig Birke
2018-05-15 15:55:09 +02:00
parent b69d3619df
commit 11ce84377a
13 changed files with 544 additions and 31 deletions
+12
View File
@@ -29,6 +29,8 @@ cStoryBook::cStoryBook(QObject *parent) :
m_szProject(""),
m_bIsOpen(false)
{
m_book.setTitle("untitled");
m_bIsOpen = true;
}
cStoryBook::cStoryBook(const QString &szProject, QObject *parent) :
@@ -519,6 +521,11 @@ QString cStoryBook::author()
return(m_book.author());
}
cBook* cStoryBook::book()
{
return(&m_book);
}
cChapterList* cStoryBook::chapterList()
{
return(&m_chapterList);
@@ -529,6 +536,11 @@ cSceneList* cStoryBook::sceneList()
return(&m_sceneList);
}
QString cStoryBook::project()
{
return(m_szProject);
}
bool cStoryBook::addPart(const QString& szPartName)
{
cPart* lpPart = m_partList.add(-1);