containerfactory.cpp
235 KFormDesigner::Container *container = m_form->objectTree()->lookup(m_containername)->container();
243 TQWidget *page = container->form()->library()->createWidget("TQWidget", parent, m_name.latin1(), container);
355 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"));
369 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"));
379 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"));
389 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"));
398 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"));
407 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"));
416 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"));
425 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"));
434 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"));
445 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"));
455 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"));
465 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"));
610ContainerFactory::previewWidget(const TQCString &classname, TQWidget *widget, KFormDesigner::Container *container)
642 if((classname == "KFDTabWidget") || (w->parentWidget()->parentWidget()->inherits("TQTabWidget")))
651 int id = menu->insertItem(SmallIconSet("tab_new"), i18n("Add Page"), this, TQ_SLOT(addTabPage()) );
652 id = menu->insertItem(SmallIconSet("edit"), i18n("Rename Page..."), this, TQ_SLOT(renameTabPage()));
653 id = menu->insertItem(SmallIconSet("tab_remove"), i18n("Remove Page"), this, TQ_SLOT(removeTabPage()));
659 else if(w->parentWidget()->isA("TQWidgetStack") && !w->parentWidget()->parentWidget()->inherits("TQTabWidget"))
667// m_container = container->form()->objectTree()->lookup(m_widget->name())->parent()->container();
670 int id = menu->insertItem(SmallIconSet("tab_new"), i18n("Add Page"), this, TQ_SLOT(addStackPage()) );
672 id = menu->insertItem(SmallIconSet("tab_remove"), i18n("Remove Page"), this, TQ_SLOT(removeStackPage()) );
677 id = menu->insertItem(SmallIconSet("go-next"), i18n("Jump to Next Page"), this, TQ_SLOT(nextStackPage()));
690ContainerFactory::startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container)
696 TQRect r = TQRect(group->x()+2, group->y()-5, group->width()-10, w->fontMetrics().height() + 10);
711ContainerFactory::saveSpecialProperty(const TQCString &, const TQString &name, const TQVariant &, TQWidget *w, TQDomElement &parentNode, TQDomDocument &parent)
716 KFormDesigner::FormIO::savePropertyElement(parentNode, parent, "attribute", "title", tab->tabLabel(w));
721 KFormDesigner::FormIO::savePropertyElement(parentNode, parent, "attribute", "id", stack->id(w));
729ContainerFactory::readSpecialProperty(const TQCString &, TQDomElement &node, TQWidget *w, KFormDesigner::ObjectTreeItem *item)
787 ok = (m_showAdvancedProperties || (property != "tabReorderingEnabled" && property != "hoverCloseButton" && property != "hoverCloseButtonDelayed"));
847 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:754
virtual bool previewWidget(const TQCString &classname, TQWidget *widget, KFormDesigner::Container *container)
Definition containerfactory.cpp:610
virtual bool changeText(const TQString &newText)
Definition containerfactory.cpp:794
virtual void resizeEditor(TQWidget *editor, TQWidget *widget, const TQCString &classname)
Definition containerfactory.cpp:801
ContainerFactory(TQObject *parent, const char *name, const TQStringList &args)
Definition containerfactory.cpp:347
virtual bool saveSpecialProperty(const TQCString &classname, const TQString &name, const TQVariant &value, TQWidget *w, TQDomElement &parentNode, TQDomDocument &parent)
Definition containerfactory.cpp:711
virtual bool createMenuActions(const TQCString &classname, TQWidget *w, TQPopupMenu *menu, KFormDesigner::Container *container)
Definition containerfactory.cpp:635
virtual bool readSpecialProperty(const TQCString &classname, TQDomElement &node, TQWidget *w, KFormDesigner::ObjectTreeItem *item)
Definition containerfactory.cpp:729
virtual bool startEditing(const TQCString &classname, TQWidget *w, KFormDesigner::Container *container)
Definition containerfactory.cpp:690
virtual bool isPropertyVisibleInternal(const TQCString &classname, TQWidget *w, const TQCString &property, bool isTopLevel)
Definition containerfactory.cpp:765
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:496
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:73
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:79
virtual void dragMoveEvent(TQDragMoveEvent *e)
Used to emit handleDragMoveEvent() signal needed to control dragging over the container's surface.
Definition containerfactory.cpp:96
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:102
HBox(TQWidget *parent, const char *name)
Various layout widgets /////////////////:
Definition containerfactory.cpp:147
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:129
virtual void dropEvent(TQDropEvent *e)
Used to emit handleDropEvent() signal needed to control dropping on the container's surface.
Definition containerfactory.cpp:137
void handleDragMoveEvent(TQDragMoveEvent *e)
Needed to control dragging over the container's surface.
static void savePropertyElement(TQDomElement &parentNode, TQDomDocument &domDoc, const TQString &tagName, const TQString &property, const TQVariant &value)
Definition formIO.cpp:728
static bool loadFormFromFile(Form *form, TQWidget *container, const TQString &filename=TQString())
Definition formIO.cpp:272
static TQVariant readPropertyValue(TQDomNode node, TQObject *obj, const TQString &name)
Definition formIO.cpp:737
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:1515
KFORMEDITOR_EXPORT TQSize getSizeFromChildren(TQWidget *widget, const char *inheritClass="TQWidget")
Definition formeditor/utils.cpp:106
