kexi
- kexi
- plugins
- scripting
- kexiscripting
23#include "kexiscripteditor.h"
25#include <kross/main/scriptaction.h>
32#include <tdepopupmenu.h>
34#include <kexidialogbase.h>
37class KexiScriptEditor::Private
40 Kross::Api::ScriptAction* scriptaction;
41 Private() : scriptaction(0) {}
57 return d->scriptaction != 0;
62 d->scriptaction = scriptaction;
63 Q_ASSERT(d->scriptaction);
65 disconnect( this, TQ_SIGNAL( textChanged()), this, TQ_SLOT(slotTextChanged()));
67 TQString code = d->scriptaction->getCode();
71 code = "# " + TQStringList::split( "\n", i18n(
72 "This note will appear for a user in the script's source code "
73 "as a comment. Keep every row not longer than 60 characters and use '\n.'",
75 "This is Technology Preview (BETA) version of scripting\n"
76 "support in Kexi. The scripting API may change in details\n"
77 "in the next Kexi version.\n"
78 "For more information and documentation see\n%1"
79 ).arg( "http://www.kexi-project.org/scripting/"), true).join( "\n# ") + "\n";
88 connect( this, TQ_SIGNAL( textChanged()), this, TQ_SLOT(slotTextChanged()));
91void KexiScriptEditor::slotTextChanged()
98void KexiScriptEditor::setLineNo( long lineno)
103#include "kexiscripteditor.moc"
void setText(const TQString &text)
KexiEditor(KexiMainWindow *mainWin, TQWidget *parent, const char *name=0) Constructor.
void clearUndoRedo() Clear all remembered undo/redo-actions.
void setCursorPosition(int line, int col) Set the cursor position to line and col .
void setHighlightMode(const TQString &highlightmodename) Set the highlight-mode to highlightmodename .
Kexi's main window interface This interface is implemented by KexiMainWindowImpl class.
void initialize(Kross::Api::ScriptAction *scriptaction) Initializes the editor.
KexiScriptEditor(KexiMainWindow *mainWin, TQWidget *parent, const char *name=0) Constructor.
virtual ~KexiScriptEditor() Destructor.
bool isInitialized() const
KexiMainWindow * mainWin() const
|