Re-defined QTreeWidget that contains info on canvases and their photos. Contains method to obtain corresponding delegate, as well as related signals and slots for content modification.
More...
#include <TreeWidget.h>
|
virtual void | mousePressEvent (QMouseEvent *event) |
|
Re-defined QTreeWidget that contains info on canvases and their photos. Contains method to obtain corresponding delegate, as well as related signals and slots for content modification.
§ CanvasPhotoWidget()
CanvasPhotoWidget::CanvasPhotoWidget |
( |
QWidget * |
parent = 0 | ) |
|
§ getCanvasDelegate()
§ onCanvasAdded
void CanvasPhotoWidget::onCanvasAdded |
( |
const std::string & |
name | ) |
|
|
slot |
Slot called after a canvas was added to scene graph.
- Parameters
-
name | is the string name of the canvas that will be added as a new item to the widget. |
§ onCanvasRemoved
void CanvasPhotoWidget::onCanvasRemoved |
( |
int |
row | ) |
|
|
slot |
Slot called after a canvas is removed from scene graph.
- Parameters
-
row | is the integer row of an item to be removed from the canvas widget. |
§ onCanvasSelectedColor
void CanvasPhotoWidget::onCanvasSelectedColor |
( |
int |
row, |
|
|
int |
color |
|
) |
| |
|
slot |
Slot called whenever the status of canvas is changed: to "current", or "previous" or "rest".
- Parameters
-
row | is the integer row number of the corresponding item in the widget, |
color | is a color indicator |
§ onCanvasVisibilitySet
void CanvasPhotoWidget::onCanvasVisibilitySet |
( |
int |
row, |
|
|
bool |
visibility |
|
) |
| |
|
slot |
Slot called whenever canvas visibility is set (not by user), e.g., on file read or by going to specific bookmark.
§ onPhotoAdded
void CanvasPhotoWidget::onPhotoAdded |
( |
const std::string & |
name, |
|
|
int |
rowParent |
|
) |
| |
|
slot |
Slot called after a photo was added to scene graph.
- Parameters
-
name | is the string name of newly added photo, |
rowParent | is the index of canvas-parent. |
§ onPhotoRemoved
void CanvasPhotoWidget::onPhotoRemoved |
( |
int |
rowP, |
|
|
int |
row |
|
) |
| |
|
slot |
Slot called after a photo was removed from scene graph.
- Parameters
-
rowP | is row index of canvas-parent, |
row | is the index of photo-child. |
§ photoDraggedAndDropped
void CanvasPhotoWidget::photoDraggedAndDropped |
( |
int |
parent, |
|
|
int |
start, |
|
|
int |
end, |
|
|
int |
destination, |
|
|
int |
row |
|
) |
| |
|
signal |
Signal to inform whenver user performs drag-and-drop action.
§ rightClicked
void CanvasPhotoWidget::rightClicked |
( |
const QModelIndex & |
index | ) |
|
|
signal |
Signal to inform whenver user performs a right click action.
The documentation for this class was generated from the following files: