KVIrc
4.9.2
DeveloperAPIs
|
#include <AliasEditorWindow.h>
Public Member Functions | |
AliasEditorWidget (QWidget *par) | |
void | commit () |
void | exportAliases (bool, bool=false) |
void | exportSelectionInSinglesFiles (KviPointerList< AliasEditorTreeWidgetItem > *l) |
void | loadProperties (KviConfigurationFile *) |
void | saveProperties (KviConfigurationFile *) |
~AliasEditorWidget () | |
Static Public Member Functions | |
static void | splitFullAliasOrNamespaceName (const QString &szFullName, QStringList &lNamespaces, QString &szName) |
Public Attributes | |
bool | m_bSaving |
QMenu * | m_pContextPopup |
KviScriptEditor * | m_pEditor |
AliasEditorTreeWidgetItem * | m_pLastClickedItem |
AliasEditorTreeWidgetItem * | m_pLastEditedItem |
QLabel * | m_pNameLabel |
QPushButton * | m_pRenameButton |
QSplitter * | m_pSplitter |
AliasEditorTreeWidget * | m_pTreeWidget |
QString | m_szDir |
Protected Slots | |
void | aliasRefresh (const QString &szName) |
void | currentItemChanged (QTreeWidgetItem *it, QTreeWidgetItem *) |
void | customContextMenuRequested (const QPoint pnt) |
void | exportAll () |
void | exportSelected () |
void | exportSelectedSepFiles () |
void | itemRenamed (QTreeWidgetItem *it, int col) |
void | newAlias () |
void | newItem (QString &szName, AliasEditorTreeWidgetItem::Type eType) |
void | newNamespace () |
void | removeSelectedItems () |
void | renameItem () |
void | slotCollapseNamespaces () |
void | slotFind () |
void | slotFindWord (const QString &) |
void | slotReplaceAll (const QString &before, const QString &after) |
Protected Attributes | |
KviPointerList < AliasEditorTreeWidgetItem > * | m_pAliases |
AliasEditorWidget::AliasEditorWidget | ( | QWidget * | par | ) |
References __tr2qs_ctx(), connect(), KviScriptEditor::createInstance(), currentItemChanged(), l, m_bSaving, m_pAliases, m_pContextPopup, m_pEditor, m_pLastClickedItem, m_pLastEditedItem, m_pNameLabel, m_pRenameButton, m_pSplitter, m_pTreeWidget, m_szDir, oneTimeSetup(), renameItem(), KviPointerList< T >::setAutoDelete(), KviTalHBox::setMargin(), KviTalVBox::setMargin(), KviTalVBox::setSpacing(), KviTalHBox::setSpacing(), KviTalHBox::setStretchFactor(), slotFindWord(), and slotReplaceAll().
AliasEditorWidget::~AliasEditorWidget | ( | ) |
References KviScriptEditor::destroyInstance(), m_pAliases, and m_pEditor.
|
protected |
References m_pTreeWidget, and openParentItems().
Referenced by loadProperties(), newItem(), and renameItem().
|
protected |
|
protectedslot |
References __tr2qs_ctx(), AliasEditorTreeWidgetItem::Alias, KviKvsAliasManager::aliasDict(), KviPointerList< T >::append(), appendAllItems(), buildFullItemName(), KviKvsScript::code(), createFullItem(), KviQString::equalCI(), KviControlCodes::Escape, KviPointerHashTable< Key, T >::find(), KviPointerList< T >::first(), KviKvsAliasManager::instance(), l, m_bSaving, m_pAliases, m_pEditor, m_pLastEditedItem, KviPointerList< T >::next(), KviPointerList< T >::setAutoDelete(), AliasEditorTreeWidgetItem::setBuffer(), KviScriptEditor::setText(), and KviMessageBox::warning().
Referenced by oneTimeSetup().
|
protected |
References KviPointerList< T >::append(), appendAllItemsRecursive(), i, m_pTreeWidget, and KviRuntimeInfo::type().
Referenced by aliasExists(), aliasRefresh(), and namespaceExists().
|
protected |
References KviPointerList< T >::append(), i, and KviRuntimeInfo::type().
Referenced by appendAllItems().
|
protected |
References KviPointerList< T >::append(), appendSelectedAliasItemsRecursive(), KviPointerList< T >::at(), i, and m_pTreeWidget.
Referenced by exportAliases().
|
protected |
References KviPointerList< T >::append(), and i.
Referenced by appendSelectedAliasItems(), and appendSelectedItemsRecursive().
|
protected |
References KviPointerList< T >::append(), i, and m_pTreeWidget.
Referenced by removeSelectedItems().
|
protected |
References KviPointerList< T >::append(), appendSelectedAliasItemsRecursive(), and i.
|
protected |
References __tr2qs_ctx(), KviMessageBox::information(), KviModule::lock(), Normal, KviModule::unlock(), and KviMessageBox::warning().
Referenced by newAlias(), and renameItem().
|
protected |
References __tr2qs_ctx(), KviMessageBox::information(), KviModule::lock(), Normal, KviModule::unlock(), and KviMessageBox::warning().
Referenced by newNamespace(), and renameItem().
|
protected |
References KviPointerList< T >::first(), getExportAliasBuffer(), and KviPointerList< T >::next().
Referenced by exportAliases().
|
protected |
References AliasEditorTreeWidgetItem::name(), and AliasEditorTreeWidgetItem::parentItem().
Referenced by aliasExists(), aliasRefresh(), commit(), currentItemChanged(), exportAliases(), exportSelectionInSinglesFiles(), getExportAliasBuffer(), itemRenamed(), namespaceExists(), renameItem(), and saveProperties().
|
protected |
References AliasEditorTreeWidgetItem::isAlias(), AliasEditorTreeWidgetItem::name(), and AliasEditorTreeWidgetItem::parentItem().
Referenced by newItem().
void AliasEditorWidget::commit | ( | void | ) |
References a, KviKvsAliasManager::add(), KviPointerList< T >::at(), AliasEditorTreeWidgetItem::buffer(), buildFullItemName(), KviKvsAliasManager::clear(), KviPointerList< T >::count(), g_pApp, i, KviKvsAliasManager::instance(), m_bSaving, m_pAliases, KviApplication::saveAliases(), and saveLastEditedItem().
Referenced by AliasEditorWindow::applyClicked(), and AliasEditorWindow::okClicked().
|
protected |
References AliasEditorTreeWidgetItem::Alias, KviQString::equalCI(), findTopLevelItem(), i, j, m_pTreeWidget, and AliasEditorTreeWidgetItem::Namespace.
Referenced by aliasRefresh(), newItem(), oneTimeSetup(), and renameItem().
|
protectedslot |
References __tr2qs_ctx(), buildFullItemName(), AliasEditorTreeWidgetItem::isNamespace(), m_pEditor, m_pLastEditedItem, m_pNameLabel, m_pRenameButton, m_pTreeWidget, saveLastEditedItem(), KviScriptEditor::setCursorPosition(), and KviScriptEditor::setText().
Referenced by AliasEditorWidget(), and oneTimeSetup().
|
protectedslot |
References __tr2qs_ctx(), KviIconManager::Alias, KviIconManager::Discard, exportAll(), exportSelected(), exportSelectedSepFiles(), g_pIconManager, KviIconManager::getSmallIcon(), hasSelectedItems(), m_pContextPopup, m_pLastClickedItem, m_pTreeWidget, KviIconManager::NameSpace, newAlias(), newNamespace(), removeSelectedItems(), KviIconManager::Save, KviIconManager::Search, slotCollapseNamespaces(), and slotFind().
Referenced by oneTimeSetup().
void AliasEditorWidget::exportAliases | ( | bool | bSelectedOnly, |
bool | bSingleFiles = false |
||
) |
References __tr2qs_ctx(), appendSelectedAliasItems(), KviFileDialog::askForSaveFileName(), KviPointerList< T >::at(), buildAliasesFile(), buildFullItemName(), KviPointerList< T >::count(), exportSelectionInSinglesFiles(), KVI_FILTER_SCRIPT, KVI_PATH_SEPARATOR, l, KviModule::lock(), m_pAliases, m_szDir, saveLastEditedItem(), KviPointerList< T >::setAutoDelete(), KviModule::unlock(), KviMessageBox::warning(), and KviFileUtils::writeFile().
Referenced by exportAll(), exportSelected(), and exportSelectedSepFiles().
|
protectedslot |
References exportAliases().
Referenced by customContextMenuRequested().
|
protectedslot |
References exportAliases().
Referenced by customContextMenuRequested().
|
protectedslot |
References exportAliases().
Referenced by customContextMenuRequested().
void AliasEditorWidget::exportSelectionInSinglesFiles | ( | KviPointerList< AliasEditorTreeWidgetItem > * | l | ) |
References __tr2qs_ctx(), KviFileDialog::askForDirectoryName(), buildFullItemName(), KviFileUtils::fileExists(), KviPointerList< T >::first(), getExportAliasBuffer(), KVI_PATH_SEPARATOR, KviModule::lock(), m_szDir, KviPointerList< T >::next(), KviModule::unlock(), KviMessageBox::warning(), and KviFileUtils::writeFile().
Referenced by exportAliases().
|
protected |
References KviQString::equalCI(), findTopLevelItem(), i, and j.
Referenced by loadProperties(), and newItem().
|
protected |
References i, AliasEditorTreeWidgetItem::isNamespace(), and m_pTreeWidget.
Referenced by createFullItem(), and findItem().
|
protected |
References KviCommandFormatter::blockFromBuffer(), AliasEditorTreeWidgetItem::buffer(), and buildFullItemName().
Referenced by buildAliasesFile(), and exportSelectionInSinglesFiles().
|
protected |
|
protected |
References m_pTreeWidget.
Referenced by customContextMenuRequested().
|
protected |
References KviPointerList< T >::findRef(), and m_pAliases.
Referenced by newItem(), and saveLastEditedItem().
|
protectedslot |
References __tr2qs_ctx(), buildFullItemName(), m_pLastEditedItem, and m_pNameLabel.
Referenced by oneTimeSetup().
void AliasEditorWidget::loadProperties | ( | KviConfigurationFile * | cfg | ) |
References activateItem(), findItem(), m_pSplitter, KviConfigurationFile::readEntry(), and KviConfigurationFile::readIntListEntry().
Referenced by AliasEditorWindow::loadProperties().
|
protected |
|
protectedslot |
References __tr2qs_ctx(), AliasEditorTreeWidgetItem::Alias, askForAliasName(), and newItem().
Referenced by customContextMenuRequested().
|
protectedslot |
References activateItem(), KviPointerList< T >::append(), buildFullItemPath(), createFullItem(), findItem(), itemExists(), m_pAliases, m_pLastClickedItem, and AliasEditorTreeWidgetItem::setType().
Referenced by newAlias(), and newNamespace().
|
protectedslot |
References __tr2qs_ctx(), askForNamespaceName(), AliasEditorTreeWidgetItem::Namespace, and newItem().
Referenced by customContextMenuRequested().
|
protected |
References a, KviKvsAliasManager::aliasDict(), aliasRefresh(), KviPointerList< T >::append(), KviKvsScript::code(), connect(), createFullItem(), KviPointerHashTableIterator< Key, T >::current(), currentItemChanged(), customContextMenuRequested(), KviKvsAliasManager::instance(), itemRenamed(), m_pAliases, m_pTreeWidget, KviKvsScript::name(), and AliasEditorTreeWidgetItem::setBuffer().
Referenced by AliasEditorWidget().
|
protected |
Referenced by activateItem(), and searchReplace().
|
protected |
References i.
Referenced by slotCollapseNamespaces().
|
protected |
References __tr2qs_ctx(), AliasEditorTreeWidgetItem::isAlias(), KviModule::lock(), m_pAliases, m_pLastClickedItem, m_pLastEditedItem, AliasEditorTreeWidgetItem::name(), removeItemChildren(), KviPointerList< T >::removeRef(), and KviModule::unlock().
Referenced by removeSelectedItems(), and renameItem().
|
protected |
References m_pAliases, and KviPointerList< T >::removeRef().
Referenced by removeItem().
|
protectedslot |
References appendSelectedItems(), KviPointerList< T >::first(), l, KviPointerList< T >::next(), removeItem(), and KviPointerList< T >::setAutoDelete().
Referenced by customContextMenuRequested().
|
protectedslot |
References __tr2qs_ctx(), activateItem(), aliasExists(), KviPointerList< T >::append(), askForAliasName(), askForNamespaceName(), buildFullItemName(), createFullItem(), KviScriptEditor::getCursor(), KviScriptEditor::getText(), i, KviMessageBox::information(), AliasEditorTreeWidgetItem::isAlias(), KviModule::lock(), m_pAliases, m_pEditor, m_pLastClickedItem, m_pLastEditedItem, namespaceExists(), removeItem(), AliasEditorTreeWidgetItem::setBuffer(), AliasEditorTreeWidgetItem::setCursorPosition(), and KviModule::unlock().
Referenced by AliasEditorWidget().
|
protected |
References KviScriptEditor::getCursor(), KviScriptEditor::getText(), KviScriptEditor::isModified(), AliasEditorTreeWidgetItem::isNamespace(), itemExists(), m_pEditor, and m_pLastEditedItem.
Referenced by commit(), currentItemChanged(), and exportAliases().
void AliasEditorWidget::saveProperties | ( | KviConfigurationFile * | cfg | ) |
References buildFullItemName(), m_pLastEditedItem, m_pSplitter, and KviConfigurationFile::writeEntry().
Referenced by AliasEditorWindow::saveProperties().
|
protected |
References KviPointerList< T >::at(), AliasEditorTreeWidgetItem::buffer(), KviPointerList< T >::count(), i, m_pAliases, and openParentItems().
Referenced by slotFind(), and slotReplaceAll().
|
protectedslot |
References i, m_pTreeWidget, and recursiveCollapseNamespaces().
Referenced by customContextMenuRequested().
|
protectedslot |
References __tr2qs_ctx(), KviModule::lock(), m_pEditor, Normal, searchReplace(), KviScriptEditor::setFindText(), and KviModule::unlock().
Referenced by customContextMenuRequested().
|
protectedslot |
References m_pEditor, and KviScriptEditor::setFindText().
Referenced by AliasEditorWidget().
|
protectedslot |
References m_pEditor, searchReplace(), and KviScriptEditor::setFindText().
Referenced by AliasEditorWidget().
|
static |
bool AliasEditorWidget::m_bSaving |
Referenced by AliasEditorWidget(), aliasRefresh(), and commit().
|
protected |
QMenu* AliasEditorWidget::m_pContextPopup |
Referenced by AliasEditorWidget(), and customContextMenuRequested().
KviScriptEditor* AliasEditorWidget::m_pEditor |
AliasEditorTreeWidgetItem* AliasEditorWidget::m_pLastClickedItem |
Referenced by AliasEditorWidget(), customContextMenuRequested(), newItem(), removeItem(), and renameItem().
AliasEditorTreeWidgetItem* AliasEditorWidget::m_pLastEditedItem |
Referenced by AliasEditorWidget(), aliasRefresh(), currentItemChanged(), itemRenamed(), removeItem(), renameItem(), saveLastEditedItem(), and saveProperties().
QLabel* AliasEditorWidget::m_pNameLabel |
Referenced by AliasEditorWidget(), currentItemChanged(), and itemRenamed().
QPushButton* AliasEditorWidget::m_pRenameButton |
Referenced by AliasEditorWidget(), and currentItemChanged().
QSplitter* AliasEditorWidget::m_pSplitter |
Referenced by AliasEditorWidget(), loadProperties(), and saveProperties().
AliasEditorTreeWidget* AliasEditorWidget::m_pTreeWidget |
QString AliasEditorWidget::m_szDir |
Referenced by AliasEditorWidget(), exportAliases(), and exportSelectionInSinglesFiles().