diff options
Diffstat (limited to 'src/modules/links')
| -rw-r--r-- | src/modules/links/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/modules/links/LinksWindow.cpp (renamed from src/modules/links/linkswindow.cpp) | 52 | ||||
| -rw-r--r-- | src/modules/links/LinksWindow.h (renamed from src/modules/links/linkswindow.h) | 16 | ||||
| -rw-r--r-- | src/modules/links/libkvilinks.cpp | 8 |
4 files changed, 40 insertions, 40 deletions
diff --git a/src/modules/links/CMakeLists.txt b/src/modules/links/CMakeLists.txt index 1ffe5e95d..17299d9f7 100644 --- a/src/modules/links/CMakeLists.txt +++ b/src/modules/links/CMakeLists.txt @@ -1,12 +1,12 @@ # CMakeLists for src/modules/links SET(kvilinks_MOC_HDRS - linkswindow.h + LinksWindow.h ) SET(kvilinks_SRCS libkvilinks.cpp - linkswindow.cpp + LinksWindow.cpp ) # After this call, files will be moc'ed to moc_kvi_*.cpp diff --git a/src/modules/links/linkswindow.cpp b/src/modules/links/LinksWindow.cpp index 10f68f782..18127b77b 100644 --- a/src/modules/links/linkswindow.cpp +++ b/src/modules/links/LinksWindow.cpp @@ -1,6 +1,6 @@ //============================================================================= // -// File : linkswindow.cpp +// File : LinksWindow.cpp // Creation date : Thu Dec 21 2001 12:41:18 by Szymon Stefanek // // This file is part of the KVIrc irc client distribution @@ -22,7 +22,7 @@ // //============================================================================= -#include "linkswindow.h" +#include "LinksWindow.h" #include "kvi_debug.h" #include "KviIconManager.h" @@ -43,9 +43,9 @@ #include <QMouseEvent> #include <QHeaderView> -extern KviPointerList<KviLinksWindow> * g_pLinksWindowList; +extern KviPointerList<LinksWindow> * g_pLinksWindowList; -KviLinksWindow::KviLinksWindow(KviMainWindow * lpFrm,KviConsoleWindow * lpConsole) +LinksWindow::LinksWindow(KviMainWindow * lpFrm,KviConsoleWindow * lpConsole) : KviWindow(KVI_WINDOW_TYPE_LINKS,lpFrm,"links",lpConsole), KviExternalServerDataParser() { g_pLinksWindowList->append(this); @@ -79,7 +79,7 @@ KviLinksWindow::KviLinksWindow(KviMainWindow * lpFrm,KviConsoleWindow * lpConsol m_pVertSplitter->setObjectName("vsplitter"); m_pVertSplitter->setChildrenCollapsible(false); - m_pListView = new KviLinksListView(m_pVertSplitter, this, "links_treewidget"); + m_pListView = new LinksListView(m_pVertSplitter, this, "links_treewidget"); connect(m_pListView,SIGNAL(rightButtonPressed(QTreeWidgetItem *,const QPoint &)), this,SLOT(showHostPopup(QTreeWidgetItem *,const QPoint &))); @@ -99,7 +99,7 @@ KviLinksWindow::KviLinksWindow(KviMainWindow * lpFrm,KviConsoleWindow * lpConsol m_szRootServer = __tr2qs("(None)"); } -KviLinksWindow::~KviLinksWindow() +LinksWindow::~LinksWindow() { g_pLinksWindowList->removeRef(this); m_pConsole->context()->setLinksWindowPointer(0); @@ -107,12 +107,12 @@ KviLinksWindow::~KviLinksWindow() delete m_pHostPopup; } -void KviLinksWindow::getBaseLogFileName(QString &buffer) +void LinksWindow::getBaseLogFileName(QString &buffer) { buffer.sprintf("LINKS_%d",context()->id()); } -void KviLinksWindow::requestLinks() +void LinksWindow::requestLinks() { if(m_pConsole->isConnected()) { @@ -124,7 +124,7 @@ void KviLinksWindow::requestLinks() } } -void KviLinksWindow::connectionStateChange() +void LinksWindow::connectionStateChange() { KviIrcContext::State st = m_pConsole->context()->state(); m_pRequestButton->setEnabled(st == KviIrcContext::Connected); @@ -138,36 +138,36 @@ void KviLinksWindow::connectionStateChange() } } -QPixmap * KviLinksWindow::myIconPtr() +QPixmap * LinksWindow::myIconPtr() { return g_pIconManager->getSmallIcon(KVI_SMALLICON_LINKS); } -void KviLinksWindow::resizeEvent(QResizeEvent *) +void LinksWindow::resizeEvent(QResizeEvent *) { int hght2 = m_pTopSplitter->sizeHint().height(); m_pTopSplitter->setGeometry(0,0,width(),hght2); m_pSplitter->setGeometry(0,hght2,width(),height() - hght2); } -QSize KviLinksWindow::sizeHint() const +QSize LinksWindow::sizeHint() const { QSize ret(m_pSplitter->sizeHint().width(), m_pSplitter->sizeHint().height() + m_pTopSplitter->sizeHint().height()); return ret; } -void KviLinksWindow::fillCaptionBuffers() +void LinksWindow::fillCaptionBuffers() { KviQString::sprintf(m_szPlainTextCaption,__tr2qs("Links for %Q [IRC Context %u]"),&m_szRootServer,m_pConsole->context()->id()); } -void KviLinksWindow::die() +void LinksWindow::die() { close(); } -void KviLinksWindow::control(int message) +void LinksWindow::control(int message) { switch(message) { @@ -176,7 +176,7 @@ void KviLinksWindow::control(int message) } } -void KviLinksWindow::endOfLinks() +void LinksWindow::endOfLinks() { m_pRequestButton->setEnabled(true); @@ -313,7 +313,7 @@ void KviLinksWindow::endOfLinks() m_pListView->repaint(); } -QTreeWidgetItem * KviLinksWindow::insertLink(KviLink *l) +QTreeWidgetItem * LinksWindow::insertLink(KviLink *l) { KVI_ASSERT(l->hops > 0); QTreeWidgetItem * i = getItemByHost(l->parent.ptr(),0); @@ -332,7 +332,7 @@ QTreeWidgetItem * KviLinksWindow::insertLink(KviLink *l) return it; } -QTreeWidgetItem * KviLinksWindow::getItemByHost(const char *host,QTreeWidgetItem * par) +QTreeWidgetItem * LinksWindow::getItemByHost(const char *host,QTreeWidgetItem * par) { KviCString tmp; if(par) @@ -356,7 +356,7 @@ QTreeWidgetItem * KviLinksWindow::getItemByHost(const char *host,QTreeWidgetItem return 0; } -void KviLinksWindow::showHostPopup(QTreeWidgetItem *i,const QPoint &p) +void LinksWindow::showHostPopup(QTreeWidgetItem *i,const QPoint &p) { if(!i)return; KviCString host=i->text(0); @@ -407,7 +407,7 @@ void KviLinksWindow::showHostPopup(QTreeWidgetItem *i,const QPoint &p) m_pHostPopup->popup(p); } -void KviLinksWindow::hostPopupClicked(int id) +void LinksWindow::hostPopupClicked(int id) { KviCString tmp = m_pHostPopup->text(id); if(tmp.hasData()) @@ -417,13 +417,13 @@ void KviLinksWindow::hostPopupClicked(int id) } } -void KviLinksWindow::reset() +void LinksWindow::reset() { outputNoFmt(KVI_OUT_SYSTEMMESSAGE,__tr2qs("Reset")); while(!m_pLinkList->isEmpty())m_pLinkList->removeFirst(); } -void KviLinksWindow::processData(KviIrcMessage *msg) +void LinksWindow::processData(KviIrcMessage *msg) { output(KVI_OUT_SYSTEMMESSAGE,__tr2qs("Processing link: %s"),msg->allParams()); KviLink * l = new KviLink; @@ -458,7 +458,7 @@ void KviLinksWindow::processData(KviIrcMessage *msg) m_pLinkList->append(l); } -void KviLinksWindow::applyOptions() +void LinksWindow::applyOptions() { m_pListView->applyOptions(); m_pInfoLabel->applyOptions(); @@ -466,7 +466,7 @@ void KviLinksWindow::applyOptions() KviWindow::applyOptions(); } -KviLinksListView::KviLinksListView(QWidget * par, KviWindow * wnd, const char * txt) +LinksListView::LinksListView(QWidget * par, KviWindow * wnd, const char * txt) : KviThemedTreeWidget(par, wnd, txt) { header()->setSortIndicatorShown(true); @@ -478,7 +478,7 @@ KviLinksListView::KviLinksListView(QWidget * par, KviWindow * wnd, const char * setAllColumnsShowFocus(true); } -void KviLinksListView::mousePressEvent (QMouseEvent *e) +void LinksListView::mousePressEvent (QMouseEvent *e) { if (e->button() == Qt::RightButton) { @@ -489,5 +489,5 @@ void KviLinksListView::mousePressEvent (QMouseEvent *e) } #ifndef COMPILE_USE_STANDALONE_MOC_SOURCES -#include "m_linkswindow.moc" +#include "m_LinksWindow.moc" #endif //!COMPILE_USE_STANDALONE_MOC_SOURCES diff --git a/src/modules/links/linkswindow.h b/src/modules/links/LinksWindow.h index ee10aeb80..807596048 100644 --- a/src/modules/links/linkswindow.h +++ b/src/modules/links/LinksWindow.h @@ -2,7 +2,7 @@ #define _LINKSWINDOW_H_ //============================================================================= // -// File : linkswindow.h +// File : LinksWindow.h // Creation date : Thu Dec 21 2000 12:42:55 CEST by Szymon Stefanek // // This file is part of the KVIrc irc client distribution @@ -45,28 +45,28 @@ typedef struct _KviLink KviCString description; } KviLink; -class KviLinksListView : public KviThemedTreeWidget +class LinksListView : public KviThemedTreeWidget { Q_OBJECT public: - KviLinksListView(QWidget * par, KviWindow * wnd, const char * txt); - ~KviLinksListView(){}; + LinksListView(QWidget * par, KviWindow * wnd, const char * txt); + ~LinksListView(){}; protected: void mousePressEvent (QMouseEvent *e); signals: void rightButtonPressed(QTreeWidgetItem *,QPoint); }; -class KviLinksWindow : public KviWindow, public KviExternalServerDataParser +class LinksWindow : public KviWindow, public KviExternalServerDataParser { Q_OBJECT public: - KviLinksWindow(KviMainWindow * lpFrm,KviConsoleWindow * lpConsole); - ~KviLinksWindow(); + LinksWindow(KviMainWindow * lpFrm,KviConsoleWindow * lpConsole); + ~LinksWindow(); protected: QSplitter * m_pVertSplitter; QSplitter * m_pTopSplitter; - KviLinksListView * m_pListView; + LinksListView * m_pListView; KviPointerList<KviLink> * m_pLinkList; KviTalPopupMenu * m_pHostPopup; QString m_szRootServer; diff --git a/src/modules/links/libkvilinks.cpp b/src/modules/links/libkvilinks.cpp index 5529e0528..caf5c205d 100644 --- a/src/modules/links/libkvilinks.cpp +++ b/src/modules/links/libkvilinks.cpp @@ -21,7 +21,7 @@ // //============================================================================= -#include "linkswindow.h" +#include "LinksWindow.h" #include "KviModule.h" #include "KviMainWindow.h" @@ -30,7 +30,7 @@ #include <QSplitter> -KviPointerList<KviLinksWindow> * g_pLinksWindowList = 0; +KviPointerList<LinksWindow> * g_pLinksWindowList = 0; /* @@ -66,7 +66,7 @@ static bool links_kvs_cmd_open(KviKvsModuleCommandCall * c) if(!(c->window()->context()->linksWindow())) { - KviLinksWindow *w = new KviLinksWindow(c->window()->frame(),c->window()->console()); + LinksWindow *w = new LinksWindow(c->window()->frame(),c->window()->console()); c->window()->frame()->addWindow(w); } else { c->warning(__tr2qs("Links window alread open for this IRC context")); @@ -77,7 +77,7 @@ static bool links_kvs_cmd_open(KviKvsModuleCommandCall * c) static bool links_module_init(KviModule * m) { - g_pLinksWindowList = new KviPointerList<KviLinksWindow>; + g_pLinksWindowList = new KviPointerList<LinksWindow>; g_pLinksWindowList->setAutoDelete(false); |
