11 #ifndef TASKEDITDLG_HPP 12 #define TASKEDITDLG_HPP 16 #include <QAbstractItemModel> 20 #include <ui_TaskEditor.h> 45 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const;
46 Qt::ItemFlags flags(
const QModelIndex& index)
const;
51 return index(task_id, 0);
54 return index(task_names.
indexOf(task_name), 0);
56 QModelIndex processIndex(
int task_id,
int row)
const {
57 return index(row, 0, taskIndex(task_id));
64 bool dropMimeData(
const QMimeData* data, Qt::DropAction action,
int row,
int column,
const QModelIndex& parent);
66 Qt::DropActions supportedDropActions()
const;
67 QMimeData* mimeData(
const QModelIndexList& indexes)
const;
69 bool addTask(
const QString& name);
71 bool deleteTask(
const QString& name);
75 void deleteItems(
const QModelIndexList& lst);
108 static void writeTasks(
QTextStream& pout,
const tasks_t& tasks);
109 static void loadTasksFromSettings(tasks_t& newTasks);
110 static void saveTasksToSettings(
const tasks_t& tasks);
114 int getSelectedRow(
int default_row = 0);
119 void on_newTask_clicked();
120 void on_deleteTask_clicked();
121 void on_exportTask_clicked();
122 void on_importTask_clicked();
123 void on_renameTask_clicked();
124 void on_copyTask_clicked();
125 void on_makeSharedTask_clicked();
126 void on_copyTaskToLocal_clicked();
127 void on_tasks_deleteItems(
const QModelIndexList& lst);
rowCount(const QModelIndex &parent=QModelIndex()
Definition: TaskEditDlg.hpp:28
Definition of a process, without the process factory.
Definition: Process.hpp:1239
This namespace contains all the API of MorphoGraphX.
Definition: Assert.hpp:26
File containing the definition of a Process.
Definition: TaskEditDlg.hpp:33
This namespace contains all the classes needed to define processes.
columnCount(const QModelIndex &parent=QModelIndex()
Definition: TaskEditDlg.hpp:85
indexOf(const QRegExp &rx, int from=0)