Displays a list of images, allowing the user to reorder them. More...
#include <ImageScroll.qo.h>
Signals | |
void | displayDataRemoved (QtDisplayData *imageData, bool) |
An display data was closed. | |
void | displayDataAdded (QtDisplayData *imageData) |
A display data was added. | |
void | displayTypeChanged (ImageView *displayData) |
Change from raster, contour,vector, marker. | |
void | imageOrderingChanged (QtDisplayData *imageData, int dropIndex, bool registered, bool masterCoordinate) |
Image was moved by the user. | |
void | masterCoordinateImageChanged (QtDisplayData *imageData) |
The new display data became in charge of setting the coordinate system. | |
void | showDataDisplayOptions (QtDisplayData *imageName) |
Show the display options for this data. | |
void | registrationChange (ImageView *imageView) |
Either register/unregister occured for the ImageView. | |
void | animateToImage (int index) |
Public Member Functions | |
ImageScroll (QWidget *parent=0) | |
QList< ImageView * > | getViews () |
Accessors. | |
QtDisplayData * | getHueMaster () const |
Returncds the image in charge of defining the hue color. | |
QtDisplayData * | getSaturationMaster () const |
Returns the image in charge of defining the saturation color. | |
QtDisplayData * | getCoordinateMaster () const |
int | getImageCount () const |
Returns the number of open images. | |
int | getRegisteredCount () const |
Returns the number of registered images. | |
int | getRegisteredIndex (int dropIndex, bool rastersOnly=false) const |
Returns the registeration index of the image with open index given by dropIndex. | |
int | getIndex (ImageView *view) |
Returns the open index of the image. | |
void | setViewedImage (int registrationIndex) |
Setters Index of image currently being viewed in animator. | |
void | setRegisterAll (bool selectAll) |
void | setColorCombinationMode (ImageView::ColorCombinationMode mode) |
void | setMasterCoordinateImage (QString masterCoordinateImageName) |
Called from the ImageManagerDialog, when a new master coordinate image has been selected programmatically by the viewer. | |
void | closeImages () |
ImageManipulation. | |
void | addDisplayDataLayout (QtDisplayData *displayData, int dropIndex) |
void | addImageView (QtDisplayData *displayData, bool registered, ImageView::ColorCombinationMode mode, int dropIndex=-1, bool masterCoordinate=false, bool masterSaturation=false, bool masterHue=false, QColor rgbColor=QColor("#D3D3D3")) |
void | removeDisplayDataLayout (QtDisplayData *displayData) |
void | removeImageView (QtDisplayData *displayData) |
virtual | ~ImageScroll () |
Protected Member Functions | |
void | dragEnterEvent (QDragEnterEvent *enterEvent) |
void | dropEvent (QDropEvent *dropEvent) |
void | dragMoveEvent (QDragMoveEvent *dragMoveEvent) |
void | dragLeaveEvent (QDragLeaveEvent *leaveEvent) |
Private Slots | |
void | closeImage (ImageView *imageView, bool deleteImage=true) |
Close this particular image view. | |
void | coordinateSystemChanged (ImageView *imageData) |
Called by an ImageView when it has been selected to be the new master coordinate image. | |
void | masterCoordinateClear () |
There should be no display data used to set the master coordinate system. | |
void | hueImageChanged (ImageView *imageData) |
The master image used to determine hue has changed. | |
void | saturationImageChanged (ImageView *imageData) |
The master image used to determine color saturation has changed. | |
void | viewImage (ImageView *imageView) |
Private Member Functions | |
ImageScroll (const ImageScroll &other) | |
ImageScroll | operator= (const ImageScroll &other) |
void | resetMasterCoordinate (ImageView *newMaster) |
Coordinate system master image. | |
void | addImage (ImageView *imageView, int dropIndex=-1) |
Adding/removing images from the layout. | |
void | removeImageViewLayout (ImageView *imageView) |
void | addImageViewLayout (ImageView *viewerImage, int dropIndex) |
int | findImageView (QString name, bool exactMatch=true) |
Returns the index of a particular image. | |
QString | removeSuffixes (QString name) const |
QString | stripBold (QString name) const |
int | getDropIndex (int dropY) |
Drag and drop. | |
void | insertDragMarker (int position) |
void | removeDragMarker () |
int | getDragMarkerLayoutIndex () const |
ImageView * | getMimeImageView (const QMimeData *mimeData) |
Private Attributes | |
QSpacerItem * | spacer |
QFrame * | dropMarker |
Horizontal line showing where the image will be placed when it is reordered. | |
const int | LAYOUT_SPACING |
const int | LAYOUT_MARGIN |
QList< ImageView * > | images |
QWidget * | scrollWidget |
Ui::ImageScrollClass | ui |
Displays a list of images, allowing the user to reorder them.
Definition at line 47 of file ImageScroll.qo.h.
casa::ImageScroll::ImageScroll | ( | QWidget * | parent = 0 |
) |
virtual casa::ImageScroll::~ImageScroll | ( | ) | [virtual] |
casa::ImageScroll::ImageScroll | ( | const ImageScroll & | other | ) | [private] |
void casa::ImageScroll::addDisplayDataLayout | ( | QtDisplayData * | displayData, | |
int | dropIndex | |||
) |
void casa::ImageScroll::addImage | ( | ImageView * | imageView, | |
int | dropIndex = -1 | |||
) | [private] |
Adding/removing images from the layout.
void casa::ImageScroll::addImageView | ( | QtDisplayData * | displayData, | |
bool | registered, | |||
ImageView::ColorCombinationMode | mode, | |||
int | dropIndex = -1 , |
|||
bool | masterCoordinate = false , |
|||
bool | masterSaturation = false , |
|||
bool | masterHue = false , |
|||
QColor | rgbColor = QColor("#D3D3D3") | |||
) |
void casa::ImageScroll::addImageViewLayout | ( | ImageView * | viewerImage, | |
int | dropIndex | |||
) | [private] |
void casa::ImageScroll::animateToImage | ( | int | index | ) | [signal] |
void casa::ImageScroll::closeImage | ( | ImageView * | imageView, | |
bool | deleteImage = true | |||
) | [private, slot] |
Close this particular image view.
void casa::ImageScroll::closeImages | ( | ) |
ImageManipulation.
void casa::ImageScroll::coordinateSystemChanged | ( | ImageView * | imageData | ) | [private, slot] |
Called by an ImageView when it has been selected to be the new master coordinate image.
Percolates the event upward to the the ImageManagerDialog.
void casa::ImageScroll::displayDataAdded | ( | QtDisplayData * | imageData | ) | [signal] |
A display data was added.
void casa::ImageScroll::displayDataRemoved | ( | QtDisplayData * | imageData, | |
bool | ||||
) | [signal] |
An display data was closed.
void casa::ImageScroll::displayTypeChanged | ( | ImageView * | displayData | ) | [signal] |
Change from raster, contour,vector, marker.
void casa::ImageScroll::dragEnterEvent | ( | QDragEnterEvent * | enterEvent | ) | [protected] |
void casa::ImageScroll::dragLeaveEvent | ( | QDragLeaveEvent * | leaveEvent | ) | [protected] |
void casa::ImageScroll::dragMoveEvent | ( | QDragMoveEvent * | dragMoveEvent | ) | [protected] |
void casa::ImageScroll::dropEvent | ( | QDropEvent * | dropEvent | ) | [protected] |
int casa::ImageScroll::findImageView | ( | QString | name, | |
bool | exactMatch = true | |||
) | [private] |
Returns the index of a particular image.
QtDisplayData* casa::ImageScroll::getCoordinateMaster | ( | ) | const |
int casa::ImageScroll::getDragMarkerLayoutIndex | ( | ) | const [private] |
int casa::ImageScroll::getDropIndex | ( | int | dropY | ) | [private] |
Drag and drop.
QtDisplayData* casa::ImageScroll::getHueMaster | ( | ) | const |
Returncds the image in charge of defining the hue color.
\.
int casa::ImageScroll::getImageCount | ( | ) | const |
Returns the number of open images.
int casa::ImageScroll::getIndex | ( | ImageView * | view | ) |
Returns the open index of the image.
ImageView* casa::ImageScroll::getMimeImageView | ( | const QMimeData * | mimeData | ) | [private] |
int casa::ImageScroll::getRegisteredCount | ( | ) | const |
Returns the number of registered images.
int casa::ImageScroll::getRegisteredIndex | ( | int | dropIndex, | |
bool | rastersOnly = false | |||
) | const |
Returns the registeration index of the image with open index given by dropIndex.
QtDisplayData* casa::ImageScroll::getSaturationMaster | ( | ) | const |
Returns the image in charge of defining the saturation color.
QList<ImageView*> casa::ImageScroll::getViews | ( | ) |
Accessors.
void casa::ImageScroll::hueImageChanged | ( | ImageView * | imageData | ) | [private, slot] |
The master image used to determine hue has changed.
void casa::ImageScroll::imageOrderingChanged | ( | QtDisplayData * | imageData, | |
int | dropIndex, | |||
bool | registered, | |||
bool | masterCoordinate | |||
) | [signal] |
Image was moved by the user.
void casa::ImageScroll::insertDragMarker | ( | int | position | ) | [private] |
void casa::ImageScroll::masterCoordinateClear | ( | ) | [private, slot] |
There should be no display data used to set the master coordinate system.
void casa::ImageScroll::masterCoordinateImageChanged | ( | QtDisplayData * | imageData | ) | [signal] |
The new display data became in charge of setting the coordinate system.
ImageScroll casa::ImageScroll::operator= | ( | const ImageScroll & | other | ) | [private] |
void casa::ImageScroll::registrationChange | ( | ImageView * | imageView | ) | [signal] |
Either register/unregister occured for the ImageView.
void casa::ImageScroll::removeDisplayDataLayout | ( | QtDisplayData * | displayData | ) |
void casa::ImageScroll::removeDragMarker | ( | ) | [private] |
void casa::ImageScroll::removeImageView | ( | QtDisplayData * | displayData | ) |
void casa::ImageScroll::removeImageViewLayout | ( | ImageView * | imageView | ) | [private] |
QString casa::ImageScroll::removeSuffixes | ( | QString | name | ) | const [private] |
void casa::ImageScroll::resetMasterCoordinate | ( | ImageView * | newMaster | ) | [private] |
Coordinate system master image.
void casa::ImageScroll::saturationImageChanged | ( | ImageView * | imageData | ) | [private, slot] |
The master image used to determine color saturation has changed.
void casa::ImageScroll::setColorCombinationMode | ( | ImageView::ColorCombinationMode | mode | ) |
void casa::ImageScroll::setMasterCoordinateImage | ( | QString | masterCoordinateImageName | ) |
Called from the ImageManagerDialog, when a new master coordinate image has been selected programmatically by the viewer.
Percolates the selection downward to the ImageView so it can be displayed.
void casa::ImageScroll::setRegisterAll | ( | bool | selectAll | ) |
void casa::ImageScroll::setViewedImage | ( | int | registrationIndex | ) |
Setters Index of image currently being viewed in animator.
void casa::ImageScroll::showDataDisplayOptions | ( | QtDisplayData * | imageName | ) | [signal] |
Show the display options for this data.
QString casa::ImageScroll::stripBold | ( | QString | name | ) | const [private] |
void casa::ImageScroll::viewImage | ( | ImageView * | imageView | ) | [private, slot] |
QFrame* casa::ImageScroll::dropMarker [private] |
Horizontal line showing where the image will be placed when it is reordered.
Definition at line 159 of file ImageScroll.qo.h.
QList<ImageView*> casa::ImageScroll::images [private] |
Definition at line 162 of file ImageScroll.qo.h.
const int casa::ImageScroll::LAYOUT_MARGIN [private] |
Definition at line 161 of file ImageScroll.qo.h.
const int casa::ImageScroll::LAYOUT_SPACING [private] |
Definition at line 160 of file ImageScroll.qo.h.
QWidget* casa::ImageScroll::scrollWidget [private] |
Definition at line 163 of file ImageScroll.qo.h.
QSpacerItem* casa::ImageScroll::spacer [private] |
Definition at line 157 of file ImageScroll.qo.h.
Ui::ImageScrollClass casa::ImageScroll::ui [private] |
Definition at line 164 of file ImageScroll.qo.h.