X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchannellistdlg.h;h=bb25fb22816e5b2af377dd07036b08ed754836cc;hp=84e5b7ad228da3722c2d6ec326639e778aa9cc91;hb=f04db2cb802b1296ca739c823495930c71d3b4ab;hpb=fe4b38e66592f11fdf4c4651863968983daecd2d diff --git a/src/qtui/channellistdlg.h b/src/qtui/channellistdlg.h index 84e5b7ad..bb25fb22 100644 --- a/src/qtui/channellistdlg.h +++ b/src/qtui/channellistdlg.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-2013 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,7 +15,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef CHANNELLISTDLG_H @@ -29,30 +29,42 @@ #include -class ChannelListDlg : public QDialog { - Q_OBJECT +class QSpacerItem; + +class ChannelListDlg : public QDialog +{ + Q_OBJECT public: - ChannelListDlg(QWidget *parent = 0); + ChannelListDlg(QWidget *parent = 0); - void setNetwork(NetworkId netId); + void setNetwork(NetworkId netId); protected slots: - void requestSearch(); - void receiveChannelList(const NetworkId &netId, const QStringList &channelFilters, const QList &channelList); - void reportFinishedList(); - void joinChannel(const QModelIndex &); - + void requestSearch(); + void receiveChannelList(const NetworkId &netId, const QStringList &channelFilters, const QList &channelList); + void reportFinishedList(); + void joinChannel(const QModelIndex &); + +private slots: + inline void toggleMode() { setAdvancedMode(!_advancedMode); } + void showError(const QString &error); + private: - void showFilterLine(bool show); - void enableQuery(bool enable); + void showFilterLine(bool show); + void showErrors(bool show); + void enableQuery(bool enable); + void setAdvancedMode(bool advanced); - Ui::ChannelListDlg ui; + Ui::ChannelListDlg ui; - bool _listFinished; - NetworkId _netId; - IrcListModel _ircListModel; - QSortFilterProxyModel _sortFilter; + bool _listFinished; + NetworkId _netId; + IrcListModel _ircListModel; + QSortFilterProxyModel _sortFilter; + QSpacerItem *_simpleModeSpacer; + bool _advancedMode; }; + #endif //CHANNELLIST_H