#include <ImageDialog.h>

Inheritance diagram for ImageDialog:
Inheritance graph
Collaboration diagram for ImageDialog:
Collaboration graph

Public Slots

void setImage (QString image)
 
void setLabel (QString label)
 
void updatePreview ()
 

Signals

void imageChanged (QString image)
 
void labelChanged (QString label)
 

Public Member Functions

 ImageDialog (QString title, QString image="", QString label="", QWidget *parent=0)
 
virtual ~ImageDialog ()
 
QString getImage ()
 
QPixmap getPixmap ()
 
QString getLabel ()
 

Protected Slots

void browseClicked ()
 
void imageEditEdited (const QString &)
 
void imageEditEdited ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *) override
 

Protected Attributes

QLineEdit * m_imageEdit
 
QLineEdit * m_labelEdit
 
QLabel * m_imagePreview
 
QString m_loadedImageFile
 
QPixmap m_loadedImage
 
QPushButton * m_okButton
 
FileSource * m_remoteFile
 

Detailed Description

Definition at line 27 of file ImageDialog.h.

Constructor & Destructor Documentation

ImageDialog::ImageDialog ( QString  title,
QString  image = "",
QString  label = "",
QWidget *  parent = 0 
)
ImageDialog::~ImageDialog ( )
virtual

Definition at line 112 of file ImageDialog.cpp.

References m_remoteFile.

Member Function Documentation

QString ImageDialog::getImage ( )

Definition at line 118 of file ImageDialog.cpp.

References m_loadedImageFile.

Referenced by ImageLayer::drawEnd(), and ImageLayer::editOpen().

QPixmap ImageDialog::getPixmap ( )

Definition at line 124 of file ImageDialog.cpp.

References m_loadedImage.

QString ImageDialog::getLabel ( )

Definition at line 130 of file ImageDialog.cpp.

References m_labelEdit.

Referenced by ImageLayer::drawEnd(), and ImageLayer::editOpen().

void ImageDialog::imageChanged ( QString  image)
signal

Referenced by browseClicked().

void ImageDialog::labelChanged ( QString  label)
signal
void ImageDialog::setImage ( QString  image)
slot

Definition at line 136 of file ImageDialog.cpp.

References m_imageEdit, and updatePreview().

Referenced by browseClicked(), and ImageDialog().

void ImageDialog::setLabel ( QString  label)
slot

Definition at line 143 of file ImageDialog.cpp.

References m_labelEdit.

Referenced by ImageDialog().

void ImageDialog::updatePreview ( )
slot
void ImageDialog::browseClicked ( )
protectedslot
void ImageDialog::imageEditEdited ( const QString &  s)
protectedslot

Definition at line 155 of file ImageDialog.cpp.

References updatePreview().

void ImageDialog::imageEditEdited ( )
protectedslot

Definition at line 164 of file ImageDialog.cpp.

References updatePreview().

Referenced by ImageDialog().

void ImageDialog::resizeEvent ( QResizeEvent *  )
overrideprotected

Definition at line 149 of file ImageDialog.cpp.

References updatePreview().

Member Data Documentation

QLineEdit* ImageDialog::m_imageEdit
protected

Definition at line 59 of file ImageDialog.h.

Referenced by ImageDialog(), setImage(), and updatePreview().

QLineEdit* ImageDialog::m_labelEdit
protected

Definition at line 60 of file ImageDialog.h.

Referenced by getLabel(), ImageDialog(), and setLabel().

QLabel* ImageDialog::m_imagePreview
protected

Definition at line 61 of file ImageDialog.h.

Referenced by ImageDialog(), and updatePreview().

QString ImageDialog::m_loadedImageFile
protected

Definition at line 63 of file ImageDialog.h.

Referenced by getImage(), and updatePreview().

QPixmap ImageDialog::m_loadedImage
protected

Definition at line 64 of file ImageDialog.h.

Referenced by getPixmap(), and updatePreview().

QPushButton* ImageDialog::m_okButton
protected

Definition at line 66 of file ImageDialog.h.

Referenced by ImageDialog(), and updatePreview().

FileSource* ImageDialog::m_remoteFile
protected

Definition at line 68 of file ImageDialog.h.

Referenced by updatePreview(), and ~ImageDialog().


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