Mercurial > hg > octave-lyh
comparison gui/src/MainWindow.cpp @ 14269:4a6867289e24 gui
Removed the old IRC Client code and replaced it by qirc.
* irc/*: Completely removed as it is not needed anymore.
* MainWindow.*: Exchanged IRCWidget for QIRCWidget.
* octave-gui.pro: Added library -lqirc and removed old include path irc/*.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Sat, 28 Jan 2012 00:11:34 +0100 |
parents | 2254d7c14f41 |
children | 8dfa333f1130 |
comparison
equal
deleted
inserted
replaced
14265:2254d7c14f41 | 14269:4a6867289e24 |
---|---|
286 m_statusBar = new QStatusBar (this); | 286 m_statusBar = new QStatusBar (this); |
287 | 287 |
288 // Setup essential MDI Windows. | 288 // Setup essential MDI Windows. |
289 m_terminalView = new QTerminal(this); | 289 m_terminalView = new QTerminal(this); |
290 m_documentationWidget = new BrowserWidget (this); | 290 m_documentationWidget = new BrowserWidget (this); |
291 m_ircWidget = new IRCWidget (this); | 291 m_ircWidget = new QIRCWidget (this); |
292 | 292 |
293 // Octave Terminal subwindow. | 293 // Octave Terminal subwindow. |
294 m_terminalViewSubWindow = new NonClosableMdiSubWindow (this); | 294 m_terminalViewSubWindow = new NonClosableMdiSubWindow (this); |
295 m_terminalViewSubWindow->setWidget (m_terminalView); | 295 m_terminalViewSubWindow->setWidget (m_terminalView); |
296 m_centralMdiArea->addSubWindow (m_terminalViewSubWindow, Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint); | 296 m_centralMdiArea->addSubWindow (m_terminalViewSubWindow, Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint); |
327 ->setWindowIcon (ResourceManager::instance ()->icon (ResourceManager::Chat)); | 327 ->setWindowIcon (ResourceManager::instance ()->icon (ResourceManager::Chat)); |
328 m_ircWidgetSubWindow->setStatusTip(tr ("Instantly chat with other Octave users for help.")); | 328 m_ircWidgetSubWindow->setStatusTip(tr ("Instantly chat with other Octave users for help.")); |
329 m_ircWidgetSubWindow->setFocusProxy (m_ircWidget); | 329 m_ircWidgetSubWindow->setFocusProxy (m_ircWidget); |
330 m_ircWidgetSubWindow->setMinimumSize (300, 300); | 330 m_ircWidgetSubWindow->setMinimumSize (300, 300); |
331 connect (m_ircWidget, SIGNAL (unreadMessages (bool)), this, SLOT (handleUnreadMessages (bool))); | 331 connect (m_ircWidget, SIGNAL (unreadMessages (bool)), this, SLOT (handleUnreadMessages (bool))); |
332 | |
333 m_ircWidget->connectToServer("irc.freenode.net", "Octave-GUI-User", "#octave"); | |
332 | 334 |
333 m_lexer = NULL; // initialise the empty lexer for the edtiors | 335 m_lexer = NULL; // initialise the empty lexer for the edtiors |
334 | 336 |
335 QMenu *controlMenu = menuBar ()->addMenu (tr ("Octave")); | 337 QMenu *controlMenu = menuBar ()->addMenu (tr ("Octave")); |
336 QAction *settingsAction = controlMenu->addAction (tr ("Settings")); | 338 QAction *settingsAction = controlMenu->addAction (tr ("Settings")); |