Rosetta
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
ui::task::TaskView Class Reference

#include <task_view.h>

Inheritance diagram for ui::task::TaskView:
Inheritance graph
[legend]

Public Member Functions

 TaskView (TaskSP const &, QWidget *parent=0)
 
 ~TaskView ()
 

Private Slots

void update_ui_from_task ()
 
void update_ui_file_list_from_task ()
 
void on_output_clicked (const QModelIndex &index)
 
void on_output_doubleClicked (const QModelIndex &index)
 
void on_cancel_task_clicked ()
 
void create_output_context_menu (const QPoint &pos)
 
void action_output_open ()
 
void action_output_save_as ()
 
void on_export_all_files_clicked ()
 
void update_syncing_progress ()
 
void file_changed (FileID const &file_id)
 

Private Member Functions

void preview_file (FileSP const &file)
 
FileSP index_to_file (QModelIndex const &)
 return file object that correspond to given model index, return null if index could not be mapped to file More...
 

Private Attributes

Ui::TaskView * ui
 
TaskSP task_
 
QWidgetviewer_ = nullptr
 
FileID previewed_file_
 

Constructor & Destructor Documentation

◆ TaskView()

ui::task::TaskView::TaskView ( TaskSP const &  task,
QWidget parent = 0 
)
explicit

◆ ~TaskView()

ui::task::TaskView::~TaskView ( )

References ui.

Member Function Documentation

◆ action_output_open

void ui::task::TaskView::action_output_open ( )
privateslot

◆ action_output_save_as

void ui::task::TaskView::action_output_save_as ( )
privateslot

◆ create_output_context_menu

void ui::task::TaskView::create_output_context_menu ( const QPoint &  pos)
privateslot

◆ file_changed

void ui::task::TaskView::file_changed ( FileID const &  file_id)
privateslot

References preview_file(), previewed_file_, and task_.

Referenced by TaskView().

◆ index_to_file()

FileSP ui::task::TaskView::index_to_file ( QModelIndex const &  index)
private

return file object that correspond to given model index, return null if index could not be mapped to file

References evaluate_beta_mutants::file, closure_error::model, create_a3b_hbs::r, and task_.

Referenced by on_output_clicked(), and on_output_doubleClicked().

◆ on_cancel_task_clicked

void ui::task::TaskView::on_cancel_task_clicked ( )
privateslot

◆ on_export_all_files_clicked

void ui::task::TaskView::on_export_all_files_clicked ( )
privateslot

◆ on_output_clicked

void ui::task::TaskView::on_output_clicked ( const QModelIndex &  index)
privateslot

◆ on_output_doubleClicked

void ui::task::TaskView::on_output_doubleClicked ( const QModelIndex &  index)
privateslot

◆ preview_file()

void ui::task::TaskView::preview_file ( FileSP const &  file)
private

◆ update_syncing_progress

void ui::task::TaskView::update_syncing_progress ( )
privateslot

References task_.

Referenced by TaskView(), and update_ui_from_task().

◆ update_ui_file_list_from_task

void ui::task::TaskView::update_ui_file_list_from_task ( )
privateslot

References closure_error::model, and task_.

Referenced by TaskView(), and update_ui_from_task().

◆ update_ui_from_task

void ui::task::TaskView::update_ui_from_task ( )
privateslot

Member Data Documentation

◆ previewed_file_

FileID ui::task::TaskView::previewed_file_
private

Referenced by file_changed(), and preview_file().

◆ task_

TaskSP ui::task::TaskView::task_
private

◆ ui

Ui::TaskView* ui::task::TaskView::ui
private

Referenced by ~TaskView().

◆ viewer_

QWidget* ui::task::TaskView::viewer_ = nullptr
private

Referenced by preview_file().


The documentation for this class was generated from the following files: