anatomist  5.1.2
3D neuroimaging data viewer
QLabelEdit Class Reference

Editor window for labels (interaction with hierarchies) More...

#include <anatomist/browser/labeledit.h>

Inheritance diagram for QLabelEdit:
Collaboration diagram for QLabelEdit:

Public Slots

void accept ()
 
void reject ()
 

Public Member Functions

 QLabelEdit (const std::string &text, int x, int y, unsigned w, unsigned h, QObjectBrowser *br, carto::GenericObject *ao, const std::string &att, QTreeWidgetItem *item, QWidget *parent=theAnatomist->getQWidgetAncestor(), const char *name=0, Qt::WindowFlags f=Qt::WindowFlags())
 
 QLabelEdit (const std::string &text, int x, int y, unsigned w, unsigned h, QObjectBrowser *br, const std::set< carto::GenericObject * > &ao, const std::string &att, const std::set< QTreeWidgetItem * > &item, QWidget *parent=theAnatomist->getQWidgetAncestor(), const char *name=0, Qt::WindowFlags f=Qt::WindowFlags())
 
 ~QLabelEdit ()
 
std::string text () const
 
carto::GenericObjectattributed () const
 
std::set< carto::GenericObject * > attributedObjects () const
 
std::string attrib () const
 
QTreeWidgetItem * item () const
 
std::set< QTreeWidgetItem * > items () const
 
void receiveValue (const std::string &val)
 Receive input from a browser (click on a hierarchy) More...
 

Protected Member Functions

void drawContents (const std::string &text, int x, int y, unsigned w, unsigned h, const char *name)
 

Protected Attributes

QObjectBrowser_browser
 
QCancelLineEdit_le
 
std::string _att
 

Detailed Description

Editor window for labels (interaction with hierarchies)

Definition at line 48 of file labeledit.h.

Constructor & Destructor Documentation

◆ QLabelEdit() [1/2]

QLabelEdit::QLabelEdit ( const std::string &  text,
int  x,
int  y,
unsigned  w,
unsigned  h,
QObjectBrowser br,
carto::GenericObject ao,
const std::string &  att,
QTreeWidgetItem *  item,
QWidget *  parent = theAnatomist->getQWidgetAncestor(),
const char *  name = 0,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ QLabelEdit() [2/2]

QLabelEdit::QLabelEdit ( const std::string &  text,
int  x,
int  y,
unsigned  w,
unsigned  h,
QObjectBrowser br,
const std::set< carto::GenericObject * > &  ao,
const std::string &  att,
const std::set< QTreeWidgetItem * > &  item,
QWidget *  parent = theAnatomist->getQWidgetAncestor(),
const char *  name = 0,
Qt::WindowFlags  f = Qt::WindowFlags() 
)

◆ ~QLabelEdit()

QLabelEdit::~QLabelEdit ( )

Member Function Documentation

◆ accept

void QLabelEdit::accept ( )
slot

◆ attrib()

std::string QLabelEdit::attrib ( ) const
inline

Definition at line 66 of file labeledit.h.

References _att.

◆ attributed()

carto::GenericObject* QLabelEdit::attributed ( ) const

◆ attributedObjects()

std::set<carto::GenericObject*> QLabelEdit::attributedObjects ( ) const

◆ drawContents()

void QLabelEdit::drawContents ( const std::string &  text,
int  x,
int  y,
unsigned  w,
unsigned  h,
const char *  name 
)
protected

◆ item()

QTreeWidgetItem* QLabelEdit::item ( ) const

◆ items()

std::set<QTreeWidgetItem*> QLabelEdit::items ( ) const

◆ receiveValue()

void QLabelEdit::receiveValue ( const std::string &  val)

Receive input from a browser (click on a hierarchy)

References slots.

◆ reject

void QLabelEdit::reject ( )
slot

◆ text()

std::string QLabelEdit::text ( ) const

Member Data Documentation

◆ _att

std::string QLabelEdit::_att
protected

Definition at line 83 of file labeledit.h.

Referenced by attrib().

◆ _browser

QObjectBrowser* QLabelEdit::_browser
protected

Definition at line 81 of file labeledit.h.

◆ _le

QCancelLineEdit* QLabelEdit::_le
protected

Definition at line 82 of file labeledit.h.


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