Changeset 9dd61b1 in mmcs for mainwindow.H
- Timestamp:
- Jul 27, 2015, 4:01:23 PM (9 years ago)
- Branches:
- master, matrices
- Children:
- 8ad4484, 891b869
- Parents:
- 44d1e60
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mainwindow.H
r44d1e60 r9dd61b1 5 5 #include <formloadmatrix.H> 6 6 #include <formviewmatrix.H> 7 #include <formvariablesexogenas.h> 7 8 #include <sstream> 8 9 #include <stackwidget.H> 10 #include <QTabWidget> 11 #include <stackvariablesexogenas.h> 12 #include <QMap> 9 13 10 14 class MainWindow : public QMainWindow … … 13 17 14 18 QMenu menuFile; 19 QMenu OpMatrices; 15 20 QMenu menuTools; 16 21 QMenu menuViews; 17 22 QMenu menuHelp; 23 QMenu EndoExo; 24 18 25 QAction actionLoadMatrix; 19 26 QAction actionExportMatrix; 20 27 QAction actionQuit; 28 29 QAction actionCH; 30 QAction actionCV; 31 QAction actionVariableExogena; 32 QAction actionAn; 33 QAction actionLa; 34 QAction actionEncadenamiento; 35 36 21 37 QTableWidget * tableWidget; 38 QTabWidget * tabWidget; 39 QMap<QString,QStringList> diccCuentasExogenas; 40 41 stackVariablesExogenas *stackVE; 42 22 43 23 44 QString csvFilePath; … … 26 47 int matrixSize; 27 48 double matrix[100][100]; 49 /* Opcion de la cuenta exogena, 0 para decir que nos se selecciono ninguna, 1 que se seleccionaron algunas 50 y 2 para decir que se seleccionaron todas*/ 51 int opcionCuentaExogena=0; 52 int opcionVentanaExogena=0; 28 53 29 54 FormLoadMatrix * formLoadMatrix; 30 55 FormViewMatrix * formViewMatrix; 56 FormVariablesExogenas * formVariablesExogenas; 31 57 32 58 void initGUI(); … … 36 62 37 63 void createMenuBar(); 64 void matricesMenuBar(); 38 65 void populateTable(QTableWidget *); 66 void CalcularTotales(QTableWidget *, int inicio); 67 void loadMatrizExogena(); 68 void clonarTabla(QTableWidget *,QTableWidget *, int cantidad); 69 void noEditColZero(QTableWidget *); 70 void setAccountTitle(QTableWidget *); 71 void insertremoveRowCol(QTableWidget *, int rowcol, bool opcion); 72 73 double MatrizEndogenaEndogena[200][200]; 74 75 76 QList<QString> llenarLista(QList<QString>, QTableWidget *, int valor, int opcion); 77 void insertRowExogena(QList<QString>, QTableWidget *, int opcion); 78 void setEndogenaExogenaCell(QTableWidget *, int inicioExogena, int elementos,bool condicion); 79 void CalcularAn(QTableWidget *, QTableWidget *, int count, bool exogena); 80 81 void crearMatrizEndogena(QTableWidget *); 82 void crearMatrizIdentidad(QTableWidget *,double identidad[200][200]); 83 void restarIdentidadAn(QTableWidget *tw,double identidad[200][200],double resta[200][200]); 84 85 bool ComprobarCuentas(); 86 int ObtenerIndice(QString ); 87 88 QStringList ObtenerNombreCuenta(int contador); 89 QList<int> ObtenerLimitesCuenta(int contador,int opccion); 90 QStringList ObtenerComponentes(QTableWidget *); 91 void CrearTablaVacia(int contador,QTableWidget *); 39 92 40 93 protected: … … 47 100 void slotFormLoadMatrixClosed(); 48 101 102 void AgregarCuenta(); 103 void RestaurarCeldas(); 104 void FinalizarCuentas(); 105 void ModificarCuenta(); 106 void slotCoeficienteHorizontal(); 107 void slotCoeficienteVertical(); 108 109 void slotVariableExogena(); 110 void slotCloseExogena(); 111 void slotAgregarExogena(); 112 void slotFinalizarExogena(); 113 void slotDeshacerExogena(); 114 void slotAn(); 115 void slotLa(); 116 49 117 public: 50 118 MainWindow(); … … 52 120 std::vector<std::string> csv_read_row(std::istream &, char); 53 121 QString numberFormat(double &); 122 123 int contarElementosMap(); 124 int retornarIndiceCuenta(QString nombre_cuenta); 54 125 }; 55 126
Note: See TracChangeset
for help on using the changeset viewer.