VcsBaseSubmitEditor Class

(VcsBase::VcsBaseSubmitEditor)

The VcsBaseSubmitEditor class is the base class for a submit editor based on the SubmitEditorWidget. More...

Header: #include <VcsBaseSubmitEditor>

Public Functions

QString checkScriptWorkingDirectory() const
int fileListSelectionMode() const
bool isEmptyFileListEnabled() const
bool lineWrap() const
int lineWrapWidth() const
void setCheckScriptWorkingDirectory(const QString &)
void setEmptyFileListEnabled(bool e)
void setFileListSelectionMode(int sm)
void setLineWrap(bool)
void setLineWrapWidth(int)

Detailed Description

Presents the commit message in a text editor and an checkable list of modified files in a list window. The user can delete files from the list by pressing unchecking them or diff the selection by doubleclicking.

The action matching the ids (unless 0) of the parameter struct will be registered with the EditorWidget and submit/diff actions will be added to a toolbar.

For the given context, there must be only one instance of the editor active. To start a submit, set the submit template on the editor and the output of the VCS status command listing the modified files as fileList and open it.

The submit process is started by listening on the editor close signal and then asking the IDocument interface of the editor to save the file within a DocumentManager::blockFileChange() section and to launch the submit process. In addition, the action registered for submit should be connected to a slot triggering the close of the current editor in the editor manager.