KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
AliasEditorWidget Class Reference

#include <AliasEditorWindow.h>

+ Inheritance diagram for AliasEditorWidget:

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
 
KviScriptEditorm_pEditor
 
AliasEditorTreeWidgetItemm_pLastClickedItem
 
AliasEditorTreeWidgetItemm_pLastEditedItem
 
QLabel * m_pNameLabel
 
QPushButton * m_pRenameButton
 
QSplitter * m_pSplitter
 
AliasEditorTreeWidgetm_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 Member Functions

void activateItem (QTreeWidgetItem *it)
 
bool aliasExists (QString &szFullItemName)
 
void appendAllItems (KviPointerList< AliasEditorTreeWidgetItem > *l, AliasEditorTreeWidgetItem::Type)
 
void appendAllItemsRecursive (KviPointerList< AliasEditorTreeWidgetItem > *l, QTreeWidgetItem *pStartFrom, AliasEditorTreeWidgetItem::Type)
 
void appendSelectedAliasItems (KviPointerList< AliasEditorTreeWidgetItem > *l)
 
void appendSelectedAliasItemsRecursive (KviPointerList< AliasEditorTreeWidgetItem > *l, QTreeWidgetItem *pStartFrom)
 
void appendSelectedItems (KviPointerList< AliasEditorTreeWidgetItem > *l)
 
void appendSelectedItemsRecursive (KviPointerList< AliasEditorTreeWidgetItem > *l, QTreeWidgetItem *pStartFrom)
 
QString askForAliasName (const QString &szAction, const QString &szText, const QString &szInitialText)
 
QString askForNamespaceName (const QString &szAction, const QString &szText, const QString &szInitialText)
 
void buildAliasesFile (KviPointerList< AliasEditorTreeWidgetItem > *l, QString &szBuffer)
 
QString buildFullItemName (AliasEditorTreeWidgetItem *it)
 
void buildFullItemPath (AliasEditorTreeWidgetItem *it, QString &szBuffer)
 
AliasEditorTreeWidgetItemcreateFullItem (const QString &szFullName)
 
AliasEditorTreeWidgetItemfindItem (const QString &szName)
 
AliasEditorTreeWidgetItemfindTopLevelItem (const QString &szName)
 
void getExportAliasBuffer (QString &buffer, AliasEditorTreeWidgetItem *it)
 
void getUniqueItemName (AliasEditorTreeWidgetItem *item, QString &buffer, AliasEditorTreeWidgetItem::Type eType)
 
bool hasSelectedItems ()
 
bool itemExists (QTreeWidgetItem *pSearchFor)
 
bool namespaceExists (QString &szFullItemName)
 
void oneTimeSetup ()
 
void openParentItems (QTreeWidgetItem *it)
 
void recursiveCollapseNamespaces (AliasEditorTreeWidgetItem *it)
 
bool removeItem (AliasEditorTreeWidgetItem *it, bool *pbYesToAll, bool bDeleteEmptyTree)
 
void removeItemChildren (AliasEditorTreeWidgetItem *it)
 
void saveLastEditedItem ()
 
void searchReplace (const QString &szSearch, bool bReplace=false, const QString &szReplace="n")
 

Protected Attributes

KviPointerList
< AliasEditorTreeWidgetItem > * 
m_pAliases
 

Constructor & Destructor Documentation

AliasEditorWidget::AliasEditorWidget ( QWidget *  par)
AliasEditorWidget::~AliasEditorWidget ( )

Member Function Documentation

void AliasEditorWidget::activateItem ( QTreeWidgetItem *  it)
protected
bool AliasEditorWidget::aliasExists ( QString &  szFullItemName)
protected
void AliasEditorWidget::aliasRefresh ( const QString &  szName)
protectedslot
void AliasEditorWidget::appendAllItems ( KviPointerList< AliasEditorTreeWidgetItem > *  l,
AliasEditorTreeWidgetItem::Type  eType 
)
protected
void AliasEditorWidget::appendAllItemsRecursive ( KviPointerList< AliasEditorTreeWidgetItem > *  l,
QTreeWidgetItem *  pStartFrom,
AliasEditorTreeWidgetItem::Type  eType 
)
protected
void AliasEditorWidget::appendSelectedAliasItems ( KviPointerList< AliasEditorTreeWidgetItem > *  l)
protected
void AliasEditorWidget::appendSelectedAliasItemsRecursive ( KviPointerList< AliasEditorTreeWidgetItem > *  l,
QTreeWidgetItem *  pStartFrom 
)
protected
void AliasEditorWidget::appendSelectedItems ( KviPointerList< AliasEditorTreeWidgetItem > *  l)
protected
void AliasEditorWidget::appendSelectedItemsRecursive ( KviPointerList< AliasEditorTreeWidgetItem > *  l,
QTreeWidgetItem *  pStartFrom 
)
protected
QString AliasEditorWidget::askForAliasName ( const QString &  szAction,
const QString &  szText,
const QString &  szInitialText 
)
protected
QString AliasEditorWidget::askForNamespaceName ( const QString &  szAction,
const QString &  szText,
const QString &  szInitialText 
)
protected
void AliasEditorWidget::buildAliasesFile ( KviPointerList< AliasEditorTreeWidgetItem > *  l,
QString &  szBuffer 
)
protected
QString AliasEditorWidget::buildFullItemName ( AliasEditorTreeWidgetItem it)
protected
void AliasEditorWidget::buildFullItemPath ( AliasEditorTreeWidgetItem it,
QString &  szBuffer 
)
protected
void AliasEditorWidget::commit ( void  )
AliasEditorTreeWidgetItem * AliasEditorWidget::createFullItem ( const QString &  szFullName)
protected
void AliasEditorWidget::currentItemChanged ( QTreeWidgetItem *  it,
QTreeWidgetItem *   
)
protectedslot
void AliasEditorWidget::customContextMenuRequested ( const QPoint  pnt)
protectedslot
void AliasEditorWidget::exportAliases ( bool  bSelectedOnly,
bool  bSingleFiles = false 
)
void AliasEditorWidget::exportAll ( )
protectedslot

References exportAliases().

Referenced by customContextMenuRequested().

void AliasEditorWidget::exportSelected ( )
protectedslot

References exportAliases().

Referenced by customContextMenuRequested().

void AliasEditorWidget::exportSelectedSepFiles ( )
protectedslot

References exportAliases().

Referenced by customContextMenuRequested().

void AliasEditorWidget::exportSelectionInSinglesFiles ( KviPointerList< AliasEditorTreeWidgetItem > *  l)
AliasEditorTreeWidgetItem * AliasEditorWidget::findItem ( const QString &  szName)
protected

References KviQString::equalCI(), findTopLevelItem(), i, and j.

Referenced by loadProperties(), and newItem().

AliasEditorTreeWidgetItem * AliasEditorWidget::findTopLevelItem ( const QString &  szName)
protected
void AliasEditorWidget::getExportAliasBuffer ( QString &  buffer,
AliasEditorTreeWidgetItem it 
)
protected
void AliasEditorWidget::getUniqueItemName ( AliasEditorTreeWidgetItem item,
QString &  buffer,
AliasEditorTreeWidgetItem::Type  eType 
)
protected
bool AliasEditorWidget::hasSelectedItems ( )
protected

References m_pTreeWidget.

Referenced by customContextMenuRequested().

bool AliasEditorWidget::itemExists ( QTreeWidgetItem *  pSearchFor)
protected
void AliasEditorWidget::itemRenamed ( QTreeWidgetItem *  it,
int  col 
)
protectedslot
void AliasEditorWidget::loadProperties ( KviConfigurationFile cfg)
bool AliasEditorWidget::namespaceExists ( QString &  szFullItemName)
protected
void AliasEditorWidget::newAlias ( )
protectedslot
void AliasEditorWidget::newItem ( QString &  szName,
AliasEditorTreeWidgetItem::Type  eType 
)
protectedslot
void AliasEditorWidget::newNamespace ( )
protectedslot
void AliasEditorWidget::oneTimeSetup ( )
protected
void AliasEditorWidget::openParentItems ( QTreeWidgetItem *  it)
protected

Referenced by activateItem(), and searchReplace().

void AliasEditorWidget::recursiveCollapseNamespaces ( AliasEditorTreeWidgetItem it)
protected

References i.

Referenced by slotCollapseNamespaces().

bool AliasEditorWidget::removeItem ( AliasEditorTreeWidgetItem it,
bool *  pbYesToAll,
bool  bDeleteEmptyTree 
)
protected
void AliasEditorWidget::removeItemChildren ( AliasEditorTreeWidgetItem it)
protected

References m_pAliases, and KviPointerList< T >::removeRef().

Referenced by removeItem().

void AliasEditorWidget::removeSelectedItems ( )
protectedslot
void AliasEditorWidget::renameItem ( )
protectedslot
void AliasEditorWidget::saveLastEditedItem ( )
protected
void AliasEditorWidget::saveProperties ( KviConfigurationFile cfg)
void AliasEditorWidget::searchReplace ( const QString &  szSearch,
bool  bReplace = false,
const QString &  szReplace = "n" 
)
protected
void AliasEditorWidget::slotCollapseNamespaces ( )
protectedslot
void AliasEditorWidget::slotFind ( )
protectedslot
void AliasEditorWidget::slotFindWord ( const QString &  szSearch)
protectedslot
void AliasEditorWidget::slotReplaceAll ( const QString &  before,
const QString &  after 
)
protectedslot
static void AliasEditorWidget::splitFullAliasOrNamespaceName ( const QString &  szFullName,
QStringList &  lNamespaces,
QString &  szName 
)
static

Member Data Documentation

bool AliasEditorWidget::m_bSaving
KviPointerList<AliasEditorTreeWidgetItem>* AliasEditorWidget::m_pAliases
protected
QMenu* AliasEditorWidget::m_pContextPopup
KviScriptEditor* AliasEditorWidget::m_pEditor
AliasEditorTreeWidgetItem* AliasEditorWidget::m_pLastClickedItem
AliasEditorTreeWidgetItem* AliasEditorWidget::m_pLastEditedItem
QLabel* AliasEditorWidget::m_pNameLabel
QPushButton* AliasEditorWidget::m_pRenameButton
QSplitter* AliasEditorWidget::m_pSplitter
AliasEditorTreeWidget* AliasEditorWidget::m_pTreeWidget
QString AliasEditorWidget::m_szDir

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