Quassel IRC  Pre-Release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
MainWin Class Reference

The main window of Quassel's QtUi. More...

#include </tmp/quassel/src/qtui/mainwin.h>

Collaboration diagram for MainWin:

Public Slots

void showStatusBarMessage (const QString &message)
void hideCurrentBuffer ()
void nextBufferView ()
 Activate the next bufferview.
void previousBufferView ()
 Activate the previous bufferview.
void nextBuffer ()
void previousBuffer ()
void quit ()
 Quit application.

Signals

void connectToCore (const QVariantMap &connInfo)
void disconnectFromCore ()

Public Member Functions

 MainWin (QWidget *parent=0)
virtual ~MainWin ()
void init ()
void addBufferView (ClientBufferViewConfig *config)
BufferViewallBuffersView () const
BufferViewactiveBufferView () const
BufferWidgetbufferWidget () const
SystemTraysystemTray () const
bool event (QEvent *event)
void saveStateToSettings (UiSettings &)
void restoreStateFromSettings (UiSettings &)

Static Public Member Functions

static void flagRemoteCoreOnly (QObject *object)
static bool isRemoteCoreOnly (QObject *object)

Protected Slots

void connectedToCore ()
void setConnectedState ()
void disconnectedFromCore ()
void setDisconnectedState ()

Protected Member Functions

void closeEvent (QCloseEvent *event)
void moveEvent (QMoveEvent *event)
void resizeEvent (QResizeEvent *event)

Private Slots

void addBufferView (int bufferViewConfigId)
void awayLogDestroyed ()
void removeBufferView (int bufferViewConfigId)
void currentBufferChanged (BufferId)
void messagesInserted (const QModelIndex &parent, int start, int end)
void showAboutDlg ()
void showChannelList (NetworkId netId=NetworkId())
void showCoreConnectionDlg ()
void showCoreConfigWizard (const QVariantList &)
void showCoreInfoDlg ()
void showAwayLog ()
void showSettingsDlg ()
void showNotificationsDlg ()
void showIgnoreList (QString newRule=QString())
void showShortcutsDlg ()
void showPasswordChangeDlg ()
void showNewTransferDlg (const ClientTransfer *transfer)
void onFullScreenToggled ()
void handleCoreConnectionError (const QString &errorMsg)
void userAuthenticationRequired (CoreAccount *, bool *valid, const QString &errorMessage)
void handleNoSslInClient (bool *accepted)
void handleNoSslInCore (bool *accepted)
void on_actionConfigureNetworks_triggered ()
void on_actionConfigureViews_triggered ()
void on_actionLockLayout_toggled (bool lock)
void on_jumpHotBuffer_triggered ()
void on_actionDebugNetworkModel_triggered ()
void on_actionDebugBufferViewOverlay_triggered ()
void on_actionDebugMessageModel_triggered ()
void on_actionDebugHotList_triggered ()
void on_actionDebugLog_triggered ()
void bindJumpKey ()
void onJumpKey ()
void clientNetworkCreated (NetworkId)
void clientNetworkRemoved (NetworkId)
void clientNetworkUpdated ()
void connectOrDisconnectFromNet ()
void saveMenuBarStatus (bool enabled)
void saveStatusBarStatus (bool enabled)
void saveMainToolBarStatus (bool enabled)
void loadLayout ()
void saveLayout ()
void bufferViewToggled (bool enabled)
void bufferViewVisibilityChanged (bool visible)
void changeActiveBufferView (bool backwards)
void changeActiveBufferView (int bufferViewId)

Private Member Functions

void setupActions ()
void setupBufferWidget ()
void setupMenus ()
void setupNickWidget ()
void setupChatMonitor ()
void setupInputWidget ()
void setupTopicWidget ()
void setupViewMenuTail ()
void setupStatusBar ()
void setupSystray ()
void setupTitleSetter ()
void setupToolBars ()
void setupHotList ()
void updateIcon ()
void enableMenus ()

Private Attributes

MsgProcessorStatusWidget_msgProcessorStatusWidget
CoreConnectionStatusWidget_coreConnectionStatusWidget
SystemTray_systemTray
TitleSetter _titleSetter
QList< BufferViewDock * > _bufferViews
BufferWidget_bufferWidget
NickListWidget_nickListWidget
InputWidget_inputWidget
ChatMonitorView_chatMonitorView
TopicWidget_topicWidget
QAction * _fullScreenAction
QMenu * _fileMenu
QMenu * _networksMenu
QMenu * _viewMenu
QMenu * _bufferViewsMenu
QMenu * _settingsMenu
QMenu * _helpMenu
QMenu * _helpDebugMenu
QMenu * _toolbarMenu
QToolBar * _mainToolBar
QToolBar * _chatViewToolBar
QToolBar * _nickToolBar
QWidget * _awayLog
bool _layoutLoaded
QSize _normalSize
 Size of the non-maximized window.
QPoint _normalPos
 Position of the non-maximized window.
BufferHotListFilter_bufferHotList
QHash< int, BufferId_jumpKeyMap
int _activeBufferViewIndex

Friends

class QtUi

Detailed Description

The main window of Quassel's QtUi.

Definition at line 59 of file mainwin.h.

Constructor & Destructor Documentation

MainWin ( QWidget *  parent = 0)

Definition at line 154 of file mainwin.cpp.

References UiSettings::value().

~MainWin ( )
virtual

Definition at line 277 of file mainwin.cpp.

Member Function Documentation

BufferView * allBuffersView ( ) const

Definition at line 698 of file mainwin.cpp.

References _bufferViews.

BufferWidget* bufferWidget ( ) const
inline

Definition at line 77 of file mainwin.h.

References _bufferWidget.

Referenced by clientNetworkUpdated(), event(), and init().

static void flagRemoteCoreOnly ( QObject *  object)
inlinestatic

Definition at line 82 of file mainwin.h.

Referenced by setupMenus().

static bool isRemoteCoreOnly ( QObject *  object)
inlinestatic

Definition at line 83 of file mainwin.h.

Referenced by setConnectedState().

void showStatusBarMessage ( const QString &  message)
slot

Definition at line 1718 of file mainwin.cpp.

Referenced by setConnectedState().

void hideCurrentBuffer ( )
slot

Definition at line 816 of file mainwin.cpp.

References activeBufferView(), and BufferView::hideCurrentBuffer().

Referenced by setupActions().

void nextBufferView ( )
slot

Activate the next bufferview.

Definition at line 788 of file mainwin.cpp.

References changeActiveBufferView().

Referenced by addBufferView(), bufferViewVisibilityChanged(), changeActiveBufferView(), removeBufferView(), and setupActions().

void previousBufferView ( )
slot

Activate the previous bufferview.

Definition at line 794 of file mainwin.cpp.

References changeActiveBufferView().

Referenced by setupActions().

void nextBuffer ( )
slot

Definition at line 800 of file mainwin.cpp.

References activeBufferView(), and BufferView::nextBuffer().

Referenced by setupActions().

void previousBuffer ( )
slot

Definition at line 808 of file mainwin.cpp.

References activeBufferView(), and BufferView::previousBuffer().

Referenced by setupActions().

void quit ( )
slot

Quit application.

Definition at line 282 of file mainwin.cpp.

References saveLayout(), and saveStateToSettings().

Referenced by closeEvent(), QtUiApplication::quit(), and setupActions().

void closeEvent ( QCloseEvent *  event)
protected
void moveEvent ( QMoveEvent *  event)
protected

Definition at line 1451 of file mainwin.cpp.

References _normalPos.

void resizeEvent ( QResizeEvent *  event)
protected

Definition at line 1460 of file mainwin.cpp.

References _normalSize.

void addBufferView ( int  bufferViewConfigId)
privateslot

Definition at line 602 of file mainwin.cpp.

References addBufferView(), and Client::bufferViewManager().

void awayLogDestroyed ( )
privateslot

Definition at line 1347 of file mainwin.cpp.

References _awayLog.

Referenced by showAwayLog().

void currentBufferChanged ( BufferId  buffer)
privateslot

Definition at line 1541 of file mainwin.cpp.

References Client::instance(), SignedId::isValid(), and Client::markBufferAsRead().

Referenced by init(), and setupToolBars().

void showAboutDlg ( )
privateslot

Definition at line 1386 of file mainwin.cpp.

Referenced by setupActions().

void showChannelList ( NetworkId  netId = NetworkId())
privateslot

Definition at line 1302 of file mainwin.cpp.

References SignedId::isValid(), and ChannelListDlg::setNetwork().

Referenced by init().

void showCoreConnectionDlg ( )
privateslot
void showCoreConfigWizard ( const QVariantList &  backends)
privateslot

Definition at line 1294 of file mainwin.cpp.

References Client::coreConnection().

Referenced by init().

void showCoreInfoDlg ( )
privateslot

Definition at line 1328 of file mainwin.cpp.

Referenced by setupActions().

void showAwayLog ( )
privateslot

Definition at line 1334 of file mainwin.cpp.

References _awayLog, awayLogDestroyed(), and Client::messageModel().

Referenced by setupActions().

void showSettingsDlg ( )
privateslot

Definition at line 1353 of file mainwin.cpp.

References SettingsDlg::registerSettingsPage(), and Quassel::runMode().

Referenced by setupActions().

void showNotificationsDlg ( )
privateslot

Definition at line 824 of file mainwin.cpp.

Referenced by setupMenus().

void showIgnoreList ( QString  newRule = QString())
privateslot

Definition at line 1318 of file mainwin.cpp.

References SettingsPageDlg::currentPage().

Referenced by init().

void showShortcutsDlg ( )
privateslot

Definition at line 1392 of file mainwin.cpp.

References GraphicalUi::actionCollections().

Referenced by setupActions(), and setupMenus().

void showPasswordChangeDlg ( )
privateslot

Definition at line 740 of file mainwin.cpp.

References Client::coreFeatures(), and Quassel::PasswordChange.

Referenced by setupActions().

void showNewTransferDlg ( const ClientTransfer transfer)
privateslot

Definition at line 1406 of file mainwin.cpp.

Referenced by connectedToCore().

void onFullScreenToggled ( )
privateslot

Definition at line 1413 of file mainwin.cpp.

References _fullScreenAction.

Referenced by setupActions().

void handleCoreConnectionError ( const QString &  errorMsg)
privateslot

Definition at line 1277 of file mainwin.cpp.

Referenced by init().

void userAuthenticationRequired ( CoreAccount account,
bool *  valid,
const QString &  errorMessage 
)
privateslot

Definition at line 1205 of file mainwin.cpp.

Referenced by init().

void handleNoSslInClient ( bool *  accepted)
privateslot

Definition at line 1213 of file mainwin.cpp.

Referenced by init().

void handleNoSslInCore ( bool *  accepted)
privateslot

Definition at line 1223 of file mainwin.cpp.

Referenced by init().

void on_actionConfigureNetworks_triggered ( )
privateslot

Definition at line 831 of file mainwin.cpp.

Referenced by setupActions().

void on_actionConfigureViews_triggered ( )
privateslot

Definition at line 838 of file mainwin.cpp.

Referenced by setupActions().

void on_actionLockLayout_toggled ( bool  lock)
privateslot
void on_jumpHotBuffer_triggered ( )
privateslot
void on_actionDebugNetworkModel_triggered ( )
privateslot

Definition at line 1664 of file mainwin.cpp.

References Client::networkModel().

Referenced by setupActions().

void on_actionDebugBufferViewOverlay_triggered ( )
privateslot

Definition at line 1690 of file mainwin.cpp.

Referenced by setupActions().

void on_actionDebugMessageModel_triggered ( )
privateslot

Definition at line 1698 of file mainwin.cpp.

References Client::messageModel().

Referenced by setupActions().

void on_actionDebugHotList_triggered ( )
privateslot

Definition at line 1678 of file mainwin.cpp.

References _bufferHotList.

Referenced by setupActions().

void on_actionDebugLog_triggered ( )
privateslot

Definition at line 1711 of file mainwin.cpp.

Referenced by setupActions().

void bindJumpKey ( )
privateslot
void onJumpKey ( )
privateslot
void clientNetworkCreated ( NetworkId  id)
privateslot
void clientNetworkRemoved ( NetworkId  id)
privateslot

Definition at line 1603 of file mainwin.cpp.

References toInt().

Referenced by init().

void connectOrDisconnectFromNet ( )
privateslot
void saveMenuBarStatus ( bool  enabled)
privateslot

Definition at line 989 of file mainwin.cpp.

References UiSettings::setValue().

Referenced by setupMenus().

void saveStatusBarStatus ( bool  enabled)
privateslot

Definition at line 996 of file mainwin.cpp.

References UiSettings::setValue().

Referenced by setupStatusBar().

void saveMainToolBarStatus ( bool  enabled)
privateslot

Definition at line 1048 of file mainwin.cpp.

References UiSettings::setValue().

Referenced by setupToolBars().

void bufferViewToggled ( bool  enabled)
privateslot
void bufferViewVisibilityChanged ( bool  visible)
privateslot

Definition at line 688 of file mainwin.cpp.

References activeBufferView(), BufferViewDock::isActive(), and nextBufferView().

Referenced by addBufferView().

void changeActiveBufferView ( bool  backwards)
privateslot
void changeActiveBufferView ( int  bufferViewId)
privateslot
void connectToCore ( const QVariantMap &  connInfo)
signal
void disconnectFromCore ( )
signal

Referenced by setupActions().

void setupBufferWidget ( )
private
void setupNickWidget ( )
private
void setupChatMonitor ( )
private

Definition at line 883 of file mainwin.cpp.

References _chatMonitorView, _inputWidget, _viewMenu, and Client::messageModel().

Referenced by init().

void setupTopicWidget ( )
private
void setupViewMenuTail ( )
private

Definition at line 943 of file mainwin.cpp.

References _fullScreenAction, and _viewMenu.

Referenced by init().

void setupSystray ( )
private

Definition at line 1003 of file mainwin.cpp.

References _systemTray, and SystemTray::init().

Referenced by init().

void setupTitleSetter ( )
private
void setupHotList ( )
private

Definition at line 981 of file mainwin.cpp.

References _bufferHotList, Client::bufferModel(), and FlatProxyModel::setSourceModel().

Referenced by init().

void updateIcon ( )
private

Definition at line 344 of file mainwin.cpp.

References Client::isConnected().

Referenced by setConnectedState(), and setDisconnectedState().

void enableMenus ( )
private

Friends And Related Function Documentation

friend class QtUi
friend

Definition at line 223 of file mainwin.h.

Member Data Documentation

MsgProcessorStatusWidget* _msgProcessorStatusWidget
private

Definition at line 177 of file mainwin.h.

Referenced by setConnectedState(), setDisconnectedState(), and setupStatusBar().

CoreConnectionStatusWidget* _coreConnectionStatusWidget
private

Definition at line 178 of file mainwin.h.

Referenced by setConnectedState(), and setupStatusBar().

SystemTray* _systemTray
private

Definition at line 179 of file mainwin.h.

Referenced by restoreStateFromSettings(), setupSystray(), and systemTray().

TitleSetter _titleSetter
private

Definition at line 181 of file mainwin.h.

Referenced by setupTitleSetter().

BufferWidget* _bufferWidget
private
NickListWidget* _nickListWidget
private

Definition at line 202 of file mainwin.h.

Referenced by setupNickWidget(), and setupToolBars().

InputWidget* _inputWidget
private

Definition at line 203 of file mainwin.h.

Referenced by addBufferView(), setupChatMonitor(), and setupInputWidget().

ChatMonitorView* _chatMonitorView
private

Definition at line 204 of file mainwin.h.

Referenced by setupChatMonitor().

TopicWidget* _topicWidget
private

Definition at line 205 of file mainwin.h.

Referenced by setupInputWidget(), and setupTopicWidget().

QAction* _fullScreenAction
private

Definition at line 207 of file mainwin.h.

Referenced by onFullScreenToggled(), setupActions(), and setupViewMenuTail().

QMenu* _fileMenu
private

Definition at line 208 of file mainwin.h.

Referenced by setConnectedState(), and setupMenus().

QMenu * _networksMenu
private

Definition at line 208 of file mainwin.h.

Referenced by clientNetworkCreated(), and setupMenus().

QMenu * _viewMenu
private
QMenu * _bufferViewsMenu
private

Definition at line 208 of file mainwin.h.

Referenced by addBufferView(), disconnectedFromCore(), removeBufferView(), and setupMenus().

QMenu * _settingsMenu
private

Definition at line 208 of file mainwin.h.

Referenced by setupMenus().

QMenu * _helpMenu
private

Definition at line 208 of file mainwin.h.

Referenced by setupMenus().

QMenu * _helpDebugMenu
private

Definition at line 208 of file mainwin.h.

Referenced by setupMenus().

QMenu* _toolbarMenu
private

Definition at line 209 of file mainwin.h.

Referenced by setupMenus(), and setupToolBars().

QToolBar* _mainToolBar
private

Definition at line 210 of file mainwin.h.

Referenced by setupToolBars().

QToolBar * _chatViewToolBar
private

Definition at line 210 of file mainwin.h.

QToolBar * _nickToolBar
private

Definition at line 210 of file mainwin.h.

QWidget* _awayLog
private

Definition at line 212 of file mainwin.h.

Referenced by awayLogDestroyed(), and showAwayLog().

bool _layoutLoaded
private

Definition at line 214 of file mainwin.h.

Referenced by addBufferView(), disconnectedFromCore(), and loadLayout().

QSize _normalSize
private

Size of the non-maximized window.

Definition at line 216 of file mainwin.h.

Referenced by resizeEvent(), restoreStateFromSettings(), and saveStateToSettings().

QPoint _normalPos
private

Position of the non-maximized window.

Definition at line 217 of file mainwin.h.

Referenced by moveEvent(), restoreStateFromSettings(), and saveStateToSettings().

BufferHotListFilter* _bufferHotList
private
QHash<int, BufferId> _jumpKeyMap
private

Definition at line 220 of file mainwin.h.

Referenced by bindJumpKey(), and onJumpKey().

int _activeBufferViewIndex
private

Definition at line 221 of file mainwin.h.

Referenced by activeBufferView(), changeActiveBufferView(), and removeBufferView().


The documentation for this class was generated from the following files: