25 #ifndef CREATEFILEABSTRACTION 26 #define CREATEFILEABSTRACTION 32 #include "fileabstraction.h" 110 #endif // CREATEFILEABSTRACTION CreateFileAbstraction(QString filePath_1)
The second constructor of the CreateFileAbstraction class This constructor is called when the user op...
Definition: createfileabstraction.h:59
virtual ~CreateFileAbstraction()
Class destructor.
Definition: createfileabstraction.h:65
Creates a text file related to an image.
Definition: createfileabstraction.h:34
Inherits the QPixmap class.
Definition: image.h:32
virtual bool fileExists() const
When the user opens an image, checks if a text file associated to this image already exists...
Definition: createfileabstraction.cpp:45
CreateFileAbstraction(Image &image_1)
The first constructor of the CreateFileAbstraction class This constructor is called when the user ope...
Definition: createfileabstraction.h:53
virtual void setFile(FileAbstraction *file_1)
Set the text file.
Definition: createfileabstraction.cpp:41
virtual FileAbstraction * getFile() const
Returns the text file associated to the image.
Definition: createfileabstraction.cpp:26
virtual QString removeExtension(QString filename_with_extension) const
Removes the ".tiff" extension from the image filepath.
Definition: createfileabstraction.cpp:16
virtual void createFile()
Creates the text file associated to the image.
Definition: createfileabstraction.cpp:4
virtual Image * getImage() const
Returns the image to which the text file is associated.
Definition: createfileabstraction.cpp:31
Inherits the QFile class.
Definition: fileabstraction.h:27
virtual void setImage(Image *image_1)
Set the image to which the text file is associated.
Definition: createfileabstraction.cpp:36