Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
PartProject.h
Go to the documentation of this file.
1#pragma once
2#include <QString>
3#include <ipj/iface/global.h>
4#include <misc/gen/TClosure.h>
5
6namespace sf
7{
8
10{
11 public:
16
21 void assign(const PartProject*);
22
26 void clear();
27
31 QString getPartProject();
32
36 void setPartProject(const QString& part_project);
37
41 void setProject(const QString&);
42
46 QString getProject() const;
47
51 void setPart(const QString& part);
52
56 QString getPart() const;
57
62
66 void setReferenceName(const QString& ref_name);
67
72 bool exists() const;
73
78 bool isEmpty() const;
79
83 QString getFilepath() const;
84
89
90 private:
94 void doChange();
98 QString _part;
102 QString _project;
103};
104
105}// namespace sf
Definition PartProject.h:10
void setPartProject(const QString &part_project)
Sets the part and project using a part project combination string with a separator.
void setReferenceName(const QString &ref_name)
Sets project and part using a combination of the two having a separator '@'.
void setPart(const QString &part)
Sets the part and project using the reference name.
void clear()
Clears the part and project member.
QString getFilepath() const
Gets the filepath of the project.
PartProject()
Default constructor.
QString getReferenceName()
Gets the reference name which is a project + part combination using a separator '@' where the project...
void assign(const PartProject *)
Assign the part and project the passed instance pointer. When the pointer is null this instance is cl...
bool exists() const
Checks if the project part combination exists.
bool isEmpty() const
Checks if the part and project are both not assigned and thus empty.
QString getPart() const
Gets the 'part' part.
void setProject(const QString &)
Sets only the project.
TClosure< void, void * > onChange
Event handler for when a change occurred.
Definition PartProject.h:88
QString getProject() const
Gets the project.
QString getPartProject()
Gets the part and project combination in one string using a separator where the 'part' comes first.
Encapsulates the std::function() template.
Definition TClosure.h:14
#define _IPJ_CLASS
Definition ipj/iface/global.h:35
Definition Application.h:10