/****************************************************************************
** Form interface generated from reading ui file 'torkview_base.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#ifndef UI_TORKVIEW_BASE_H
#define UI_TORKVIEW_BASE_H

#include <ntqvariant.h>
#include <ntqpixmap.h>
#include <ntqwidget.h>

class TQVBoxLayout;
class TQHBoxLayout;
class TQGridLayout;
class TQSpacerItem;
class DndListView;
class KWidgetListbox;
class TQFrame;
class TQLabel;
class TQTabWidget;
class TQSplitter;
class TQGroupBox;
class TDEListViewSearchLine;
class TQToolButton;
class TQListView;
class TQListViewItem;
class TQPushButton;
class TQCheckBox;
class TQSpinBox;

class torkview_base : public TQWidget
{
    TQ_OBJECT

public:
    torkview_base( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
    ~torkview_base();

    TQFrame* frame4;
    TQLabel* textLabel2;
    TQLabel* textLabel1_2;
    TQFrame* frame5;
    TQLabel* textLabel3;
    TQFrame* ChartFrame;
    TQTabWidget* TorkTabs;
    TQWidget* Anonymize;
    KWidgetListbox* Anonymizer;
    TQWidget* TorNetwork;
    TQSplitter* splitter5;
    TQGroupBox* Network;
    DndListView* serverList;
    TDEListViewSearchLine* serverFilter;
    TQToolButton* clearButton;
    TQSplitter* splitter4;
    TQGroupBox* groupBox2;
    DndListView* streamList;
    TQSplitter* splitter3;
    TQGroupBox* groupBox1;
    DndListView* circuitList;
    TQGroupBox* groupBox3;
    DndListView* ORList;
    TQWidget* TorLog;
    TQListView* infoList;
    TQPushButton* clearInfo;
    TQCheckBox* ShowHostNames;
    TQWidget* TrafficLog;
    TQSplitter* splitter4_2;
    TQGroupBox* groupBox5;
    TQListView* TorTraffic;
    TQPushButton* clearTorTraffic;
    TQGroupBox* groupBox6;
    TQPushButton* clearNonTorTraffic;
    TQListView* NonTorTraffic;
    TQSpinBox* NonTorTrafficMaxEntries;
    TQLabel* textLabel1;
    TQCheckBox* kcfg_LogNonTorTraffic;
    TQCheckBox* kcfg_LogTorTraffic;

public slots:
    virtual void stopDisplayingBubble( TQListViewItem *, const TQPoint &, int );
    virtual void streamList_contextMenuRequested( TQListViewItem *, const TQPoint & point, int );
    virtual void slotAttachStreams();
    virtual void slotCloseStream();
    virtual void circuitList_contextMenuRequested( TQListViewItem *, const TQPoint & point, int );
    virtual void slotCloseCircuit();
    virtual void serverList_contextMenuRequested( TQListViewItem *, const TQPoint & point, int );
    virtual void slotClearNodes();
    virtual void slotAddToFamily();
    virtual void slotAddPermExcludeCountry();
    virtual void slotAddPermExcludeNodes();
    virtual void slotAddSessionExcludeCountry();
    virtual void slotAddSessionExcludeNodes();
    virtual void slotAddPermExitNodes();
    virtual void slotAddPermStrictExitNodes();
    virtual void slotAddSessionExitNodes();
    virtual void slotAddSessionStrictExitNodes();
    virtual void slotAddPermEntryNodes();
    virtual void slotAddSessionEntryNodes();
    virtual void addExcludeNodes( bool perm, TQStringList ccs );
    virtual void clearInfo_clicked();
    virtual void clearTorTraffic_clicked();
    virtual void clearNonTorTraffic_clicked();
    virtual void NonTorTrafficMaxEntries_valueChanged( int newval );
    virtual void useNewIdentity_clicked( int, int );
    virtual void useKonqWithTor_clicked( int, int );
    virtual void viewNetworkList_clicked( int, int );
    virtual void viewHiddenServices_clicked( int, int );
    virtual void kcfg_LogNonTorTraffic_toggled( bool state );
    virtual void kcfg_LogTorTraffic_toggled( bool state );
    virtual void ShowHostNames_toggled( bool safe );
    virtual void copyLogLines( );
    virtual void selectAllLogLines( );
    virtual void infoList_contextMenuRequested( TQListViewItem *, const TQPoint &, int );
    virtual void TorTraffic_contextMenuRequested( TQListViewItem *, const TQPoint &, int );
    virtual void queryHostName( );
    virtual void resolvedAddress( const TQString & );
    virtual void NonTorTraffic_contextMenuRequested( TQListViewItem *, const TQPoint &, int );

signals:
    void closeStream(const TQString &);
    void closeCircuit(const TQString &);
    void closeAllCircuits( TQListView* &);
    void copyOldConfig( );
    void attachStreams(bool);
    void newIdentity();
    void konqWithTor();
    void networkList();
    void hiddenServices();
    void toggleTorTraffic(bool);
    void toggleNonTorTraffic(bool);
    void updateExcludeNodes();
    void updateEntryNodes();
    void updateExitNodes();
    void clearNodes();
    void updateStrictExitNodes(bool);
    void safeLogging(bool);
    void resolveAddress(const TQString &);

protected:
    TQGridLayout* torkview_baseLayout;
    TQGridLayout* AnonymizeLayout;
    TQGridLayout* TorNetworkLayout;
    TQGridLayout* NetworkLayout;
    TQGridLayout* groupBox2Layout;
    TQGridLayout* groupBox1Layout;
    TQHBoxLayout* groupBox3Layout;
    TQGridLayout* TorLogLayout;
    TQSpacerItem* spacer1;
    TQGridLayout* TrafficLogLayout;
    TQGridLayout* groupBox5Layout;
    TQSpacerItem* spacer2;
    TQGridLayout* groupBox6Layout;
    TQSpacerItem* spacer2_2;

protected slots:
    virtual void languageChange();

private:
    TQPixmap image0;
    TQPixmap image1;
    TQPixmap image2;
    TQPixmap image3;

    void init();
    TQStringList selectByCountry();
    void addEntryNodes( bool perm );
    void addExitNodes( bool perm, bool strict );

};

#endif // TORKVIEW_BASE_H
