matrices
Last change
on this file since 44d1e60 was
44d1e60,
checked in by Jose Ruiz <joseruiz@…>, 9 years ago
|
commit inicial
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifndef MAINWINDOW_H |
---|
2 | #define MAINWINDOW_H |
---|
3 | |
---|
4 | #include <QtGui> |
---|
5 | #include <formloadmatrix.H> |
---|
6 | #include <formviewmatrix.H> |
---|
7 | #include <sstream> |
---|
8 | #include <stackwidget.H> |
---|
9 | |
---|
10 | class MainWindow : public QMainWindow |
---|
11 | { |
---|
12 | Q_OBJECT |
---|
13 | |
---|
14 | QMenu menuFile; |
---|
15 | QMenu menuTools; |
---|
16 | QMenu menuViews; |
---|
17 | QMenu menuHelp; |
---|
18 | QAction actionLoadMatrix; |
---|
19 | QAction actionExportMatrix; |
---|
20 | QAction actionQuit; |
---|
21 | QTableWidget * tableWidget; |
---|
22 | |
---|
23 | QString csvFilePath; |
---|
24 | char csvSeparator; |
---|
25 | int numAccounts; |
---|
26 | int matrixSize; |
---|
27 | double matrix[100][100]; |
---|
28 | |
---|
29 | FormLoadMatrix * formLoadMatrix; |
---|
30 | FormViewMatrix * formViewMatrix; |
---|
31 | |
---|
32 | void initGUI(); |
---|
33 | |
---|
34 | void createCentralWidget(); |
---|
35 | void createMatrixCentralWidget(); |
---|
36 | |
---|
37 | void createMenuBar(); |
---|
38 | void populateTable(QTableWidget *); |
---|
39 | |
---|
40 | protected: |
---|
41 | void closeEvent(QCloseEvent *); |
---|
42 | |
---|
43 | private slots: |
---|
44 | void slotLoadMatrix(); |
---|
45 | void slotExportMatrix(); |
---|
46 | void slotFormLoadMatrixAccepted(const QString &, int, char); |
---|
47 | void slotFormLoadMatrixClosed(); |
---|
48 | |
---|
49 | public: |
---|
50 | MainWindow(); |
---|
51 | std::vector<std::string> csv_read_row(std::string , char); |
---|
52 | std::vector<std::string> csv_read_row(std::istream &, char); |
---|
53 | QString numberFormat(double &); |
---|
54 | }; |
---|
55 | |
---|
56 | #endif // MAINWINDOW_H |
---|
Note: See
TracBrowser
for help on using the repository browser.