Rosetta
|
#include <project.h>
Public Member Functions | |
Project () | |
void | add_task (TaskSP const &task) |
Add new Task. More... | |
bool | erase (TaskSP const &task) |
void | assign_ownership (TaskSP const &t) |
TaskSP | task (int index) |
bool | operator== (Project const &r) const |
bool | operator!= (Project const &r) const |
QString | file_name () const |
void | file_name (QString const &file_name) |
std::vector< TaskSP > const & | tasks () const |
ProjectTasksModel * | model () |
Private Slots | |
void | changed () |
void | tasks_changed () |
Private Member Functions | |
void | assign_ownership () |
assign ownership of all tasks (needed for serialization) More... | |
Private Attributes | |
std::vector< TaskSP > | tasks_ |
ProjectTasksModel | task_model_ |
QString | file_name_ |
Friends | |
QDataStream & | operator<< (QDataStream &, Project const &) |
QDataStream & | operator>> (QDataStream &, Project &) |
Project is intended to hold all data relevant for current user session. In general saving and later restoring project should allow user to return to exactly the same configuration of tools (and possibly windows).
Note that this is not current configuration of windows (but it can store that as well) instead it should be seen as a bag
for all relevant user data that was used/created during current session.
|
explicit |
void ui::task::Project::add_task | ( | TaskSP const & | task | ) |
Add new Task.
Add new Task
References assign_ownership(), task(), task_model_, tasks_, and ui::task::ProjectTasksModel::update_from_tasks().
|
private |
assign ownership of all tasks (needed for serialization)
Referenced by add_task().
void ui::task::Project::assign_ownership | ( | TaskSP const & | t | ) |
References ui::task::Task::name_changed(), ui::task::Task::state_changed(), task(), and tasks_changed().
|
privateslot |
Referenced by erase().
bool ui::task::Project::erase | ( | TaskSP const & | task | ) |
References changed(), ui::task::Task::changed(), erraser_util::remove(), res, task(), tasks_, and tasks_changed().
|
inline |
References file_name_.
|
inline |
References file_name(), and file_name_.
Referenced by file_name().
|
inline |
References task_model_.
Referenced by job_manager.JobWindow::edit_description(), job_manager.JobWindow::get_selected_jobs(), and job_manager.JobWindow::refresh().
|
inline |
References create_a3b_hbs::r.
TaskSP ui::task::Project::task | ( | int | index | ) |
References tasks_.
Referenced by add_task(), assign_ownership(), and erase().
|
inline |
References tasks_.
Referenced by pyrosetta.distributed.cluster.core.PyRosettaCluster::distribute().
|
privateslot |
References task_model_, tasks_, and ui::task::ProjectTasksModel::update_from_tasks().
Referenced by assign_ownership(), and erase().
|
friend |
|
friend |
|
private |
Referenced by file_name().
|
private |
Referenced by add_task(), model(), and tasks_changed().
|
private |
Referenced by add_task(), erase(), operator==(), task(), tasks(), and tasks_changed().