/***************************************************************************
- * Copyright (C) 2005-08 by the Quassel Project *
+ * Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#include <QSortFilterProxyModel>
+class QSpacerItem;
+
class ChannelListDlg : public QDialog {
Q_OBJECT
void receiveChannelList(const NetworkId &netId, const QStringList &channelFilters, const QList<IrcListHelper::ChannelDescription> &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 showErrors(bool show);
void enableQuery(bool enable);
+ void setAdvancedMode(bool advanced);
Ui::ChannelListDlg ui;
NetworkId _netId;
IrcListModel _ircListModel;
QSortFilterProxyModel _sortFilter;
+ QSpacerItem *_simpleModeSpacer;
+ bool _advancedMode;
};
#endif //CHANNELLIST_H