File indexing completed on 2024-04-21 04:33:48

0001 /*******************************************************************************
0002  * Copyright (C) 2020 by Steve Allewell                                        *
0003  * steve.allewell@gmail.com                                                    *
0004  *                                                                             *
0005  * This program is free software; you can redistribute it and/or modify        *
0006  * it under the terms of the GNU General Public License as published by        *
0007  * the Free Software Foundation; either version 2 of the License, or           *
0008  * (at your option) any later version.                                         *
0009  ******************************************************************************/
0010 
0011 
0012 #ifndef MainWindow_H
0013 #define MainWindow_H
0014 
0015 
0016 #include <KXmlGuiWindow>
0017 
0018 
0019 class QTabWidget;
0020 class QUrl;
0021 
0022 
0023 class MainWindow : public KXmlGuiWindow
0024 {
0025     Q_OBJECT
0026 
0027 public:
0028     MainWindow();
0029     ~MainWindow() = default;
0030 
0031 public slots:
0032     void fileOpen(const QUrl &url);
0033 
0034 protected slots:
0035     void fileOpen();
0036     void filePrint();
0037     void fileExport();
0038     void quit();
0039 
0040 private slots:
0041     void currentChanged(int);
0042     void closeRequested(int);
0043 
0044 private:
0045     QTabWidget  *m_tabWidget;
0046 };
0047 
0048 
0049 #endif
0050