diff options
Diffstat (limited to 'kftpgrabber/src/widgets/browser/view.cpp')
-rw-r--r-- | kftpgrabber/src/widgets/browser/view.cpp | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/kftpgrabber/src/widgets/browser/view.cpp b/kftpgrabber/src/widgets/browser/view.cpp index 4b3b0e5..43fb3e2 100644 --- a/kftpgrabber/src/widgets/browser/view.cpp +++ b/kftpgrabber/src/widgets/browser/view.cpp @@ -46,21 +46,21 @@ #include "misc.h" -#include <klocale.h> -#include <ktoolbar.h> +#include <tdelocale.h> +#include <tdetoolbar.h> #include <kstatusbar.h> #include <kcombobox.h> -#include <kaction.h> -#include <kmessagebox.h> +#include <tdeaction.h> +#include <tdemessagebox.h> #include <ksslinfodlg.h> #include <klineedit.h> #include <kpixmapprovider.h> -#include <kio/job.h> +#include <tdeio/job.h> -#include <qdir.h> -#include <qlabel.h> -#include <qlayout.h> +#include <ntqdir.h> +#include <ntqlabel.h> +#include <ntqlayout.h> using namespace KFTPGrabberBase; using namespace KFTPEngine; @@ -72,18 +72,18 @@ namespace Browser { class HistoryPixmapProvider : public KPixmapProvider { public: - QPixmap pixmapFor(const QString&, int) + TQPixmap pixmapFor(const TQString&, int) { return loadSmallPixmap("folder"); } }; -View::View(QWidget *parent, const char *name, KFTPEngine::Thread *client, KFTPSession::Session *session) - : QWidget(parent, name), +View::View(TQWidget *parent, const char *name, KFTPEngine::Thread *client, KFTPSession::Session *session) + : TQWidget(parent, name), m_session(session), m_ftpClient(client) { - m_connTimer = new QTimer(this); + m_connTimer = new TQTimer(this); // Create the GUI init(); @@ -114,12 +114,12 @@ void View::init() m_actions->initActions(); // Layout - QVBoxLayout *layout = new QVBoxLayout(this); + TQVBoxLayout *layout = new TQVBoxLayout(this); // Create the toolbars - m_toolBarFirst = new KToolBar(this, "first toolbar", false, false); - m_toolBarSecond = new KToolBar(this, "second toolbar", false, false); - m_searchToolBar = new KToolBar(this, "search toolbar", false, false); + m_toolBarFirst = new TDEToolBar(this, "first toolbar", false, false); + m_toolBarSecond = new TDEToolBar(this, "second toolbar", false, false); + m_searchToolBar = new TDEToolBar(this, "search toolbar", false, false); m_toolBarFirst->setEnableContextMenu(false); m_toolBarFirst->setMovingEnabled(false); @@ -133,14 +133,14 @@ void View::init() m_searchToolBar->setMovingEnabled(false); m_searchToolBar->setFullSize(true); - QLabel *filterLabel = new QLabel(i18n("Filter: "), m_searchToolBar); + TQLabel *filterLabel = new TQLabel(i18n("Filter: "), m_searchToolBar); m_searchToolBar->insertWidget(1, 35, filterLabel); // Create the erase button - m_toolBarSecond->insertButton(QApplication::reverseLayout() ? "clear_left" :"locationbar_erase", 0, SIGNAL(clicked()), this, SLOT(slotHistoryEraseClicked()), true); + m_toolBarSecond->insertButton(TQApplication::reverseLayout() ? "clear_left" :"locationbar_erase", 0, SIGNAL(clicked()), this, SLOT(slotHistoryEraseClicked()), true); // Create the labels - QLabel *pathLabel = new QLabel(i18n("Path: "), m_toolBarSecond); + TQLabel *pathLabel = new TQLabel(i18n("Path: "), m_toolBarSecond); m_toolBarSecond->insertWidget(1, 35, pathLabel); // Create the history combo @@ -150,9 +150,9 @@ void View::init() m_historyCombo->setMaxCount(25); m_historyCombo->setSizeLimit(25); m_historyCombo->setDuplicatesEnabled(false); - m_historyCombo->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); + m_historyCombo->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); - connect(m_historyCombo, SIGNAL(activated(const QString&)), this, SLOT(slotHistoryActivated(const QString&))); + connect(m_historyCombo, SIGNAL(activated(const TQString&)), this, SLOT(slotHistoryActivated(const TQString&))); // Do some more stuff m_toolBarSecond->setItemAutoSized(1, true); @@ -161,27 +161,27 @@ void View::init() m_toolBarFirst->updateRects(true); // Create a splitter - m_splitter = new QSplitter(this); + m_splitter = new TQSplitter(this); m_splitter->setOpaqueResize(true); - m_splitter->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding)); + m_splitter->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding)); // Create a status bar - QHBoxLayout *statusLayout = new QHBoxLayout(this); + TQHBoxLayout *statusLayout = new TQHBoxLayout(this); - m_connDurationMsg = new QLabel(this); + m_connDurationMsg = new TQLabel(this); m_connDurationMsg->setAlignment(AlignAuto | AlignVCenter | AlignHCenter | ExpandTabs); - m_connDurationMsg->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); + m_connDurationMsg->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); m_connDurationMsg->setMinimumWidth(100); - m_sslIcon = new QPushButton(this); + m_sslIcon = new TQPushButton(this); m_sslIcon->setFlat(true); m_sslIcon->setIconSet(SmallIconSet("decrypted")); m_sslIcon->setEnabled(false); connect(m_sslIcon, SIGNAL(clicked()), this, SLOT(slotDisplayCertInfo())); - m_statusMsg = new QLabel(this); - m_statusMsg->setFrameStyle(QFrame::StyledPanel | QFrame::Sunken); + m_statusMsg = new TQLabel(this); + m_statusMsg->setFrameStyle(TQFrame::StyledPanel | TQFrame::Sunken); m_statusMsg->setText(i18n("Idle.")); statusLayout->addWidget(m_statusMsg, 1); @@ -222,7 +222,7 @@ const KURL &View::url() const return m_detailsView->url(); } -const QValueList<LocationNavigator::Element> View::history(int &index) const +const TQValueList<LocationNavigator::Element> View::history(int &index) const { return m_detailsView->history(index); } @@ -295,13 +295,13 @@ void View::reload() m_detailsView->reload(); } -void View::rename(const KURL &source, const QString &name) +void View::rename(const KURL &source, const TQString &name) { KURL dest(source.upURL()); dest.addPath(name); if (source.isLocalFile()) - KIO::rename(source, dest, false); + TDEIO::rename(source, dest, false); else m_session->getClient()->rename(source, dest); } @@ -359,10 +359,10 @@ void View::updateBookmarks() { // Repopulate bookmarks menu on updates m_actions->m_connectAction->popupMenu()->clear(); - KFTPBookmarks::Manager::self()->guiPopulateBookmarksMenu(m_actions->m_connectAction, QDomNode(), false, m_session); + KFTPBookmarks::Manager::self()->guiPopulateBookmarksMenu(m_actions->m_connectAction, TQDomNode(), false, m_session); } -void View::slotHistoryActivated(const QString &text) +void View::slotHistoryActivated(const TQString &text) { KURL dest = url(); dest.setPath(text); @@ -372,7 +372,7 @@ void View::slotHistoryActivated(const QString &text) void View::slotHistoryEraseClicked() { - m_historyCombo->setCurrentText(QString::null); + m_historyCombo->setCurrentText(TQString::null); m_historyCombo->setFocus(); } @@ -426,7 +426,7 @@ void View::slotEngineEvent(KFTPEngine::Event *event) } // Reset selected charset to default - KPopupMenu *menu = m_actions->m_changeEncodingAction->popupMenu(); + TDEPopupMenu *menu = m_actions->m_changeEncodingAction->popupMenu(); menu->setItemChecked(m_actions->m_defaultCharsetOption, true); menu->setItemChecked(m_actions->m_curCharsetOption, false); m_actions->m_curCharsetOption = m_actions->m_defaultCharsetOption; |