XML Mill  1.0.0
A GUI based XML editor with a memory.
Public Member Functions | Private Slots | Private Member Functions | Private Attributes
GCRestoreFilesForm Class Reference

Displays recovered files so that the user may decide whether or not he/she wants to save them. More...

#include <gcrestorefilesform.h>

List of all members.

Public Member Functions

 GCRestoreFilesForm (const QStringList &tempFiles, QWidget *parent=0)
 Constructor.
 ~GCRestoreFilesForm ()
 Destructor.

Private Slots

void saveFile ()
 Connected to the "Save" button's "clicked()" signal.
void deleteTempFile () const
 Connected to the "Discard" button's "clicked()" signal.
void next ()
 Connected to the "Next" button's "clicked()" signal.

Private Member Functions

void loadFile (const QString &fileName)
 Loads and displays the current temp file in the text edit.

Private Attributes

Ui::GCRestoreFilesForm * ui
QStringList m_tempFiles
QString m_fileName

Detailed Description

Displays recovered files so that the user may decide whether or not he/she wants to save them.

Definition at line 40 of file gcrestorefilesform.h.


Constructor & Destructor Documentation

GCRestoreFilesForm::GCRestoreFilesForm ( const QStringList &  tempFiles,
QWidget *  parent = 0 
) [explicit]

Constructor.

Definition at line 43 of file gcrestorefilesform.cpp.

Destructor.

Definition at line 67 of file gcrestorefilesform.cpp.


Member Function Documentation

void GCRestoreFilesForm::deleteTempFile ( ) const [private, slot]

Connected to the "Discard" button's "clicked()" signal.

Deletes the current temp file at the user's discretion.

Definition at line 108 of file gcrestorefilesform.cpp.

void GCRestoreFilesForm::loadFile ( const QString &  fileName) [private]

Loads and displays the current temp file in the text edit.

Definition at line 139 of file gcrestorefilesform.cpp.

void GCRestoreFilesForm::next ( ) [private, slot]

Connected to the "Next" button's "clicked()" signal.

Loads the next temp file (if any).

Definition at line 118 of file gcrestorefilesform.cpp.

void GCRestoreFilesForm::saveFile ( ) [private, slot]

Connected to the "Save" button's "clicked()" signal.

Opens a file dialog to "Save As".

Definition at line 74 of file gcrestorefilesform.cpp.


The documentation for this class was generated from the following files: