![]() |
LeechCraft 0.6.70-18450-gabe19ee3b0
Modular cross-platform feature rich live environment.
|
#include "ijobholder.h"
Public Member Functions | |
| virtual | ~IJobHolderRepresentationHandler ()=default |
| virtual QAbstractItemModel & | GetRepresentation ()=0 |
| Returns the item representation model. | |
| virtual void | HandleCurrentChanged (const QModelIndex &) |
| virtual void | HandleCurrentColumnChanged (const QModelIndex &) |
| virtual void | HandleCurrentRowChanged (const QModelIndex &) |
| virtual void | HandleSelectedRowsChanged (const QList< QModelIndex > &) |
| virtual void | HandleActivated (const QModelIndex &) |
| virtual void | HandleClicked (const QModelIndex &) |
| virtual void | HandleDoubleClicked (const QModelIndex &) |
| virtual void | HandleEntered (const QModelIndex &) |
| virtual void | HandlePressed (const QModelIndex &) |
| virtual QWidget * | GetInfoWidget () |
| virtual QToolBar * | GetControls () |
| virtual QMenu * | GetContextMenu () |
Definition at line 117 of file ijobholder.h.
|
virtualdefault |
|
inlinevirtual |
Definition at line 169 of file ijobholder.h.
|
inlinevirtual |
Definition at line 168 of file ijobholder.h.
|
inlinevirtual |
Definition at line 167 of file ijobholder.h.
|
pure virtual |
Returns the item representation model.
The returned model is role-based: each row should provide a RowInfo via JobHolderRole::RowInfo, and process rows should also provide JobHolderProcessRole values (Done, Total, State, StateCustomText). Inside of LeechCraft the model would be merged with other models from other plugins.
This model is also used to retrieve controls and additional info for a given index via the CustomDataRoles::RoleControls and CustomDataRoles::RoleAdditionalInfo respectively.
Returned controls widget would be placed above the view with the jobs, so usually it has some actions controlling the job, but in fact it can have anything you want. It is only visible when a job from your plugin is selected. If a job from other plugin is selected, then other plugin's controls would be placed, and if no jobs are selected at all then all controls are hidden.
Widget with the additional information is placed to the right of the view with the jobs, so usually it has additional information about the job like transfer log for FTP client, but in fact it can have anything you want. The same rules regarding its visibility apply as for controls widget.
|
inlinevirtual |
Definition at line 161 of file ijobholder.h.
|
inlinevirtual |
Definition at line 162 of file ijobholder.h.
|
inlinevirtual |
Definition at line 156 of file ijobholder.h.
|
inlinevirtual |
Definition at line 157 of file ijobholder.h.
|
inlinevirtual |
Definition at line 158 of file ijobholder.h.
|
inlinevirtual |
Definition at line 163 of file ijobholder.h.
|
inlinevirtual |
Definition at line 164 of file ijobholder.h.
|
inlinevirtual |
Definition at line 165 of file ijobholder.h.
|
inlinevirtual |
Definition at line 159 of file ijobholder.h.