containerfactory.cpp
243 KFormDesigner::Container *container = m_form->objectTree()->lookup(m_containername)->container();
false);
251 TQWidget *page = container->form()->library()->createWidget("TQWidget", parent, m_name.latin1(), container);
363 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "buttonGroup"));
381 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "tabWidget"));
391 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "container"));
401 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "groupBox"));
410 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "frame"));
419 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "widgetStack"));
428 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "horizontalBox"));
437 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "verticalBox"));
446 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "gridBox"));
457 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "splitter"));
467 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "rowLayout"));
477 i18n("Widget name. This string will be used to name widgets of this class. It must _not_ contain white spaces and non latin1 characters.", "columnLayout"));
622ContainerFactory::previewWidget(const TQCString &classname, TQWidget *widget, KFormDesigner::Container *container)
654 if((classname == "KFDTabWidget") || (w->parentWidget()->parentWidget()->inherits("TQTabWidget")))
663 int id = menu->insertItem(SmallIconSet("tab_new"), i18n("Add Page"), this, TQ_SLOT(addTabPage()) );
664 id = menu->insertItem(SmallIconSet("edit"), i18n("Rename Page..."), this, TQ_SLOT(renameTabPage()));
665 id = menu->insertItem(SmallIconSet("tab_remove"), i18n("Remove Page"), this, TQ_SLOT(removeTabPage()));
671 else if(w->parentWidget()->isA("TQWidgetStack") && !w->parentWidget()->parentWidget()->inherits("TQTabWidget"))
679// m_container = container->form()->objectTree()->lookup(m_widget->name())->parent()->container();
682 int id = menu->insertItem(SmallIconSet("tab_new"), i18n("Add Page"), this, TQ_SLOT(addStackPage()) );
684 id = menu->insertItem(SmallIconSet("tab_remove"), i18n("Remove Page"), this, TQ_SLOT(removeStackPage()) );
689 id = menu->insertItem(SmallIconSet("go-next"), i18n("Jump to Next Page"), this, TQ_SLOT(nextStackPage()));
702ContainerFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container)
708 TQRect r = TQRect(group->x()+2, group->y()-5, group->width()-10, w->fontMetrics().height() + 10);
723ContainerFactory::saveSpecialProperty(const TQCString &, const TQString &name, const TQVariant &, TQWidget *w, TQDomElement &parentNode, TQDomDocument &parent)
728 KFormDesigner::FormIO::savePropertyElement(parentNode, parent, "attribute", "title", tab->tabLabel(w));
741ContainerFactory::readSpecialProperty(const TQCString &, TQDomElement &node, TQWidget *w, KFormDesigner::ObjectTreeItem *item)
799 ok = (m_showAdvancedProperties || (property != "tabReorderingEnabled" && property != "hoverCloseButton" && property != "hoverCloseButtonDelayed"));
859 TQString name = KInputDialog::getText(i18n("New Page Title"), i18n("Enter a new title for the current page:"),
virtual TQValueList< TQCString > autoSaveProperties(const TQCString &classname)
Definition containerfactory.cpp:766
virtual bool previewWidget(const TQCString &classname, TQWidget *widget, KFormDesigner::Container *container)
Definition containerfactory.cpp:622
virtual bool changeText(const TQString &newText)
Definition containerfactory.cpp:806
virtual void resizeEditor(TQWidget *editor, TQWidget *widget, const TQCString &classname)
Definition containerfactory.cpp:813
ContainerFactory(TQObject *parent, const char *name, const TQStringList &args)
Definition containerfactory.cpp:355
virtual bool saveSpecialProperty(const TQCString &classname, const TQString &name, const TQVariant &value, TQWidget *w, TQDomElement &parentNode, TQDomDocument &parent)
Definition containerfactory.cpp:723
virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu, KFormDesigner::Container *container)
Definition containerfactory.cpp:647
virtual bool readSpecialProperty(const TQCString &classname, TQDomElement &node, TQWidget *w, KFormDesigner::ObjectTreeItem *item)
Definition containerfactory.cpp:741
virtual bool startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container)
Definition containerfactory.cpp:702
virtual bool isPropertyVisibleInternal(const TQCString &classname, TQWidget *w, const TQCString &property, bool isTopLevel)
Definition containerfactory.cpp:777
virtual TQWidget * createWidget(const TQCString &classname, TQWidget *parent, const char *name, KFormDesigner::Container *container, int options=DefaultOptions)
Creates a widget (and if needed a KFormDesigner::Container)
Definition containerfactory.cpp:508
void handleDropEvent(TQDropEvent *e)
Needed to control dropping on the container's surface.
virtual void dragMoveEvent(TQDragMoveEvent *e)
Used to emit handleDragMoveEvent() signal needed to control dragging over the container's surface.
Definition containerfactory.cpp:81
void handleDragMoveEvent(TQDragMoveEvent *e)
Needed to control dragging over the container's surface.
virtual void dropEvent(TQDropEvent *e)
Used to emit handleDropEvent() signal needed to control dropping on the container's surface.
Definition containerfactory.cpp:87
virtual void dragMoveEvent(TQDragMoveEvent *e)
Used to emit handleDragMoveEvent() signal needed to control dragging over the container's surface.
Definition containerfactory.cpp:104
void handleDragMoveEvent(TQDragMoveEvent *e)
Needed to control dragging over the container's surface.
void handleDropEvent(TQDropEvent *e)
Needed to control dropping on the container's surface.
virtual void dropEvent(TQDropEvent *e)
Used to emit handleDropEvent() signal needed to control dropping on the container's surface.
Definition containerfactory.cpp:110
HBox(TQWidget *parent, const char *name)
Various layout widgets /////////////////:
Definition containerfactory.cpp:155
Helper widget (used when using 'Lay out with horizontal flow')
Definition containerfactory.h:104
void handleDropEvent(TQDropEvent *e)
Needed to control dropping on the container's surface.
virtual void dragMoveEvent(TQDragMoveEvent *e)
Used to emit handleDragMoveEvent() signal needed to control dragging over the container's surface.
Definition containerfactory.cpp:137
virtual void dropEvent(TQDropEvent *e)
Used to emit handleDropEvent() signal needed to control dropping on the container's surface.
Definition containerfactory.cpp:145
void handleDragMoveEvent(TQDragMoveEvent *e)
Needed to control dragging over the container's surface.
void createToplevel(TQWidget *container, FormWidget *formWidget=0, const TQCString &classname="TQWidget")
Definition form.cpp:127
An item representing a widget Holds the properties of a widget (classname, name, parent,...
Definition objecttree.h:59
const TQStringVariantMap * modifiedProperties() const
Definition objecttree.h:73
void addModifiedProperty(const TQCString &property, const TQVariant &oldValue)
Definition objecttree.cpp:78
TQCString generateUniqueName(const TQCString &prefix, bool numberSuffixRequired=true)
Definition objecttree.cpp:228
ObjectTreeItem * lookup(const TQString &name)
Definition objecttree.cpp:185
void createEditor(const TQCString &classname, const TQString &text, TQWidget *w, Container *container, TQRect geometry, int align, bool useFrame=false, bool multiLine=false, BackgroundMode background=TQt::NoBackground)
Definition widgetfactory.cpp:185
void changeProperty(const char *name, const TQVariant &value, Form *form)
Definition widgetfactory.cpp:508
bool m_showAdvancedProperties
Definition widgetfactory.h:498
This class holds properties of widget classes provided by a factory.
Definition widgetfactory.h:66
void setSavingName(const TQString &saveName)
Definition widgetfactory.h:136
void addAlternateClassName(const TQCString &alternateName, bool override=false)
Definition widgetfactory.cpp:87
void setAutoSyncForProperty(const char *propertyName, tristate flag)
Definition widgetfactory.cpp:106
void setIncludeFileName(const TQString &name)
Definition widgetfactory.h:104
TQWidget * createWidget(const TQCString &classname, TQWidget *parent, const char *name, Container *c, int options=WidgetFactory::DefaultOptions)
searches the right factory and creates a widget.
Definition widgetlibrary.cpp:362
Helper widget (used when using 'Lay out with horizontal flow')
Definition containerfactory.h:120
Definition commands.cpp:1519
KFORMEDITOR_EXPORT TQSize getSizeFromChildren(TQWidget *widget, const char *inheritClass="TQWidget")
Definition formeditor/utils.cpp:106
