20#include "kfdpixmapedit.h"
24#include <koproperty/property.h>
25#include "pixmapcollection.h"
26#include "formmanager.h"
28#include "objecttree.h"
32KFDPixmapEdit::KFDPixmapEdit(KoProperty::Property *property, TQWidget *parent, const char *name)
33 : KoProperty::PixmapEdit(property, parent, name)
38KFDPixmapEdit::~KFDPixmapEdit()
42KFDPixmapEdit::selectPixmap()
44 KoProperty::PixmapEdit::selectPixmap();
46 if(!m_manager->activeForm() || !property())
49 ObjectTreeItem *item = m_manager->activeForm()->objectTree()->lookup(m_manager->activeForm()->selectedWidget()->name());
50 TQString name = item ? item->pixmapName(property()->name()) : "";
51 PixmapCollectionChooser dialog( m_manager->activeForm()->pixmapCollection(), name, topLevelWidget() );
52 if(dialog.exec() == TQDialog::Accepted) {
53 setValue(dialog.pixmap(), true);
54 item->setPixmapName(property()->name(), dialog.pixmapName());
59#include "kfdpixmapedit.moc"
|