Mercurial > octave-nkf
view gui/src/MainWindow.h @ 14599:97cb9286919c gui
Cleaned up code.
* .hgsub: Removed IRC Widget.
* gui.pro: Removed dependency on IRC Widget and removed files.
* class FileEditorMdiSubWindow: Renamed to FileEditor. File editor windows are now independent windows, thus removed the extra close button.
* MainWindow: Removed MDI Area and replaced it with the terminal instead.
* BrowserWidget: Removed browser widget.
* SettingsDialog: Rearranged settings for the editor, removed tab for shortcuts.
* OctaveCallbackThread: Raised update intervals from 0,5s to 1s.
* OctaveLink: Replaced signals names for triggering updates on the symbol table.
* WorkspaceView: Adjusted connect statements to fit the new signal names.
author | Jacob Dawid <jacob.dawid@googlemail.com> |
---|---|
date | Mon, 07 May 2012 00:53:54 +0200 |
parents | fa52c6e84ae0 |
children | c8453a013000 |
line wrap: on
line source
/* OctaveGUI - A graphical user interface for Octave * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef MAINWINDOW_H #define MAINWINDOW_H // Qt includes #include <QtGui/QMainWindow> #include <QThread> #include <QTabWidget> #include <QMdiArea> #include <QStatusBar> #include <QToolBar> #include <QQueue> #include <QMdiSubWindow> #include <QCloseEvent> // QScintilla includes #include <Qsci/qsciapis.h> #include "lexer/lexeroctavegui.h" // QTerminal includes #include "QTerminal.h" // Own includes #include "ResourceManager.h" #include "OctaveLink.h" #include "WorkspaceView.h" #include "HistoryDockWidget.h" #include "FilesDockWidget.h" /** * \class MainWindow * * Represents the main window. */ class MainWindow:public QMainWindow { Q_OBJECT public: MainWindow (QWidget * parent = 0); ~MainWindow (); QTerminal *terminalView () { return m_terminalView; } HistoryDockWidget *historyDockWidget () { return m_historyDockWidget; } FilesDockWidget *filesDockWidget () { return m_filesDockWidget; } bool isCloseApplication () { return m_closeApplication; } signals: void settingsChanged (); public slots: void openExistingFile (QString fileName); void reportStatusMessage (QString statusMessage); void handleSaveWorkspaceRequest (); void handleLoadWorkspaceRequest (); void handleClearWorkspaceRequest (); void handleCommandDoubleClicked (QString command); void newFile (); void newEditorWindow (QString fileName); void openBugTrackerPage (); void openAgoraPage (); void openOctaveForgePage (); void processSettingsDialogRequest (); void showAboutOctave (); void updateTerminalFont (); protected: void closeEvent (QCloseEvent * closeEvent); void readSettings (); void writeSettings (); private: void construct (); void establishOctaveLink (); QTerminal *m_terminalView; // Dock widgets. WorkspaceView *m_workspaceView; HistoryDockWidget *m_historyDockWidget; FilesDockWidget *m_filesDockWidget; // Editor's lexer LexerOctaveGui *m_lexer; QsciAPIs *m_lexerAPI; // Toolbars. QStatusBar *m_statusBar; // Flag for closing whole application bool m_closeApplication; }; #endif // MAINWINDOW_H