|
|
void | stateChange () |
| |
|
void | internDomChanged () |
| |
|
void | externDomChange () |
| |
|
| static QDomDocument | projectDomDocumentTemplate (const QString &name, const QString &version, const QString &description="") |
| | The project is defined by a xml structure. This structure is represented by a domDocument. The static projectDomDocumentTemplate function creats a clean project domDocument. More...
|
| |
| static bool | compareDomDocumentMD5 (const QDomDocument &dom1, const QDomDocument &dom2) |
| | Compare two domdocuments with each other via md5 hash bytearray. More...
|
| |
◆ AbstractProject()
| AbstractProject::AbstractProject |
( |
SettingsScope * |
parentSettingsScope | ) |
|
|
protected |
Abstract project constructor.
- Parameters
-
| relatedWorkspace | The related workspace. |
◆ autosave()
| virtual bool AbstractProject::autosave |
( |
| ) |
|
|
pure virtual |
◆ autosaveDomDocument()
| virtual QDomDocument AbstractProject::autosaveDomDocument |
( |
| ) |
const |
|
pure virtual |
◆ autosaveExists()
| virtual bool AbstractProject::autosaveExists |
( |
| ) |
|
|
pure virtual |
◆ autosaveInfo()
| virtual QString AbstractProject::autosaveInfo |
( |
| ) |
|
|
pure virtual |
◆ cleanAutosave()
| virtual void AbstractProject::cleanAutosave |
( |
| ) |
|
|
pure virtual |
◆ compareDomDocumentMD5()
| bool AbstractProject::compareDomDocumentMD5 |
( |
const QDomDocument & |
dom1, |
|
|
const QDomDocument & |
dom2 |
|
) |
| |
|
static |
Compare two domdocuments with each other via md5 hash bytearray.
- Parameters
-
| dom1 | The first domDocument. |
| dom2 | The second domDocument. |
- Returns
- Returns
true if the domDocuments are equil, otherwise returns false.
◆ connectionString()
| QString AbstractProject::connectionString |
( |
| ) |
|
|
pure virtual |
The connection string defines the link to the project xml source (e.g file, sql).
- Returns
- Returns the connection string.
Implemented in FileProject.
◆ description()
| QString AbstractProject::description |
( |
| ) |
const |
- Returns
Returns the description from the project.
- See also
- setDescription
◆ domDocument()
| virtual QDomDocument AbstractProject::domDocument |
( |
| ) |
const |
|
pure virtual |
◆ init()
| bool AbstractProject::init |
( |
| ) |
|
|
protected |
Initialize the project properties (e.g. settings scope) and connect them.
- Returns
- Returns
true if the init procedure was successful, otherwise returns false.
◆ isDirty()
| bool AbstractProject::isDirty |
( |
| ) |
const |
- Returns
- Returns
true if the project is not in a persistant state (saved), otherwise returns false.
- See also
- setDirty
◆ isExternChanged()
| bool AbstractProject::isExternChanged |
( |
| ) |
const |
- Returns
- Returns
true if the project was changed by extern, otherwise returns false.
◆ isFastLoad()
| bool AbstractProject::isFastLoad |
( |
| ) |
const |
- Returns
- Returns
true if the project should be directly load, otherwise returns false.
- See also
- setFastLoad
◆ isLoaded()
| bool AbstractProject::isLoaded |
( |
| ) |
const |
- Returns
- Returns
true if the project is loaded in the related workspace, otherwise returns false.
- See also
- setLoaded
◆ isValid()
| bool AbstractProject::isValid |
( |
| ) |
const |
◆ lastError()
| QString AbstractProject::lastError |
( |
| ) |
const |
- Returns
- The last error, which is occured in the project.
◆ majorProjectVersion()
| int AbstractProject::majorProjectVersion |
( |
| ) |
const |
◆ minorProjectVersion()
| int AbstractProject::minorProjectVersion |
( |
| ) |
const |
◆ name()
| const QString & AbstractProject::name |
( |
| ) |
const |
- Returns
Returns the name from the project.
- See also
- setName
◆ projectDomDocumentTemplate()
| QDomDocument AbstractProject::projectDomDocumentTemplate |
( |
const QString & |
name, |
|
|
const QString & |
version, |
|
|
const QString & |
description = "" |
|
) |
| |
|
static |
The project is defined by a xml structure. This structure is represented by a domDocument. The static projectDomDocumentTemplate function creats a clean project domDocument.
- Parameters
-
| name | The name for the project. |
| version | The version for the project. The version has to be compatible with the current application, otherwise the project is invalid. |
| description | The description for the project. The description is empty by default. |
- Returns
- Returns a clean project dom document.
◆ save()
| virtual bool AbstractProject::save |
( |
| ) |
|
|
pure virtual |
Save the project in a xml structure.
- Returns
- Returns
true if the save procedure was successful, otherwise returns false.
- See also
- autosave
Implemented in FileProject.
◆ setDescription()
| void AbstractProject::setDescription |
( |
const QString & |
description | ) |
|
Set the project description.
- Parameters
-
| description | The description for the project. |
- See also
- description
◆ setDirty()
| void AbstractProject::setDirty |
( |
bool |
isDirty | ) |
|
The isDirty flag represent the project save state.
- Parameters
-
| isDirty | Set the dirty state flag. |
- See also
- isDirty
◆ setDomDocument()
| virtual bool AbstractProject::setDomDocument |
( |
const QDomDocument & |
domDocument | ) |
|
|
pure virtual |
Set and validate the project domDocument xml structure.
- Parameters
-
| domDocument | The domDocument for the project. |
- Returns
- Returns
true if the domDocument is valid and set, otherwise returns false.
- See also
- domDocument
-
validateProjectDomDocument
Implemented in FileProject.
◆ setExternChanged()
| void AbstractProject::setExternChanged |
( |
bool |
isExternChanged | ) |
|
|
protected |
Set project changed by extern (e.g. project file was changed outside Traviz).
- Parameters
-
| isExternChanged | The project extern changed state. |
- See also
- isExternChanged
◆ setFastLoad()
| void AbstractProject::setFastLoad |
( |
bool |
isFastLoad | ) |
|
Set the project fastload property. The project can directly loaded by open the related workspace.
- Parameters
-
| isFastLoad | Set the fastload state flag. |
- See also
- isFastLoad
◆ setLastError()
| void AbstractProject::setLastError |
( |
const QString & |
lastError | ) |
|
|
protected |
Set an error message to the project.
- Parameters
-
| lastError | The error message. |
- See also
- lastError
◆ setLoaded()
| void AbstractProject::setLoaded |
( |
bool |
isLoaded | ) |
|
|
virtual |
Set the project loaded property. This indicates, that the project is currently loaded by the related workspace or not.
- Parameters
-
| isLoaded | Set the loaded state flag. |
- See also
- isLoaded
Reimplemented in FileProject.
◆ setName()
| void AbstractProject::setName |
( |
const QString & |
name | ) |
|
Set the project name.
- Parameters
-
| name | The name for the project. |
- See also
- name
◆ settingsScope()
Returns a pointer to the settings scope associated with the project.
- Returns
- A pointer to the settings scope associated with the project.
◆ setValid()
| void AbstractProject::setValid |
( |
bool |
isValid | ) |
|
|
protected |
◆ setVersion()
| void AbstractProject::setVersion |
( |
const QString & |
version | ) |
|
|
protected |
◆ validateProjectDomDocument()
| bool AbstractProject::validateProjectDomDocument |
( |
const QDomDocument & |
domDocument | ) |
|
This function validates a project domDocument xml structure. A validation error can be printed by lastError.
- Parameters
-
| domDocument | The domDocument, which has to be validated. |
- Returns
- Returns
true if the project domDocument validation was successful, otherwise returns false.
- See also
- isValid
-
setValid
-
lastError
◆ version()
| QString AbstractProject::version |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- itemframework/itemframework/src/project/abstract_project.h
- itemframework/itemframework/moc/moc_abstract_project.cpp
- itemframework/itemframework/src/project/abstract_project.cpp