16 #include "Base/Util/Assert.h"
21 QMap<JobViewActivity, QVector<JobViewFlags::Dock>> createActivityMap()
23 QMap<JobViewActivity, QVector<JobViewFlags::Dock>> result;
34 QMap<JobViewActivity, QVector<JobViewFlags::Dock>> activityToDocks = createActivityMap();
36 QMap<JobViewActivity, QString> activityNames = {
47 QList<JobViewActivity>
all()
49 return activityNames.keys();
56 QMap<JobViewActivity, QString>::const_iterator it = activityNames.find(activity);
57 ASSERT(it != activityNames.end());
65 QMap<JobViewActivity, QVector<JobViewFlags::Dock>>::const_iterator it =
66 activityToDocks.find(activity);
67 ASSERT(it != activityToDocks.end());
Defines class JobViewActivities.
Defines namespace GUI::Constants.
const QString JobViewActivityName
const QString JobRealTimeActivityName
const QString JobFittingActivityName
The JobViewActivities namespace is a helper to get info related to JobView activities.
QString name(JobViewActivity activity)
Returns name of activity.
QVector< JobViewFlags::Dock > activeDocks(JobViewActivity activity)
Returns vector of JobView's dockId which have to be shown for given activity.
QList< JobViewActivity > all()
Returns list of all available activities.