35 #ifndef ANAQT_BROWSER_LABELEDIT_H 36 #define ANAQT_BROWSER_LABELEDIT_H 44 class QTreeWidgetItem;
53 QLabelEdit(
const std::string &
text,
int x,
int y,
unsigned w,
unsigned h,
55 const std::string & att, QTreeWidgetItem*
item,
57 QLabelEdit(
const std::string & text,
int x,
int y,
unsigned w,
unsigned h,
59 const std::string & att,
const std::set<QTreeWidgetItem*> & item,
63 std::string
text()
const;
67 QTreeWidgetItem*
item()
const;
68 std::set<QTreeWidgetItem*>
items()
const;
78 void drawContents(
const std::string & text,
int x,
int y,
unsigned w,
79 unsigned h,
const char* name );
void receiveValue(const std::string &val)
Receive input from a browser (click on a hierarchy)
A "cancelable" line edit: hitting 'esc' sends the "cancel()" signal.
std::string attrib() const
void drawContents(const std::string &text, int x, int y, unsigned w, unsigned h, const char *name)
QTreeWidgetItem * item() const
QObjectBrowser * _browser
anatomist::Anatomist *ANATOMIST_API theAnatomist
Pointer to the Anatomist application.
Editor window for labels (interaction with hierarchies)
std::set< carto::GenericObject * > attributedObjects() const
std::set< QTreeWidgetItem * > items() const
carto::GenericObject * attributed() const
QWidget * getQWidgetAncestor() const
Gets an empty QWidget that is created in Anatomist application to become a default parent for all Ana...
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=0)