summaryrefslogtreecommitdiffstats
path: root/src/torkview_base.ui.h
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-07-27 16:57:53 +0200
committerSlávek Banko <[email protected]>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/torkview_base.ui.h
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/torkview_base.ui.h')
-rw-r--r--src/torkview_base.ui.h194
1 files changed, 97 insertions, 97 deletions
diff --git a/src/torkview_base.ui.h b/src/torkview_base.ui.h
index b1bca7b..c15965d 100644
--- a/src/torkview_base.ui.h
+++ b/src/torkview_base.ui.h
@@ -19,10 +19,10 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
-#include <qtooltip.h>
-#include <qpopupmenu.h>
+#include <ntqtooltip.h>
+#include <ntqpopupmenu.h>
#include <kdebug.h>
-#include <qclipboard.h>
+#include <ntqclipboard.h>
#include <kapplication.h>
#include <kiconloader.h>
@@ -39,16 +39,16 @@
bool m_LeaveStreamsUnattached;
-typedef QMap<QString, QListViewItem*> ResolveMap;
+typedef TQMap<TQString, TQListViewItem*> ResolveMap;
ResolveMap resolveMap;
-typedef QMap<QListViewItem*, int > ResolveColMap;
+typedef TQMap<TQListViewItem*, int > ResolveColMap;
ResolveColMap resolveColMap;
void torkview_base::init()
{
serverFilter->setListView((KListView *)serverList);
- QValueList<int> tmp;
+ TQValueList<int> tmp;
tmp << 1;
serverFilter->setSearchColumns(tmp);
@@ -64,18 +64,18 @@ void torkview_base::init()
serverList->addColumn( "countrycode" );
serverList->addColumn( "ip" );
- serverList->setSelectionMode( QListView::Extended );
- serverList->setColumnWidthMode(2, QListView::Manual);
+ serverList->setSelectionMode( TQListView::Extended );
+ serverList->setColumnWidthMode(2, TQListView::Manual);
serverList->hideColumn(2);
- serverList->setColumnWidthMode(3, QListView::Manual);
+ serverList->setColumnWidthMode(3, TQListView::Manual);
serverList->hideColumn(3);
- serverList->setColumnWidthMode(4, QListView::Manual);
+ serverList->setColumnWidthMode(4, TQListView::Manual);
serverList->hideColumn(4);
- serverList->setColumnWidthMode(5, QListView::Manual);
+ serverList->setColumnWidthMode(5, TQListView::Manual);
serverList->hideColumn(5);
serverList->header()->setResizeEnabled(FALSE, 1);
- serverList->setResizeMode( QListView::NoColumn );
- serverList->setHScrollBarMode(QScrollView::AlwaysOff);
+ serverList->setResizeMode( TQListView::NoColumn );
+ serverList->setHScrollBarMode(TQScrollView::AlwaysOff);
streamList->addColumn( "ID" );
streamList->addColumn( tr2i18n("Source") );
@@ -85,39 +85,39 @@ void torkview_base::init()
streamList->addColumn( tr2i18n("Exit") );
streamList->addColumn( tr2i18n("Circuit") );
- streamList->setSelectionMode( QListView::Extended );
- streamList->setColumnWidthMode(0, QListView::Manual);
+ streamList->setSelectionMode( TQListView::Extended );
+ streamList->setColumnWidthMode(0, TQListView::Manual);
streamList->hideColumn(0);
streamList->header()->setResizeEnabled(FALSE, 0);
- streamList->setResizeMode( QListView::NoColumn );
+ streamList->setResizeMode( TQListView::NoColumn );
circuitList->addColumn( tr2i18n( "ID" ) );
circuitList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", KIcon::Small),"", 24 );
circuitList->addColumn( tr2i18n( "Path" ) );
- circuitList->setSelectionMode( QListView::Extended );
- circuitList->setColumnWidthMode(0, QListView::Manual);
+ circuitList->setSelectionMode( TQListView::Extended );
+ circuitList->setColumnWidthMode(0, TQListView::Manual);
circuitList->hideColumn(0);
circuitList->header()->setResizeEnabled(FALSE, 0);
- circuitList->setResizeMode( QListView::LastColumn );
+ circuitList->setResizeMode( TQListView::LastColumn );
ORList->addColumn( kapp->iconLoader()->loadIconSet("tork_torsmall", KIcon::Small),"", 24 );
ORList->addColumn( tr2i18n( "Server" ) );
- ORList->setSelectionMode( QListView::Extended );
- ORList->setColumnWidthMode(0, QListView::Manual);
- ORList->setResizeMode( QListView::LastColumn );
+ ORList->setSelectionMode( TQListView::Extended );
+ ORList->setColumnWidthMode(0, TQListView::Manual);
+ ORList->setResizeMode( TQListView::LastColumn );
- TorTraffic->setColumnWidthMode(0, QListView::Manual);
+ TorTraffic->setColumnWidthMode(0, TQListView::Manual);
TorTraffic->hideColumn(0);
TorTraffic->header()->setResizeEnabled(FALSE, 0);
- TorTraffic->setResizeMode( QListView::NoColumn );
+ TorTraffic->setResizeMode( TQListView::NoColumn );
TorTraffic->setSorting ( 1, true);
NonTorTraffic->setSorting ( 0, true);
m_LeaveStreamsUnattached = false;
- infoList->setColumnWidthMode(1, QListView::Manual);
+ infoList->setColumnWidthMode(1, TQListView::Manual);
infoList->hideColumn(1);
infoList->header()->setResizeEnabled(FALSE, 1);
infoList->setSorting ( 0, true);
@@ -131,15 +131,15 @@ void torkview_base::init()
}
-void torkview_base::stopDisplayingBubble(QListViewItem*,const QPoint&,int)
+void torkview_base::stopDisplayingBubble(TQListViewItem*,const TQPoint&,int)
{
TorkConfig::setDisplayBubble(false);
}
-void torkview_base::streamList_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void torkview_base::streamList_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
- QPopupMenu *menu = new QPopupMenu( streamList );
+ TQPopupMenu *menu = new TQPopupMenu( streamList );
menu->clear();
@@ -165,7 +165,7 @@ void torkview_base::slotCloseStream( )
{
kdDebug() << "deleting entry" << endl;
- QListViewItemIterator it(streamList, QListViewItemIterator::Selected);
+ TQListViewItemIterator it(streamList, TQListViewItemIterator::Selected);
while ( it.current() ) {
if (streamList->isSelected( it.current()))
emit closeStream(it.current()->text(0));
@@ -175,13 +175,13 @@ void torkview_base::slotCloseStream( )
}
-void torkview_base::circuitList_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void torkview_base::circuitList_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
if (circuitList->childCount() == 0)
return;
- QPopupMenu *menu = new QPopupMenu( circuitList );
+ TQPopupMenu *menu = new TQPopupMenu( circuitList );
menu->clear();
menu->insertItem( "Close Circuit", this,SLOT(slotCloseCircuit()) );
@@ -194,7 +194,7 @@ void torkview_base::slotCloseCircuit( )
{
kdDebug() << "deleting entry" << endl;
- QListViewItemIterator it(circuitList, QListViewItemIterator::Selected);
+ TQListViewItemIterator it(circuitList, TQListViewItemIterator::Selected);
while ( it.current() ) {
if (circuitList->isSelected( it.current()))
emit closeCircuit(it.current()->text(0));
@@ -204,15 +204,15 @@ void torkview_base::slotCloseCircuit( )
}
-void torkview_base::serverList_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void torkview_base::serverList_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
if (serverList->childCount() == 0)
return;
- QPopupMenu *menu = new QPopupMenu( serverList );
- QPopupMenu *m_ThisSession = new KPopupMenu( this );
- QPopupMenu *m_ThisPerm = new KPopupMenu( this );
+ TQPopupMenu *menu = new TQPopupMenu( serverList );
+ TQPopupMenu *m_ThisSession = new KPopupMenu( this );
+ TQPopupMenu *m_ThisPerm = new KPopupMenu( this );
menu->clear();
menu->insertItem( i18n("For This Session Only"), m_ThisSession );
@@ -243,15 +243,15 @@ void torkview_base::slotClearNodes( )
void torkview_base::slotAddToFamily( )
{
- QStringList currentList;
+ TQStringList currentList;
currentList = TorkConfig::myFamily();
- QListViewItemIterator it(serverList, QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ TQListViewItemIterator it(serverList, TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
while ( it.current() ) {
- if (!TorkConfig::myFamily().contains(QString("%1-%2-%3")
+ if (!TorkConfig::myFamily().contains(TQString("%1-%2-%3")
.arg((*it)->text(4)).arg((*it)->text(2)).arg((*it)->text(1)))){
- QStringList existingServers = TorkConfig::myFamily();
- existingServers.append(QString("%1-%2-%3")
+ TQStringList existingServers = TorkConfig::myFamily();
+ existingServers.append(TQString("%1-%2-%3")
.arg((*it)->text(4)).arg((*it)->text(2)).arg((*it)->text(1)));
TorkConfig::setMyFamily(existingServers);
}
@@ -262,10 +262,10 @@ void torkview_base::slotAddToFamily( )
void torkview_base::slotAddPermExcludeCountry( )
{
- QStringList selectedCountries = selectByCountry();
+ TQStringList selectedCountries = selectByCountry();
- QStringList newCountries = TorkConfig::excludeCountries();
- for ( QStringList::Iterator it = selectedCountries.begin(); it != selectedCountries.end(); ++it )
+ TQStringList newCountries = TorkConfig::excludeCountries();
+ for ( TQStringList::Iterator it = selectedCountries.begin(); it != selectedCountries.end(); ++it )
{
if ((!TorkConfig::excludeCountries().contains(*it)) &&
(!newCountries.contains(*it)))
@@ -278,17 +278,17 @@ void torkview_base::slotAddPermExcludeCountry( )
void torkview_base::slotAddPermExcludeNodes( )
{
- addExcludeNodes(true, QStringList());
+ addExcludeNodes(true, TQStringList());
}
-QStringList torkview_base::selectByCountry( )
+TQStringList torkview_base::selectByCountry( )
{
- QStringList selectCountries;
+ TQStringList selectCountries;
- QListViewItemIterator it(serverList, QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ TQListViewItemIterator it(serverList, TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
while ( it.current() ) {
- QString cc = (*it)->text(4);
+ TQString cc = (*it)->text(4);
selectCountries.append(cc);
++it;
}
@@ -303,7 +303,7 @@ void torkview_base::slotAddSessionExcludeCountry( )
void torkview_base::slotAddSessionExcludeNodes( )
{
- addExcludeNodes(false, QStringList());
+ addExcludeNodes(false, TQStringList());
}
void torkview_base::slotAddPermExitNodes( )
@@ -336,21 +336,21 @@ void torkview_base::slotAddSessionEntryNodes( )
addEntryNodes(false);
}
-void torkview_base::addExcludeNodes(bool perm, QStringList ccs )
+void torkview_base::addExcludeNodes(bool perm, TQStringList ccs )
{
- QStringList currentList;
+ TQStringList currentList;
currentList = TorkConfig::currentExcludeNodes();
- QStringList permList;
+ TQStringList permList;
permList = TorkConfig::excludeNodes();
- QListViewItemIterator::IteratorFlag filter;
+ TQListViewItemIterator::IteratorFlag filter;
if (ccs.isEmpty())
- filter = QListViewItemIterator::IteratorFlag(QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ filter = TQListViewItemIterator::IteratorFlag(TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
else
- filter = QListViewItemIterator::IteratorFlag();
+ filter = TQListViewItemIterator::IteratorFlag();
- QListViewItemIterator it(serverList, filter);
+ TQListViewItemIterator it(serverList, filter);
while ( it.current() ) {
if (!ccs.isEmpty()){
@@ -360,14 +360,14 @@ void torkview_base::addExcludeNodes(bool perm, QStringList ccs )
}
}
- QString node = "$"+getFPFromFPDigest((*it)->text(2));
+ TQString node = "$"+getFPFromFPDigest((*it)->text(2));
currentList.append(node);
if (perm){
permList.append(node);
- if (!TorkConfig::excludeServersHistory().contains(QString("%1-%2-%3")
+ if (!TorkConfig::excludeServersHistory().contains(TQString("%1-%2-%3")
.arg((*it)->text(4)).arg((*it)->text(2)).arg((*it)->text(1)))){
- QStringList existingServers = TorkConfig::excludeServersHistory();
- existingServers.append(QString("%1-%2-%3")
+ TQStringList existingServers = TorkConfig::excludeServersHistory();
+ existingServers.append(TQString("%1-%2-%3")
.arg((*it)->text(4)).arg((*it)->text(2)).arg((*it)->text(1)));
TorkConfig::setExcludeServersHistory(existingServers);
}
@@ -379,7 +379,7 @@ void torkview_base::addExcludeNodes(bool perm, QStringList ccs )
TorkConfig::setCurrentExcludeNodes(currentList);
TorkConfig::setExcludeNodes(permList);
- QListView* tmp = dynamic_cast<QListView*>(circuitList);
+ TQListView* tmp = dynamic_cast<TQListView*>(circuitList);
emit closeAllCircuits(tmp);
emit updateExcludeNodes();
@@ -390,14 +390,14 @@ void torkview_base::addExcludeNodes(bool perm, QStringList ccs )
void torkview_base::addEntryNodes( bool perm )
{
- QStringList currentList;
+ TQStringList currentList;
currentList = TorkConfig::currentEntryNodes();
- QStringList permList;
+ TQStringList permList;
permList = TorkConfig::entryNodes();
- QListViewItemIterator it(serverList, QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ TQListViewItemIterator it(serverList, TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
while ( it.current() ) {
- QString node = "$"+getFPFromFPDigest((*it)->text(2));
+ TQString node = "$"+getFPFromFPDigest((*it)->text(2));
currentList.append(node);
if (perm)
permList.append(node);
@@ -407,7 +407,7 @@ void torkview_base::addEntryNodes( bool perm )
TorkConfig::setCurrentEntryNodes(currentList);
TorkConfig::setEntryNodes(permList);
emit copyOldConfig();
- QListView* tmp = dynamic_cast<QListView*>(circuitList);
+ TQListView* tmp = dynamic_cast<TQListView*>(circuitList);
emit closeAllCircuits(tmp);
emit updateEntryNodes();
@@ -416,21 +416,21 @@ void torkview_base::addEntryNodes( bool perm )
void torkview_base::addExitNodes(bool perm , bool strict)
{
- QStringList currentList;
+ TQStringList currentList;
currentList = TorkConfig::currentExitNodes();
- QStringList permList;
+ TQStringList permList;
permList = TorkConfig::exitNodes();
- QListViewItemIterator it(serverList, QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ TQListViewItemIterator it(serverList, TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
while ( it.current() ) {
- QString node = "$"+getFPFromFPDigest((*it)->text(2));
+ TQString node = "$"+getFPFromFPDigest((*it)->text(2));
currentList.append(node);
if (perm){
permList.append(node);
- if (!TorkConfig::includeServersHistory().contains(QString("%1-%2-%3")
+ if (!TorkConfig::includeServersHistory().contains(TQString("%1-%2-%3")
.arg((*it)->text(4)).arg((*it)->text(2)).arg((*it)->text(1)))){
- QStringList existingServers = TorkConfig::includeServersHistory();
- existingServers.append(QString("%1-%2-%3")
+ TQStringList existingServers = TorkConfig::includeServersHistory();
+ existingServers.append(TQString("%1-%2-%3")
.arg((*it)->text(4)).arg((*it)->text(2)).arg((*it)->text(1)));
TorkConfig::setIncludeServersHistory(existingServers);
}
@@ -444,7 +444,7 @@ void torkview_base::addExitNodes(bool perm , bool strict)
if (perm)
TorkConfig::setStrictExitNodes(strict);
- QListView* tmp = dynamic_cast<QListView*>(circuitList);
+ TQListView* tmp = dynamic_cast<TQListView*>(circuitList);
emit closeAllCircuits(tmp);
emit updateExitNodes();
@@ -530,10 +530,10 @@ void torkview_base::ShowHostNames_toggled( bool safe)
void torkview_base::copyLogLines()
{
- QClipboard *cb = QApplication::clipboard();
- QString logLines;
+ TQClipboard *cb = TQApplication::clipboard();
+ TQString logLines;
- QListViewItemIterator it(infoList, QListViewItemIterator::Selected | QListViewItemIterator::Visible);
+ TQListViewItemIterator it(infoList, TQListViewItemIterator::Selected | TQListViewItemIterator::Visible);
while ( it.current() ) {
// Copy text into the clipboard
logLines.append((*it)->text(0));
@@ -546,13 +546,13 @@ void torkview_base::copyLogLines()
++it;
}
- cb->setText( logLines, QClipboard::Clipboard );
+ cb->setText( logLines, TQClipboard::Clipboard );
}
void torkview_base::selectAllLogLines()
{
- QListViewItemIterator it(infoList);
+ TQListViewItemIterator it(infoList);
while ( it.current() ) {
(*it)->setSelected(true);
++it;
@@ -560,9 +560,9 @@ void torkview_base::selectAllLogLines()
infoList->repaint();
}
-void torkview_base::infoList_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void torkview_base::infoList_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
- QPopupMenu *menu = new QPopupMenu( infoList );
+ TQPopupMenu *menu = new TQPopupMenu( infoList );
menu->clear();
menu->insertItem( SmallIconSet("copy"), "Copy", this, SLOT(copyLogLines()) );
@@ -573,10 +573,10 @@ void torkview_base::infoList_contextMenuRequested( QListViewItem *, const QPoint
}
-void torkview_base::TorTraffic_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void torkview_base::TorTraffic_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
- QPopupMenu *menu = new QPopupMenu( TorTraffic );
+ TQPopupMenu *menu = new TQPopupMenu( TorTraffic );
menu->clear();
menu->insertItem( SmallIconSet("help"), "Resolve Hostname/Address", this, SLOT(queryHostName()) );
@@ -586,12 +586,12 @@ void torkview_base::TorTraffic_contextMenuRequested( QListViewItem *, const QPoi
void torkview_base::queryHostName()
{
- QRegExp rx("[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}");
- QRegExp rx2("[^:]+");
+ TQRegExp rx("[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}");
+ TQRegExp rx2("[^:]+");
- QListView *tmpList;
- QString addressToResolve;
- QString addressToMatch;
+ TQListView *tmpList;
+ TQString addressToResolve;
+ TQString addressToMatch;
if (TorTraffic->hasFocus()) {
tmpList = TorTraffic;
@@ -601,12 +601,12 @@ void torkview_base::queryHostName()
int col = (tmpList == TorTraffic) ? 2 : 1;
rx.search(tmpList->selectedItem()->text(col));
- QString tmp = rx.cap(0);
+ TQString tmp = rx.cap(0);
rx2.search(tmpList->selectedItem()->text(col));
- QString tmp2 = rx2.cap(0);
+ TQString tmp2 = rx2.cap(0);
if (!tmp.isEmpty()){
- addressToMatch = QString("REVERSE[%1]").arg(tmp);
+ addressToMatch = TQString("REVERSE[%1]").arg(tmp);
addressToResolve = tmp;
}else{
addressToResolve = tmp2;
@@ -619,10 +619,10 @@ void torkview_base::queryHostName()
emit resolveAddress(addressToResolve);
}
-void torkview_base::resolvedAddress(const QString &info)
+void torkview_base::resolvedAddress(const TQString &info)
{
- QString type = info.section(" ",0,0);
- QString address = info.section(" ",1,1);
+ TQString type = info.section(" ",0,0);
+ TQString address = info.section(" ",1,1);
if (resolveMap[type]){
int column = resolveColMap[resolveMap[type]];
@@ -632,9 +632,9 @@ void torkview_base::resolvedAddress(const QString &info)
}
}
-void torkview_base::NonTorTraffic_contextMenuRequested( QListViewItem *, const QPoint &point, int )
+void torkview_base::NonTorTraffic_contextMenuRequested( TQListViewItem *, const TQPoint &point, int )
{
- QPopupMenu *menu = new QPopupMenu( NonTorTraffic );
+ TQPopupMenu *menu = new TQPopupMenu( NonTorTraffic );
menu->clear();
menu->insertItem( SmallIconSet("help"), "Resolve Hostname/Address", this, SLOT(queryHostName()) );