KVIrc  4.9.2
DeveloperAPIs
OptionsWidget_proxy.h
Go to the documentation of this file.
1 #ifndef _OPTW_PROXY_H_
2 #define _OPTW_PROXY_H_
3 //=============================================================================
4 //
5 // File : OptionsWidget_proxy.h
6 // Creation date : Mon Jun 24 2000 21:58:25 by Szymon Stefanek
7 //
8 // This file is part of the KVIrc IRC client distribution
9 // Copyright (C) 2000-2010 Szymon Stefanek (pragma at kvirc dot net)
10 //
11 // This program is FREE software. You can redistribute it and/or
12 // modify it under the terms of the GNU General Public License
13 // as published by the Free Software Foundation; either version 2
14 // of the License, or (at your option) any later version.
15 //
16 // This program is distributed in the HOPE that it will be USEFUL,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19 // See the GNU General Public License for more details.
20 //
21 // You should have received a copy of the GNU General Public License
22 // along with this program. If not, write to the Free Software Foundation,
23 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 //
25 //=============================================================================
26 
27 #include "KviOptionsWidget.h"
28 #include "KviIconManager.h"
29 
30 #include <QTreeWidget>
31 #include <QCheckBox>
32 
33 class QLabel;
34 class QLineEdit;
35 class QComboBox;
36 class KviIpEditor;
37 class QMenu;
38 class KviProxy;
39 class KviProxyDataBase;
40 class KviBoolSelector;
41 
43 
44 class ProxyOptionsTreeWidgetItem : public QTreeWidgetItem
45 {
46 public:
47  ProxyOptionsTreeWidgetItem(QTreeWidget * parent, const QPixmap & pm, KviProxy * prx);
49 
50 public:
52 };
53 
54 #define KVI_OPTIONS_WIDGET_ICON_OptionsWidget_proxy KviIconManager::Proxy
55 #define KVI_OPTIONS_WIDGET_NAME_OptionsWidget_proxy __tr2qs_no_lookup("Proxy Hosts")
56 #define KVI_OPTIONS_WIDGET_PARENT_OptionsWidget_proxy OptionsWidget_connection
57 #define KVI_OPTIONS_WIDGET_KEYWORDS_OptionsWidget_proxy __tr2qs_no_lookup("connection,servers")
58 #define KVI_OPTIONS_WIDGET_PRIORITY_OptionsWidget_proxy 70000
59 
61 {
62  Q_OBJECT
63 public:
64  OptionsWidget_proxy(QWidget * parent);
66 
67 protected:
68  QTreeWidget * m_pTreeWidget;
69  QLabel * m_pProxyLabel;
70  QLineEdit * m_pProxyEdit;
71  QLabel * m_pIpLabel;
73  QLabel * m_pUserLabel;
74  QLineEdit * m_pUserEdit;
75  QLabel * m_pPassLabel;
76  QLineEdit * m_pPassEdit;
77  QLabel * m_pPortLabel;
78  QLineEdit * m_pPortEdit;
79  QLabel * m_pProtocolLabel;
80  QComboBox * m_pProtocolBox;
81  QMenu * m_pContextPopup;
82  QCheckBox * m_pIPv6Check;
85 
86 private:
87  void fillProxyList();
88  void saveLastItem();
90 protected slots:
91  void currentItemChanged(QTreeWidgetItem * it, QTreeWidgetItem * prev);
92  void customContextMenuRequested(const QPoint & pnt);
93  void newProxy();
94  void removeCurrent();
95  void ipV6CheckToggled(bool bEnabled);
96 
97 public:
98  virtual void commit();
99 };
100 
101 #endif
QMenu * m_pContextPopup
Definition: OptionsWidget_proxy.h:81
QLabel * m_pProtocolLabel
Definition: OptionsWidget_proxy.h:79
void customContextMenuRequested(const QPoint &pnt)
Definition: OptionsWidget_proxy.cpp:333
void fillProxyList()
Definition: OptionsWidget_proxy.cpp:160
Definition: KviSelectors.h:59
#define KVIRC_API
Definition: kvi_settings.h:128
~ProxyOptionsTreeWidgetItem()
Definition: OptionsWidget_proxy.cpp:55
void newProxy()
Definition: OptionsWidget_proxy.cpp:343
Definition: OptionsWidget_proxy.h:44
Definition: KviIpEditor.h:36
QLineEdit * m_pUserEdit
Definition: OptionsWidget_proxy.h:74
QLabel * m_pProxyLabel
Definition: OptionsWidget_proxy.h:69
Definition: KviProxy.h:37
QLabel * m_pPortLabel
Definition: OptionsWidget_proxy.h:77
Definition: KviOptionsWidget.h:40
Icon manager.
KviIpEditor * m_pIpEditor
Definition: OptionsWidget_proxy.h:72
void enableDisableUseProxySelector()
Definition: OptionsWidget_proxy.cpp:148
QLabel * m_pPassLabel
Definition: OptionsWidget_proxy.h:75
ProxyOptionsTreeWidgetItem(QTreeWidget *parent, const QPixmap &pm, KviProxy *prx)
Definition: OptionsWidget_proxy.cpp:46
OptionsWidget_proxy(QWidget *parent)
Definition: OptionsWidget_proxy.cpp:61
QLineEdit * m_pProxyEdit
Definition: OptionsWidget_proxy.h:70
Definition: OptionsWidget_proxy.h:60
KVIRC_API KviProxyDataBase * g_pProxyDataBase
Definition: KviApplication.cpp:155
QTreeWidget * m_pTreeWidget
Definition: OptionsWidget_proxy.h:68
KviBoolSelector * m_pUseProxySelector
Definition: OptionsWidget_proxy.h:83
QComboBox * m_pProtocolBox
Definition: OptionsWidget_proxy.h:80
QLineEdit * m_pPortEdit
Definition: OptionsWidget_proxy.h:78
void saveLastItem()
Definition: OptionsWidget_proxy.cpp:253
QLabel * m_pIpLabel
Definition: OptionsWidget_proxy.h:71
void currentItemChanged(QTreeWidgetItem *it, QTreeWidgetItem *prev)
Definition: OptionsWidget_proxy.cpp:182
Definition: KviProxyDataBase.h:33
void removeCurrent()
Definition: OptionsWidget_proxy.cpp:352
void ipV6CheckToggled(bool bEnabled)
Definition: OptionsWidget_proxy.cpp:155
QLabel * m_pUserLabel
Definition: OptionsWidget_proxy.h:73
QCheckBox * m_pIPv6Check
Definition: OptionsWidget_proxy.h:82
KviProxy * m_pProxyData
Definition: OptionsWidget_proxy.h:51
QLineEdit * m_pPassEdit
Definition: OptionsWidget_proxy.h:76
virtual void commit()
Definition: OptionsWidget_proxy.cpp:306
ProxyOptionsTreeWidgetItem * m_pLastEditedItem
Definition: OptionsWidget_proxy.h:84