#include <RawEditorWindow.h>
RawEditorWidget::RawEditorWidget |
( |
QWidget * |
par | ) |
|
References __tr2qs_ctx(), connect(), KviScriptEditor::createInstance(), currentItemChanged(), customContextMenuRequested(), exportAllEvents(), l, m_bOneTimeSetupDone, m_pContextPopup, m_pEditor, m_pLastEditedItem, m_pNameEditor, m_pTreeWidget, and spl.
RawEditorWidget::~RawEditorWidget |
( |
| ) |
|
void RawEditorWidget::addHandlerForCurrentRaw |
( |
| ) |
|
|
protectedslot |
void RawEditorWidget::addRaw |
( |
| ) |
|
|
protectedslot |
void RawEditorWidget::commit |
( |
void |
| ) |
|
References KviKvsEventManager::addRawHandler(), g_pApp, i, KviKvsEventManager::instance(), j, m_bOneTimeSetupDone, m_pTreeWidget, KviKvsEventManager::removeAllScriptRawHandlers(), s, saveLastEditedItem(), and KviApplication::saveRawEvents().
Referenced by RawEditorWindow::applyClicked(), and RawEditorWindow::okClicked().
void RawEditorWidget::currentItemChanged |
( |
QTreeWidgetItem * |
it, |
|
|
QTreeWidgetItem * |
|
|
) |
| |
|
protectedslot |
void RawEditorWidget::customContextMenuRequested |
( |
const QPoint & |
pnt | ) |
|
|
protectedslot |
References __tr2qs_ctx(), addHandlerForCurrentRaw(), addRaw(), KviIconManager::Discard, exportCurrentHandler(), g_pIconManager, KviIconManager::getSmallIcon(), KviIconManager::Handler, KviIconManager::HandlerDisabled, KVI_ASSERT, m_bOneTimeSetupDone, m_pContextPopup, m_pTreeWidget, KviIconManager::RawEvent, removeCurrentHandler(), KviIconManager::Save, and toggleCurrentHandlerEnabled().
Referenced by RawEditorWidget().
void RawEditorWidget::exportAllEvents |
( |
| ) |
|
|
protectedslot |
References __tr2qs_ctx(), KviFileDialog::askForSaveFileName(), getExportEventBuffer(), i, j, KVI_FILTER_SCRIPT, KVI_PATH_SEPARATOR, m_pTreeWidget, saveLastEditedItem(), KviMessageBox::warning(), and KviFileUtils::writeFile().
Referenced by RawEditorWidget().
void RawEditorWidget::exportCurrentHandler |
( |
| ) |
|
|
protectedslot |
void RawEditorWidget::getUniqueHandlerName |
( |
RawTreeWidgetItem * |
it, |
|
|
QString & |
buffer |
|
) |
| |
void RawEditorWidget::oneTimeSetup |
( |
| ) |
|
|
private |
References KviPointerList< T >::first(), i, KviKvsEventManager::instance(), l, m_bOneTimeSetupDone, m_pTreeWidget, KviRuntimeInfo::name(), KviPointerList< T >::next(), KviKvsEventManager::rawHandlers(), s, and KviKvsEventHandler::Script.
Referenced by showEvent().
void RawEditorWidget::removeCurrentHandler |
( |
| ) |
|
|
protectedslot |
void RawEditorWidget::saveLastEditedItem |
( |
| ) |
|
References KviQString::equalCI(), KviScriptEditor::getText(), getUniqueHandlerName(), KVI_ASSERT, m_bOneTimeSetupDone, m_pEditor, m_pLastEditedItem, m_pNameEditor, RawHandlerTreeWidgetItem::m_szBuffer, and RawHandlerTreeWidgetItem::setName().
Referenced by commit(), currentItemChanged(), exportAllEvents(), and exportCurrentHandler().
void RawEditorWidget::showEvent |
( |
QShowEvent * |
e | ) |
|
|
protected |
void RawEditorWidget::toggleCurrentHandlerEnabled |
( |
| ) |
|
|
protectedslot |
bool RawEditorWidget::m_bOneTimeSetupDone |
QMenu* RawEditorWidget::m_pContextPopup |
QLineEdit* RawEditorWidget::m_pNameEditor |
The documentation for this class was generated from the following files: