MorphoGraphX  2.0-1-227
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Attributes | List of all members
LabelEditorDlg Class Reference

#include <LabelEditorDlg.hpp>

+ Inheritance diagram for LabelEditorDlg:

Public Slots

void importLabels ()
 
void exportLabels ()
 
bool importLabels (QString filename)
 
bool exportLabels (QString filename)
 
void makeLabelCurrent ()
 
void selectLabel ()
 
void setCurrentLabel (int label)
 

Signals

void update ()
 
void selectLabel (int label, int repeat, bool replaceSelection)
 
void makeLabelCurrent (int label)
 

Public Member Functions

 LabelEditorDlg (std::vector< mgx::Colorf > *colors, QWidget *parent)
 
 ~LabelEditorDlg ()
 

Protected Slots

void on_buttonBox_clicked (QAbstractButton *btn)
 
void on_setNbColors_clicked ()
 
void on_labelsView_doubleClicked (const QModelIndex &idx)
 
void on_labelsView_customContextMenuRequested (const QPoint &pos)
 
void on_showCurrent_clicked ()
 
void on_makeGray_clicked ()
 
void on_makeRandom_clicked ()
 
void changeNbItems ()
 

Protected Attributes

int currentLabel
 
int selectedLabel
 
LabelModel_model
 
Ui::LabelEditorDlg * ui
 
QPushButton * importButton
 
QPushButton * exportButton
 
QAction * selectLabelAction
 
QAction * makeLabelCurrentAction
 

Detailed Description

Definition at line 61 of file LabelEditorDlg.hpp.

Constructor & Destructor Documentation

◆ LabelEditorDlg()

LabelEditorDlg::LabelEditorDlg ( std::vector< mgx::Colorf > *  colors,
QWidget *  parent 
)

◆ ~LabelEditorDlg()

LabelEditorDlg::~LabelEditorDlg ( )

Member Function Documentation

◆ changeNbItems

void LabelEditorDlg::changeNbItems ( )
protectedslot

◆ exportLabels [1/2]

void LabelEditorDlg::exportLabels ( )
slot

◆ exportLabels [2/2]

bool LabelEditorDlg::exportLabels ( QString  filename)
slot

◆ importLabels [1/2]

void LabelEditorDlg::importLabels ( )
slot

◆ importLabels [2/2]

bool LabelEditorDlg::importLabels ( QString  filename)
slot

◆ makeLabelCurrent [1/2]

void LabelEditorDlg::makeLabelCurrent ( )
slot

◆ makeLabelCurrent [2/2]

void LabelEditorDlg::makeLabelCurrent ( int  label)
signal

◆ on_buttonBox_clicked

void LabelEditorDlg::on_buttonBox_clicked ( QAbstractButton *  btn)
protectedslot

◆ on_labelsView_customContextMenuRequested

void LabelEditorDlg::on_labelsView_customContextMenuRequested ( const QPoint &  pos)
protectedslot

◆ on_labelsView_doubleClicked

void LabelEditorDlg::on_labelsView_doubleClicked ( const QModelIndex &  idx)
protectedslot

◆ on_makeGray_clicked

void LabelEditorDlg::on_makeGray_clicked ( )
protectedslot

◆ on_makeRandom_clicked

void LabelEditorDlg::on_makeRandom_clicked ( )
protectedslot

◆ on_setNbColors_clicked

void LabelEditorDlg::on_setNbColors_clicked ( )
protectedslot

◆ on_showCurrent_clicked

void LabelEditorDlg::on_showCurrent_clicked ( )
protectedslot

◆ selectLabel [1/2]

void LabelEditorDlg::selectLabel ( )
slot

◆ selectLabel [2/2]

void LabelEditorDlg::selectLabel ( int  label,
int  repeat,
bool  replaceSelection 
)
signal

◆ setCurrentLabel

void LabelEditorDlg::setCurrentLabel ( int  label)
slot

◆ update

void LabelEditorDlg::update ( )
signal

Member Data Documentation

◆ _model

LabelModel* LabelEditorDlg::_model
protected

Definition at line 93 of file LabelEditorDlg.hpp.

◆ currentLabel

int LabelEditorDlg::currentLabel
protected

Definition at line 92 of file LabelEditorDlg.hpp.

◆ exportButton

QPushButton * LabelEditorDlg::exportButton
protected

Definition at line 95 of file LabelEditorDlg.hpp.

◆ importButton

QPushButton* LabelEditorDlg::importButton
protected

Definition at line 95 of file LabelEditorDlg.hpp.

◆ makeLabelCurrentAction

QAction * LabelEditorDlg::makeLabelCurrentAction
protected

Definition at line 96 of file LabelEditorDlg.hpp.

◆ selectedLabel

int LabelEditorDlg::selectedLabel
protected

Definition at line 92 of file LabelEditorDlg.hpp.

◆ selectLabelAction

QAction* LabelEditorDlg::selectLabelAction
protected

Definition at line 96 of file LabelEditorDlg.hpp.

◆ ui

Ui::LabelEditorDlg* LabelEditorDlg::ui
protected

Definition at line 94 of file LabelEditorDlg.hpp.


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