Engauge Digitizer  2
Public Member Functions | Protected Member Functions | List of all members
FileCmdAbstract Class Referenceabstract

Base class for 'file commands' that are used specifically for regression testing of file import/open/export features. More...

#include <FileCmdAbstract.h>

Inheritance diagram for FileCmdAbstract:
FileCmdClose FileCmdExport FileCmdImport FileCmdOpen

Public Member Functions

 FileCmdAbstract (const QString &cmdDescription)
 Single constructor.
 
virtual void redo (MainWindow &mainWindow)=0
 Apply this command, through MainWindow.
 

Protected Member Functions

QString cmdDescription () const
 Command description for logging.
 

Detailed Description

Base class for 'file commands' that are used specifically for regression testing of file import/open/export features.

These commands operate outside of the normal undo/redo command framework, since that framework uses commands that are attached to an open Document. The file commands follow special rules:

  1. Never generated by the code
  2. Created by manually editing a 'file command' xml file, which does NOT have a Document (so error report files cannot be used unless pretty much everything is removed)
  3. Are only read during regression testing normally. Although they can be loaded otherwise, there is no point in doing so
  4. These commands operate in the forward direction only, since undoing a File Close could be quite messy

Definition at line 22 of file FileCmdAbstract.h.


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