WSF
wizard::ChangeHistory Class Reference

#include <ChangeHistory.hpp>

Inherits QDialog.

Public Slots

void RestoreSelectedRevision ()
void ExportSelectedRevision ()
void DeleteAllRevisions ()
 Prompts the user and deletes all existing revisions from the database.
void UpdateWidgets ()
 Updates the state/content of all widgets.
void UpdateDiff ()
 Updates the diff file list and the diff itself.
void NavigateDiff ()

Public Member Functions

 ChangeHistory (RevisionStore &aRevisionStore, const UtPath &aProjectDir, QWidget *aParent=nullptr)
 ChangeHistory (const ChangeHistory &)=delete
 ChangeHistory (ChangeHistory &&)=default
ChangeHistoryoperator= (const ChangeHistory &)=delete
ChangeHistoryoperator= (ChangeHistory &&)=default
 ~ChangeHistory () override=default

Detailed Description

A class representing the Change History window. This is the main user interface for accessing the backup/restore backend.

Constructor & Destructor Documentation

◆ ChangeHistory() [1/3]

wizard::ChangeHistory::ChangeHistory ( RevisionStore & aRevisionStore,
const UtPath & aProjectDir,
QWidget * aParent = nullptr )
explicit

◆ ChangeHistory() [2/3]

wizard::ChangeHistory::ChangeHistory ( const ChangeHistory & )
delete

References ChangeHistory().

◆ ChangeHistory() [3/3]

wizard::ChangeHistory::ChangeHistory ( ChangeHistory && )
default

References ChangeHistory().

◆ ~ChangeHistory()

wizard::ChangeHistory::~ChangeHistory ( )
overridedefault

Member Function Documentation

◆ DeleteAllRevisions

void wizard::ChangeHistory::DeleteAllRevisions ( )
slot

Prompts the user and deletes all existing revisions from the database.

References UpdateWidgets().

Referenced by ChangeHistory().

◆ ExportSelectedRevision

void wizard::ChangeHistory::ExportSelectedRevision ( )
slot

Prompts the user and attempts to export the currently selected revision to the user-selected location on the file system.

References wizard::ExportFiles::ExportRevision().

Referenced by ChangeHistory().

◆ NavigateDiff

void wizard::ChangeHistory::NavigateDiff ( )
slot

When the user selects a file in the diff file list, this function will jump the diff display window to the position in the diff where the file is being displayed. This allows quick diff navigation if the diff is large.

Referenced by ChangeHistory().

◆ operator=() [1/2]

ChangeHistory & wizard::ChangeHistory::operator= ( ChangeHistory && )
default

References ChangeHistory().

◆ operator=() [2/2]

ChangeHistory & wizard::ChangeHistory::operator= ( const ChangeHistory & )
delete

References ChangeHistory().

◆ RestoreSelectedRevision

void wizard::ChangeHistory::RestoreSelectedRevision ( )
slot

Prompts the user and attempts to restore the currently selected revision to the user's project fileset.

Referenced by ChangeHistory().

◆ UpdateDiff

void wizard::ChangeHistory::UpdateDiff ( )
slot

Updates the diff file list and the diff itself.

Referenced by ChangeHistory(), and UpdateWidgets().

◆ UpdateWidgets

void wizard::ChangeHistory::UpdateWidgets ( )
slot

Updates the state/content of all widgets.

References UpdateDiff().

Referenced by ChangeHistory(), and DeleteAllRevisions().


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved