class Kmp3dbDoc
|
Kmp3dbDoc provides a document object for a document-view model. More... |
|
|
Public Members
Public Slots
Private Members
Detailed Description
Kmp3dbDoc provides a document object for a document-view model.
The Kmp3dbDoc class provides a document object that can be used in conjunction with the classes Kmp3dbApp and Kmp3dbView
to create a document-view model for standard KDE applications based on KApplication and KMainWindow. Thereby, the document object
is created by the Kmp3dbApp instance and contains the document structure with the according methods for manipulation of the document
data by Kmp3dbView objects. Also, Kmp3dbDoc contains the methods for serialization of the document data from and to files.
Kmp3dbDoc (QWidget *parent, const char *name=0)
|
Constructor for the fileclass of the application
Destructor for the fileclass of the application
adds a view to the document which represents the document contents. Usually this is your main view.
removes a view from the list of currently connected views
void setModified (bool _m=true)
|
sets the modified flag for the document after a modifying action on the view connected to the document.
returns if the document is modified or not. Use this to determine if your document needs saving by the user on closing.
"save modified" - asks the user for saving if the document is modified
deletes the document's contents
initializes the document generally
closes the acutal document
bool openDocument (const KURL& url, const char *format=0)
|
loads the document by filename and format and emits the updateViews() signal
bool saveDocument (const KURL& url, const char *format=0)
|
saves the document under filename and format.
[const] returns the KURL of the document
void setURL (const KURL& url)
|
sets the URL of the document
[slot] calls repaint() on all views connected to the document object and is called by the view by which the document has been changed.
As this view normally repaints itself, it is excluded from the paintEvent.
the list of the views currently connected to the document
[private] the modified flag of the current document
- Version: KDevelop version 1.2 code generation
- Author: Source Framework Automatically Generated by KDevelop, (c) The KDevelop Team.
- Generated: edwin@source66 on Wed Jan 24 22:45:32 200.