initial commit of cewqo 2008 application
[cewqo08.git] / mainwindow.h
blob9fc4b1d1e55c9fca6c2219ff4a0634f5ed6fe141
1 /*
2 * Copyright (C) 2008 by Filip Brcic <brcha@gna.org>
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef __MAINWINDOW_H__
18 #define __MAINWINDOW_H__
20 #include <KXmlGuiWindow>
21 #include <QTableWidget>
23 class MainWindow : public KXmlGuiWindow
25 Q_OBJECT
27 public:
28 MainWindow(QWidget *parent=0);
29 void openFile(const QString &inputFileName);
31 private:
32 QTableWidget *tableWidget;
33 void setupActions();
34 QString fileName;
36 private slots:
37 void newFile();
38 void openFile();
39 void saveFile();
40 void saveFileAs();
41 void saveFileAs(const QString &outputFileName);
44 #endif /* __MAINWINDOW_H__ */