NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This class represents the dialog listing the file revisions of the current selected file. More...
#include <revisiondialog.hpp>
Public Member Functions | |
RevisionDialog (wxWindow *parent, FileRevisions *rev, const wxString &fileNameAndPath) | |
Constructor. Creates the window and populates the tree list ctrl. More... | |
~RevisionDialog () | |
DECLARE_EVENT_TABLE () | |
Private Member Functions | |
void | populateRevisionList () |
This method pupulates the tree list ctrl. More... | |
void | showRevision (const wxString &revString) |
This method displays the selected revision in the editor. More... | |
void | compareRevisions (const wxString &rev1, const wxString &rev2) |
This method compares two defined revisions and opens them as a diff file in the editor. More... | |
void | OnRightClick (wxTreeEvent &event) |
This method displays the context menu containing the actions. More... | |
void | OnItemActivated (wxTreeEvent &event) |
This method displays the double-clicked revision. More... | |
void | OnMenuEvent (wxCommandEvent &event) |
This method handles the menu events emitted from the context menu. More... | |
Private Attributes | |
FileRevisions * | revisions |
wxcode::wxTreeListCtrl * | revisionList |
wxTreeItemId | clickedItem |
NumeReWindow * | mainWindow |
wxString | currentFilePath |
wxString | currentFileName |
This class represents the dialog listing the file revisions of the current selected file.
Definition at line 34 of file revisiondialog.hpp.
RevisionDialog::RevisionDialog | ( | wxWindow * | parent, |
FileRevisions * | rev, | ||
const wxString & | fileNameAndPath | ||
) |
Constructor. Creates the window and populates the tree list ctrl.
parent | wxWindow* |
rev | FileRevisions* |
fileNameAndPath | const wxString& |
Definition at line 40 of file revisiondialog.cpp.
References _guilang, and Language::get().
|
inline |
Definition at line 56 of file revisiondialog.hpp.
References revisions.
|
private |
This method compares two defined revisions and opens them as a diff file in the editor.
rev1 | const wxString& |
rev2 | const wxString& |
Definition at line 147 of file revisiondialog.cpp.
References FileRevisions::compareRevisions(), currentFileName, mainWindow, revisions, and NumeReWindow::ShowRevision().
Referenced by OnMenuEvent().
RevisionDialog::DECLARE_EVENT_TABLE | ( | ) |
|
private |
This method displays the double-clicked revision.
event | wxTreeEvent& |
Definition at line 200 of file revisiondialog.cpp.
References revisionList, and showRevision().
|
private |
This method handles the menu events emitted from the context menu.
event | wxCommandEvent& |
Definition at line 214 of file revisiondialog.cpp.
References _guilang, clickedItem, compareRevisions(), currentFileName, currentFilePath, Language::get(), ID_REVISIONDIALOG_COMPARE, ID_REVISIONDIALOG_REFRESH, ID_REVISIONDIALOG_RESTORE, ID_REVISIONDIALOG_SHOW, ID_REVISIONDIALOG_TAG, mainWindow, populateRevisionList(), NumeReWindow::reloadFileIfOpen(), FileRevisions::restoreRevision(), revisionList, revisions, showRevision(), and FileRevisions::tagRevision().
|
private |
This method displays the context menu containing the actions.
event | wxTreeEvent& |
Definition at line 160 of file revisiondialog.cpp.
References _guilang, clickedItem, Language::get(), ID_REVISIONDIALOG_COMPARE, ID_REVISIONDIALOG_REFRESH, ID_REVISIONDIALOG_RESTORE, ID_REVISIONDIALOG_SHOW, ID_REVISIONDIALOG_TAG, revisionList, and selection().
|
private |
This method pupulates the tree list ctrl.
Depending on the the type of the revision, the line colour is selected. Tags are additionally indented and printed in italics.
Definition at line 72 of file revisiondialog.cpp.
References FileRevisions::getCurrentRevision(), FileRevisions::getRevisionList(), revisionList, and revisions.
Referenced by OnMenuEvent().
|
private |
This method displays the selected revision in the editor.
revString | const wxString& |
The method gets the revision from the associated FileRevisions object and passes it to the main window method for displaying a revision.
Definition at line 130 of file revisiondialog.cpp.
References currentFileName, FileRevisions::getRevision(), mainWindow, revisions, and NumeReWindow::ShowRevision().
Referenced by OnItemActivated(), and OnMenuEvent().
|
private |
Definition at line 39 of file revisiondialog.hpp.
Referenced by OnMenuEvent(), and OnRightClick().
|
private |
Definition at line 42 of file revisiondialog.hpp.
Referenced by compareRevisions(), OnMenuEvent(), and showRevision().
|
private |
Definition at line 41 of file revisiondialog.hpp.
Referenced by OnMenuEvent().
|
private |
Definition at line 40 of file revisiondialog.hpp.
Referenced by compareRevisions(), OnMenuEvent(), and showRevision().
|
private |
Definition at line 38 of file revisiondialog.hpp.
Referenced by OnItemActivated(), OnMenuEvent(), OnRightClick(), and populateRevisionList().
|
private |
Definition at line 37 of file revisiondialog.hpp.
Referenced by compareRevisions(), OnMenuEvent(), populateRevisionList(), showRevision(), and ~RevisionDialog().