org.kde.koala
public class ReadWritePart extends ReadOnlyPart
UNKNOWN: Base class for an "editor" part.
Constructor Summary | |
---|---|
protected | ReadWritePart(Class dummy) |
Method Summary | |
---|---|
String | className() |
boolean | closeURL()
Called when closing the current url (e.g. document), for instance
when switching to another url (note that openURL() calls it
automatically in this case).
|
boolean | closeURL(boolean promptToSave)
Call this method instead of the above if you need control if
the save prompt is shown. |
boolean | isModified() |
boolean | isReadWrite() |
QMetaObject | metaObject() |
boolean | queryClose()
If the document has been modified, ask the user to save changes.
|
boolean | save()
Save the file in the location from which it was opened.
|
boolean | saveAs(KURL url)
Save the file to a new location.
|
void | setModified(boolean modified)
Sets the modified flag of the part. |
void | setModified()
Call setModified() whenever the contents get modified.
|
void | setReadWrite(boolean readwrite)
Changes the behavior of this part to readonly or readwrite. |
void | setReadWrite() |
boolean | waitSaveComplete()
Waits for any pending upload job to finish and returns whether the
last save() action was successful. |
Returns: false on cancel
UNKNOWN: Called when closing the current url (e.
UNKNOWN: Call this method instead of the above if you need control if the save prompt is shown.
Returns: true if the document has been modified.
UNKNOWN:
Returns: true if the part is in read-write mode
UNKNOWN:
Returns: true if closeURL() can be called without the user losing important data, false if the user chooses to cancel.
UNKNOWN: If the document has been modified, ask the user to save changes.
UNKNOWN: Save the file in the location from which it was opened.
UNKNOWN: Save the file to a new location.
UNKNOWN: Sets the modified flag of the part.
UNKNOWN: Call setModified() whenever the contents get modified.
Parameters: readwrite set to true to enable readwrite mode
UNKNOWN: Changes the behavior of this part to readonly or readwrite.
UNKNOWN: Waits for any pending upload job to finish and returns whether the last save() action was successful.