casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Signals | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
casa::ImageScroll Class Reference

Displays a list of images, allowing the user to reorder them. More...

#include <ImageScroll.qo.h>

Inheritance diagram for casa::ImageScroll:

Signals

void displayDataRemoved (QtDisplayData *imageData, bool)
 An display data was closed. More...
 
void displayDataAdded (QtDisplayData *imageData)
 A display data was added. More...
 
void displayTypeChanged (ImageView *displayData)
 Change from raster, contour,vector, marker. More...
 
void imageOrderingChanged (QtDisplayData *imageData, int dropIndex, bool registered, bool masterCoordinate)
 Image was moved by the user. More...
 
void masterCoordinateImageChanged (QtDisplayData *imageData)
 The new display data became in charge of setting the coordinate system. More...
 
void showDataDisplayOptions (QtDisplayData *imageName)
 Show the display options for this data. More...
 
void registrationChange (ImageView *imageView)
 Either register/unregister occured for the ImageView. More...
 
void animateToImage (int index)
 

Public Member Functions

 ImageScroll (QWidget *parent=0)
 
QList< ImageView * > getViews ()
 Accessors. More...
 
QtDisplayDatagetHueMaster () const
 Returncds the image in charge of defining the hue color. More...
 
QtDisplayDatagetSaturationMaster () const
 Returns the image in charge of defining the saturation color. More...
 
QtDisplayDatagetCoordinateMaster () const
 
int getImageCount () const
 Returns the number of open images. More...
 
int getRegisteredCount () const
 Returns the number of registered images. More...
 
int getRegisteredIndex (int dropIndex, bool rastersOnly=false) const
 Returns the registeration index of the image with open index given by dropIndex. More...
 
int getIndex (ImageView *view)
 Returns the open index of the image. More...
 
void setViewedImage (int registrationIndex)
 Setters Index of image currently being viewed in animator. More...
 
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. More...
 
void closeImages ()
 ImageManipulation. More...
 
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. More...
 
void coordinateSystemChanged (ImageView *imageData)
 Called by an ImageView when it has been selected to be the new master coordinate image. More...
 
void masterCoordinateClear ()
 There should be no display data used to set the master coordinate system. More...
 
void hueImageChanged (ImageView *imageData)
 The master image used to determine hue has changed. More...
 
void saturationImageChanged (ImageView *imageData)
 The master image used to determine color saturation has changed. More...
 
void viewImage (ImageView *imageView)
 

Private Member Functions

 ImageScroll (const ImageScroll &other)
 
ImageScroll operator= (const ImageScroll &other)
 
void resetMasterCoordinate (ImageView *newMaster)
 casacore::Coordinate system master image More...
 
void addImage (ImageView *imageView, int dropIndex=-1)
 Adding/removing images from the layout. More...
 
void removeImageViewLayout (ImageView *imageView)
 
void addImageViewLayout (ImageView *viewerImage, int dropIndex)
 
int findImageView (QString name, bool exactMatch=true)
 Returns the index of a particular image. More...
 
QString removeSuffixes (QString name) const
 
QString stripBold (QString name) const
 
int getDropIndex (int dropY)
 Drag and drop. More...
 
void insertDragMarker (int position)
 
void removeDragMarker ()
 
int getDragMarkerLayoutIndex () const
 
ImageViewgetMimeImageView (const QMimeData *mimeData)
 

Private Attributes

QSpacerItem * spacer
 
QFrame * dropMarker
 Horizontal line showing where the image will be placed when it is reordered. More...
 
const int LAYOUT_SPACING
 
const int LAYOUT_MARGIN
 
QList< ImageView * > images
 
QWidget * scrollWidget
 
Ui::ImageScrollClass ui
 

Detailed Description

Displays a list of images, allowing the user to reorder them.

Definition at line 47 of file ImageScroll.qo.h.

Constructor & Destructor Documentation

casa::ImageScroll::ImageScroll ( QWidget *  parent = 0)
virtual casa::ImageScroll::~ImageScroll ( )
virtual
casa::ImageScroll::ImageScroll ( const ImageScroll other)
private

Member Function Documentation

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 
)
privateslot

Close this particular image view.

void casa::ImageScroll::closeImages ( )

ImageManipulation.

void casa::ImageScroll::coordinateSystemChanged ( ImageView imageData)
privateslot

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)
privateslot

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 ( )
privateslot

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

casacore::Coordinate system master image

void casa::ImageScroll::saturationImageChanged ( ImageView imageData)
privateslot

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)
privateslot

Member Data Documentation

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.


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