keximacrodesignview.cpp
110KexiMacroDesignView::KexiMacroDesignView(KexiMainWindow *mainwin, TQWidget *parent, ::KoMacro::Macro* const macro)
162 d->datatable = new KexiDataTable(mainWin(), this, "Macro KexiDataTable", false /*not db aware*/);
166 d->tableview->setColumnStretchEnabled( true, COLUMN_ID_COMMENT ); //last column occupies the rest of the area
176 connect(d->tabledata, TQ_SIGNAL(aboutToChangeCell(KexiTableItem*,int,TQVariant&,KexiDB::ResultInfo*)),
212 KoMacro::MacroItem::List::ConstIterator it(macroitems.constBegin()), end(macroitems.constEnd());
243 d->tableview->setColumnStretchEnabled( true, COLUMN_ID_COMMENT ); //last column occupies the rest of the area
262void KexiMacroDesignView::beforeCellChanged(KexiTableItem* item, int colnum, TQVariant& newvalue, KexiDB::ResultInfo* result)
265 kdDebug() << "KexiMacroDesignView::beforeCellChanged() colnum=" << colnum << " newvalue=" << newvalue.toString() << endl;
282 kdWarning() << "KexiMacroDesignView::beforeCellChanged() Invalid item for rowindex=" << rowindex << endl;
298 updateProperties(d->propertyset->currentRow(), d->propertyset->currentPropertySet(), macroitem);
305 kdWarning() << "KexiMacroDesignView::beforeCellChanged() No such column number " << colnum << endl;
332 TDESharedPtr<KoMacro::MacroItem> macroitem = TDESharedPtr<KoMacro::MacroItem>( new KoMacro::MacroItem() );
350bool KexiMacroDesignView::updateSet(KoProperty::Set* set, TDESharedPtr<KoMacro::MacroItem> macroitem, const TQString& variablename)
360void KexiMacroDesignView::updateProperties(int row, KoProperty::Set* set, TDESharedPtr<KoMacro::MacroItem> macroitem)
399 kdDebug()<<"KexiMacroDesignView::updateProperties() name=" << *it << " variable=" << variable->variant().toString() << endl;
412 kdDebug() << "!!!!! KexiMacroDesignView::propertyChanged() propertyname=" << property.name() << endl;
451 kdDebug() << "KexiMacroDesignView::propertyChanged() name=" << name << " it=" << *it << " skipped cause such a variable is not known." << endl;
483 if(setit.currentKey().left(5) == TQCString("this:")) continue; // don't remove internal properties
485 if(action.data() && action->hasVariable(setit.currentKey())) continue; // the property is still valid
void setEnumHints(const TQValueVector< TQString > &l)
Definition field.h:544
Definition error.h:111
virtual KoProperty::Set * propertySet()
Definition keximacrodesignview.cpp:257
KexiMacroDesignView(KexiMainWindow *mainwin, TQWidget *parent, ::KoMacro::Macro *const macro)
Constructor.
Definition keximacrodesignview.cpp:110
virtual bool loadData()
Load the data from XML source and fill the internally used KoMacro::Macro instance.
Definition keximacrodesignview.cpp:248
static KoProperty::Property * createProperty(TDESharedPtr< KoMacro::MacroItem > macroitem, const TQString &name)
Factory function to create a new KoProperty::Property instance that will use a KexiMacroProperty as c...
Definition keximacroproperty.cpp:149
The KexiMacroView implements KexiViewBase to provide a base KexiView instance for Macros.
Definition keximacroview.h:43
virtual bool loadData()
Load the data from XML source and fill the internally used KoMacro::Macro instance.
Definition keximacroview.cpp:97
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
Definition keximainwindow.h:46
Definition kexitableviewdata.h:52
Definition kexitableviewdata.h:223
KexiTableView class provides a widget for displaying data in a tabular view.
Definition kexitableview.h:71
void propertySetReloaded(bool preservePrevSelection=false, const TQCString &propertyToSelect=TQCString())
Definition kexiviewbase.cpp:110
The MacroItem class is an item in a Macro and represents one single execution step.
Definition macroitem.h:47
TQValueList< TDESharedPtr< MacroItem > > List
A list of MacroItem instances.
Definition macroitem.h:54
TDESharedPtr< Action > action(const TQString &name) const
Definition manager.cpp:132
