Laser Cutter application v1.0

filehandling.h
Go to the documentation of this file.
1 #ifndef FILEHANDLING_H
2 #define FILEHANDLING_H
3
4 #include <QMainWindow>
5 #include <QApplication>
6 #include<QString>
7 #include<QDir>
8 #include<QDomDocument>
9 #include<QTextStream>
10 #include <QFileDialog>
11
12 #include"svglabel.h"
13
17 namespace FileHandler{
23 void MakeTempDir(const QString &path);
24
30 void RemoveTempDir(const QString &path);
31
39 QString MakeSvgCopy(const QString &path, size_t &image_counter);
40
48 bool CreateSurfaceSVG(const std::vector<double> &aCutter_area);
49
55 void ClearPathDir(const QString &aPath);
56
57
65 std::vector<QString> CopySvgsFromDir(size_t &image_counter, const QDir &aDir);
66
75 bool SetConfig(const QString &aPath, const double &aWidth, const double &aHeight);
76 }
77
78 #endif // FILEHANDLING_H
FileHandler::MakeSvgCopy
QString MakeSvgCopy(const QString &path, size_t &image_counter)
Creates a copy of an Svg file.
Definition: filehandling.cpp:22
FileHandler::SetConfig
bool SetConfig(const QString &aPath, const double &aWidth, const double &aHeight)
Sets the path to the config file.
Definition: filehandling.cpp:146
FileHandler::CopySvgsFromDir
std::vector< QString > CopySvgsFromDir(size_t &image_counter, const QDir &aDir)
Creates copies of Svgs in the given directory.
Definition: filehandling.cpp:113
FileHandler::CreateSurfaceSVG
bool CreateSurfaceSVG(const std::vector< double > &aCutter_area)
Creates the LaserCutter surface SVG.
Definition: filehandling.cpp:51
FileHandler::RemoveTempDir
void RemoveTempDir(const QString &path)
Removes a temporary directory.
Definition: filehandling.cpp:14
FileHandler
Namespace for file handling of the application.
Definition: filehandling.h:17
FileHandler::ClearPathDir
void ClearPathDir(const QString &aPath)
Clears the directory.
Definition: filehandling.cpp:132
FileHandler::MakeTempDir
void MakeTempDir(const QString &path)
Creates a temporary directory.
Definition: filehandling.cpp:5
svglabel.h