kexi

#include <keximacroview.h>

Inheritance diagram for KexiMacroView:
KexiViewBase KexiActionProxy KexiMacroDesignView KexiMacroTextView

Public Slots

void execute (TQObject *sender=0)
 
- Public Slots inherited from KexiViewBase
virtual void setFocus ()
 
virtual void propertySetSwitched ()
 
void setDirty (bool set)
 
void setDirty ()
 

Public Member Functions

 KexiMacroView (KexiMainWindow *mainwin, TQWidget *parent, ::KoMacro::Macro *const macro, const char *name=0)
 
virtual ~KexiMacroView ()
 
TDESharedPtr< KoMacro::Macro > macro () const
 
virtual bool loadData ()
 
virtual KexiDB::SchemaData * storeNewData (const KexiDB::SchemaData &sdata, bool &cancel)
 
virtual tristate storeData (bool dontAsk=false)
 
- Public Member Functions inherited from KexiViewBase
 KexiViewBase (KexiMainWindow *mainWin, TQWidget *parent, const char *name=0)
 
KexiMainWindow * mainWin () const
 
KexiDialogBase * parentDialog () const
 
KexiPart::Part * part () const
 
virtual TQSize preferredSizeHint (const TQSize &otherSize)
 
virtual bool eventFilter (TQObject *o, TQEvent *e)
 
void addChildView (KexiViewBase *childView)
 
virtual bool dirty () const
 
int viewMode () const
 
virtual TDEAction * sharedAction (const char *action_name)
 
virtual void setAvailable (const char *action_name, bool set)
 
- Public Member Functions inherited from KexiActionProxy
 KexiActionProxy (TQObject *receiver, KexiSharedActionHost *host=0)
 
bool activateSharedAction (const char *action_name, bool alsoCheckInChildren=true)
 
void setSharedActionHost (KexiSharedActionHost &host)
 
bool isAvailable (const char *action_name, bool alsoCheckInChildren=true) const
 
bool isSupported (const char *action_name) const
 
void setActionProxyParent_internal (KexiActionProxy *parent)
 

Protected Member Functions

virtual tristate beforeSwitchTo (int mode, bool &dontstore)
 
virtual tristate afterSwitchFrom (int mode)
 
- Protected Member Functions inherited from KexiViewBase
virtual void closeEvent (TQCloseEvent *e)
 
virtual KoProperty::Set * propertySet ()
 
void propertySetReloaded (bool preservePrevSelection=false, const TQCString &propertyToSelect=TQCString())
 
bool loadDataBlock (TQString &dataString, const TQString &dataID=TQString(), bool canBeEmpty=false)
 
bool storeDataBlock (const TQString &dataString, const TQString &dataID=TQString())
 
bool removeDataBlock (const TQString &dataID=TQString())
 
void setViewWidget (TQWidget *w, bool focusProxy=false)
 
virtual void updateActions (bool activated)
 
virtual void setFocusInternal ()
 
virtual void parentDialogDetached ()
 
virtual void parentDialogAttached ()
 
- Protected Member Functions inherited from KexiActionProxy
void plugSharedAction (const char *action_name, TQObject *receiver, const char *slot)
 
void unplugSharedAction (const char *action_name)
 
void plugSharedAction (const char *action_name, const char *slot)
 
int plugSharedAction (const char *action_name, TQWidget *w)
 
void plugSharedActionToExternalGUI (const char *action_name, KXMLGUIClient *client)
 
void plugSharedActionsToExternalGUI (const TQValueList< TQCString > &action_names, KXMLGUIClient *client)
 
void unplugSharedAction (const char *action_name, TQWidget *w)
 
TDEAction * plugSharedAction (const char *action_name, const TQString &alternativeText, TQWidget *w)
 
TQObject * receiver () const
 
void addActionProxyChild (KexiActionProxy *child)
 
void takeActionProxyChild (KexiActionProxy *child)
 

Additional Inherited Members

- Signals inherited from KexiViewBase
void closing (bool &cancel)
 
void focus (bool in)
 
- Public Attributes inherited from KexiActionProxy
KexiActionProxy * m_focusedChild
 
- Protected Attributes inherited from KexiViewBase
TQString m_defaultIconName
 
KexiMainWindow * m_mainWin
 
KexiDialogBase * m_dialog
 
TQWidget * m_viewWidget
 
KexiViewBase * m_parentView
 
TQGuardedPtr< TQWidget > m_lastFocusedChildBeforeFocusOut
 
- Protected Attributes inherited from KexiActionProxy
KexiSharedActionHost * m_host
 
TQGuardedPtr< TQObject > m_receiver
 
TQAsciiDict< TQPair< TQSignal *, bool > > m_signals
 
TQPtrList< KexiActionProxy > m_sharedActionChildren
 
TQPtrList< TDEAction > m_alternativeActions
 
KexiActionProxy * m_actionProxyParent
 
TQObject m_signal_parent
 
TDEAction_setEnabled_Helper * m_TDEAction_setEnabled_helper
 

Detailed Description

The KexiMacroView implements KexiViewBase to provide a base KexiView instance for Macros.

The KexiMacroDesignView and the KexiMacroTextView are inherited from this class.

Definition at line 42 of file keximacroview.h.

Constructor & Destructor Documentation

◆ KexiMacroView()

KexiMacroView::KexiMacroView ( KexiMainWindow *  mainwin,
TQWidget *  parent,
::KoMacro::Macro *const  macro,
const char *  name = 0 
)

Constructor.

Parameters
mainwinThe KexiMainWindow instance this KexiViewBase belongs to.
parentThe parent widget this widget should be displayed in.
macroThe KoMacro::Macro instance this view is for.

Definition at line 65 of file keximacroview.cpp.

◆ ~KexiMacroView()

KexiMacroView::~KexiMacroView ( )
virtual

Destructor.

Definition at line 73 of file keximacroview.cpp.

Member Function Documentation

◆ afterSwitchFrom()

tristate KexiMacroView::afterSwitchFrom ( int  mode)
protectedvirtual

Called by KexiDialogBase::switchToViewMode() right after dialog is switched to new mode.

Parameters
modeThe viewmode to which we switched. This could be either Kexi::DataViewMode, Kexi::DesignViewMode or Kexi::TextViewMode.
Returns
true if you accept or false if a error occupied and view shouldn't change. If there is no error but switching should be just cancelled (probably after showing some info messages), you need to return cancelled.

Reimplemented from KexiViewBase.

Definition at line 90 of file keximacroview.cpp.

◆ beforeSwitchTo()

tristate KexiMacroView::beforeSwitchTo ( int  mode,
bool &  dontstore 
)
protectedvirtual

Called by KexiDialogBase::switchToViewMode() right before dialog is switched to new mode.

Parameters
modeThe viewmode to which should be switched. This could be either Kexi::DataViewMode, Kexi::DesignViewMode or Kexi::TextViewMode.
donstoreThis call-by-reference boolean value defines if storeData should be called for the old but still selected viewmode. Set dontstore to true (it's false by default) if you want to avoid data storing.
Returns
true if you accept or false if a error occupied and view shouldn't change. If there is no error but switching should be just cancelled (probably after showing some info messages), you need to return cancelled.

Reimplemented from KexiViewBase.

Definition at line 84 of file keximacroview.cpp.

◆ execute

void KexiMacroView::execute ( TQObject *  sender = 0)
slot

This slot will be invoked if Kexi's menuitem Data=>Execute got activated and will execute the Macro.

Definition at line 162 of file keximacroview.cpp.

◆ loadData()

bool KexiMacroView::loadData ( )
virtual

Load the data from XML source and fill the internally used KoMacro::Macro instance.

Reimplemented in KexiMacroDesignView, and KexiMacroTextView.

Definition at line 97 of file keximacroview.cpp.

◆ macro()

TDESharedPtr< KoMacro::Macro > KexiMacroView::macro ( ) const
Returns
the Macro instance.

Definition at line 79 of file keximacroview.cpp.

◆ storeData()

tristate KexiMacroView::storeData ( bool  dontAsk = false)
virtual

Try to store the modified data in the already opened and currently used KexiDB::SchemaData instance.

Reimplemented from KexiViewBase.

Reimplemented in KexiMacroTextView.

Definition at line 151 of file keximacroview.cpp.

◆ storeNewData()

KexiDB::SchemaData * KexiMacroView::storeNewData ( const KexiDB::SchemaData &  sdata,
bool &  cancel 
)
virtual

Try to call storeData with new data we like to store.

On success the matching KexiDB::SchemaData is returned.

Parameters
sdataThe source KexiDB::SchemaData instance.
cancelCancel on failure and don't try to clean possible temporary created data up.
Returns
The matching KexiDB::SchemaData instance or NULL if storing failed.

Reimplemented from KexiViewBase.

Definition at line 129 of file keximacroview.cpp.


The documentation for this class was generated from the following files: