"Fossies" - the Fresh Open Source Software Archive

Member "mathmod-branches-r508-trunk/ui_modules/editor.h" (8 Mar 2021, 2432 Bytes) of package /linux/misc/mathmod-11.0-source.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "editor.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 10.1_vs_11.0.

    1 /***************************************************************************
    2  *   Copyright (C) 2021 by Abderrahman Taha                                *
    3  *                                                                         *
    4  *                                                                         *
    5  *   This program is free software; you can redistribute it and/or modify  *
    6  *   it under the terms of the GNU General Public License as published by  *
    7  *   the Free Software Foundation; either version 2 of the License, or     *
    8  *   (at your option) any later version.                                   *
    9  *                                                                         *
   10  *   This program is distributed in the hope that it will be useful,       *
   11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
   12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
   13  *   GNU General Public License for more details.                          *
   14  *                                                                         *
   15  *   You should have received a copy of the GNU General Public License     *
   16  *   along with this program; if not, write to the                         *
   17  *   Free Software Foundation, Inc.,                                       *
   18  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
   19  ***************************************************************************/
   20 #ifndef EDITOR_H
   21 #define EDITOR_H
   22 
   23 #include "about.h"
   24 #include "ui_editor.h"
   25 #include <QMainWindow>
   26 
   27 namespace Ui
   28 {
   29 class editor;
   30 }
   31 
   32 class editor : public QMainWindow
   33 {
   34     Q_OBJECT
   35 
   36 public:
   37     explicit editor(QWidget *parent = nullptr);
   38     ~editor();
   39     void about();
   40     void newFile();
   41     void openFile(const QString &);
   42     void setupEditor();
   43     void save();
   44     void saveAs();
   45     About ab;
   46 private slots:
   47     void on_actionOpen_triggered();
   48 
   49     void on_actionNew_triggered();
   50 
   51     void on_actionAbout_triggered();
   52 
   53     void on_actionSave_triggered();
   54 
   55     void on_actionSave_As_triggered();
   56 
   57     void on_actionExit_triggered();
   58 
   59     void on_actionUndo_triggered();
   60 
   61     void on_actionRedo_triggered();
   62 
   63     void on_actionCut_triggered();
   64 
   65     void on_actionCopy_triggered();
   66 
   67     void on_actionAbout_MathMod_triggered();
   68 
   69     void on_actionPaste_triggered();
   70 
   71 public:
   72     Ui::editor *ui;
   73     QString filename;
   74     QString workfile;
   75 };
   76 
   77 #endif // EDITOR_H