kexi

#include <kexieditor.h>

Inheritance diagram for KexiEditor:
KexiViewBase KexiActionProxy KexiQueryDesignerSQLEditor KexiScriptEditor

Public Slots

void setText (const TQString &text)
void slotConfigureEditor ()
Public Slots inherited from KexiViewBase
virtual void setFocus ()
virtual void propertySetSwitched ()
void setDirty (bool set)
void setDirty ()

Signals

void textChanged ()
Signals inherited from KexiViewBase
void closing (bool &cancel)
void focus (bool in)

Public Member Functions

 KexiEditor (KexiMainWindow *mainWin, TQWidget *parent, const char *name=0)
virtual ~KexiEditor ()
TQString text ()
void setHighlightMode (const TQString &highlightmodename)
void jump (int character)
void setCursorPosition (int line, int col)
void clearUndoRedo ()
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)

Static Public Member Functions

static bool isAdvancedEditor ()

Protected Member Functions

virtual void updateActions (bool activated)
Protected Member Functions inherited from KexiViewBase
virtual tristate beforeSwitchTo (int mode, bool &dontStore)
virtual tristate afterSwitchFrom (int mode)
virtual void closeEvent (TQCloseEvent *e)
virtual KoProperty::Set * propertySet ()
void propertySetReloaded (bool preservePrevSelection=false, const TQCString &propertyToSelect=TQCString())
virtual KexiDB::SchemaData * storeNewData (const KexiDB::SchemaData &sdata, bool &cancel)
bool loadDataBlock (TQString &dataString, const TQString &dataID=TQString(), bool canBeEmpty=false)
virtual tristate storeData (bool dontAsk=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 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

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

An text editor view that uses both KTextEditor and KTextEdit.

It is used for SQL and script editor.

Definition at line 39 of file kexieditor.h.

Constructor & Destructor Documentation

◆ KexiEditor()

KexiEditor::KexiEditor ( KexiMainWindow * mainWin,
TQWidget * parent,
const char * name = 0 )

Constructor.

Parameters
mainWinThe KexiMainWindow instance this KexiEditor belongs too.
parentThe parent TQWidget this KexiEditor is child of. You don't need to free the KexiEditor cause TQt will handle that for us.
nameThe name this KexiEditor has. Used only for debugging.

Definition at line 84 of file kexieditor.cpp.

◆ ~KexiEditor()

KexiEditor::~KexiEditor ( )
virtual

Destructor.

Definition at line 129 of file kexieditor.cpp.

Member Function Documentation

◆ clearUndoRedo()

void KexiEditor::clearUndoRedo ( )

Clear all remembered undo/redo-actions.

Only avaiable if isAdvancedEditor returns true.

Definition at line 249 of file kexieditor.cpp.

◆ isAdvancedEditor()

bool KexiEditor::isAdvancedEditor ( )
static
Returns
true if internally the KTextEditor::EditorChooser got used else, if a simple KTextEdit is used, false is returned.

Definition at line 139 of file kexieditor.cpp.

◆ jump()

void KexiEditor::jump ( int character)

Find row and column for this character and jump to the position.

Definition at line 206 of file kexieditor.cpp.

◆ setCursorPosition()

void KexiEditor::setCursorPosition ( int line,
int col )

Set the cursor position to line and col .

Definition at line 239 of file kexieditor.cpp.

◆ setHighlightMode()

void KexiEditor::setHighlightMode ( const TQString & highlightmodename)

Set the highlight-mode to highlightmodename .

If isAdvancedEditor returns false (KTextEdit is used rather then KTextEditor), then the method just does nothing. The highlightmodename could be any kind of string like e.g. "python", "kjs" or "sql" KTextEditor supports.

Definition at line 179 of file kexieditor.cpp.

◆ setText

void KexiEditor::setText ( const TQString & text)
slot

Sets editor's text to text. 'Dirty' flag remains unchanged. Undo/redo buffer is cleared.

Definition at line 160 of file kexieditor.cpp.

◆ slotConfigureEditor

void KexiEditor::slotConfigureEditor ( )
slot

Display the configuration-dialog. Only avaiable if isAdvancedEditor() returns true.

Definition at line 195 of file kexieditor.cpp.

◆ text()

TQString KexiEditor::text ( )
Returns
the text displayed in the editor-widget.

Definition at line 148 of file kexieditor.cpp.

◆ textChanged

void KexiEditor::textChanged ( )
signal

Emitted if the text displayed in the editor changed.

◆ updateActions()

void KexiEditor::updateActions ( bool activated)
protectedvirtual

Update the actions. This call is redirected to KexiViewBase::updateActions

Reimplemented from KexiViewBase.

Definition at line 134 of file kexieditor.cpp.


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