-
Notifications
You must be signed in to change notification settings - Fork 0
/
ui_import_csv.h
42 lines (34 loc) · 1007 Bytes
/
ui_import_csv.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef UI_IMPORT_CSV_H
#define UI_IMPORT_CSV_H
#include <QDialog>
#include <QList>
#include <QStringList>
#include <QCheckBox>
#include <QLabel>
#include <QComboBox>
#include <QtSql/QSqlDatabase>
namespace Ui {
class ui_import_csv;
}
class ui_import_csv : public QDialog
{
Q_OBJECT
public:
explicit ui_import_csv(QSqlDatabase db,QStringList listCampos,QString nombre_tabla,QStringList tipos,QList<bool> llaves,QWidget *parent = nullptr);
~ui_import_csv();
private slots:
void on_btnArchivo_clicked();
void on_btnImportar_clicked();
private:
Ui::ui_import_csv *ui;
QSqlDatabase db;
QString tabla;
QStringList tipos;
QStringList listCampos;
QList<bool> llaves;
QList<QCheckBox*> listChk;
QList<QLabel*> listCols;
QList<QComboBox*> list_cbCampos; // ---- cb = QComboBox
bool insertar_fila(QStringList lista_camposInser, QStringList valores, QList<int> indicesInsertar);
};
#endif // UI_IMPORT_CSV_H