Organize source files into src subdirectories (gui/forms, gui/widgets, models, utils); replace magic numbers with ElementType enumeration in formproduct.cpp and formbudget.cpp (TODO completed); move mainwindow and related files to src/gui/

This commit is contained in:
Javi
2026-05-28 00:42:46 +02:00
parent b3b0116699
commit 3437103c28
72 changed files with 5893 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
QMAKE_CXX.QT_COMPILER_STDCXX = 201703L
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 13
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 3
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 0
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_GCC_MAJOR_VERSION \
QMAKE_GCC_MINOR_VERSION \
QMAKE_GCC_PATCH_VERSION
QMAKE_CXX.INCDIRS = \
/usr/include/c++/13 \
/usr/include/x86_64-linux-gnu/c++/13 \
/usr/include/c++/13/backward \
/usr/lib/gcc/x86_64-linux-gnu/13/include \
/usr/local/include \
/usr/include/x86_64-linux-gnu \
/usr/include
QMAKE_CXX.LIBDIRS = \
/usr/lib/gcc/x86_64-linux-gnu/13 \
/usr/lib/x86_64-linux-gnu \
/usr/lib \
/lib/x86_64-linux-gnu \
/lib
+1199
View File
File diff suppressed because it is too large Load Diff
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+178
View File
@@ -0,0 +1,178 @@
#include "formelementlist.h"
#include "qpainter.h"
#include "ui_formelementlist.h"
#include "formproduct.h"
#include "mainwindow.h"
#include "mapplication.h"
#include "msqlquerymodel.h"
#include "utils/filtertableheader.h"
#include "gui/formbaselist.h"
#include <QDrag>
formElementList::formElementList(QWidget *parent) :
QWidget(parent),
ui(new Ui::formElementList)
{
ui->setupUi(this);
mModel = new MSqlQueryModel(this);
ui->tableView->setModel(mModel);
updateList();
ui->tableView->setColumnWidth(0, 150);
ui->tableView->setColumnWidth(1, 80);
ui->tableView->setColumnWidth(2, 120);
ui->tableView->setColumnWidth(3, 350);
ui->tableView->setColumnWidth(4, 80);
ui->tableView->setColumnWidth(5, 80);
ui->tableView->setColumnWidth(6, 40);
// Set up filter row
auto *m_tableHeader = new FilterTableHeader(ui->tableView);
ui->tableView->setHorizontalHeader(m_tableHeader);
m_tableHeader->setFilter(0, "");
m_tableHeader->setFocusColumn(0);
ui->tableView->horizontalHeader()->model()->setHeaderData(0, Qt::Horizontal, tr("Tipo"));
ui->tableView->horizontalHeader()->model()->setHeaderData(1, Qt::Horizontal, tr("Clase"));
ui->tableView->horizontalHeader()->model()->setHeaderData(2, Qt::Horizontal, tr("Código"));
ui->tableView->horizontalHeader()->model()->setHeaderData(3, Qt::Horizontal, tr("Resumen"));
ui->tableView->horizontalHeader()->model()->setHeaderData(4, Qt::Horizontal, tr("Coste"));
ui->tableView->horizontalHeader()->model()->setHeaderData(5, Qt::Horizontal, tr("Venta"));
ui->tableView->horizontalHeader()->model()->setHeaderData(6, Qt::Horizontal, tr("Activo"));
ui->tableView->setDragEnabled(true); // Habilita el drag
connect(ui->tableView, &QTableView::pressed, this, &formElementList::startDrag);
}
formElementList::~formElementList()
{
delete ui;
}
void formElementList::updateList()
{
dApp->Enterprise().open();
mModel->setQuery("SELECT TYPE1, TYPE2, CODE, TITLE, PURCHASE_PRICE, SALE_PRICE, STATE FROM ELEMENT" /*" ORDER BY CODE ASC"*/,
dApp->Enterprise());
dApp->Enterprise().close();
}
void formElementList::on_buttonNew_released()
{
formProduct *form = dApp->mainWindow()->createFormProduct(); // sustistuir por Mainwindow::createFormProduct();
form->show();
}
void formElementList::on_buttonEdit_released()
{
openDocument(ui->tableView->currentIndex());
}
void formElementList::on_buttonClone_released()
{
}
void formElementList::on_buttonDelete_released()
{
QModelIndex index = ui->tableView->currentIndex();
QAbstractItemModel *model = const_cast<QAbstractItemModel*>(index.model()); // Obtén el modelo asociado
if (index.column() != 0)
{
//index = index.parent().child(index.row(), 0);
index = model->index(index.row(), 0, index.parent());
}
QString ID = index.data().toString();
QModelIndex parentIndex = index.parent();
QModelIndex childIndex = model->index(index.row(), 2, parentIndex); // Obtén el índice del hijo
int type = childIndex.data().toInt(); // Accede al dato
//int type = index.parent().child(index.row(), 2).data().toInt();
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
/*
if (index.parent().child(index.row(), 2).data().toInt() == 0)
{
// TODO: borrar la composición
if(!qry.exec(QString("DELETE FROM ELEMENTCOMPOSITION WHERE CODE = '%1';").arg(ID)))
{
qDebug() << "Error ejecutando el query: " << qry.lastError().text() << "\n";
goto error;
}
}
*/
if(!qry.exec(QString("DELETE FROM ELEMENT WHERE CODE = '%1';").arg(ID)))
{
qDebug() << "Error ejecutando el query: " << qry.lastError().text() << "\n";
}
updateList();
error:
dApp->Enterprise().close();
}
void formElementList::on_buttonUpdate_released()
{
updateList();
}
void formElementList::on_tableView_doubleClicked(const QModelIndex &index)
{
openDocument(index);
}
void formElementList::openDocument(QModelIndex index)
{
QAbstractItemModel *model = ui->tableView->model();
//QModelIndex item = index;
formProduct *form = dApp->mainWindow()->createFormProduct();
//if (index.column() != 2)
// item = index.parent().child(index.row(), 2);
form->openDocument(model->index(index.row(), 2).data().toString());// item.data().toString());
form->show();
}
void formElementList::startDrag(const QModelIndex &index) {
if (!index.isValid())
return;
// Crear datos MIME
QMimeData *mimeData = new QMimeData();
QString data = mModel->data(index).toString();
mimeData->setText(data);
// Iniciar arrastre
QDrag *drag = new QDrag(ui->tableView);
drag->setMimeData(mimeData);
// Crear un ícono para el cursor
QPixmap pixmap(100, 30);
pixmap.fill(Qt::transparent); // Fondo transparente
QPainter painter(&pixmap);
painter.setBrush(Qt::yellow);
painter.drawRoundedRect(0, 0, pixmap.width(), pixmap.height(), 5, 5);
painter.setPen(Qt::black);
painter.drawText(pixmap.rect(), Qt::AlignCenter, data);
painter.end();
drag->setPixmap(pixmap); // Asignar el ícono al cursor
//drag->setHotSpot(QPoint(pixmap.width() / 2, pixmap.height() / 2)); // Centro del ícono como punto caliente
drag->exec(Qt::MoveAction);
}
+178
View File
@@ -0,0 +1,178 @@
#include "formelementlist.h"
#include "qpainter.h"
#include "ui_formelementlist.h"
#include "formproduct.h"
#include "mainwindow.h"
#include "mapplication.h"
#include "msqlquerymodel.h"
#include "utils/filtertableheader.h"
#include "gui/formbaselist.h"
#include <QDrag>
formElementList::formElementList(QWidget *parent) :
QWidget(parent),
ui(new Ui::formElementList)
{
ui->setupUi(this);
mModel = new MSqlQueryModel(this);
ui->tableView->setModel(mModel);
updateList();
ui->tableView->setColumnWidth(0, 150);
ui->tableView->setColumnWidth(1, 80);
ui->tableView->setColumnWidth(2, 120);
ui->tableView->setColumnWidth(3, 350);
ui->tableView->setColumnWidth(4, 80);
ui->tableView->setColumnWidth(5, 80);
ui->tableView->setColumnWidth(6, 40);
// Set up filter row
auto *m_tableHeader = new FilterTableHeader(ui->tableView);
ui->tableView->setHorizontalHeader(m_tableHeader);
m_tableHeader->setFilter(0, "");
m_tableHeader->setFocusColumn(0);
ui->tableView->horizontalHeader()->model()->setHeaderData(0, Qt::Horizontal, tr("Tipo"));
ui->tableView->horizontalHeader()->model()->setHeaderData(1, Qt::Horizontal, tr("Clase"));
ui->tableView->horizontalHeader()->model()->setHeaderData(2, Qt::Horizontal, tr("Código"));
ui->tableView->horizontalHeader()->model()->setHeaderData(3, Qt::Horizontal, tr("Resumen"));
ui->tableView->horizontalHeader()->model()->setHeaderData(4, Qt::Horizontal, tr("Coste"));
ui->tableView->horizontalHeader()->model()->setHeaderData(5, Qt::Horizontal, tr("Venta"));
ui->tableView->horizontalHeader()->model()->setHeaderData(6, Qt::Horizontal, tr("Activo"));
ui->tableView->setDragEnabled(true); // Habilita el drag
connect(ui->tableView, &QTableView::pressed, this, &formElementList::startDrag);
}
formElementList::~formElementList()
{
delete ui;
}
void formElementList::updateList()
{
dApp->Enterprise().open();
mModel->setQuery("SELECT TYPE1, TYPE2, CODE, TITLE, PURCHASE_PRICE, SALE_PRICE, STATE FROM ELEMENT" /*" ORDER BY CODE ASC"*/,
dApp->Enterprise());
dApp->Enterprise().close();
}
void formElementList::on_buttonNew_released()
{
formProduct *form = dApp->mainWindow()->createFormProduct(); // sustistuir por Mainwindow::createFormProduct();
form->show();
}
void formElementList::on_buttonEdit_released()
{
openDocument(ui->tableView->currentIndex());
}
void formElementList::on_buttonClone_released()
{
}
void formElementList::on_buttonDelete_released()
{
QModelIndex index = ui->tableView->currentIndex();
QAbstractItemModel *model = const_cast<QAbstractItemModel*>(index.model()); // Obtén el modelo asociado
if (index.column() != 0)
{
//index = index.parent().child(index.row(), 0);
index = model->index(index.row(), 0, index.parent());
}
QString ID = index.data().toString();
QModelIndex parentIndex = index.parent();
QModelIndex childIndex = model->index(index.row(), 2, parentIndex); // Obtén el índice del hijo
int type = childIndex.data().toInt(); // Accede al dato
//int type = index.parent().child(index.row(), 2).data().toInt();
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
/*
if (index.parent().child(index.row(), 2).data().toInt() == 0)
{
// TODO: borrar la composición
if(!qry.exec(QString("DELETE FROM ELEMENTCOMPOSITION WHERE CODE = '%1';").arg(ID)))
{
qDebug() << "Error ejecutando el query: " << qry.lastError().text() << "\n";
goto error;
}
}
*/
if(!qry.exec(QString("DELETE FROM ELEMENT WHERE CODE = '%1';").arg(ID)))
{
qDebug() << "Error ejecutando el query: " << qry.lastError().text() << "\n";
}
updateList();
error:
dApp->Enterprise().close();
}
void formElementList::on_buttonUpdate_released()
{
updateList();
}
void formElementList::on_tableView_doubleClicked(const QModelIndex &index)
{
openDocument(index);
}
void formElementList::openDocument(QModelIndex index)
{
QAbstractItemModel *model = ui->tableView->model();
//QModelIndex item = index;
formProduct *form = dApp->mainWindow()->createFormProduct();
//if (index.column() != 2)
// item = index.parent().child(index.row(), 2);
form->openDocument(model->index(index.row(), 2).data().toString());// item.data().toString());
form->show();
}
void formElementList::startDrag(const QModelIndex &index) {
if (!index.isValid())
return;
// Crear datos MIME
QMimeData *mimeData = new QMimeData();
QString data = mModel->data(index).toString();
mimeData->setText(data);
// Iniciar arrastre
QDrag *drag = new QDrag(ui->tableView);
drag->setMimeData(mimeData);
// Crear un ícono para el cursor
QPixmap pixmap(100, 30);
pixmap.fill(Qt::transparent); // Fondo transparente
QPainter painter(&pixmap);
painter.setBrush(Qt::yellow);
painter.drawRoundedRect(0, 0, pixmap.width(), pixmap.height(), 5, 5);
painter.setPen(Qt::black);
painter.drawText(pixmap.rect(), Qt::AlignCenter, data);
painter.end();
drag->setPixmap(pixmap); // Asignar el ícono al cursor
//drag->setHotSpot(QPoint(pixmap.width() / 2, pixmap.height() / 2)); // Centro del ícono como punto caliente
drag->exec(Qt::MoveAction);
}
+54
View File
@@ -0,0 +1,54 @@
#ifndef FORMPRODUCT_H
#define FORMPRODUCT_H
#include <QWidget>
#include "formbase.h"
namespace Ui
{
class formProduct;
}
class formProduct : public formBase
{
Q_OBJECT
public:
//explicit formProduct(QWidget *parent = 0);
explicit formProduct(QString aID = "", int aEditMode = 0, QWidget *parent = nullptr);
~formProduct();
void newDocument() override {}
void openDocument(QString id) override;
void closeDocument() override;
void save() override;
bool needsave() override { return mNeedSave; }
void setEditMode(bool aMode) override {}
public slots:
void on_ModelSetData(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector<int> &roles);
private slots:
void on_editPC_valueChanged(double arg1);
void on_editMargin_valueChanged(double arg1);
void on_editPV_valueChanged(double arg1);
void on_comboIVA_currentIndexChanged(const QString &arg1);
void on_editPV_editingFinished();
void on_buttonSave_released();
void on_editPVIVA_valueChanged(const QString &arg1);
void on_comboType2_currentIndexChanged(int index);
private:
Ui::formProduct *ui;
bool editMode;
void CalculatePrice();
bool InsertElement(QString ID, QModelIndex index);
void setLineType(QString type, QModelIndex index);
void setCellText(QString val, QModelIndex index, int col);
void setEditMode();
void setComposeElement(bool val);
};
#endif // FORMPRODUCT_H
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+296
View File
@@ -0,0 +1,296 @@
#include "productdao.h"
#include "../mapplication.h"
bool ProductDAO::create(const QString& code, int type1, int type2, const QString& title,
const QString& description, const QString& familyId, const QString& unitId,
const QDate& dateUpdate, double realPrice, double discount, double purchasePrice,
double benefit, double tax, double salePrice, const QString& barcode,
const QByteArray& image, bool state, const QString& manufacturer,
const QString& gamma, double weight, double height, double width,
double lenght)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("INSERT INTO ELEMENT ("
"CODE, TYPE1, TYPE2, TITLE, DESCRIPTION, FAMILY_ID, UNIT_ID, "
"DATE_UPDATE, REAL_PRICE, DISCOUNT, PURCHASE_PRICE, BENEFIT, TAX, SALE_PRICE, "
"BARCODE, IMAGE, STATE, MANUFACTURER, GAMMA, "
"WEIGHT, HEIGHT, WIDTH, LENGHT"
") VALUES ("
":CODE, :TYPE1, :TYPE2, :TITLE, :DESCRIPTION, :FAMILY_ID, :UNIT_ID, "
":DATE_UPDATE, :REAL_PRICE, :DISCOUNT, :PURCHASE_PRICE, :BENEFIT, :TAX, :SALE_PRICE, "
":BARCODE, :IMAGE, :STATE, :MANUFACTURER, :GAMMA, "
":WEIGHT, :HEIGHT, :WIDTH, :LENGHT"
");");
qry.bindValue(":CODE", code);
qry.bindValue(":TYPE1", type1);
qry.bindValue(":TYPE2", type2);
qry.bindValue(":TITLE", title);
qry.bindValue(":DESCRIPTION", description);
qry.bindValue(":FAMILY_ID", familyId);
qry.bindValue(":UNIT_ID", unitId);
qry.bindValue(":DATE_UPDATE", dateUpdate);
qry.bindValue(":REAL_PRICE", realPrice);
qry.bindValue(":DISCOUNT", discount);
qry.bindValue(":PURCHASE_PRICE", purchasePrice);
qry.bindValue(":BENEFIT", benefit);
qry.bindValue(":TAX", tax);
qry.bindValue(":SALE_PRICE", salePrice);
qry.bindValue(":BARCODE", barcode);
qry.bindValue(":IMAGE", image);
qry.bindValue(":STATE", state);
qry.bindValue(":MANUFACTURER", manufacturer);
qry.bindValue(":GAMMA", gamma);
qry.bindValue(":WEIGHT", weight);
qry.bindValue(":HEIGHT", height);
qry.bindValue(":WIDTH", width);
qry.bindValue(":LENGHT", lenght);
bool success = qry.exec();
if (!success) {
qDebug() << "Error creating product:" << qry.lastError().text();
}
dApp->Enterprise().close();
return success;
}
bool ProductDAO::read(const QString& code, int& type1, int& type2, QString& title,
QString& description, QString& familyId, QString& unitId,
QDate& dateUpdate, double& realPrice, double& discount, double& purchasePrice,
double& benefit, double& tax, double& salePrice, QString& barcode,
QByteArray& image, bool& state, QString& manufacturer, QString& gamma,
double& weight, double& height, double& width, double& lenght)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("SELECT TYPE1, TYPE2, TITLE, DESCRIPTION, FAMILY_ID, UNIT_ID, "
"DATE_UPDATE, REAL_PRICE, DISCOUNT, PURCHASE_PRICE, BENEFIT, TAX, SALE_PRICE, "
"BARCODE, IMAGE, STATE, MANUFACTURER, GAMMA, "
"WEIGHT, HEIGHT, WIDTH, LENGHT "
"FROM ELEMENT WHERE CODE = :CODE");
qry.bindValue(":CODE", code);
bool success = qry.exec();
if (!success) {
qDebug() << "Error reading product:" << qry.lastError().text();
dApp->Enterprise().close();
return false;
}
if (qry.next()) {
type1 = qry.value(0).toInt();
type2 = qry.value(1).toInt();
title = qry.value(2).toString();
description = qry.value(3).toString();
familyId = qry.value(4).toString();
unitId = qry.value(5).toString();
dateUpdate = qry.value(6).toDate();
realPrice = qry.value(7).toDouble();
discount = qry.value(8).toDouble();
purchasePrice = qry.value(9).toDouble();
benefit = qry.value(10).toDouble();
tax = qry.value(11).toDouble();
salePrice = qry.value(12).toDouble();
barcode = qry.value(13).toString();
image = qry.value(14).toByteArray();
state = qry.value(15).toBool();
manufacturer = qry.value(16).toString();
gamma = qry.value(17).toString();
weight = qry.value(18).toDouble();
height = qry.value(19).toDouble();
width = qry.value(20).toDouble();
lenght = qry.value(21).toDouble();
} else {
success = false;
}
dApp->Enterprise().close();
return success;
}
bool ProductDAO::update(const QString& code, int type1, int type2, const QString& title,
const QString& description, const QString& familyId, const QString& unitId,
const QDate& dateUpdate, double realPrice, double discount, double purchasePrice,
double benefit, double tax, double salePrice, const QString& barcode,
const QByteArray& image, bool state, const QString& manufacturer,
const QString& gamma, double weight, double height, double width,
double lenght)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("UPDATE ELEMENT SET "
"TYPE1 = :TYPE1, TYPE2 = :TYPE2, TITLE = :TITLE, DESCRIPTION = :DESCRIPTION, FAMILY_ID = :FAMILY_ID, "
"UNIT_ID = :UNIT_ID, DATE_UPDATE = :DATE_UPDATE, REAL_PRICE = :REAL_PRICE, DISCOUNT = :DISCOUNT, "
"PURCHASE_PRICE = :PURCHASE_PRICE, BENEFIT = :BENEFIT, TAX = :TAX, SALE_PRICE = :SALE_PRICE, BARCODE = :BARCODE, IMAGE = :IMAGE, "
"STATE = :STATE, MANUFACTURER = :MANUFACTURER, GAMMA = :GAMMA, WEIGHT = :WEIGHT, HEIGHT = :HEIGHT, "
"WIDTH = :WIDTH, LENGHT = :LENGHT "
"WHERE CODE = :CODE");
);
qry.bindValue(":TYPE1", type1);
qry.bindValue(":TYPE2", type2);
qry.bindValue(":TITLE", title);
qry.bindValue(":DESCRIPTION", description);
qry.bindValue(":FAMILY_ID", familyId);
qry.bindValue(":UNIT_ID", unitId);
qry.bindValue(":DATE_UPDATE", dateUpdate);
qry.bindValue(":REAL_PRICE", realPrice);
qry.bindValue(":DISCOUNT", discount);
qry.bindValue(":PURCHASE_PRICE", purchasePrice);
qry.bindValue(":BENEFIT", benefit);
qry.bindValue(":TAX", tax);
qry.bindValue(":SALE_PRICE", salePrice);
qry.bindValue(":BARCODE", barcode);
qry.bindValue(":IMAGE", image);
qry.bindValue(":STATE", state);
qry.bindValue(":MANUFACTURER", manufacturer);
qry.bindValue(":GAMMA", gamma);
qry.bindValue(":WEIGHT", weight);
qry.bindValue(":HEIGHT", height);
qry.bindValue(":WIDTH", width);
qry.bindValue(":LENGHT", lenght);
qry.bindValue(":CODE", code);
bool success = qry.exec();
if (!success) {
qDebug() << "Error updating product:" << qry.lastError().text();
}
dApp->Enterprise().close();
return success;
}
bool ProductDAO::remove(const QString& code)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("DELETE FROM ELEMENT WHERE CODE = :CODE");
qry.bindValue(":CODE", code);
bool success = qry.exec();
if (!success) {
qDebug() << "Error deleting product:" << qry.lastError().text();
}
dApp->Enterprise().close();
return success;
}
bool ProductDAO::exists(const QString& code)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("SELECT COUNT(*) FROM ELEMENT WHERE CODE = :CODE");
qry.bindValue(":CODE", code);
bool success = qry.exec();
if (!success) {
qDebug() << "Error checking product existence:" << qry.lastError().text();
dApp->Enterprise().close();
return false;
}
bool exists = false;
if (qry.next()) {
exists = (qry.value(0).toInt() > 0);
}
dApp->Enterprise().close();
return exists;
}
QVector<QString> ProductDAO::getAllCodes()
{
QVector<QString> codes;
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("SELECT CODE FROM ELEMENT ORDER BY CODE");
bool success = qry.exec();
if (!success) {
qDebug() << "Error getting product codes:" << qry.lastError().text();
dApp->Enterprise().close();
return codes;
}
while (qry.next()) {
codes.append(qry.value(0).toString());
}
dApp->Enterprise().close();
return codes;
}
QVector<QPair<QString, double>> ProductDAO::getComposition(const QString& code)
{
QVector<QPair<QString, double>> composition;
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("SELECT ELEMENT_CODE, ELEMENT_AMOUNT FROM ELEMENTCOMPOSITION WHERE CODE = :CODE");
qry.bindValue(":CODE", code);
bool success = qry.exec();
if (!success) {
qDebug() << "Error getting product composition:" << qry.lastError().text();
dApp->Enterprise().close();
return composition;
}
while (qry.next()) {
composition.append(qMakePair(qry.value(0).toString(), qry.value(1).toDouble()));
}
dApp->Enterprise().close();
return composition;
}
bool ProductDAO::addCompositionElement(const QString& productCode, const QString& elementCode, double amount)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("INSERT INTO ELEMENTCOMPOSITION (CODE, ELEMENT_CODE, ELEMENT_AMOUNT) "
"VALUES (:CODE, :ELEMENT_CODE, :ELEMENT_AMOUNT)");
qry.bindValue(":CODE", productCode);
qry.bindValue(":ELEMENT_CODE", elementCode);
qry.bindValue(":ELEMENT_AMOUNT", amount);
bool success = qry.exec();
if (!success) {
qDebug() << "Error adding composition element:" << qry.lastError().text();
}
dApp->Enterprise().close();
return success;
}
bool ProductDAO::removeCompositionElement(const QString& productCode, const QString& elementCode)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("DELETE FROM ELEMENTCOMPOSITION WHERE CODE = :CODE AND ELEMENT_CODE = :ELEMENT_CODE");
qry.bindValue(":CODE", productCode);
qry.bindValue(":ELEMENT_CODE", elementCode);
bool success = qry.exec();
if (!success) {
qDebug() << "Error removing composition element:" << qry.lastError().text();
}
dApp->Enterprise().close();
return success;
}
bool ProductDAO::updateCompositionElement(const QString& productCode, const QString& elementCode, double amount)
{
dApp->Enterprise().open();
QSqlQuery qry = QSqlQuery(dApp->Enterprise());
qry.prepare("UPDATE ELEMENTCOMPOSITION SET ELEMENT_AMOUNT = :ELEMENT_AMOUNT "
"WHERE CODE = :CODE AND ELEMENT_CODE = :ELEMENT_CODE");
qry.bindValue(":ELEMENT_AMOUNT", amount);
qry.bindValue(":CODE", productCode);
qry.bindValue(":ELEMENT_CODE", elementCode);
bool success = qry.exec();
if (!success) {
qDebug() << "Error updating composition element:" << qry.lastError().text();
}
dApp->Enterprise().close();
return success;
}
+63
View File
@@ -0,0 +1,63 @@
#ifndef PRODUCTDAO_H
#define PRODUCTDAO_H
#include <QString>
#include <QSqlQuery>
#include <QSqlError>
#include <QDebug>
#include <QVector>
#include "../gui/formproduct.h"
#include "../data/sqltable.h"
class ProductDAO
{
public:
// Create a new product
static bool create(const QString& code, int type1, int type2, const QString& title,
const QString& description, const QString& familyId, const QString& unitId,
const QDate& dateUpdate, double realPrice, double discount, double purchasePrice,
double benefit, double tax, double salePrice, const QString& barcode,
const QByteArray& image, bool state, const QString& manufacturer,
const QString& gamma, double weight, double height, double width,
double lenght);
// Read a product by code
static bool read(const QString& code, int& type1, int& type2, QString& title,
QString& description, QString& familyId, QString& unitId,
QDate& dateUpdate, double& realPrice, double& discount, double& purchasePrice,
double& benefit, double& tax, double& salePrice, QString& barcode,
QByteArray& image, bool& state, QString& manufacturer, QString& gamma,
double& weight, double& height, double& width, double& lenght);
// Update an existing product
static bool update(const QString& code, int type1, int type2, const QString& title,
const QString& description, const QString& familyId, const QString& unitId,
const QDate& dateUpdate, double realPrice, double discount, double purchasePrice,
double benefit, double tax, double salePrice, const QString& barcode,
const QByteArray& image, bool state, const QString& manufacturer,
const QString& gamma, double weight, double height, double width,
double lenght);
// Delete a product
static bool remove(const QString& code);
// Check if product exists
static bool exists(const QString& code);
// Get all products
static QVector<QString> getAllCodes();
// Get product composition
static QVector<QPair<QString, double>> getComposition(const QString& code);
// Add composition element
static bool addCompositionElement(const QString& productCode, const QString& elementCode, double amount);
// Remove composition element
static bool removeCompositionElement(const QString& productCode, const QString& elementCode);
// Update composition element amount
static bool updateCompositionElement(const QString& productCode, const QString& elementCode, double amount);
};
#endif // PRODUCTDAO_H
+13
View File
@@ -0,0 +1,13 @@
#ifndef ELEMENTTYPE_H
#define ELEMENTTYPE_H
enum ElementType {
Composed = 0,
Material = 1,
ManPower = 2,
Machinery = 3,
Subcontracted = 4,
Other = 5
};
#endif // ELEMENTTYPE_H
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+392
View File
@@ -0,0 +1,392 @@
/********************************************************************************
** Form generated from reading UI file 'dialogcreateenterprise.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_DIALOGCREATEENTERPRISE_H
#define UI_DIALOGCREATEENTERPRISE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDialog>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "avatarwidget.h"
QT_BEGIN_NAMESPACE
class Ui_dialogCreateEnterprise
{
public:
QVBoxLayout *verticalLayout;
QFrame *frame_2;
QGridLayout *gridLayout;
QLineEdit *editCIF;
QLineEdit *lineEdit_2;
QLabel *label_2;
QLabel *label_3;
QLineEdit *editName;
QLabel *label_4;
QComboBox *comboBox;
QLabel *label_13;
QLabel *label_12;
QLineEdit *lineEdit;
AvatarWidget *label_14;
QTabWidget *tabWidget;
QWidget *tabGeneralInfo;
QVBoxLayout *verticalLayout_2;
QWidget *widget;
QGridLayout *gridLayout_2;
QLabel *label_6;
QLabel *label_8;
QLabel *label_7;
QLineEdit *editCity;
QLineEdit *editProvince;
QLabel *label_5;
QLineEdit *editCountry;
QLineEdit *editCP;
QPlainTextEdit *editAddress;
QLabel *label;
QWidget *widget_4;
QGridLayout *gridLayout_3;
QLabel *label_10;
QLineEdit *editFax;
QLabel *label_11;
QLabel *label_9;
QLineEdit *editEmail;
QLineEdit *editWebside;
QLineEdit *editPhone;
QSpacerItem *verticalSpacer_2;
QWidget *tabOthers;
QWidget *widget_5;
QWidget *tab_2;
QWidget *widget_3;
QHBoxLayout *horizontalLayout;
QPushButton *pushBack;
QPushButton *pushNext;
void setupUi(QDialog *dialogCreateEnterprise)
{
if (dialogCreateEnterprise->objectName().isEmpty())
dialogCreateEnterprise->setObjectName(QString::fromUtf8("dialogCreateEnterprise"));
dialogCreateEnterprise->resize(550, 500);
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(dialogCreateEnterprise->sizePolicy().hasHeightForWidth());
dialogCreateEnterprise->setSizePolicy(sizePolicy);
verticalLayout = new QVBoxLayout(dialogCreateEnterprise);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
frame_2 = new QFrame(dialogCreateEnterprise);
frame_2->setObjectName(QString::fromUtf8("frame_2"));
gridLayout = new QGridLayout(frame_2);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
editCIF = new QLineEdit(frame_2);
editCIF->setObjectName(QString::fromUtf8("editCIF"));
sizePolicy.setHeightForWidth(editCIF->sizePolicy().hasHeightForWidth());
editCIF->setSizePolicy(sizePolicy);
editCIF->setMinimumSize(QSize(120, 0));
gridLayout->addWidget(editCIF, 1, 4, 1, 1);
lineEdit_2 = new QLineEdit(frame_2);
lineEdit_2->setObjectName(QString::fromUtf8("lineEdit_2"));
lineEdit_2->setMaximumSize(QSize(50, 16777215));
gridLayout->addWidget(lineEdit_2, 1, 2, 1, 1);
label_2 = new QLabel(frame_2);
label_2->setObjectName(QString::fromUtf8("label_2"));
gridLayout->addWidget(label_2, 2, 1, 1, 1);
label_3 = new QLabel(frame_2);
label_3->setObjectName(QString::fromUtf8("label_3"));
gridLayout->addWidget(label_3, 1, 3, 1, 1);
editName = new QLineEdit(frame_2);
editName->setObjectName(QString::fromUtf8("editName"));
gridLayout->addWidget(editName, 2, 2, 1, 5);
label_4 = new QLabel(frame_2);
label_4->setObjectName(QString::fromUtf8("label_4"));
gridLayout->addWidget(label_4, 1, 5, 1, 1);
comboBox = new QComboBox(frame_2);
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->addItem(QString());
comboBox->setObjectName(QString::fromUtf8("comboBox"));
sizePolicy.setHeightForWidth(comboBox->sizePolicy().hasHeightForWidth());
comboBox->setSizePolicy(sizePolicy);
comboBox->setMinimumSize(QSize(120, 0));
gridLayout->addWidget(comboBox, 1, 6, 1, 1);
label_13 = new QLabel(frame_2);
label_13->setObjectName(QString::fromUtf8("label_13"));
gridLayout->addWidget(label_13, 1, 1, 1, 1);
label_12 = new QLabel(frame_2);
label_12->setObjectName(QString::fromUtf8("label_12"));
gridLayout->addWidget(label_12, 4, 1, 1, 1);
lineEdit = new QLineEdit(frame_2);
lineEdit->setObjectName(QString::fromUtf8("lineEdit"));
gridLayout->addWidget(lineEdit, 4, 2, 1, 5);
label_14 = new AvatarWidget(frame_2);
label_14->setObjectName(QString::fromUtf8("label_14"));
sizePolicy.setHeightForWidth(label_14->sizePolicy().hasHeightForWidth());
label_14->setSizePolicy(sizePolicy);
label_14->setMinimumSize(QSize(75, 75));
label_14->setFrameShape(QFrame::WinPanel);
gridLayout->addWidget(label_14, 1, 0, 4, 1);
verticalLayout->addWidget(frame_2);
tabWidget = new QTabWidget(dialogCreateEnterprise);
tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
tabGeneralInfo = new QWidget();
tabGeneralInfo->setObjectName(QString::fromUtf8("tabGeneralInfo"));
verticalLayout_2 = new QVBoxLayout(tabGeneralInfo);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
widget = new QWidget(tabGeneralInfo);
widget->setObjectName(QString::fromUtf8("widget"));
gridLayout_2 = new QGridLayout(widget);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
label_6 = new QLabel(widget);
label_6->setObjectName(QString::fromUtf8("label_6"));
gridLayout_2->addWidget(label_6, 1, 0, 1, 1);
label_8 = new QLabel(widget);
label_8->setObjectName(QString::fromUtf8("label_8"));
gridLayout_2->addWidget(label_8, 4, 0, 1, 1);
label_7 = new QLabel(widget);
label_7->setObjectName(QString::fromUtf8("label_7"));
gridLayout_2->addWidget(label_7, 3, 0, 1, 1);
editCity = new QLineEdit(widget);
editCity->setObjectName(QString::fromUtf8("editCity"));
gridLayout_2->addWidget(editCity, 1, 2, 1, 1);
editProvince = new QLineEdit(widget);
editProvince->setObjectName(QString::fromUtf8("editProvince"));
gridLayout_2->addWidget(editProvince, 3, 1, 1, 2);
label_5 = new QLabel(widget);
label_5->setObjectName(QString::fromUtf8("label_5"));
gridLayout_2->addWidget(label_5, 0, 0, 1, 1, Qt::AlignTop);
editCountry = new QLineEdit(widget);
editCountry->setObjectName(QString::fromUtf8("editCountry"));
gridLayout_2->addWidget(editCountry, 4, 1, 1, 2);
editCP = new QLineEdit(widget);
editCP->setObjectName(QString::fromUtf8("editCP"));
editCP->setMaximumSize(QSize(150, 16777215));
gridLayout_2->addWidget(editCP, 1, 1, 1, 1);
editAddress = new QPlainTextEdit(widget);
editAddress->setObjectName(QString::fromUtf8("editAddress"));
editAddress->setMaximumSize(QSize(16777215, 66));
gridLayout_2->addWidget(editAddress, 0, 1, 1, 2);
verticalLayout_2->addWidget(widget);
label = new QLabel(tabGeneralInfo);
label->setObjectName(QString::fromUtf8("label"));
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(label->sizePolicy().hasHeightForWidth());
label->setSizePolicy(sizePolicy1);
label->setMaximumSize(QSize(16777215, 1));
label->setStyleSheet(QString::fromUtf8("background-color: rgb(191, 191, 191);"));
verticalLayout_2->addWidget(label);
widget_4 = new QWidget(tabGeneralInfo);
widget_4->setObjectName(QString::fromUtf8("widget_4"));
gridLayout_3 = new QGridLayout(widget_4);
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
label_10 = new QLabel(widget_4);
label_10->setObjectName(QString::fromUtf8("label_10"));
gridLayout_3->addWidget(label_10, 2, 0, 1, 1);
editFax = new QLineEdit(widget_4);
editFax->setObjectName(QString::fromUtf8("editFax"));
gridLayout_3->addWidget(editFax, 0, 2, 1, 1);
label_11 = new QLabel(widget_4);
label_11->setObjectName(QString::fromUtf8("label_11"));
gridLayout_3->addWidget(label_11, 1, 0, 1, 1);
label_9 = new QLabel(widget_4);
label_9->setObjectName(QString::fromUtf8("label_9"));
gridLayout_3->addWidget(label_9, 0, 0, 1, 1);
editEmail = new QLineEdit(widget_4);
editEmail->setObjectName(QString::fromUtf8("editEmail"));
gridLayout_3->addWidget(editEmail, 1, 1, 1, 2);
editWebside = new QLineEdit(widget_4);
editWebside->setObjectName(QString::fromUtf8("editWebside"));
gridLayout_3->addWidget(editWebside, 2, 1, 1, 2);
editPhone = new QLineEdit(widget_4);
editPhone->setObjectName(QString::fromUtf8("editPhone"));
gridLayout_3->addWidget(editPhone, 0, 1, 1, 1);
verticalLayout_2->addWidget(widget_4);
verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout_2->addItem(verticalSpacer_2);
tabWidget->addTab(tabGeneralInfo, QString());
tabOthers = new QWidget();
tabOthers->setObjectName(QString::fromUtf8("tabOthers"));
widget_5 = new QWidget(tabOthers);
widget_5->setObjectName(QString::fromUtf8("widget_5"));
widget_5->setGeometry(QRect(10, 20, 381, 121));
tabWidget->addTab(tabOthers, QString());
tab_2 = new QWidget();
tab_2->setObjectName(QString::fromUtf8("tab_2"));
tabWidget->addTab(tab_2, QString());
verticalLayout->addWidget(tabWidget);
widget_3 = new QWidget(dialogCreateEnterprise);
widget_3->setObjectName(QString::fromUtf8("widget_3"));
horizontalLayout = new QHBoxLayout(widget_3);
horizontalLayout->setSpacing(0);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
pushBack = new QPushButton(widget_3);
pushBack->setObjectName(QString::fromUtf8("pushBack"));
pushBack->setEnabled(false);
pushBack->setMinimumSize(QSize(0, 25));
horizontalLayout->addWidget(pushBack);
pushNext = new QPushButton(widget_3);
pushNext->setObjectName(QString::fromUtf8("pushNext"));
pushNext->setMinimumSize(QSize(0, 25));
horizontalLayout->addWidget(pushNext);
verticalLayout->addWidget(widget_3);
retranslateUi(dialogCreateEnterprise);
tabWidget->setCurrentIndex(0);
QMetaObject::connectSlotsByName(dialogCreateEnterprise);
} // setupUi
void retranslateUi(QDialog *dialogCreateEnterprise)
{
dialogCreateEnterprise->setWindowTitle(QCoreApplication::translate("dialogCreateEnterprise", "Dialog", nullptr));
editCIF->setText(QString());
label_2->setText(QCoreApplication::translate("dialogCreateEnterprise", "Nombre/Raz\303\263n social", nullptr));
label_3->setText(QCoreApplication::translate("dialogCreateEnterprise", "C.I.F.", nullptr));
label_4->setText(QCoreApplication::translate("dialogCreateEnterprise", "Forma jur\303\255dica", nullptr));
comboBox->setItemText(0, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(1, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(2, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(3, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(4, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(5, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(6, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(7, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(8, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(9, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(10, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(11, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(12, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(13, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
comboBox->setItemText(14, QCoreApplication::translate("dialogCreateEnterprise", "New Item", nullptr));
label_13->setText(QCoreApplication::translate("dialogCreateEnterprise", "C\303\263digo", nullptr));
label_12->setText(QCoreApplication::translate("dialogCreateEnterprise", "Nombre comercial", nullptr));
label_14->setText(QCoreApplication::translate("dialogCreateEnterprise", "TextLabel", nullptr));
label_6->setText(QCoreApplication::translate("dialogCreateEnterprise", "CP / Poblaci\303\263n", nullptr));
label_8->setText(QCoreApplication::translate("dialogCreateEnterprise", "Pais", nullptr));
label_7->setText(QCoreApplication::translate("dialogCreateEnterprise", "Provincia", nullptr));
label_5->setText(QCoreApplication::translate("dialogCreateEnterprise", "Direcci\303\263n", nullptr));
label->setText(QString());
label_10->setText(QCoreApplication::translate("dialogCreateEnterprise", "Webside", nullptr));
label_11->setText(QCoreApplication::translate("dialogCreateEnterprise", "Email", nullptr));
label_9->setText(QCoreApplication::translate("dialogCreateEnterprise", "Tel\303\251fono / Fax", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabGeneralInfo), QCoreApplication::translate("dialogCreateEnterprise", "Datos generales", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabOthers), QCoreApplication::translate("dialogCreateEnterprise", "Otros datos", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tab_2), QCoreApplication::translate("dialogCreateEnterprise", "Page", nullptr));
pushBack->setText(QCoreApplication::translate("dialogCreateEnterprise", "Anterior", nullptr));
pushNext->setText(QCoreApplication::translate("dialogCreateEnterprise", "Siguiente", nullptr));
} // retranslateUi
};
namespace Ui {
class dialogCreateEnterprise: public Ui_dialogCreateEnterprise {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_DIALOGCREATEENTERPRISE_H
+90
View File
@@ -0,0 +1,90 @@
/********************************************************************************
** Form generated from reading UI file 'dialogopencompany.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_DIALOGOPENCOMPANY_H
#define UI_DIALOGOPENCOMPANY_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDialog>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QListView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_dialogOpenCompany
{
public:
QVBoxLayout *verticalLayout;
QListView *listView;
QWidget *widget;
QHBoxLayout *horizontalLayout;
QSpacerItem *horizontalSpacer;
QPushButton *buttonOpen;
void setupUi(QDialog *dialogOpenCompany)
{
if (dialogOpenCompany->objectName().isEmpty())
dialogOpenCompany->setObjectName(QString::fromUtf8("dialogOpenCompany"));
dialogOpenCompany->resize(400, 400);
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(dialogOpenCompany->sizePolicy().hasHeightForWidth());
dialogOpenCompany->setSizePolicy(sizePolicy);
verticalLayout = new QVBoxLayout(dialogOpenCompany);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
listView = new QListView(dialogOpenCompany);
listView->setObjectName(QString::fromUtf8("listView"));
listView->setEditTriggers(QAbstractItemView::NoEditTriggers);
verticalLayout->addWidget(listView);
widget = new QWidget(dialogOpenCompany);
widget->setObjectName(QString::fromUtf8("widget"));
horizontalLayout = new QHBoxLayout(widget);
horizontalLayout->setSpacing(1);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer);
buttonOpen = new QPushButton(widget);
buttonOpen->setObjectName(QString::fromUtf8("buttonOpen"));
horizontalLayout->addWidget(buttonOpen);
verticalLayout->addWidget(widget);
retranslateUi(dialogOpenCompany);
QMetaObject::connectSlotsByName(dialogOpenCompany);
} // setupUi
void retranslateUi(QDialog *dialogOpenCompany)
{
dialogOpenCompany->setWindowTitle(QCoreApplication::translate("dialogOpenCompany", "Dialog", nullptr));
buttonOpen->setText(QCoreApplication::translate("dialogOpenCompany", "Abrir", nullptr));
} // retranslateUi
};
namespace Ui {
class dialogOpenCompany: public Ui_dialogOpenCompany {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_DIALOGOPENCOMPANY_H
+46
View File
@@ -0,0 +1,46 @@
/********************************************************************************
** Form generated from reading UI file 'formbase.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMBASE_H
#define UI_FORMBASE_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_formBase
{
public:
void setupUi(QWidget *formBase)
{
if (formBase->objectName().isEmpty())
formBase->setObjectName(QString::fromUtf8("formBase"));
formBase->resize(705, 492);
retranslateUi(formBase);
QMetaObject::connectSlotsByName(formBase);
} // setupUi
void retranslateUi(QWidget *formBase)
{
formBase->setWindowTitle(QCoreApplication::translate("formBase", "Form", nullptr));
} // retranslateUi
};
namespace Ui {
class formBase: public Ui_formBase {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMBASE_H
+127
View File
@@ -0,0 +1,127 @@
/********************************************************************************
** Form generated from reading UI file 'formbaselist.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMBASELIST_H
#define UI_FORMBASELIST_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QFrame>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_FormBaseList
{
public:
QVBoxLayout *verticalLayout_2;
QTableView *tableView;
QFrame *frame_2;
QHBoxLayout *horizontalLayout;
QPushButton *buttonNew;
QPushButton *buttonEdit;
QPushButton *buttonClone;
QPushButton *buttonDelete;
QPushButton *buttonUpdate;
void setupUi(QWidget *FormBaseList)
{
if (FormBaseList->objectName().isEmpty())
FormBaseList->setObjectName(QString::fromUtf8("FormBaseList"));
FormBaseList->resize(412, 297);
verticalLayout_2 = new QVBoxLayout(FormBaseList);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
tableView = new QTableView(FormBaseList);
tableView->setObjectName(QString::fromUtf8("tableView"));
tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
tableView->setSelectionMode(QAbstractItemView::SingleSelection);
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
tableView->setSortingEnabled(true);
verticalLayout_2->addWidget(tableView);
frame_2 = new QFrame(FormBaseList);
frame_2->setObjectName(QString::fromUtf8("frame_2"));
horizontalLayout = new QHBoxLayout(frame_2);
horizontalLayout->setSpacing(0);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
buttonNew = new QPushButton(frame_2);
buttonNew->setObjectName(QString::fromUtf8("buttonNew"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/add-file.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonNew->setIcon(icon);
horizontalLayout->addWidget(buttonNew);
buttonEdit = new QPushButton(frame_2);
buttonEdit->setObjectName(QString::fromUtf8("buttonEdit"));
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/resources/icons/pencil.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonEdit->setIcon(icon1);
horizontalLayout->addWidget(buttonEdit);
buttonClone = new QPushButton(frame_2);
buttonClone->setObjectName(QString::fromUtf8("buttonClone"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/resources/icons/copy.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonClone->setIcon(icon2);
horizontalLayout->addWidget(buttonClone);
buttonDelete = new QPushButton(frame_2);
buttonDelete->setObjectName(QString::fromUtf8("buttonDelete"));
QIcon icon3;
icon3.addFile(QString::fromUtf8(":/resources/icons/delete.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonDelete->setIcon(icon3);
horizontalLayout->addWidget(buttonDelete);
buttonUpdate = new QPushButton(frame_2);
buttonUpdate->setObjectName(QString::fromUtf8("buttonUpdate"));
QIcon icon4;
icon4.addFile(QString::fromUtf8(":/resources/icons/recycle.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonUpdate->setIcon(icon4);
horizontalLayout->addWidget(buttonUpdate);
verticalLayout_2->addWidget(frame_2);
retranslateUi(FormBaseList);
QMetaObject::connectSlotsByName(FormBaseList);
} // setupUi
void retranslateUi(QWidget *FormBaseList)
{
FormBaseList->setWindowTitle(QCoreApplication::translate("FormBaseList", "Form", nullptr));
buttonNew->setText(QCoreApplication::translate("FormBaseList", "Nuevo", nullptr));
buttonEdit->setText(QCoreApplication::translate("FormBaseList", "Editar", nullptr));
buttonClone->setText(QCoreApplication::translate("FormBaseList", "Duplicar", nullptr));
buttonDelete->setText(QCoreApplication::translate("FormBaseList", "Borrar", nullptr));
buttonUpdate->setText(QCoreApplication::translate("FormBaseList", "Actualizar", nullptr));
} // retranslateUi
};
namespace Ui {
class FormBaseList: public Ui_FormBaseList {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMBASELIST_H
+982
View File
@@ -0,0 +1,982 @@
/********************************************************************************
** Form generated from reading UI file 'formbudget.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMBUDGET_H
#define UI_FORMBUDGET_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDateEdit>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "qmtreeview.h"
QT_BEGIN_NAMESPACE
class Ui_formBudget
{
public:
QVBoxLayout *verticalLayout;
QFrame *MainToolBar;
QHBoxLayout *horizontalLayout_6;
QToolButton *buttonValidate;
QToolButton *buttonSave;
QWidget *ToolbarLines;
QHBoxLayout *horizontalLayout_4;
QWidget *widget_10;
QHBoxLayout *horizontalLayout_9;
QToolButton *buttonInsertChild;
QToolButton *buttonInsertRow;
QToolButton *buttonMaterials;
QToolButton *buttoMachinary;
QToolButton *buttonManpower;
QToolButton *buttonPercent;
QWidget *widget_11;
QHBoxLayout *horizontalLayout_10;
QToolButton *toolButton_4;
QToolButton *buttonRemoveRow;
QSpacerItem *horizontalSpacer_5;
QToolButton *toolButton_10;
QFrame *frameInfo;
QHBoxLayout *horizontalLayout_2;
QWidget *widget;
QGridLayout *gridLayout;
QLabel *label_8;
QLineEdit *editCode;
QLineEdit *editProjectName;
QLabel *label_23;
QComboBox *comboState;
QLineEdit *editTitle;
QLabel *label_9;
QLabel *label_7;
QLabel *label_10;
QComboBox *editClientCode;
QLabel *label_5;
QLabel *label_6;
QComboBox *editProjectCode;
QLineEdit *editClientName;
QSpacerItem *horizontalSpacer_3;
QWidget *widget_4;
QHBoxLayout *horizontalLayout_5;
QLabel *label_24;
QComboBox *editVersion;
QPushButton *pushButton;
QPushButton *pushButton_2;
QTabWidget *tabWidget;
QWidget *tabFile;
QWidget *widget_2;
QGridLayout *gridLayout_2;
QLabel *label_15;
QLabel *label_14;
QLineEdit *lineEdit_8;
QLabel *label_25;
QLabel *label_11;
QLineEdit *lineEdit_9;
QDateEdit *editdateCreated;
QDateEdit *editdateUpdate;
QDateEdit *editdateValidUntill;
QDateEdit *editdateValidUntill_2;
QLabel *label_12;
QLabel *edit;
QWidget *tabBudget;
QVBoxLayout *verticalLayout_2;
QMTreeView *treeView;
QFrame *frame_3;
QHBoxLayout *horizontalLayout;
QLabel *label;
QSpacerItem *horizontalSpacer;
QLabel *label_2;
QLineEdit *editCost;
QLabel *label_3;
QLineEdit *editPrice;
QLabel *label_4;
QLineEdit *editProfit;
QWidget *tabSumary;
QWidget *widget_3;
QGridLayout *gridLayout_3;
QLineEdit *lineEdit_13;
QLineEdit *lineEdit_16;
QLabel *label_19;
QLineEdit *lineEdit_6;
QLabel *label_17;
QLineEdit *lineEdit_10;
QLabel *label_20;
QLabel *label_22;
QLineEdit *lineEdit_12;
QLineEdit *lineEdit_15;
QLineEdit *lineEdit_11;
QLabel *label_18;
QLabel *label_16;
QLineEdit *lineEdit_5;
QLabel *label_21;
QLineEdit *lineEdit_14;
QLabel *separatorLine;
QLabel *separatorLine_2;
QWidget *tabContacts;
QWidget *tabNotes;
QVBoxLayout *verticalLayout_3;
QScrollArea *scrollArea;
QWidget *scrollAreaWidgetContents;
QVBoxLayout *verticalLayout_6;
QFrame *frameTable;
QVBoxLayout *verticalLayout_4;
QLabel *Title;
QWidget *Content;
QVBoxLayout *verticalLayout_7;
QWidget *textNotePrivate;
QFrame *frameTable_2;
QVBoxLayout *verticalLayout_5;
QLabel *Title_2;
QWidget *Content_2;
QVBoxLayout *verticalLayout_8;
QWidget *textNotePublic;
QSpacerItem *verticalSpacer;
void setupUi(QWidget *formBudget)
{
if (formBudget->objectName().isEmpty())
formBudget->setObjectName(QString::fromUtf8("formBudget"));
formBudget->resize(1070, 573);
verticalLayout = new QVBoxLayout(formBudget);
verticalLayout->setSpacing(5);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
verticalLayout->setContentsMargins(0, 0, 0, 0);
MainToolBar = new QFrame(formBudget);
MainToolBar->setObjectName(QString::fromUtf8("MainToolBar"));
MainToolBar->setFrameShape(QFrame::StyledPanel);
MainToolBar->setFrameShadow(QFrame::Raised);
horizontalLayout_6 = new QHBoxLayout(MainToolBar);
horizontalLayout_6->setSpacing(5);
horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
horizontalLayout_6->setContentsMargins(0, 0, 0, 0);
buttonValidate = new QToolButton(MainToolBar);
buttonValidate->setObjectName(QString::fromUtf8("buttonValidate"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/tick.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonValidate->setIcon(icon);
buttonValidate->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
horizontalLayout_6->addWidget(buttonValidate);
buttonSave = new QToolButton(MainToolBar);
buttonSave->setObjectName(QString::fromUtf8("buttonSave"));
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/resources/icons/save.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonSave->setIcon(icon1);
buttonSave->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
horizontalLayout_6->addWidget(buttonSave);
ToolbarLines = new QWidget(MainToolBar);
ToolbarLines->setObjectName(QString::fromUtf8("ToolbarLines"));
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(ToolbarLines->sizePolicy().hasHeightForWidth());
ToolbarLines->setSizePolicy(sizePolicy);
horizontalLayout_4 = new QHBoxLayout(ToolbarLines);
horizontalLayout_4->setSpacing(5);
horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
horizontalLayout_4->setContentsMargins(10, 0, 0, 0);
widget_10 = new QWidget(ToolbarLines);
widget_10->setObjectName(QString::fromUtf8("widget_10"));
horizontalLayout_9 = new QHBoxLayout(widget_10);
horizontalLayout_9->setSpacing(0);
horizontalLayout_9->setObjectName(QString::fromUtf8("horizontalLayout_9"));
horizontalLayout_9->setContentsMargins(0, 0, 0, 0);
buttonInsertChild = new QToolButton(widget_10);
buttonInsertChild->setObjectName(QString::fromUtf8("buttonInsertChild"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/resources/icons/box.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonInsertChild->setIcon(icon2);
buttonInsertChild->setIconSize(QSize(20, 20));
horizontalLayout_9->addWidget(buttonInsertChild);
buttonInsertRow = new QToolButton(widget_10);
buttonInsertRow->setObjectName(QString::fromUtf8("buttonInsertRow"));
QIcon icon3;
icon3.addFile(QString::fromUtf8(":/resources/icons/insert.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonInsertRow->setIcon(icon3);
buttonInsertRow->setIconSize(QSize(20, 20));
horizontalLayout_9->addWidget(buttonInsertRow);
buttonMaterials = new QToolButton(widget_10);
buttonMaterials->setObjectName(QString::fromUtf8("buttonMaterials"));
QIcon icon4;
icon4.addFile(QString::fromUtf8(":/resources/icons/blocks.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonMaterials->setIcon(icon4);
buttonMaterials->setIconSize(QSize(20, 20));
horizontalLayout_9->addWidget(buttonMaterials);
buttoMachinary = new QToolButton(widget_10);
buttoMachinary->setObjectName(QString::fromUtf8("buttoMachinary"));
QIcon icon5;
icon5.addFile(QString::fromUtf8(":/resources/icons/gear.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttoMachinary->setIcon(icon5);
buttoMachinary->setIconSize(QSize(20, 20));
horizontalLayout_9->addWidget(buttoMachinary);
buttonManpower = new QToolButton(widget_10);
buttonManpower->setObjectName(QString::fromUtf8("buttonManpower"));
QIcon icon6;
icon6.addFile(QString::fromUtf8(":/resources/icons/helmet.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonManpower->setIcon(icon6);
buttonManpower->setIconSize(QSize(20, 20));
horizontalLayout_9->addWidget(buttonManpower);
buttonPercent = new QToolButton(widget_10);
buttonPercent->setObjectName(QString::fromUtf8("buttonPercent"));
QIcon icon7;
icon7.addFile(QString::fromUtf8(":/resources/icons/percentage.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonPercent->setIcon(icon7);
buttonPercent->setIconSize(QSize(20, 20));
horizontalLayout_9->addWidget(buttonPercent);
horizontalLayout_4->addWidget(widget_10);
widget_11 = new QWidget(ToolbarLines);
widget_11->setObjectName(QString::fromUtf8("widget_11"));
horizontalLayout_10 = new QHBoxLayout(widget_11);
horizontalLayout_10->setSpacing(0);
horizontalLayout_10->setObjectName(QString::fromUtf8("horizontalLayout_10"));
horizontalLayout_10->setContentsMargins(0, 0, 0, 0);
toolButton_4 = new QToolButton(widget_11);
toolButton_4->setObjectName(QString::fromUtf8("toolButton_4"));
QIcon icon8;
icon8.addFile(QString::fromUtf8(":/resources/icons/duplicate.svg"), QSize(), QIcon::Normal, QIcon::Off);
toolButton_4->setIcon(icon8);
toolButton_4->setIconSize(QSize(20, 20));
horizontalLayout_10->addWidget(toolButton_4);
buttonRemoveRow = new QToolButton(widget_11);
buttonRemoveRow->setObjectName(QString::fromUtf8("buttonRemoveRow"));
QIcon icon9;
icon9.addFile(QString::fromUtf8(":/resources/icons/delete.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonRemoveRow->setIcon(icon9);
buttonRemoveRow->setIconSize(QSize(20, 20));
horizontalLayout_10->addWidget(buttonRemoveRow);
horizontalLayout_4->addWidget(widget_11);
horizontalLayout_6->addWidget(ToolbarLines);
horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_6->addItem(horizontalSpacer_5);
toolButton_10 = new QToolButton(MainToolBar);
toolButton_10->setObjectName(QString::fromUtf8("toolButton_10"));
horizontalLayout_6->addWidget(toolButton_10);
verticalLayout->addWidget(MainToolBar);
frameInfo = new QFrame(formBudget);
frameInfo->setObjectName(QString::fromUtf8("frameInfo"));
QSizePolicy sizePolicy1(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(frameInfo->sizePolicy().hasHeightForWidth());
frameInfo->setSizePolicy(sizePolicy1);
frameInfo->setMinimumSize(QSize(650, 0));
frameInfo->setFrameShape(QFrame::StyledPanel);
frameInfo->setFrameShadow(QFrame::Raised);
horizontalLayout_2 = new QHBoxLayout(frameInfo);
horizontalLayout_2->setSpacing(5);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
horizontalLayout_2->setContentsMargins(10, 10, 10, 10);
widget = new QWidget(frameInfo);
widget->setObjectName(QString::fromUtf8("widget"));
gridLayout = new QGridLayout(widget);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout->setHorizontalSpacing(10);
gridLayout->setVerticalSpacing(5);
gridLayout->setContentsMargins(0, 0, 0, 0);
label_8 = new QLabel(widget);
label_8->setObjectName(QString::fromUtf8("label_8"));
gridLayout->addWidget(label_8, 1, 2, 1, 1);
editCode = new QLineEdit(widget);
editCode->setObjectName(QString::fromUtf8("editCode"));
sizePolicy.setHeightForWidth(editCode->sizePolicy().hasHeightForWidth());
editCode->setSizePolicy(sizePolicy);
editCode->setMinimumSize(QSize(150, 0));
editCode->setMaximumSize(QSize(120, 16777215));
editCode->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editCode->setReadOnly(true);
gridLayout->addWidget(editCode, 0, 1, 1, 1);
editProjectName = new QLineEdit(widget);
editProjectName->setObjectName(QString::fromUtf8("editProjectName"));
editProjectName->setMinimumSize(QSize(500, 0));
editProjectName->setMaxLength(128);
editProjectName->setReadOnly(true);
gridLayout->addWidget(editProjectName, 2, 3, 1, 1);
label_23 = new QLabel(widget);
label_23->setObjectName(QString::fromUtf8("label_23"));
gridLayout->addWidget(label_23, 0, 4, 1, 1);
comboState = new QComboBox(widget);
comboState->addItem(QString());
comboState->addItem(QString());
comboState->addItem(QString());
comboState->addItem(QString());
comboState->addItem(QString());
comboState->setObjectName(QString::fromUtf8("comboState"));
comboState->setEnabled(false);
sizePolicy.setHeightForWidth(comboState->sizePolicy().hasHeightForWidth());
comboState->setSizePolicy(sizePolicy);
comboState->setMinimumSize(QSize(120, 0));
comboState->setMaximumSize(QSize(120, 16777215));
gridLayout->addWidget(comboState, 0, 5, 1, 1);
editTitle = new QLineEdit(widget);
editTitle->setObjectName(QString::fromUtf8("editTitle"));
editTitle->setMinimumSize(QSize(500, 0));
gridLayout->addWidget(editTitle, 0, 3, 1, 1);
label_9 = new QLabel(widget);
label_9->setObjectName(QString::fromUtf8("label_9"));
gridLayout->addWidget(label_9, 2, 0, 1, 1);
label_7 = new QLabel(widget);
label_7->setObjectName(QString::fromUtf8("label_7"));
gridLayout->addWidget(label_7, 1, 0, 1, 1);
label_10 = new QLabel(widget);
label_10->setObjectName(QString::fromUtf8("label_10"));
gridLayout->addWidget(label_10, 2, 2, 1, 1);
editClientCode = new QComboBox(widget);
editClientCode->setObjectName(QString::fromUtf8("editClientCode"));
sizePolicy.setHeightForWidth(editClientCode->sizePolicy().hasHeightForWidth());
editClientCode->setSizePolicy(sizePolicy);
editClientCode->setMinimumSize(QSize(150, 0));
editClientCode->setMaximumSize(QSize(120, 16777215));
editClientCode->setEditable(true);
gridLayout->addWidget(editClientCode, 1, 1, 1, 1);
label_5 = new QLabel(widget);
label_5->setObjectName(QString::fromUtf8("label_5"));
gridLayout->addWidget(label_5, 0, 0, 1, 1);
label_6 = new QLabel(widget);
label_6->setObjectName(QString::fromUtf8("label_6"));
gridLayout->addWidget(label_6, 0, 2, 1, 1);
editProjectCode = new QComboBox(widget);
editProjectCode->setObjectName(QString::fromUtf8("editProjectCode"));
sizePolicy.setHeightForWidth(editProjectCode->sizePolicy().hasHeightForWidth());
editProjectCode->setSizePolicy(sizePolicy);
editProjectCode->setMinimumSize(QSize(150, 0));
editProjectCode->setMaximumSize(QSize(120, 16777215));
editProjectCode->setEditable(true);
gridLayout->addWidget(editProjectCode, 2, 1, 1, 1);
editClientName = new QLineEdit(widget);
editClientName->setObjectName(QString::fromUtf8("editClientName"));
editClientName->setMinimumSize(QSize(500, 0));
editClientName->setMaxLength(128);
editClientName->setReadOnly(true);
gridLayout->addWidget(editClientName, 1, 3, 1, 1);
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer_3, 0, 6, 3, 1);
widget_4 = new QWidget(widget);
widget_4->setObjectName(QString::fromUtf8("widget_4"));
widget_4->setEnabled(false);
horizontalLayout_5 = new QHBoxLayout(widget_4);
horizontalLayout_5->setSpacing(0);
horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5"));
horizontalLayout_5->setContentsMargins(0, 0, 0, 0);
label_24 = new QLabel(widget_4);
label_24->setObjectName(QString::fromUtf8("label_24"));
horizontalLayout_5->addWidget(label_24);
editVersion = new QComboBox(widget_4);
editVersion->addItem(QString());
editVersion->setObjectName(QString::fromUtf8("editVersion"));
horizontalLayout_5->addWidget(editVersion);
pushButton = new QPushButton(widget_4);
pushButton->setObjectName(QString::fromUtf8("pushButton"));
sizePolicy.setHeightForWidth(pushButton->sizePolicy().hasHeightForWidth());
pushButton->setSizePolicy(sizePolicy);
pushButton->setIcon(icon);
horizontalLayout_5->addWidget(pushButton);
pushButton_2 = new QPushButton(widget_4);
pushButton_2->setObjectName(QString::fromUtf8("pushButton_2"));
sizePolicy.setHeightForWidth(pushButton_2->sizePolicy().hasHeightForWidth());
pushButton_2->setSizePolicy(sizePolicy);
pushButton_2->setIcon(icon);
horizontalLayout_5->addWidget(pushButton_2);
gridLayout->addWidget(widget_4, 2, 4, 1, 2);
horizontalLayout_2->addWidget(widget);
verticalLayout->addWidget(frameInfo);
tabWidget = new QTabWidget(formBudget);
tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
tabFile = new QWidget();
tabFile->setObjectName(QString::fromUtf8("tabFile"));
widget_2 = new QWidget(tabFile);
widget_2->setObjectName(QString::fromUtf8("widget_2"));
widget_2->setGeometry(QRect(10, 10, 771, 201));
gridLayout_2 = new QGridLayout(widget_2);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
gridLayout_2->setHorizontalSpacing(10);
gridLayout_2->setVerticalSpacing(5);
gridLayout_2->setContentsMargins(0, 0, 0, 0);
label_15 = new QLabel(widget_2);
label_15->setObjectName(QString::fromUtf8("label_15"));
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(label_15->sizePolicy().hasHeightForWidth());
label_15->setSizePolicy(sizePolicy2);
label_15->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_15, 4, 0, 1, 1);
label_14 = new QLabel(widget_2);
label_14->setObjectName(QString::fromUtf8("label_14"));
sizePolicy2.setHeightForWidth(label_14->sizePolicy().hasHeightForWidth());
label_14->setSizePolicy(sizePolicy2);
label_14->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_14, 3, 0, 1, 1);
lineEdit_8 = new QLineEdit(widget_2);
lineEdit_8->setObjectName(QString::fromUtf8("lineEdit_8"));
sizePolicy.setHeightForWidth(lineEdit_8->sizePolicy().hasHeightForWidth());
lineEdit_8->setSizePolicy(sizePolicy);
lineEdit_8->setMinimumSize(QSize(120, 0));
gridLayout_2->addWidget(lineEdit_8, 3, 2, 1, 1);
label_25 = new QLabel(widget_2);
label_25->setObjectName(QString::fromUtf8("label_25"));
sizePolicy2.setHeightForWidth(label_25->sizePolicy().hasHeightForWidth());
label_25->setSizePolicy(sizePolicy2);
label_25->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_25, 0, 3, 1, 1);
label_11 = new QLabel(widget_2);
label_11->setObjectName(QString::fromUtf8("label_11"));
sizePolicy2.setHeightForWidth(label_11->sizePolicy().hasHeightForWidth());
label_11->setSizePolicy(sizePolicy2);
label_11->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_11, 0, 0, 1, 1);
lineEdit_9 = new QLineEdit(widget_2);
lineEdit_9->setObjectName(QString::fromUtf8("lineEdit_9"));
sizePolicy.setHeightForWidth(lineEdit_9->sizePolicy().hasHeightForWidth());
lineEdit_9->setSizePolicy(sizePolicy);
lineEdit_9->setMinimumSize(QSize(120, 0));
gridLayout_2->addWidget(lineEdit_9, 4, 2, 1, 1);
editdateCreated = new QDateEdit(widget_2);
editdateCreated->setObjectName(QString::fromUtf8("editdateCreated"));
sizePolicy.setHeightForWidth(editdateCreated->sizePolicy().hasHeightForWidth());
editdateCreated->setSizePolicy(sizePolicy);
editdateCreated->setMinimumSize(QSize(120, 0));
editdateCreated->setCalendarPopup(true);
gridLayout_2->addWidget(editdateCreated, 0, 2, 1, 1);
editdateUpdate = new QDateEdit(widget_2);
editdateUpdate->setObjectName(QString::fromUtf8("editdateUpdate"));
sizePolicy.setHeightForWidth(editdateUpdate->sizePolicy().hasHeightForWidth());
editdateUpdate->setSizePolicy(sizePolicy);
editdateUpdate->setMinimumSize(QSize(120, 0));
editdateUpdate->setAlignment(Qt::AlignCenter);
editdateUpdate->setReadOnly(true);
editdateUpdate->setButtonSymbols(QAbstractSpinBox::NoButtons);
gridLayout_2->addWidget(editdateUpdate, 0, 4, 1, 1);
editdateValidUntill = new QDateEdit(widget_2);
editdateValidUntill->setObjectName(QString::fromUtf8("editdateValidUntill"));
sizePolicy.setHeightForWidth(editdateValidUntill->sizePolicy().hasHeightForWidth());
editdateValidUntill->setSizePolicy(sizePolicy);
editdateValidUntill->setMinimumSize(QSize(120, 0));
editdateValidUntill->setCalendarPopup(true);
gridLayout_2->addWidget(editdateValidUntill, 1, 4, 1, 1);
editdateValidUntill_2 = new QDateEdit(widget_2);
editdateValidUntill_2->setObjectName(QString::fromUtf8("editdateValidUntill_2"));
sizePolicy.setHeightForWidth(editdateValidUntill_2->sizePolicy().hasHeightForWidth());
editdateValidUntill_2->setSizePolicy(sizePolicy);
editdateValidUntill_2->setMinimumSize(QSize(120, 0));
editdateValidUntill_2->setCalendarPopup(true);
gridLayout_2->addWidget(editdateValidUntill_2, 1, 2, 1, 1);
label_12 = new QLabel(widget_2);
label_12->setObjectName(QString::fromUtf8("label_12"));
sizePolicy2.setHeightForWidth(label_12->sizePolicy().hasHeightForWidth());
label_12->setSizePolicy(sizePolicy2);
label_12->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_12, 1, 3, 1, 1);
edit = new QLabel(widget_2);
edit->setObjectName(QString::fromUtf8("edit"));
sizePolicy2.setHeightForWidth(edit->sizePolicy().hasHeightForWidth());
edit->setSizePolicy(sizePolicy2);
edit->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(edit, 1, 0, 1, 1);
tabWidget->addTab(tabFile, QString());
tabBudget = new QWidget();
tabBudget->setObjectName(QString::fromUtf8("tabBudget"));
verticalLayout_2 = new QVBoxLayout(tabBudget);
verticalLayout_2->setSpacing(2);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
verticalLayout_2->setContentsMargins(0, 0, 0, 0);
treeView = new QMTreeView(tabBudget);
treeView->setObjectName(QString::fromUtf8("treeView"));
treeView->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed);
treeView->setTabKeyNavigation(true);
treeView->setAlternatingRowColors(true);
treeView->setSelectionBehavior(QAbstractItemView::SelectItems);
treeView->setIconSize(QSize(20, 20));
treeView->setAnimated(true);
verticalLayout_2->addWidget(treeView);
frame_3 = new QFrame(tabBudget);
frame_3->setObjectName(QString::fromUtf8("frame_3"));
frame_3->setFrameShape(QFrame::StyledPanel);
frame_3->setFrameShadow(QFrame::Raised);
horizontalLayout = new QHBoxLayout(frame_3);
horizontalLayout->setSpacing(10);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
label = new QLabel(frame_3);
label->setObjectName(QString::fromUtf8("label"));
horizontalLayout->addWidget(label);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer);
label_2 = new QLabel(frame_3);
label_2->setObjectName(QString::fromUtf8("label_2"));
horizontalLayout->addWidget(label_2);
editCost = new QLineEdit(frame_3);
editCost->setObjectName(QString::fromUtf8("editCost"));
sizePolicy.setHeightForWidth(editCost->sizePolicy().hasHeightForWidth());
editCost->setSizePolicy(sizePolicy);
editCost->setMinimumSize(QSize(100, 0));
editCost->setReadOnly(true);
horizontalLayout->addWidget(editCost);
label_3 = new QLabel(frame_3);
label_3->setObjectName(QString::fromUtf8("label_3"));
horizontalLayout->addWidget(label_3);
editPrice = new QLineEdit(frame_3);
editPrice->setObjectName(QString::fromUtf8("editPrice"));
sizePolicy.setHeightForWidth(editPrice->sizePolicy().hasHeightForWidth());
editPrice->setSizePolicy(sizePolicy);
editPrice->setMinimumSize(QSize(100, 0));
editPrice->setReadOnly(true);
horizontalLayout->addWidget(editPrice);
label_4 = new QLabel(frame_3);
label_4->setObjectName(QString::fromUtf8("label_4"));
horizontalLayout->addWidget(label_4);
editProfit = new QLineEdit(frame_3);
editProfit->setObjectName(QString::fromUtf8("editProfit"));
sizePolicy.setHeightForWidth(editProfit->sizePolicy().hasHeightForWidth());
editProfit->setSizePolicy(sizePolicy);
editProfit->setMinimumSize(QSize(100, 0));
editProfit->setReadOnly(true);
horizontalLayout->addWidget(editProfit);
verticalLayout_2->addWidget(frame_3);
tabWidget->addTab(tabBudget, QString());
tabSumary = new QWidget();
tabSumary->setObjectName(QString::fromUtf8("tabSumary"));
widget_3 = new QWidget(tabSumary);
widget_3->setObjectName(QString::fromUtf8("widget_3"));
widget_3->setGeometry(QRect(10, 10, 451, 131));
gridLayout_3 = new QGridLayout(widget_3);
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
gridLayout_3->setHorizontalSpacing(0);
gridLayout_3->setVerticalSpacing(5);
gridLayout_3->setContentsMargins(2, 2, 2, 2);
lineEdit_13 = new QLineEdit(widget_3);
lineEdit_13->setObjectName(QString::fromUtf8("lineEdit_13"));
lineEdit_13->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_13, 3, 3, 1, 1);
lineEdit_16 = new QLineEdit(widget_3);
lineEdit_16->setObjectName(QString::fromUtf8("lineEdit_16"));
lineEdit_16->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_16, 5, 3, 1, 1);
label_19 = new QLabel(widget_3);
label_19->setObjectName(QString::fromUtf8("label_19"));
label_19->setMinimumSize(QSize(80, 25));
label_19->setStyleSheet(QString::fromUtf8("background-color: rgb(191, 191, 191);"));
label_19->setAlignment(Qt::AlignCenter);
gridLayout_3->addWidget(label_19, 0, 3, 1, 1);
lineEdit_6 = new QLineEdit(widget_3);
lineEdit_6->setObjectName(QString::fromUtf8("lineEdit_6"));
lineEdit_6->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_6, 1, 2, 1, 1);
label_17 = new QLabel(widget_3);
label_17->setObjectName(QString::fromUtf8("label_17"));
label_17->setMinimumSize(QSize(80, 25));
label_17->setStyleSheet(QString::fromUtf8("background-color: rgb(191, 191, 191);"));
label_17->setAlignment(Qt::AlignCenter);
gridLayout_3->addWidget(label_17, 0, 1, 1, 1);
lineEdit_10 = new QLineEdit(widget_3);
lineEdit_10->setObjectName(QString::fromUtf8("lineEdit_10"));
lineEdit_10->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_10, 1, 3, 1, 1);
label_20 = new QLabel(widget_3);
label_20->setObjectName(QString::fromUtf8("label_20"));
gridLayout_3->addWidget(label_20, 1, 0, 1, 1);
label_22 = new QLabel(widget_3);
label_22->setObjectName(QString::fromUtf8("label_22"));
gridLayout_3->addWidget(label_22, 5, 0, 1, 1);
lineEdit_12 = new QLineEdit(widget_3);
lineEdit_12->setObjectName(QString::fromUtf8("lineEdit_12"));
lineEdit_12->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_12, 3, 2, 1, 1);
lineEdit_15 = new QLineEdit(widget_3);
lineEdit_15->setObjectName(QString::fromUtf8("lineEdit_15"));
lineEdit_15->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_15, 5, 2, 1, 1);
lineEdit_11 = new QLineEdit(widget_3);
lineEdit_11->setObjectName(QString::fromUtf8("lineEdit_11"));
lineEdit_11->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_11, 3, 1, 1, 1);
label_18 = new QLabel(widget_3);
label_18->setObjectName(QString::fromUtf8("label_18"));
label_18->setMinimumSize(QSize(80, 25));
label_18->setStyleSheet(QString::fromUtf8("background-color: rgb(191, 191, 191);"));
label_18->setAlignment(Qt::AlignCenter);
gridLayout_3->addWidget(label_18, 0, 2, 1, 1);
label_16 = new QLabel(widget_3);
label_16->setObjectName(QString::fromUtf8("label_16"));
label_16->setMinimumSize(QSize(80, 25));
label_16->setStyleSheet(QString::fromUtf8("background-color: rgb(191, 191, 191);"));
gridLayout_3->addWidget(label_16, 0, 0, 1, 1);
lineEdit_5 = new QLineEdit(widget_3);
lineEdit_5->setObjectName(QString::fromUtf8("lineEdit_5"));
lineEdit_5->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_5, 1, 1, 1, 1);
label_21 = new QLabel(widget_3);
label_21->setObjectName(QString::fromUtf8("label_21"));
gridLayout_3->addWidget(label_21, 3, 0, 1, 1);
lineEdit_14 = new QLineEdit(widget_3);
lineEdit_14->setObjectName(QString::fromUtf8("lineEdit_14"));
lineEdit_14->setReadOnly(true);
gridLayout_3->addWidget(lineEdit_14, 5, 1, 1, 1);
separatorLine = new QLabel(widget_3);
separatorLine->setObjectName(QString::fromUtf8("separatorLine"));
separatorLine->setMinimumSize(QSize(0, 1));
separatorLine->setMaximumSize(QSize(16777215, 1));
separatorLine->setStyleSheet(QString::fromUtf8("border: 1px solid rgba(0, 0, 0, 0.05);"));
gridLayout_3->addWidget(separatorLine, 2, 0, 1, 4);
separatorLine_2 = new QLabel(widget_3);
separatorLine_2->setObjectName(QString::fromUtf8("separatorLine_2"));
separatorLine_2->setMinimumSize(QSize(0, 1));
separatorLine_2->setMaximumSize(QSize(16777215, 1));
separatorLine_2->setStyleSheet(QString::fromUtf8("border: 1px solid rgba(0, 0, 0, 0.05);"));
gridLayout_3->addWidget(separatorLine_2, 4, 0, 1, 4);
tabWidget->addTab(tabSumary, QString());
tabContacts = new QWidget();
tabContacts->setObjectName(QString::fromUtf8("tabContacts"));
tabWidget->addTab(tabContacts, QString());
tabNotes = new QWidget();
tabNotes->setObjectName(QString::fromUtf8("tabNotes"));
verticalLayout_3 = new QVBoxLayout(tabNotes);
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
scrollArea = new QScrollArea(tabNotes);
scrollArea->setObjectName(QString::fromUtf8("scrollArea"));
scrollArea->setWidgetResizable(true);
scrollAreaWidgetContents = new QWidget();
scrollAreaWidgetContents->setObjectName(QString::fromUtf8("scrollAreaWidgetContents"));
scrollAreaWidgetContents->setGeometry(QRect(0, 0, 1019, 430));
verticalLayout_6 = new QVBoxLayout(scrollAreaWidgetContents);
verticalLayout_6->setSpacing(10);
verticalLayout_6->setObjectName(QString::fromUtf8("verticalLayout_6"));
verticalLayout_6->setContentsMargins(0, 0, 0, 10);
frameTable = new QFrame(scrollAreaWidgetContents);
frameTable->setObjectName(QString::fromUtf8("frameTable"));
sizePolicy1.setHeightForWidth(frameTable->sizePolicy().hasHeightForWidth());
frameTable->setSizePolicy(sizePolicy1);
frameTable->setMinimumSize(QSize(0, 200));
frameTable->setFrameShape(QFrame::StyledPanel);
frameTable->setFrameShadow(QFrame::Raised);
verticalLayout_4 = new QVBoxLayout(frameTable);
verticalLayout_4->setSpacing(5);
verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
verticalLayout_4->setContentsMargins(0, 0, 0, 0);
Title = new QLabel(frameTable);
Title->setObjectName(QString::fromUtf8("Title"));
Title->setMinimumSize(QSize(0, 20));
Title->setMaximumSize(QSize(16777215, 20));
Title->setStyleSheet(QString::fromUtf8("background-color: rgb(124, 124, 124);\n"
"color: rgb(255, 255, 255);"));
verticalLayout_4->addWidget(Title);
Content = new QWidget(frameTable);
Content->setObjectName(QString::fromUtf8("Content"));
verticalLayout_7 = new QVBoxLayout(Content);
verticalLayout_7->setSpacing(0);
verticalLayout_7->setObjectName(QString::fromUtf8("verticalLayout_7"));
verticalLayout_7->setContentsMargins(0, 0, 0, 0);
textNotePrivate = new QWidget(Content);
textNotePrivate->setObjectName(QString::fromUtf8("textNotePrivate"));
verticalLayout_7->addWidget(textNotePrivate);
verticalLayout_4->addWidget(Content);
verticalLayout_6->addWidget(frameTable);
frameTable_2 = new QFrame(scrollAreaWidgetContents);
frameTable_2->setObjectName(QString::fromUtf8("frameTable_2"));
sizePolicy1.setHeightForWidth(frameTable_2->sizePolicy().hasHeightForWidth());
frameTable_2->setSizePolicy(sizePolicy1);
frameTable_2->setMinimumSize(QSize(0, 200));
frameTable_2->setFrameShape(QFrame::StyledPanel);
frameTable_2->setFrameShadow(QFrame::Raised);
verticalLayout_5 = new QVBoxLayout(frameTable_2);
verticalLayout_5->setSpacing(5);
verticalLayout_5->setObjectName(QString::fromUtf8("verticalLayout_5"));
verticalLayout_5->setContentsMargins(0, 0, 0, 0);
Title_2 = new QLabel(frameTable_2);
Title_2->setObjectName(QString::fromUtf8("Title_2"));
Title_2->setMinimumSize(QSize(0, 20));
Title_2->setMaximumSize(QSize(16777215, 20));
Title_2->setStyleSheet(QString::fromUtf8("background-color: rgb(124, 124, 124);\n"
"color: rgb(255, 255, 255);"));
verticalLayout_5->addWidget(Title_2);
Content_2 = new QWidget(frameTable_2);
Content_2->setObjectName(QString::fromUtf8("Content_2"));
verticalLayout_8 = new QVBoxLayout(Content_2);
verticalLayout_8->setSpacing(0);
verticalLayout_8->setObjectName(QString::fromUtf8("verticalLayout_8"));
verticalLayout_8->setContentsMargins(0, 0, 0, 0);
textNotePublic = new QWidget(Content_2);
textNotePublic->setObjectName(QString::fromUtf8("textNotePublic"));
verticalLayout_8->addWidget(textNotePublic);
verticalLayout_5->addWidget(Content_2);
verticalLayout_6->addWidget(frameTable_2);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout_6->addItem(verticalSpacer);
scrollArea->setWidget(scrollAreaWidgetContents);
verticalLayout_3->addWidget(scrollArea);
tabWidget->addTab(tabNotes, QString());
verticalLayout->addWidget(tabWidget);
retranslateUi(formBudget);
tabWidget->setCurrentIndex(1);
QMetaObject::connectSlotsByName(formBudget);
} // setupUi
void retranslateUi(QWidget *formBudget)
{
formBudget->setWindowTitle(QCoreApplication::translate("formBudget", "Form", nullptr));
buttonValidate->setText(QCoreApplication::translate("formBudget", "Validar", nullptr));
buttonSave->setText(QCoreApplication::translate("formBudget", "Guardar", nullptr));
buttonInsertChild->setText(QCoreApplication::translate("formBudget", "...", nullptr));
buttonInsertRow->setText(QCoreApplication::translate("formBudget", "...", nullptr));
buttonMaterials->setText(QCoreApplication::translate("formBudget", "...", nullptr));
buttoMachinary->setText(QCoreApplication::translate("formBudget", "...", nullptr));
buttonPercent->setText(QString());
toolButton_4->setText(QString());
buttonRemoveRow->setText(QCoreApplication::translate("formBudget", "...", nullptr));
toolButton_10->setText(QCoreApplication::translate("formBudget", "...", nullptr));
label_8->setText(QCoreApplication::translate("formBudget", "Nombre", nullptr));
label_23->setText(QCoreApplication::translate("formBudget", "Estado", nullptr));
comboState->setItemText(0, QCoreApplication::translate("formBudget", "Borrador", nullptr));
comboState->setItemText(1, QCoreApplication::translate("formBudget", "Enviado", nullptr));
comboState->setItemText(2, QCoreApplication::translate("formBudget", "En revisi\303\263n", nullptr));
comboState->setItemText(3, QCoreApplication::translate("formBudget", "Aprobado", nullptr));
comboState->setItemText(4, QCoreApplication::translate("formBudget", "Rechazado", nullptr));
label_9->setText(QCoreApplication::translate("formBudget", "Proyecto", nullptr));
label_7->setText(QCoreApplication::translate("formBudget", "Cliente", nullptr));
label_10->setText(QCoreApplication::translate("formBudget", "Nombre", nullptr));
label_5->setText(QCoreApplication::translate("formBudget", "C\303\263digo", nullptr));
label_6->setText(QCoreApplication::translate("formBudget", "T\303\255tulo", nullptr));
label_24->setText(QCoreApplication::translate("formBudget", "Versi\303\263n", nullptr));
editVersion->setItemText(0, QCoreApplication::translate("formBudget", "0", nullptr));
pushButton->setText(QString());
pushButton_2->setText(QString());
label_15->setText(QCoreApplication::translate("formBudget", "Tipo de Pago", nullptr));
label_14->setText(QCoreApplication::translate("formBudget", "Condificiones de pago", nullptr));
label_25->setText(QCoreApplication::translate("formBudget", "Fecha de modificaci\303\263n", nullptr));
label_11->setText(QCoreApplication::translate("formBudget", "Fecha", nullptr));
editdateCreated->setDisplayFormat(QCoreApplication::translate("formBudget", "dd/MM/yyyy", nullptr));
editdateUpdate->setDisplayFormat(QCoreApplication::translate("formBudget", "dd/MM/yyyy", nullptr));
editdateValidUntill->setDisplayFormat(QCoreApplication::translate("formBudget", "dd/MM/yyyy", nullptr));
editdateValidUntill_2->setDisplayFormat(QCoreApplication::translate("formBudget", "dd/MM/yyyy", nullptr));
label_12->setText(QCoreApplication::translate("formBudget", "Fecha fin de validez", nullptr));
edit->setText(QCoreApplication::translate("formBudget", "Fecha de env\303\255o", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabFile), QCoreApplication::translate("formBudget", "Ficha", nullptr));
label->setText(QCoreApplication::translate("formBudget", "Totales", nullptr));
label_2->setText(QCoreApplication::translate("formBudget", "Coste", nullptr));
label_3->setText(QCoreApplication::translate("formBudget", "Previo venta", nullptr));
label_4->setText(QCoreApplication::translate("formBudget", "Margen", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabBudget), QCoreApplication::translate("formBudget", "Presupuesto", nullptr));
label_19->setText(QCoreApplication::translate("formBudget", "Margen", nullptr));
label_17->setText(QCoreApplication::translate("formBudget", "Precio de venta", nullptr));
label_20->setText(QCoreApplication::translate("formBudget", "Productos", nullptr));
label_22->setText(QCoreApplication::translate("formBudget", "Total", nullptr));
label_18->setText(QCoreApplication::translate("formBudget", "Precio de Compra", nullptr));
label_16->setText(QCoreApplication::translate("formBudget", " Descripci\303\263n", nullptr));
label_21->setText(QCoreApplication::translate("formBudget", "Servicios", nullptr));
separatorLine->setText(QString());
separatorLine_2->setText(QString());
tabWidget->setTabText(tabWidget->indexOf(tabSumary), QCoreApplication::translate("formBudget", "Resumen", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabContacts), QCoreApplication::translate("formBudget", "Contactos", nullptr));
Title->setText(QCoreApplication::translate("formBudget", "Nota Privada", nullptr));
Title_2->setText(QCoreApplication::translate("formBudget", "Nota P\303\272blica", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabNotes), QCoreApplication::translate("formBudget", "Notas", nullptr));
} // retranslateUi
};
namespace Ui {
class formBudget: public Ui_formBudget {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMBUDGET_H
+46
View File
@@ -0,0 +1,46 @@
/********************************************************************************
** Form generated from reading UI file 'formbudgetlist.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMBUDGETLIST_H
#define UI_FORMBUDGETLIST_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_FormBudgetList
{
public:
void setupUi(QWidget *FormBudgetList)
{
if (FormBudgetList->objectName().isEmpty())
FormBudgetList->setObjectName(QString::fromUtf8("FormBudgetList"));
FormBudgetList->resize(400, 300);
retranslateUi(FormBudgetList);
QMetaObject::connectSlotsByName(FormBudgetList);
} // setupUi
void retranslateUi(QWidget *FormBudgetList)
{
FormBudgetList->setWindowTitle(QCoreApplication::translate("FormBudgetList", "Form", nullptr));
} // retranslateUi
};
namespace Ui {
class FormBudgetList: public Ui_FormBudgetList {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMBUDGETLIST_H
+126
View File
@@ -0,0 +1,126 @@
/********************************************************************************
** Form generated from reading UI file 'formelementlist.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMELEMENTLIST_H
#define UI_FORMELEMENTLIST_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QFrame>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_formElementList
{
public:
QVBoxLayout *verticalLayout_2;
QTableView *tableView;
QFrame *frame_2;
QHBoxLayout *horizontalLayout;
QPushButton *buttonNew;
QPushButton *buttonEdit;
QPushButton *buttonClone;
QPushButton *buttonDelete;
QPushButton *buttonUpdate;
void setupUi(QWidget *formElementList)
{
if (formElementList->objectName().isEmpty())
formElementList->setObjectName(QString::fromUtf8("formElementList"));
formElementList->resize(631, 436);
verticalLayout_2 = new QVBoxLayout(formElementList);
verticalLayout_2->setSpacing(0);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
verticalLayout_2->setContentsMargins(0, 0, 0, 0);
tableView = new QTableView(formElementList);
tableView->setObjectName(QString::fromUtf8("tableView"));
tableView->setSelectionMode(QAbstractItemView::MultiSelection);
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
verticalLayout_2->addWidget(tableView);
frame_2 = new QFrame(formElementList);
frame_2->setObjectName(QString::fromUtf8("frame_2"));
frame_2->setFrameShape(QFrame::StyledPanel);
frame_2->setFrameShadow(QFrame::Raised);
horizontalLayout = new QHBoxLayout(frame_2);
horizontalLayout->setSpacing(0);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
buttonNew = new QPushButton(frame_2);
buttonNew->setObjectName(QString::fromUtf8("buttonNew"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/add-file.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonNew->setIcon(icon);
horizontalLayout->addWidget(buttonNew);
buttonEdit = new QPushButton(frame_2);
buttonEdit->setObjectName(QString::fromUtf8("buttonEdit"));
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/resources/icons/pencil.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonEdit->setIcon(icon1);
horizontalLayout->addWidget(buttonEdit);
buttonClone = new QPushButton(frame_2);
buttonClone->setObjectName(QString::fromUtf8("buttonClone"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/resources/icons/copy.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonClone->setIcon(icon2);
horizontalLayout->addWidget(buttonClone);
buttonDelete = new QPushButton(frame_2);
buttonDelete->setObjectName(QString::fromUtf8("buttonDelete"));
QIcon icon3;
icon3.addFile(QString::fromUtf8(":/resources/icons/recycle.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonDelete->setIcon(icon3);
horizontalLayout->addWidget(buttonDelete);
buttonUpdate = new QPushButton(frame_2);
buttonUpdate->setObjectName(QString::fromUtf8("buttonUpdate"));
horizontalLayout->addWidget(buttonUpdate);
verticalLayout_2->addWidget(frame_2);
retranslateUi(formElementList);
QMetaObject::connectSlotsByName(formElementList);
} // setupUi
void retranslateUi(QWidget *formElementList)
{
formElementList->setWindowTitle(QCoreApplication::translate("formElementList", "Elementos", nullptr));
buttonNew->setText(QCoreApplication::translate("formElementList", "Nuevo", nullptr));
buttonEdit->setText(QCoreApplication::translate("formElementList", "Editar", nullptr));
buttonClone->setText(QCoreApplication::translate("formElementList", "Duplicar", nullptr));
buttonDelete->setText(QCoreApplication::translate("formElementList", "Borrar", nullptr));
buttonUpdate->setText(QCoreApplication::translate("formElementList", "Actualizar", nullptr));
} // retranslateUi
};
namespace Ui {
class formElementList: public Ui_formElementList {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMELEMENTLIST_H
+46
View File
@@ -0,0 +1,46 @@
/********************************************************************************
** Form generated from reading UI file 'forminvoiceinlist.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMINVOICEINLIST_H
#define UI_FORMINVOICEINLIST_H
#include <QtCore/QVariant>
#include <QtWidgets/QApplication>
#include <QtWidgets/QDockWidget>
QT_BEGIN_NAMESPACE
class Ui_formInvoiceInList
{
public:
void setupUi(QDockWidget *formInvoiceInList)
{
if (formInvoiceInList->objectName().isEmpty())
formInvoiceInList->setObjectName(QString::fromUtf8("formInvoiceInList"));
formInvoiceInList->resize(596, 320);
retranslateUi(formInvoiceInList);
QMetaObject::connectSlotsByName(formInvoiceInList);
} // setupUi
void retranslateUi(QDockWidget *formInvoiceInList)
{
formInvoiceInList->setWindowTitle(QCoreApplication::translate("formInvoiceInList", "DockWidget", nullptr));
} // retranslateUi
};
namespace Ui {
class formInvoiceInList: public Ui_formInvoiceInList {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMINVOICEINLIST_H
+960
View File
@@ -0,0 +1,960 @@
/********************************************************************************
** Form generated from reading UI file 'formproduct.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMPRODUCT_H
#define UI_FORMPRODUCT_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QCheckBox>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDateEdit>
#include <QtWidgets/QDoubleSpinBox>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QTableView>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "avatarwidget.h"
#include "qmtreeview.h"
QT_BEGIN_NAMESPACE
class Ui_formProduct
{
public:
QAction *actionValidate;
QAction *actionSave;
QVBoxLayout *verticalLayout;
QFrame *MainToolBar;
QHBoxLayout *horizontalLayout_6;
QToolButton *buttonSave;
QToolButton *toolButton_9;
QSpacerItem *horizontalSpacer_5;
QToolButton *toolButton_10;
QFrame *frameInfo;
QHBoxLayout *horizontalLayout_2;
QFrame *frame_2;
QHBoxLayout *horizontalLayout_7;
AvatarWidget *Logo;
QWidget *widget;
QGridLayout *gridLayout;
QLabel *label_5;
QComboBox *comboSell;
QComboBox *comboBuy;
QLabel *label_9;
QLabel *label_7;
QLineEdit *editCode;
QLabel *label_6;
QLineEdit *editTitle;
QLabel *label_29;
QComboBox *comboUnit;
QCheckBox *checkState;
QLabel *label_25;
QComboBox *comboType2;
QComboBox *comboType1;
QTabWidget *tabWidget;
QWidget *tabFile;
QVBoxLayout *verticalLayout_2;
QScrollArea *scrollArea;
QWidget *scrollAreaWidgetContents_4;
QGridLayout *gridLayout_5;
QWidget *widget_4;
QHBoxLayout *horizontalLayout_5;
QLabel *label_14;
QDateEdit *editDischargeDate;
QLabel *label_23;
QDateEdit *editUpdateDate;
QGroupBox *groupBox_4;
QGridLayout *gridLayout_3;
QLabel *label_18;
QLabel *label_28;
QLabel *label_16;
QDoubleSpinBox *editPV;
QLabel *label;
QLabel *label_19;
QDoubleSpinBox *editMargin;
QLabel *label_13;
QDoubleSpinBox *editPC;
QComboBox *comboIVA;
QLabel *label_17;
QDoubleSpinBox *editDiscount;
QDoubleSpinBox *editPVP;
QDoubleSpinBox *editPVIVA;
QLabel *label_15;
QLabel *label_27;
QGroupBox *groupBox_6;
QGridLayout *gridLayout_4;
QLabel *label_20;
QDoubleSpinBox *editWidth;
QLabel *label_22;
QDoubleSpinBox *editWeight;
QDoubleSpinBox *editHeight;
QDoubleSpinBox *editLength;
QLabel *label_21;
QLabel *label_24;
QSpacerItem *horizontalSpacer_3;
QGroupBox *groupBox_5;
QHBoxLayout *horizontalLayout_4;
QTextEdit *editDescription;
QSpacerItem *verticalSpacer_2;
QWidget *tabAccount;
QVBoxLayout *verticalLayout_4;
QWidget *widget_2;
QGridLayout *gridLayout_2;
QLineEdit *lineEdit_7;
QLabel *label_4;
QLabel *label_2;
QLineEdit *lineEdit_8;
QLabel *label_10;
QLabel *label_12;
QLineEdit *lineEdit_5;
QSpacerItem *horizontalSpacer_2;
QLineEdit *lineEdit_4;
QLabel *label_3;
QLineEdit *lineEdit_6;
QLabel *label_11;
QLineEdit *lineEdit_3;
QSpacerItem *horizontalSpacer_4;
QSpacerItem *horizontalSpacer_6;
QSpacerItem *verticalSpacer;
QWidget *tabCompose;
QVBoxLayout *verticalLayout_3;
QWidget *widgetContener;
QVBoxLayout *verticalLayout_5;
QFrame *frame;
QHBoxLayout *horizontalLayout;
QToolButton *toolButton;
QToolButton *toolButton_2;
QToolButton *toolButton_3;
QToolButton *toolButton_4;
QToolButton *toolButton_6;
QToolButton *toolButton_5;
QSpacerItem *horizontalSpacer;
QMTreeView *treeView;
QWidget *tabSupplier;
QTableView *tableView;
QWidget *tabNotes;
void setupUi(QWidget *formProduct)
{
if (formProduct->objectName().isEmpty())
formProduct->setObjectName(QString::fromUtf8("formProduct"));
formProduct->resize(927, 617);
actionValidate = new QAction(formProduct);
actionValidate->setObjectName(QString::fromUtf8("actionValidate"));
actionSave = new QAction(formProduct);
actionSave->setObjectName(QString::fromUtf8("actionSave"));
verticalLayout = new QVBoxLayout(formProduct);
verticalLayout->setSpacing(5);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
verticalLayout->setContentsMargins(0, 0, 0, 0);
MainToolBar = new QFrame(formProduct);
MainToolBar->setObjectName(QString::fromUtf8("MainToolBar"));
MainToolBar->setFrameShape(QFrame::StyledPanel);
MainToolBar->setFrameShadow(QFrame::Raised);
horizontalLayout_6 = new QHBoxLayout(MainToolBar);
horizontalLayout_6->setSpacing(5);
horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
horizontalLayout_6->setContentsMargins(0, 0, 0, 0);
buttonSave = new QToolButton(MainToolBar);
buttonSave->setObjectName(QString::fromUtf8("buttonSave"));
horizontalLayout_6->addWidget(buttonSave);
toolButton_9 = new QToolButton(MainToolBar);
toolButton_9->setObjectName(QString::fromUtf8("toolButton_9"));
horizontalLayout_6->addWidget(toolButton_9);
horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_6->addItem(horizontalSpacer_5);
toolButton_10 = new QToolButton(MainToolBar);
toolButton_10->setObjectName(QString::fromUtf8("toolButton_10"));
horizontalLayout_6->addWidget(toolButton_10);
verticalLayout->addWidget(MainToolBar);
frameInfo = new QFrame(formProduct);
frameInfo->setObjectName(QString::fromUtf8("frameInfo"));
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(frameInfo->sizePolicy().hasHeightForWidth());
frameInfo->setSizePolicy(sizePolicy);
frameInfo->setMinimumSize(QSize(650, 0));
frameInfo->setFrameShape(QFrame::StyledPanel);
frameInfo->setFrameShadow(QFrame::Raised);
horizontalLayout_2 = new QHBoxLayout(frameInfo);
horizontalLayout_2->setSpacing(10);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
horizontalLayout_2->setContentsMargins(10, 10, 10, 10);
frame_2 = new QFrame(frameInfo);
frame_2->setObjectName(QString::fromUtf8("frame_2"));
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(frame_2->sizePolicy().hasHeightForWidth());
frame_2->setSizePolicy(sizePolicy1);
frame_2->setFrameShape(QFrame::StyledPanel);
frame_2->setFrameShadow(QFrame::Raised);
horizontalLayout_7 = new QHBoxLayout(frame_2);
horizontalLayout_7->setSpacing(0);
horizontalLayout_7->setObjectName(QString::fromUtf8("horizontalLayout_7"));
horizontalLayout_7->setContentsMargins(1, 1, 1, 1);
Logo = new AvatarWidget(frame_2);
Logo->setObjectName(QString::fromUtf8("Logo"));
sizePolicy1.setHeightForWidth(Logo->sizePolicy().hasHeightForWidth());
Logo->setSizePolicy(sizePolicy1);
Logo->setMinimumSize(QSize(130, 130));
horizontalLayout_7->addWidget(Logo);
horizontalLayout_2->addWidget(frame_2);
widget = new QWidget(frameInfo);
widget->setObjectName(QString::fromUtf8("widget"));
widget->setMinimumSize(QSize(400, 0));
gridLayout = new QGridLayout(widget);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout->setHorizontalSpacing(10);
gridLayout->setVerticalSpacing(5);
gridLayout->setContentsMargins(0, 0, 0, 0);
label_5 = new QLabel(widget);
label_5->setObjectName(QString::fromUtf8("label_5"));
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(label_5->sizePolicy().hasHeightForWidth());
label_5->setSizePolicy(sizePolicy2);
gridLayout->addWidget(label_5, 0, 1, 1, 1);
comboSell = new QComboBox(widget);
comboSell->addItem(QString());
comboSell->addItem(QString());
comboSell->setObjectName(QString::fromUtf8("comboSell"));
sizePolicy1.setHeightForWidth(comboSell->sizePolicy().hasHeightForWidth());
comboSell->setSizePolicy(sizePolicy1);
comboSell->setMinimumSize(QSize(120, 0));
comboSell->setMaximumSize(QSize(120, 16777215));
gridLayout->addWidget(comboSell, 5, 2, 1, 1);
comboBuy = new QComboBox(widget);
comboBuy->addItem(QString());
comboBuy->addItem(QString());
comboBuy->setObjectName(QString::fromUtf8("comboBuy"));
sizePolicy1.setHeightForWidth(comboBuy->sizePolicy().hasHeightForWidth());
comboBuy->setSizePolicy(sizePolicy1);
comboBuy->setMinimumSize(QSize(120, 0));
comboBuy->setMaximumSize(QSize(120, 16777215));
gridLayout->addWidget(comboBuy, 6, 2, 1, 1);
label_9 = new QLabel(widget);
label_9->setObjectName(QString::fromUtf8("label_9"));
sizePolicy2.setHeightForWidth(label_9->sizePolicy().hasHeightForWidth());
label_9->setSizePolicy(sizePolicy2);
gridLayout->addWidget(label_9, 6, 1, 1, 1);
label_7 = new QLabel(widget);
label_7->setObjectName(QString::fromUtf8("label_7"));
sizePolicy2.setHeightForWidth(label_7->sizePolicy().hasHeightForWidth());
label_7->setSizePolicy(sizePolicy2);
gridLayout->addWidget(label_7, 5, 1, 1, 1);
editCode = new QLineEdit(widget);
editCode->setObjectName(QString::fromUtf8("editCode"));
sizePolicy1.setHeightForWidth(editCode->sizePolicy().hasHeightForWidth());
editCode->setSizePolicy(sizePolicy1);
editCode->setMinimumSize(QSize(120, 0));
editCode->setMaximumSize(QSize(120, 16777215));
editCode->setMaxLength(20);
editCode->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
gridLayout->addWidget(editCode, 0, 2, 1, 1);
label_6 = new QLabel(widget);
label_6->setObjectName(QString::fromUtf8("label_6"));
sizePolicy2.setHeightForWidth(label_6->sizePolicy().hasHeightForWidth());
label_6->setSizePolicy(sizePolicy2);
gridLayout->addWidget(label_6, 1, 1, 1, 1);
editTitle = new QLineEdit(widget);
editTitle->setObjectName(QString::fromUtf8("editTitle"));
editTitle->setMaxLength(128);
gridLayout->addWidget(editTitle, 1, 2, 1, 4);
label_29 = new QLabel(widget);
label_29->setObjectName(QString::fromUtf8("label_29"));
gridLayout->addWidget(label_29, 5, 3, 1, 1);
comboUnit = new QComboBox(widget);
comboUnit->setObjectName(QString::fromUtf8("comboUnit"));
gridLayout->addWidget(comboUnit, 5, 4, 1, 1);
checkState = new QCheckBox(widget);
checkState->setObjectName(QString::fromUtf8("checkState"));
checkState->setChecked(true);
gridLayout->addWidget(checkState, 5, 5, 1, 1);
label_25 = new QLabel(widget);
label_25->setObjectName(QString::fromUtf8("label_25"));
gridLayout->addWidget(label_25, 0, 3, 1, 1);
comboType2 = new QComboBox(widget);
comboType2->addItem(QString());
comboType2->addItem(QString());
comboType2->setObjectName(QString::fromUtf8("comboType2"));
sizePolicy1.setHeightForWidth(comboType2->sizePolicy().hasHeightForWidth());
comboType2->setSizePolicy(sizePolicy1);
comboType2->setMinimumSize(QSize(120, 0));
gridLayout->addWidget(comboType2, 0, 4, 1, 1);
comboType1 = new QComboBox(widget);
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/box.svg"), QSize(), QIcon::Normal, QIcon::Off);
comboType1->addItem(icon, QString());
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/resources/icons/blocks.svg"), QSize(), QIcon::Normal, QIcon::Off);
comboType1->addItem(icon1, QString());
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/resources/icons/helmet.svg"), QSize(), QIcon::Normal, QIcon::Off);
comboType1->addItem(icon2, QString());
QIcon icon3;
icon3.addFile(QString::fromUtf8(":/resources/icons/gear.svg"), QSize(), QIcon::Normal, QIcon::Off);
comboType1->addItem(icon3, QString());
comboType1->addItem(QString());
comboType1->addItem(QString());
comboType1->setObjectName(QString::fromUtf8("comboType1"));
sizePolicy1.setHeightForWidth(comboType1->sizePolicy().hasHeightForWidth());
comboType1->setSizePolicy(sizePolicy1);
comboType1->setMinimumSize(QSize(120, 0));
gridLayout->addWidget(comboType1, 0, 5, 1, 1);
horizontalLayout_2->addWidget(widget, 0, Qt::AlignLeft|Qt::AlignTop);
verticalLayout->addWidget(frameInfo);
tabWidget = new QTabWidget(formProduct);
tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
tabFile = new QWidget();
tabFile->setObjectName(QString::fromUtf8("tabFile"));
verticalLayout_2 = new QVBoxLayout(tabFile);
verticalLayout_2->setSpacing(0);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
verticalLayout_2->setContentsMargins(0, 0, 0, 0);
scrollArea = new QScrollArea(tabFile);
scrollArea->setObjectName(QString::fromUtf8("scrollArea"));
scrollArea->setWidgetResizable(true);
scrollAreaWidgetContents_4 = new QWidget();
scrollAreaWidgetContents_4->setObjectName(QString::fromUtf8("scrollAreaWidgetContents_4"));
scrollAreaWidgetContents_4->setGeometry(QRect(0, 0, 921, 554));
gridLayout_5 = new QGridLayout(scrollAreaWidgetContents_4);
gridLayout_5->setSpacing(10);
gridLayout_5->setObjectName(QString::fromUtf8("gridLayout_5"));
gridLayout_5->setContentsMargins(10, 10, 10, 0);
widget_4 = new QWidget(scrollAreaWidgetContents_4);
widget_4->setObjectName(QString::fromUtf8("widget_4"));
horizontalLayout_5 = new QHBoxLayout(widget_4);
horizontalLayout_5->setSpacing(10);
horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5"));
horizontalLayout_5->setContentsMargins(0, 0, 0, 0);
label_14 = new QLabel(widget_4);
label_14->setObjectName(QString::fromUtf8("label_14"));
horizontalLayout_5->addWidget(label_14);
editDischargeDate = new QDateEdit(widget_4);
editDischargeDate->setObjectName(QString::fromUtf8("editDischargeDate"));
editDischargeDate->setMinimumSize(QSize(120, 0));
editDischargeDate->setAlignment(Qt::AlignCenter);
editDischargeDate->setCalendarPopup(true);
horizontalLayout_5->addWidget(editDischargeDate);
label_23 = new QLabel(widget_4);
label_23->setObjectName(QString::fromUtf8("label_23"));
horizontalLayout_5->addWidget(label_23);
editUpdateDate = new QDateEdit(widget_4);
editUpdateDate->setObjectName(QString::fromUtf8("editUpdateDate"));
editUpdateDate->setMinimumSize(QSize(120, 0));
editUpdateDate->setAlignment(Qt::AlignCenter);
editUpdateDate->setReadOnly(true);
editUpdateDate->setButtonSymbols(QAbstractSpinBox::NoButtons);
horizontalLayout_5->addWidget(editUpdateDate);
gridLayout_5->addWidget(widget_4, 0, 0, 1, 2);
groupBox_4 = new QGroupBox(scrollAreaWidgetContents_4);
groupBox_4->setObjectName(QString::fromUtf8("groupBox_4"));
gridLayout_3 = new QGridLayout(groupBox_4);
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
gridLayout_3->setHorizontalSpacing(10);
label_18 = new QLabel(groupBox_4);
label_18->setObjectName(QString::fromUtf8("label_18"));
gridLayout_3->addWidget(label_18, 7, 0, 1, 1);
label_28 = new QLabel(groupBox_4);
label_28->setObjectName(QString::fromUtf8("label_28"));
gridLayout_3->addWidget(label_28, 1, 0, 1, 1);
label_16 = new QLabel(groupBox_4);
label_16->setObjectName(QString::fromUtf8("label_16"));
gridLayout_3->addWidget(label_16, 5, 0, 1, 1);
editPV = new QDoubleSpinBox(groupBox_4);
editPV->setObjectName(QString::fromUtf8("editPV"));
sizePolicy1.setHeightForWidth(editPV->sizePolicy().hasHeightForWidth());
editPV->setSizePolicy(sizePolicy1);
editPV->setMinimumSize(QSize(120, 0));
editPV->setWrapping(true);
editPV->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editPV->setButtonSymbols(QAbstractSpinBox::NoButtons);
editPV->setMaximum(999999999.000000000000000);
gridLayout_3->addWidget(editPV, 6, 1, 1, 1);
label = new QLabel(groupBox_4);
label->setObjectName(QString::fromUtf8("label"));
gridLayout_3->addWidget(label, 0, 0, 1, 1);
label_19 = new QLabel(groupBox_4);
label_19->setObjectName(QString::fromUtf8("label_19"));
gridLayout_3->addWidget(label_19, 9, 0, 1, 1);
editMargin = new QDoubleSpinBox(groupBox_4);
editMargin->setObjectName(QString::fromUtf8("editMargin"));
sizePolicy1.setHeightForWidth(editMargin->sizePolicy().hasHeightForWidth());
editMargin->setSizePolicy(sizePolicy1);
editMargin->setMinimumSize(QSize(120, 0));
editMargin->setWrapping(true);
editMargin->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editMargin->setButtonSymbols(QAbstractSpinBox::NoButtons);
editMargin->setMaximum(100.000000000000000);
gridLayout_3->addWidget(editMargin, 5, 1, 1, 1);
label_13 = new QLabel(groupBox_4);
label_13->setObjectName(QString::fromUtf8("label_13"));
sizePolicy.setHeightForWidth(label_13->sizePolicy().hasHeightForWidth());
label_13->setSizePolicy(sizePolicy);
label_13->setMinimumSize(QSize(0, 1));
label_13->setMaximumSize(QSize(16777215, 1));
label_13->setStyleSheet(QString::fromUtf8("background-color: rgb(0, 0, 0);"));
gridLayout_3->addWidget(label_13, 8, 0, 1, 2);
editPC = new QDoubleSpinBox(groupBox_4);
editPC->setObjectName(QString::fromUtf8("editPC"));
sizePolicy1.setHeightForWidth(editPC->sizePolicy().hasHeightForWidth());
editPC->setSizePolicy(sizePolicy1);
editPC->setMinimumSize(QSize(120, 0));
editPC->setWrapping(true);
editPC->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editPC->setButtonSymbols(QAbstractSpinBox::NoButtons);
editPC->setMaximum(999999999.000000000000000);
gridLayout_3->addWidget(editPC, 3, 1, 1, 1);
comboIVA = new QComboBox(groupBox_4);
comboIVA->addItem(QString());
comboIVA->addItem(QString());
comboIVA->addItem(QString());
comboIVA->addItem(QString());
comboIVA->setObjectName(QString::fromUtf8("comboIVA"));
comboIVA->setMinimumSize(QSize(120, 0));
gridLayout_3->addWidget(comboIVA, 7, 1, 1, 1);
label_17 = new QLabel(groupBox_4);
label_17->setObjectName(QString::fromUtf8("label_17"));
gridLayout_3->addWidget(label_17, 6, 0, 1, 1);
editDiscount = new QDoubleSpinBox(groupBox_4);
editDiscount->setObjectName(QString::fromUtf8("editDiscount"));
editDiscount->setMinimumSize(QSize(120, 0));
editDiscount->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editDiscount->setButtonSymbols(QAbstractSpinBox::NoButtons);
editDiscount->setMaximum(100.000000000000000);
gridLayout_3->addWidget(editDiscount, 1, 1, 1, 1);
editPVP = new QDoubleSpinBox(groupBox_4);
editPVP->setObjectName(QString::fromUtf8("editPVP"));
editPVP->setMinimumSize(QSize(120, 0));
editPVP->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editPVP->setButtonSymbols(QAbstractSpinBox::NoButtons);
editPVP->setKeyboardTracking(false);
editPVP->setMaximum(999999999.000000000000000);
gridLayout_3->addWidget(editPVP, 0, 1, 1, 1);
editPVIVA = new QDoubleSpinBox(groupBox_4);
editPVIVA->setObjectName(QString::fromUtf8("editPVIVA"));
sizePolicy1.setHeightForWidth(editPVIVA->sizePolicy().hasHeightForWidth());
editPVIVA->setSizePolicy(sizePolicy1);
editPVIVA->setMinimumSize(QSize(120, 0));
editPVIVA->setWrapping(true);
editPVIVA->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editPVIVA->setReadOnly(true);
editPVIVA->setButtonSymbols(QAbstractSpinBox::NoButtons);
editPVIVA->setMaximum(999999999.000000000000000);
gridLayout_3->addWidget(editPVIVA, 9, 1, 1, 1);
label_15 = new QLabel(groupBox_4);
label_15->setObjectName(QString::fromUtf8("label_15"));
gridLayout_3->addWidget(label_15, 3, 0, 1, 1);
label_27 = new QLabel(groupBox_4);
label_27->setObjectName(QString::fromUtf8("label_27"));
sizePolicy.setHeightForWidth(label_27->sizePolicy().hasHeightForWidth());
label_27->setSizePolicy(sizePolicy);
label_27->setMaximumSize(QSize(16777215, 1));
label_27->setStyleSheet(QString::fromUtf8("background-color: rgb(0, 0, 0);"));
gridLayout_3->addWidget(label_27, 2, 0, 1, 2);
gridLayout_5->addWidget(groupBox_4, 1, 0, 1, 1);
groupBox_6 = new QGroupBox(scrollAreaWidgetContents_4);
groupBox_6->setObjectName(QString::fromUtf8("groupBox_6"));
gridLayout_4 = new QGridLayout(groupBox_6);
gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
gridLayout_4->setHorizontalSpacing(10);
label_20 = new QLabel(groupBox_6);
label_20->setObjectName(QString::fromUtf8("label_20"));
gridLayout_4->addWidget(label_20, 4, 0, 1, 1);
editWidth = new QDoubleSpinBox(groupBox_6);
editWidth->setObjectName(QString::fromUtf8("editWidth"));
sizePolicy1.setHeightForWidth(editWidth->sizePolicy().hasHeightForWidth());
editWidth->setSizePolicy(sizePolicy1);
editWidth->setMinimumSize(QSize(120, 0));
editWidth->setWrapping(true);
editWidth->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editWidth->setButtonSymbols(QAbstractSpinBox::NoButtons);
editWidth->setMaximum(999999999.000000000000000);
gridLayout_4->addWidget(editWidth, 0, 1, 1, 1);
label_22 = new QLabel(groupBox_6);
label_22->setObjectName(QString::fromUtf8("label_22"));
gridLayout_4->addWidget(label_22, 2, 0, 1, 1);
editWeight = new QDoubleSpinBox(groupBox_6);
editWeight->setObjectName(QString::fromUtf8("editWeight"));
sizePolicy1.setHeightForWidth(editWeight->sizePolicy().hasHeightForWidth());
editWeight->setSizePolicy(sizePolicy1);
editWeight->setMinimumSize(QSize(120, 0));
editWeight->setWrapping(true);
editWeight->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editWeight->setReadOnly(true);
editWeight->setButtonSymbols(QAbstractSpinBox::NoButtons);
editWeight->setMaximum(999999999.000000000000000);
gridLayout_4->addWidget(editWeight, 4, 1, 1, 1);
editHeight = new QDoubleSpinBox(groupBox_6);
editHeight->setObjectName(QString::fromUtf8("editHeight"));
sizePolicy1.setHeightForWidth(editHeight->sizePolicy().hasHeightForWidth());
editHeight->setSizePolicy(sizePolicy1);
editHeight->setMinimumSize(QSize(120, 0));
editHeight->setWrapping(true);
editHeight->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editHeight->setButtonSymbols(QAbstractSpinBox::NoButtons);
editHeight->setMaximum(999999999.000000000000000);
gridLayout_4->addWidget(editHeight, 2, 1, 1, 1);
editLength = new QDoubleSpinBox(groupBox_6);
editLength->setObjectName(QString::fromUtf8("editLength"));
sizePolicy1.setHeightForWidth(editLength->sizePolicy().hasHeightForWidth());
editLength->setSizePolicy(sizePolicy1);
editLength->setMinimumSize(QSize(120, 0));
editLength->setWrapping(true);
editLength->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editLength->setButtonSymbols(QAbstractSpinBox::NoButtons);
editLength->setMaximum(999999999.000000000000000);
gridLayout_4->addWidget(editLength, 3, 1, 1, 1);
label_21 = new QLabel(groupBox_6);
label_21->setObjectName(QString::fromUtf8("label_21"));
gridLayout_4->addWidget(label_21, 0, 0, 1, 1);
label_24 = new QLabel(groupBox_6);
label_24->setObjectName(QString::fromUtf8("label_24"));
gridLayout_4->addWidget(label_24, 3, 0, 1, 1);
gridLayout_5->addWidget(groupBox_6, 1, 1, 1, 1, Qt::AlignTop);
horizontalSpacer_3 = new QSpacerItem(165, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout_5->addItem(horizontalSpacer_3, 1, 2, 1, 1);
groupBox_5 = new QGroupBox(scrollAreaWidgetContents_4);
groupBox_5->setObjectName(QString::fromUtf8("groupBox_5"));
horizontalLayout_4 = new QHBoxLayout(groupBox_5);
horizontalLayout_4->setObjectName(QString::fromUtf8("horizontalLayout_4"));
editDescription = new QTextEdit(groupBox_5);
editDescription->setObjectName(QString::fromUtf8("editDescription"));
horizontalLayout_4->addWidget(editDescription);
gridLayout_5->addWidget(groupBox_5, 2, 0, 1, 3);
verticalSpacer_2 = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout_5->addItem(verticalSpacer_2, 3, 0, 1, 1);
scrollArea->setWidget(scrollAreaWidgetContents_4);
verticalLayout_2->addWidget(scrollArea);
tabWidget->addTab(tabFile, QString());
tabAccount = new QWidget();
tabAccount->setObjectName(QString::fromUtf8("tabAccount"));
verticalLayout_4 = new QVBoxLayout(tabAccount);
verticalLayout_4->setSpacing(10);
verticalLayout_4->setObjectName(QString::fromUtf8("verticalLayout_4"));
verticalLayout_4->setContentsMargins(10, 10, 10, 0);
widget_2 = new QWidget(tabAccount);
widget_2->setObjectName(QString::fromUtf8("widget_2"));
gridLayout_2 = new QGridLayout(widget_2);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
gridLayout_2->setHorizontalSpacing(10);
gridLayout_2->setVerticalSpacing(5);
gridLayout_2->setContentsMargins(0, 0, 0, 0);
lineEdit_7 = new QLineEdit(widget_2);
lineEdit_7->setObjectName(QString::fromUtf8("lineEdit_7"));
lineEdit_7->setMinimumSize(QSize(150, 0));
gridLayout_2->addWidget(lineEdit_7, 1, 3, 1, 1);
label_4 = new QLabel(widget_2);
label_4->setObjectName(QString::fromUtf8("label_4"));
gridLayout_2->addWidget(label_4, 2, 0, 1, 1);
label_2 = new QLabel(widget_2);
label_2->setObjectName(QString::fromUtf8("label_2"));
gridLayout_2->addWidget(label_2, 0, 0, 1, 1);
lineEdit_8 = new QLineEdit(widget_2);
lineEdit_8->setObjectName(QString::fromUtf8("lineEdit_8"));
lineEdit_8->setMinimumSize(QSize(150, 0));
gridLayout_2->addWidget(lineEdit_8, 2, 3, 1, 1);
label_10 = new QLabel(widget_2);
label_10->setObjectName(QString::fromUtf8("label_10"));
gridLayout_2->addWidget(label_10, 0, 2, 1, 1);
label_12 = new QLabel(widget_2);
label_12->setObjectName(QString::fromUtf8("label_12"));
gridLayout_2->addWidget(label_12, 2, 2, 1, 1);
lineEdit_5 = new QLineEdit(widget_2);
lineEdit_5->setObjectName(QString::fromUtf8("lineEdit_5"));
lineEdit_5->setMinimumSize(QSize(150, 0));
gridLayout_2->addWidget(lineEdit_5, 1, 1, 1, 1);
horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout_2->addItem(horizontalSpacer_2, 1, 6, 1, 1);
lineEdit_4 = new QLineEdit(widget_2);
lineEdit_4->setObjectName(QString::fromUtf8("lineEdit_4"));
lineEdit_4->setMinimumSize(QSize(150, 0));
gridLayout_2->addWidget(lineEdit_4, 0, 1, 1, 1);
label_3 = new QLabel(widget_2);
label_3->setObjectName(QString::fromUtf8("label_3"));
gridLayout_2->addWidget(label_3, 1, 0, 1, 1);
lineEdit_6 = new QLineEdit(widget_2);
lineEdit_6->setObjectName(QString::fromUtf8("lineEdit_6"));
lineEdit_6->setMinimumSize(QSize(150, 0));
gridLayout_2->addWidget(lineEdit_6, 2, 1, 1, 1);
label_11 = new QLabel(widget_2);
label_11->setObjectName(QString::fromUtf8("label_11"));
gridLayout_2->addWidget(label_11, 1, 2, 1, 1);
lineEdit_3 = new QLineEdit(widget_2);
lineEdit_3->setObjectName(QString::fromUtf8("lineEdit_3"));
lineEdit_3->setMinimumSize(QSize(150, 0));
gridLayout_2->addWidget(lineEdit_3, 0, 3, 1, 1);
horizontalSpacer_4 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout_2->addItem(horizontalSpacer_4, 1, 4, 1, 1);
horizontalSpacer_6 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout_2->addItem(horizontalSpacer_6, 1, 5, 1, 1);
verticalLayout_4->addWidget(widget_2);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
verticalLayout_4->addItem(verticalSpacer);
tabWidget->addTab(tabAccount, QString());
tabCompose = new QWidget();
tabCompose->setObjectName(QString::fromUtf8("tabCompose"));
verticalLayout_3 = new QVBoxLayout(tabCompose);
verticalLayout_3->setSpacing(5);
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
verticalLayout_3->setContentsMargins(0, 0, 0, 0);
widgetContener = new QWidget(tabCompose);
widgetContener->setObjectName(QString::fromUtf8("widgetContener"));
verticalLayout_5 = new QVBoxLayout(widgetContener);
verticalLayout_5->setSpacing(5);
verticalLayout_5->setObjectName(QString::fromUtf8("verticalLayout_5"));
verticalLayout_5->setContentsMargins(0, 0, 0, 0);
frame = new QFrame(widgetContener);
frame->setObjectName(QString::fromUtf8("frame"));
frame->setFrameShape(QFrame::StyledPanel);
frame->setFrameShadow(QFrame::Raised);
horizontalLayout = new QHBoxLayout(frame);
horizontalLayout->setSpacing(0);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
toolButton = new QToolButton(frame);
toolButton->setObjectName(QString::fromUtf8("toolButton"));
toolButton->setIcon(icon);
horizontalLayout->addWidget(toolButton);
toolButton_2 = new QToolButton(frame);
toolButton_2->setObjectName(QString::fromUtf8("toolButton_2"));
toolButton_2->setIcon(icon1);
horizontalLayout->addWidget(toolButton_2);
toolButton_3 = new QToolButton(frame);
toolButton_3->setObjectName(QString::fromUtf8("toolButton_3"));
toolButton_3->setIcon(icon3);
horizontalLayout->addWidget(toolButton_3);
toolButton_4 = new QToolButton(frame);
toolButton_4->setObjectName(QString::fromUtf8("toolButton_4"));
toolButton_4->setIcon(icon2);
horizontalLayout->addWidget(toolButton_4);
toolButton_6 = new QToolButton(frame);
toolButton_6->setObjectName(QString::fromUtf8("toolButton_6"));
horizontalLayout->addWidget(toolButton_6);
toolButton_5 = new QToolButton(frame);
toolButton_5->setObjectName(QString::fromUtf8("toolButton_5"));
QIcon icon4;
icon4.addFile(QString::fromUtf8(":/resources/icons/delete.svg"), QSize(), QIcon::Normal, QIcon::Off);
toolButton_5->setIcon(icon4);
horizontalLayout->addWidget(toolButton_5);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer);
verticalLayout_5->addWidget(frame);
treeView = new QMTreeView(widgetContener);
treeView->setObjectName(QString::fromUtf8("treeView"));
treeView->setEditTriggers(QAbstractItemView::AnyKeyPressed|QAbstractItemView::DoubleClicked|QAbstractItemView::EditKeyPressed);
verticalLayout_5->addWidget(treeView);
verticalLayout_3->addWidget(widgetContener);
tabWidget->addTab(tabCompose, QString());
tabSupplier = new QWidget();
tabSupplier->setObjectName(QString::fromUtf8("tabSupplier"));
tableView = new QTableView(tabSupplier);
tableView->setObjectName(QString::fromUtf8("tableView"));
tableView->setGeometry(QRect(40, 40, 256, 192));
tabWidget->addTab(tabSupplier, QString());
tabNotes = new QWidget();
tabNotes->setObjectName(QString::fromUtf8("tabNotes"));
tabWidget->addTab(tabNotes, QString());
verticalLayout->addWidget(tabWidget);
retranslateUi(formProduct);
tabWidget->setCurrentIndex(0);
QMetaObject::connectSlotsByName(formProduct);
} // setupUi
void retranslateUi(QWidget *formProduct)
{
formProduct->setWindowTitle(QCoreApplication::translate("formProduct", "Form", nullptr));
actionValidate->setText(QCoreApplication::translate("formProduct", "Validate", nullptr));
#if QT_CONFIG(shortcut)
actionValidate->setShortcut(QCoreApplication::translate("formProduct", "Shift+V", nullptr));
#endif // QT_CONFIG(shortcut)
actionSave->setText(QCoreApplication::translate("formProduct", "Save", nullptr));
#if QT_CONFIG(shortcut)
actionSave->setShortcut(QCoreApplication::translate("formProduct", "Ctrl+G", nullptr));
#endif // QT_CONFIG(shortcut)
buttonSave->setText(QCoreApplication::translate("formProduct", "Guardar", nullptr));
toolButton_9->setText(QCoreApplication::translate("formProduct", "...", nullptr));
toolButton_10->setText(QCoreApplication::translate("formProduct", "...", nullptr));
Logo->setText(QCoreApplication::translate("formProduct", "TextLabel", nullptr));
label_5->setText(QCoreApplication::translate("formProduct", "C\303\263digo", nullptr));
comboSell->setItemText(0, QCoreApplication::translate("formProduct", "En venta", nullptr));
comboSell->setItemText(1, QCoreApplication::translate("formProduct", "Fuera de venta", nullptr));
comboBuy->setItemText(0, QCoreApplication::translate("formProduct", "En compra", nullptr));
comboBuy->setItemText(1, QCoreApplication::translate("formProduct", "Fuera de compra", nullptr));
label_9->setText(QCoreApplication::translate("formProduct", "Estado de compra", nullptr));
label_7->setText(QCoreApplication::translate("formProduct", "Estado de venta", nullptr));
label_6->setText(QCoreApplication::translate("formProduct", "Etiqueta", nullptr));
label_29->setText(QCoreApplication::translate("formProduct", "Unidad", nullptr));
checkState->setText(QCoreApplication::translate("formProduct", "Activo", nullptr));
label_25->setText(QCoreApplication::translate("formProduct", "Tipo", nullptr));
comboType2->setItemText(0, QCoreApplication::translate("formProduct", "Servicio", nullptr));
comboType2->setItemText(1, QCoreApplication::translate("formProduct", "Producto", nullptr));
comboType1->setItemText(0, QCoreApplication::translate("formProduct", "Elemento compuesto", nullptr));
comboType1->setItemText(1, QCoreApplication::translate("formProduct", "Material", nullptr));
comboType1->setItemText(2, QCoreApplication::translate("formProduct", "Mano de obra", nullptr));
comboType1->setItemText(3, QCoreApplication::translate("formProduct", "Maquinaria", nullptr));
comboType1->setItemText(4, QCoreApplication::translate("formProduct", "Subcontratados", nullptr));
comboType1->setItemText(5, QCoreApplication::translate("formProduct", "Otro", nullptr));
label_14->setText(QCoreApplication::translate("formProduct", "Fecha de alta", nullptr));
editDischargeDate->setDisplayFormat(QCoreApplication::translate("formProduct", "dd/MM/yyyy", nullptr));
label_23->setText(QCoreApplication::translate("formProduct", "Fecha de la \303\272ltima actualizaci\303\263n", nullptr));
editUpdateDate->setDisplayFormat(QCoreApplication::translate("formProduct", "dd/MM/yyyy", nullptr));
groupBox_4->setTitle(QCoreApplication::translate("formProduct", "Precio", nullptr));
label_18->setText(QCoreApplication::translate("formProduct", "I.V.A.", nullptr));
label_28->setText(QCoreApplication::translate("formProduct", "Descuento", nullptr));
label_16->setText(QCoreApplication::translate("formProduct", "Margen", nullptr));
editPV->setSuffix(QCoreApplication::translate("formProduct", " \342\202\254", nullptr));
label->setText(QCoreApplication::translate("formProduct", "Precio Venta al P\303\272blico ", nullptr));
label_19->setText(QCoreApplication::translate("formProduct", "Precio de Venta con I.V.A.", nullptr));
editMargin->setSuffix(QCoreApplication::translate("formProduct", " %", nullptr));
label_13->setText(QString());
editPC->setSuffix(QCoreApplication::translate("formProduct", " \342\202\254", nullptr));
comboIVA->setItemText(0, QCoreApplication::translate("formProduct", "21%", nullptr));
comboIVA->setItemText(1, QCoreApplication::translate("formProduct", "10%", nullptr));
comboIVA->setItemText(2, QCoreApplication::translate("formProduct", "4%", nullptr));
comboIVA->setItemText(3, QCoreApplication::translate("formProduct", "Exento", nullptr));
label_17->setText(QCoreApplication::translate("formProduct", "Precio de Venta", nullptr));
editDiscount->setSuffix(QCoreApplication::translate("formProduct", " %", nullptr));
editPVP->setSuffix(QCoreApplication::translate("formProduct", " \342\202\254", nullptr));
editPVIVA->setSuffix(QCoreApplication::translate("formProduct", " \342\202\254", nullptr));
label_15->setText(QCoreApplication::translate("formProduct", "Precio de compra", nullptr));
label_27->setText(QString());
groupBox_6->setTitle(QCoreApplication::translate("formProduct", "Propiedades f\303\255sicas", nullptr));
label_20->setText(QCoreApplication::translate("formProduct", "Peso (Kg)", nullptr));
label_22->setText(QCoreApplication::translate("formProduct", "Alto (mm)", nullptr));
label_21->setText(QCoreApplication::translate("formProduct", "Ancho (mm)", nullptr));
label_24->setText(QCoreApplication::translate("formProduct", "Largo (mm)", nullptr));
groupBox_5->setTitle(QCoreApplication::translate("formProduct", "Descripci\303\263n", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabFile), QCoreApplication::translate("formProduct", "Ficha", nullptr));
label_4->setText(QCoreApplication::translate("formProduct", "C\303\263digo contable venta de exportaci\303\263n", nullptr));
label_2->setText(QCoreApplication::translate("formProduct", "C\303\263digo contable ventas", nullptr));
label_10->setText(QCoreApplication::translate("formProduct", "C\303\263digo contable compras", nullptr));
label_12->setText(QCoreApplication::translate("formProduct", "C\303\263digo contable compra de importaci\303\263n", nullptr));
label_3->setText(QCoreApplication::translate("formProduct", "C\303\263digo contable venta intercomunitaria", nullptr));
label_11->setText(QCoreApplication::translate("formProduct", "C\303\263digo contable compras intercomunitaria", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabAccount), QCoreApplication::translate("formProduct", "Contabilidad", nullptr));
toolButton->setText(QCoreApplication::translate("formProduct", "...", nullptr));
toolButton_2->setText(QCoreApplication::translate("formProduct", "...", nullptr));
toolButton_3->setText(QCoreApplication::translate("formProduct", "...", nullptr));
toolButton_4->setText(QCoreApplication::translate("formProduct", "...", nullptr));
toolButton_6->setText(QCoreApplication::translate("formProduct", "...", nullptr));
toolButton_5->setText(QCoreApplication::translate("formProduct", "...", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabCompose), QCoreApplication::translate("formProduct", "Composici\303\263n", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabSupplier), QCoreApplication::translate("formProduct", "Proveedores", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabNotes), QCoreApplication::translate("formProduct", "Notas", nullptr));
} // retranslateUi
};
namespace Ui {
class formProduct: public Ui_formProduct {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMPRODUCT_H
+730
View File
@@ -0,0 +1,730 @@
/********************************************************************************
** Form generated from reading UI file 'formthird.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMTHIRD_H
#define UI_FORMTHIRD_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QComboBox>
#include <QtWidgets/QDateEdit>
#include <QtWidgets/QFrame>
#include <QtWidgets/QGridLayout>
#include <QtWidgets/QGroupBox>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QLabel>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QPlainTextEdit>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTabWidget>
#include <QtWidgets/QTableView>
#include <QtWidgets/QTextEdit>
#include <QtWidgets/QToolButton>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
#include "avatarwidget.h"
QT_BEGIN_NAMESPACE
class Ui_formThird
{
public:
QVBoxLayout *verticalLayout;
QFrame *MainToolBar;
QHBoxLayout *horizontalLayout_6;
QToolButton *buttonSave;
QToolButton *toolButton_9;
QSpacerItem *horizontalSpacer_5;
QToolButton *toolButton_10;
QFrame *frameInfo;
QHBoxLayout *horizontalLayout_2;
QFrame *frame;
QVBoxLayout *verticalLayout_3;
AvatarWidget *Logo;
QWidget *widget;
QGridLayout *gridLayout;
QLabel *label_17;
QComboBox *comboState;
QLineEdit *editSupplierCode;
QLabel *label_7;
QLineEdit *editCIF;
QLineEdit *editName;
QComboBox *comboClient;
QComboBox *comboSupplier;
QLabel *label_3;
QLabel *label_2;
QSpacerItem *horizontalSpacer_2;
QLabel *label_9;
QLabel *label_15;
QLabel *label_5;
QLabel *label_6;
QLineEdit *editClientCode;
QLineEdit *editNickname;
QSpacerItem *horizontalSpacer;
QTabWidget *tabWidget;
QWidget *tabFile;
QVBoxLayout *verticalLayout_2;
QScrollArea *scrollArea;
QWidget *scrollAreaWidgetContents;
QGridLayout *gridLayout_4;
QWidget *widget_4;
QHBoxLayout *horizontalLayout_5;
QLabel *label_16;
QDateEdit *editDischargeDate;
QLabel *label_23;
QDateEdit *editUpdateDate;
QGroupBox *groupBox_5;
QGridLayout *gridLayout_3;
QLineEdit *editFax;
QLineEdit *editEmail;
QLabel *label_13;
QLabel *label_18;
QLineEdit *editPhone;
QLabel *label_12;
QLineEdit *editMobile;
QLineEdit *editWebside;
QLabel *label_14;
QGroupBox *groupBox_2;
QGridLayout *gridLayout_2;
QLabel *label_8;
QLineEdit *editCountry;
QPlainTextEdit *editAddress;
QLabel *label_11;
QLabel *label_10;
QLineEdit *editCity;
QLineEdit *editProvince;
QLabel *label_4;
QComboBox *comboCountry;
QLineEdit *editCP;
QWidget *widget_2;
QHBoxLayout *horizontalLayout;
QLabel *label_20;
QLineEdit *editIntraCode;
QSpacerItem *horizontalSpacer_3;
QSpacerItem *verticalSpacer;
QWidget *tabClient;
QLabel *label;
QLineEdit *editAccountClient;
QWidget *tabSupplier;
QLabel *label_19;
QLineEdit *editAccountSupplier;
QWidget *tabContacts;
QTableView *tableView;
QWidget *tabNotes;
QTextEdit *editPublicNotes;
QTextEdit *editPrivateNotes;
void setupUi(QWidget *formThird)
{
if (formThird->objectName().isEmpty())
formThird->setObjectName(QString::fromUtf8("formThird"));
formThird->resize(731, 595);
verticalLayout = new QVBoxLayout(formThird);
verticalLayout->setSpacing(5);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
verticalLayout->setContentsMargins(0, 0, 0, 0);
MainToolBar = new QFrame(formThird);
MainToolBar->setObjectName(QString::fromUtf8("MainToolBar"));
MainToolBar->setFrameShape(QFrame::StyledPanel);
MainToolBar->setFrameShadow(QFrame::Raised);
horizontalLayout_6 = new QHBoxLayout(MainToolBar);
horizontalLayout_6->setSpacing(5);
horizontalLayout_6->setObjectName(QString::fromUtf8("horizontalLayout_6"));
horizontalLayout_6->setContentsMargins(0, 0, 0, 0);
buttonSave = new QToolButton(MainToolBar);
buttonSave->setObjectName(QString::fromUtf8("buttonSave"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/save.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonSave->setIcon(icon);
buttonSave->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
horizontalLayout_6->addWidget(buttonSave);
toolButton_9 = new QToolButton(MainToolBar);
toolButton_9->setObjectName(QString::fromUtf8("toolButton_9"));
horizontalLayout_6->addWidget(toolButton_9);
horizontalSpacer_5 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_6->addItem(horizontalSpacer_5);
toolButton_10 = new QToolButton(MainToolBar);
toolButton_10->setObjectName(QString::fromUtf8("toolButton_10"));
horizontalLayout_6->addWidget(toolButton_10);
verticalLayout->addWidget(MainToolBar);
frameInfo = new QFrame(formThird);
frameInfo->setObjectName(QString::fromUtf8("frameInfo"));
QSizePolicy sizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed);
sizePolicy.setHorizontalStretch(0);
sizePolicy.setVerticalStretch(0);
sizePolicy.setHeightForWidth(frameInfo->sizePolicy().hasHeightForWidth());
frameInfo->setSizePolicy(sizePolicy);
frameInfo->setMinimumSize(QSize(650, 0));
frameInfo->setFrameShape(QFrame::StyledPanel);
frameInfo->setFrameShadow(QFrame::Raised);
horizontalLayout_2 = new QHBoxLayout(frameInfo);
horizontalLayout_2->setSpacing(10);
horizontalLayout_2->setObjectName(QString::fromUtf8("horizontalLayout_2"));
horizontalLayout_2->setContentsMargins(10, 10, 10, 10);
frame = new QFrame(frameInfo);
frame->setObjectName(QString::fromUtf8("frame"));
frame->setMinimumSize(QSize(130, 130));
frame->setFrameShape(QFrame::StyledPanel);
frame->setFrameShadow(QFrame::Raised);
verticalLayout_3 = new QVBoxLayout(frame);
verticalLayout_3->setSpacing(1);
verticalLayout_3->setObjectName(QString::fromUtf8("verticalLayout_3"));
verticalLayout_3->setContentsMargins(1, 1, 1, 1);
Logo = new AvatarWidget(frame);
Logo->setObjectName(QString::fromUtf8("Logo"));
QSizePolicy sizePolicy1(QSizePolicy::Fixed, QSizePolicy::Fixed);
sizePolicy1.setHorizontalStretch(0);
sizePolicy1.setVerticalStretch(0);
sizePolicy1.setHeightForWidth(Logo->sizePolicy().hasHeightForWidth());
Logo->setSizePolicy(sizePolicy1);
Logo->setMinimumSize(QSize(130, 130));
verticalLayout_3->addWidget(Logo);
horizontalLayout_2->addWidget(frame);
widget = new QWidget(frameInfo);
widget->setObjectName(QString::fromUtf8("widget"));
widget->setMinimumSize(QSize(400, 0));
gridLayout = new QGridLayout(widget);
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
gridLayout->setHorizontalSpacing(10);
gridLayout->setVerticalSpacing(5);
gridLayout->setContentsMargins(0, 0, 0, 0);
label_17 = new QLabel(widget);
label_17->setObjectName(QString::fromUtf8("label_17"));
gridLayout->addWidget(label_17, 1, 0, 1, 1);
comboState = new QComboBox(widget);
comboState->addItem(QString());
comboState->addItem(QString());
comboState->setObjectName(QString::fromUtf8("comboState"));
sizePolicy1.setHeightForWidth(comboState->sizePolicy().hasHeightForWidth());
comboState->setSizePolicy(sizePolicy1);
comboState->setMinimumSize(QSize(150, 0));
comboState->setMaximumSize(QSize(120, 16777215));
gridLayout->addWidget(comboState, 2, 4, 1, 1);
editSupplierCode = new QLineEdit(widget);
editSupplierCode->setObjectName(QString::fromUtf8("editSupplierCode"));
sizePolicy1.setHeightForWidth(editSupplierCode->sizePolicy().hasHeightForWidth());
editSupplierCode->setSizePolicy(sizePolicy1);
editSupplierCode->setMinimumSize(QSize(150, 0));
editSupplierCode->setMaximumSize(QSize(120, 16777215));
editSupplierCode->setMaxLength(20);
editSupplierCode->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editSupplierCode->setReadOnly(true);
gridLayout->addWidget(editSupplierCode, 4, 4, 1, 1);
label_7 = new QLabel(widget);
label_7->setObjectName(QString::fromUtf8("label_7"));
gridLayout->addWidget(label_7, 3, 0, 1, 1);
editCIF = new QLineEdit(widget);
editCIF->setObjectName(QString::fromUtf8("editCIF"));
sizePolicy1.setHeightForWidth(editCIF->sizePolicy().hasHeightForWidth());
editCIF->setSizePolicy(sizePolicy1);
editCIF->setMinimumSize(QSize(150, 0));
editCIF->setMaxLength(128);
gridLayout->addWidget(editCIF, 2, 1, 1, 1);
editName = new QLineEdit(widget);
editName->setObjectName(QString::fromUtf8("editName"));
editName->setMaxLength(128);
gridLayout->addWidget(editName, 0, 1, 1, 5);
comboClient = new QComboBox(widget);
comboClient->addItem(QString());
comboClient->addItem(QString());
comboClient->addItem(QString());
comboClient->setObjectName(QString::fromUtf8("comboClient"));
sizePolicy1.setHeightForWidth(comboClient->sizePolicy().hasHeightForWidth());
comboClient->setSizePolicy(sizePolicy1);
comboClient->setMinimumSize(QSize(150, 0));
comboClient->setMaximumSize(QSize(120, 16777215));
gridLayout->addWidget(comboClient, 3, 1, 1, 1);
comboSupplier = new QComboBox(widget);
comboSupplier->addItem(QString());
comboSupplier->addItem(QString());
comboSupplier->setObjectName(QString::fromUtf8("comboSupplier"));
sizePolicy1.setHeightForWidth(comboSupplier->sizePolicy().hasHeightForWidth());
comboSupplier->setSizePolicy(sizePolicy1);
comboSupplier->setMinimumSize(QSize(150, 0));
comboSupplier->setMaximumSize(QSize(120, 16777215));
gridLayout->addWidget(comboSupplier, 4, 1, 1, 1);
label_3 = new QLabel(widget);
label_3->setObjectName(QString::fromUtf8("label_3"));
gridLayout->addWidget(label_3, 2, 2, 1, 1);
label_2 = new QLabel(widget);
label_2->setObjectName(QString::fromUtf8("label_2"));
gridLayout->addWidget(label_2, 2, 0, 1, 1);
horizontalSpacer_2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout->addItem(horizontalSpacer_2, 2, 5, 1, 1);
label_9 = new QLabel(widget);
label_9->setObjectName(QString::fromUtf8("label_9"));
gridLayout->addWidget(label_9, 4, 0, 1, 1);
label_15 = new QLabel(widget);
label_15->setObjectName(QString::fromUtf8("label_15"));
gridLayout->addWidget(label_15, 4, 2, 1, 1);
label_5 = new QLabel(widget);
label_5->setObjectName(QString::fromUtf8("label_5"));
gridLayout->addWidget(label_5, 3, 2, 1, 1);
label_6 = new QLabel(widget);
label_6->setObjectName(QString::fromUtf8("label_6"));
gridLayout->addWidget(label_6, 0, 0, 1, 1);
editClientCode = new QLineEdit(widget);
editClientCode->setObjectName(QString::fromUtf8("editClientCode"));
sizePolicy1.setHeightForWidth(editClientCode->sizePolicy().hasHeightForWidth());
editClientCode->setSizePolicy(sizePolicy1);
editClientCode->setMinimumSize(QSize(150, 0));
editClientCode->setMaximumSize(QSize(120, 16777215));
editClientCode->setMaxLength(20);
editClientCode->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
editClientCode->setReadOnly(true);
gridLayout->addWidget(editClientCode, 3, 4, 1, 1);
editNickname = new QLineEdit(widget);
editNickname->setObjectName(QString::fromUtf8("editNickname"));
editNickname->setMaxLength(128);
gridLayout->addWidget(editNickname, 1, 1, 1, 5);
horizontalLayout_2->addWidget(widget);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout_2->addItem(horizontalSpacer);
verticalLayout->addWidget(frameInfo);
tabWidget = new QTabWidget(formThird);
tabWidget->setObjectName(QString::fromUtf8("tabWidget"));
tabFile = new QWidget();
tabFile->setObjectName(QString::fromUtf8("tabFile"));
verticalLayout_2 = new QVBoxLayout(tabFile);
verticalLayout_2->setSpacing(0);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
verticalLayout_2->setContentsMargins(0, 0, 0, 0);
scrollArea = new QScrollArea(tabFile);
scrollArea->setObjectName(QString::fromUtf8("scrollArea"));
scrollArea->setWidgetResizable(true);
scrollAreaWidgetContents = new QWidget();
scrollAreaWidgetContents->setObjectName(QString::fromUtf8("scrollAreaWidgetContents"));
scrollAreaWidgetContents->setGeometry(QRect(0, 0, 715, 403));
gridLayout_4 = new QGridLayout(scrollAreaWidgetContents);
gridLayout_4->setSpacing(10);
gridLayout_4->setObjectName(QString::fromUtf8("gridLayout_4"));
gridLayout_4->setContentsMargins(10, 10, 10, 10);
widget_4 = new QWidget(scrollAreaWidgetContents);
widget_4->setObjectName(QString::fromUtf8("widget_4"));
horizontalLayout_5 = new QHBoxLayout(widget_4);
horizontalLayout_5->setSpacing(10);
horizontalLayout_5->setObjectName(QString::fromUtf8("horizontalLayout_5"));
horizontalLayout_5->setContentsMargins(0, 0, 0, 0);
label_16 = new QLabel(widget_4);
label_16->setObjectName(QString::fromUtf8("label_16"));
label_16->setMinimumSize(QSize(80, 0));
horizontalLayout_5->addWidget(label_16);
editDischargeDate = new QDateEdit(widget_4);
editDischargeDate->setObjectName(QString::fromUtf8("editDischargeDate"));
editDischargeDate->setMinimumSize(QSize(120, 0));
editDischargeDate->setAlignment(Qt::AlignCenter);
editDischargeDate->setCalendarPopup(true);
horizontalLayout_5->addWidget(editDischargeDate);
label_23 = new QLabel(widget_4);
label_23->setObjectName(QString::fromUtf8("label_23"));
horizontalLayout_5->addWidget(label_23);
editUpdateDate = new QDateEdit(widget_4);
editUpdateDate->setObjectName(QString::fromUtf8("editUpdateDate"));
editUpdateDate->setMinimumSize(QSize(120, 0));
editUpdateDate->setAlignment(Qt::AlignCenter);
editUpdateDate->setReadOnly(true);
editUpdateDate->setButtonSymbols(QAbstractSpinBox::NoButtons);
horizontalLayout_5->addWidget(editUpdateDate);
gridLayout_4->addWidget(widget_4, 0, 0, 1, 1);
groupBox_5 = new QGroupBox(scrollAreaWidgetContents);
groupBox_5->setObjectName(QString::fromUtf8("groupBox_5"));
sizePolicy.setHeightForWidth(groupBox_5->sizePolicy().hasHeightForWidth());
groupBox_5->setSizePolicy(sizePolicy);
gridLayout_3 = new QGridLayout(groupBox_5);
gridLayout_3->setObjectName(QString::fromUtf8("gridLayout_3"));
gridLayout_3->setHorizontalSpacing(10);
gridLayout_3->setVerticalSpacing(5);
editFax = new QLineEdit(groupBox_5);
editFax->setObjectName(QString::fromUtf8("editFax"));
editFax->setMinimumSize(QSize(150, 0));
editFax->setMaximumSize(QSize(150, 16777215));
editFax->setMaxLength(20);
gridLayout_3->addWidget(editFax, 0, 2, 1, 1);
editEmail = new QLineEdit(groupBox_5);
editEmail->setObjectName(QString::fromUtf8("editEmail"));
editEmail->setMinimumSize(QSize(150, 0));
editEmail->setMaximumSize(QSize(150, 16777215));
gridLayout_3->addWidget(editEmail, 2, 1, 1, 1);
label_13 = new QLabel(groupBox_5);
label_13->setObjectName(QString::fromUtf8("label_13"));
QSizePolicy sizePolicy2(QSizePolicy::Fixed, QSizePolicy::Preferred);
sizePolicy2.setHorizontalStretch(0);
sizePolicy2.setVerticalStretch(0);
sizePolicy2.setHeightForWidth(label_13->sizePolicy().hasHeightForWidth());
label_13->setSizePolicy(sizePolicy2);
label_13->setMinimumSize(QSize(80, 0));
gridLayout_3->addWidget(label_13, 2, 0, 1, 1);
label_18 = new QLabel(groupBox_5);
label_18->setObjectName(QString::fromUtf8("label_18"));
sizePolicy2.setHeightForWidth(label_18->sizePolicy().hasHeightForWidth());
label_18->setSizePolicy(sizePolicy2);
label_18->setMinimumSize(QSize(80, 0));
gridLayout_3->addWidget(label_18, 1, 0, 1, 1);
editPhone = new QLineEdit(groupBox_5);
editPhone->setObjectName(QString::fromUtf8("editPhone"));
editPhone->setMinimumSize(QSize(150, 0));
editPhone->setMaximumSize(QSize(150, 16777215));
editPhone->setMaxLength(20);
gridLayout_3->addWidget(editPhone, 0, 1, 1, 1);
label_12 = new QLabel(groupBox_5);
label_12->setObjectName(QString::fromUtf8("label_12"));
sizePolicy2.setHeightForWidth(label_12->sizePolicy().hasHeightForWidth());
label_12->setSizePolicy(sizePolicy2);
label_12->setMinimumSize(QSize(80, 0));
gridLayout_3->addWidget(label_12, 0, 0, 1, 1);
editMobile = new QLineEdit(groupBox_5);
editMobile->setObjectName(QString::fromUtf8("editMobile"));
editMobile->setMinimumSize(QSize(150, 0));
editMobile->setMaximumSize(QSize(150, 16777215));
editMobile->setMaxLength(20);
gridLayout_3->addWidget(editMobile, 1, 1, 1, 1);
editWebside = new QLineEdit(groupBox_5);
editWebside->setObjectName(QString::fromUtf8("editWebside"));
editWebside->setMinimumSize(QSize(150, 0));
editWebside->setMaximumSize(QSize(150, 16777215));
gridLayout_3->addWidget(editWebside, 3, 1, 1, 1);
label_14 = new QLabel(groupBox_5);
label_14->setObjectName(QString::fromUtf8("label_14"));
sizePolicy2.setHeightForWidth(label_14->sizePolicy().hasHeightForWidth());
label_14->setSizePolicy(sizePolicy2);
label_14->setMinimumSize(QSize(80, 0));
gridLayout_3->addWidget(label_14, 3, 0, 1, 1);
gridLayout_4->addWidget(groupBox_5, 3, 0, 1, 1, Qt::AlignLeft);
groupBox_2 = new QGroupBox(scrollAreaWidgetContents);
groupBox_2->setObjectName(QString::fromUtf8("groupBox_2"));
sizePolicy.setHeightForWidth(groupBox_2->sizePolicy().hasHeightForWidth());
groupBox_2->setSizePolicy(sizePolicy);
gridLayout_2 = new QGridLayout(groupBox_2);
gridLayout_2->setObjectName(QString::fromUtf8("gridLayout_2"));
gridLayout_2->setHorizontalSpacing(10);
gridLayout_2->setVerticalSpacing(5);
label_8 = new QLabel(groupBox_2);
label_8->setObjectName(QString::fromUtf8("label_8"));
sizePolicy2.setHeightForWidth(label_8->sizePolicy().hasHeightForWidth());
label_8->setSizePolicy(sizePolicy2);
label_8->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_8, 1, 0, 1, 1);
editCountry = new QLineEdit(groupBox_2);
editCountry->setObjectName(QString::fromUtf8("editCountry"));
gridLayout_2->addWidget(editCountry, 3, 2, 1, 1);
editAddress = new QPlainTextEdit(groupBox_2);
editAddress->setObjectName(QString::fromUtf8("editAddress"));
QSizePolicy sizePolicy3(QSizePolicy::Expanding, QSizePolicy::Fixed);
sizePolicy3.setHorizontalStretch(0);
sizePolicy3.setVerticalStretch(0);
sizePolicy3.setHeightForWidth(editAddress->sizePolicy().hasHeightForWidth());
editAddress->setSizePolicy(sizePolicy3);
editAddress->setMinimumSize(QSize(0, 50));
editAddress->setMaximumSize(QSize(16777215, 50));
editAddress->setFrameShape(QFrame::StyledPanel);
gridLayout_2->addWidget(editAddress, 0, 1, 1, 2);
label_11 = new QLabel(groupBox_2);
label_11->setObjectName(QString::fromUtf8("label_11"));
sizePolicy2.setHeightForWidth(label_11->sizePolicy().hasHeightForWidth());
label_11->setSizePolicy(sizePolicy2);
label_11->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_11, 3, 0, 1, 1);
label_10 = new QLabel(groupBox_2);
label_10->setObjectName(QString::fromUtf8("label_10"));
sizePolicy2.setHeightForWidth(label_10->sizePolicy().hasHeightForWidth());
label_10->setSizePolicy(sizePolicy2);
label_10->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_10, 2, 0, 1, 1);
editCity = new QLineEdit(groupBox_2);
editCity->setObjectName(QString::fromUtf8("editCity"));
gridLayout_2->addWidget(editCity, 1, 2, 1, 1);
editProvince = new QLineEdit(groupBox_2);
editProvince->setObjectName(QString::fromUtf8("editProvince"));
gridLayout_2->addWidget(editProvince, 2, 1, 1, 2);
label_4 = new QLabel(groupBox_2);
label_4->setObjectName(QString::fromUtf8("label_4"));
sizePolicy2.setHeightForWidth(label_4->sizePolicy().hasHeightForWidth());
label_4->setSizePolicy(sizePolicy2);
label_4->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(label_4, 0, 0, 1, 1);
comboCountry = new QComboBox(groupBox_2);
comboCountry->setObjectName(QString::fromUtf8("comboCountry"));
comboCountry->setMinimumSize(QSize(80, 0));
gridLayout_2->addWidget(comboCountry, 3, 1, 1, 1);
editCP = new QLineEdit(groupBox_2);
editCP->setObjectName(QString::fromUtf8("editCP"));
sizePolicy1.setHeightForWidth(editCP->sizePolicy().hasHeightForWidth());
editCP->setSizePolicy(sizePolicy1);
gridLayout_2->addWidget(editCP, 1, 1, 1, 1);
gridLayout_4->addWidget(groupBox_2, 2, 0, 1, 1);
widget_2 = new QWidget(scrollAreaWidgetContents);
widget_2->setObjectName(QString::fromUtf8("widget_2"));
horizontalLayout = new QHBoxLayout(widget_2);
horizontalLayout->setSpacing(10);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
label_20 = new QLabel(widget_2);
label_20->setObjectName(QString::fromUtf8("label_20"));
label_20->setMinimumSize(QSize(80, 0));
horizontalLayout->addWidget(label_20);
editIntraCode = new QLineEdit(widget_2);
editIntraCode->setObjectName(QString::fromUtf8("editIntraCode"));
sizePolicy1.setHeightForWidth(editIntraCode->sizePolicy().hasHeightForWidth());
editIntraCode->setSizePolicy(sizePolicy1);
editIntraCode->setMinimumSize(QSize(120, 0));
editIntraCode->setMaxLength(20);
horizontalLayout->addWidget(editIntraCode);
gridLayout_4->addWidget(widget_2, 1, 0, 1, 1, Qt::AlignLeft);
horizontalSpacer_3 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
gridLayout_4->addItem(horizontalSpacer_3, 2, 1, 1, 1);
verticalSpacer = new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding);
gridLayout_4->addItem(verticalSpacer, 4, 0, 1, 1);
scrollArea->setWidget(scrollAreaWidgetContents);
verticalLayout_2->addWidget(scrollArea);
tabWidget->addTab(tabFile, QString());
tabClient = new QWidget();
tabClient->setObjectName(QString::fromUtf8("tabClient"));
label = new QLabel(tabClient);
label->setObjectName(QString::fromUtf8("label"));
label->setGeometry(QRect(30, 30, 111, 16));
editAccountClient = new QLineEdit(tabClient);
editAccountClient->setObjectName(QString::fromUtf8("editAccountClient"));
editAccountClient->setGeometry(QRect(150, 30, 113, 20));
tabWidget->addTab(tabClient, QString());
tabSupplier = new QWidget();
tabSupplier->setObjectName(QString::fromUtf8("tabSupplier"));
label_19 = new QLabel(tabSupplier);
label_19->setObjectName(QString::fromUtf8("label_19"));
label_19->setGeometry(QRect(20, 20, 111, 16));
editAccountSupplier = new QLineEdit(tabSupplier);
editAccountSupplier->setObjectName(QString::fromUtf8("editAccountSupplier"));
editAccountSupplier->setGeometry(QRect(140, 20, 113, 20));
tabWidget->addTab(tabSupplier, QString());
tabContacts = new QWidget();
tabContacts->setObjectName(QString::fromUtf8("tabContacts"));
tableView = new QTableView(tabContacts);
tableView->setObjectName(QString::fromUtf8("tableView"));
tableView->setGeometry(QRect(30, 20, 661, 192));
tabWidget->addTab(tabContacts, QString());
tabNotes = new QWidget();
tabNotes->setObjectName(QString::fromUtf8("tabNotes"));
editPublicNotes = new QTextEdit(tabNotes);
editPublicNotes->setObjectName(QString::fromUtf8("editPublicNotes"));
editPublicNotes->setGeometry(QRect(90, 30, 361, 70));
editPrivateNotes = new QTextEdit(tabNotes);
editPrivateNotes->setObjectName(QString::fromUtf8("editPrivateNotes"));
editPrivateNotes->setGeometry(QRect(93, 150, 361, 70));
tabWidget->addTab(tabNotes, QString());
verticalLayout->addWidget(tabWidget);
QWidget::setTabOrder(editName, editCIF);
QWidget::setTabOrder(editCIF, comboClient);
QWidget::setTabOrder(comboClient, editClientCode);
QWidget::setTabOrder(editClientCode, comboSupplier);
QWidget::setTabOrder(comboSupplier, editSupplierCode);
QWidget::setTabOrder(editSupplierCode, comboState);
QWidget::setTabOrder(comboState, toolButton_10);
QWidget::setTabOrder(toolButton_10, editAccountSupplier);
QWidget::setTabOrder(editAccountSupplier, editAccountClient);
QWidget::setTabOrder(editAccountClient, editIntraCode);
QWidget::setTabOrder(editIntraCode, tabWidget);
QWidget::setTabOrder(tabWidget, editAddress);
QWidget::setTabOrder(editAddress, comboCountry);
QWidget::setTabOrder(comboCountry, editCountry);
QWidget::setTabOrder(editCountry, editCity);
QWidget::setTabOrder(editCity, editProvince);
QWidget::setTabOrder(editProvince, editPhone);
QWidget::setTabOrder(editPhone, editFax);
QWidget::setTabOrder(editFax, editMobile);
QWidget::setTabOrder(editMobile, editEmail);
QWidget::setTabOrder(editEmail, editWebside);
QWidget::setTabOrder(editWebside, buttonSave);
QWidget::setTabOrder(buttonSave, toolButton_9);
retranslateUi(formThird);
tabWidget->setCurrentIndex(0);
QMetaObject::connectSlotsByName(formThird);
} // setupUi
void retranslateUi(QWidget *formThird)
{
formThird->setWindowTitle(QCoreApplication::translate("formThird", "Form", nullptr));
buttonSave->setText(QCoreApplication::translate("formThird", "Guardar", nullptr));
toolButton_9->setText(QCoreApplication::translate("formThird", "...", nullptr));
toolButton_10->setText(QCoreApplication::translate("formThird", "...", nullptr));
label_17->setText(QCoreApplication::translate("formThird", "Nombre comercial", nullptr));
comboState->setItemText(0, QCoreApplication::translate("formThird", "Activo", nullptr));
comboState->setItemText(1, QCoreApplication::translate("formThird", "Cerrado", nullptr));
label_7->setText(QCoreApplication::translate("formThird", "Cliente", nullptr));
comboClient->setItemText(0, QCoreApplication::translate("formThird", "No", nullptr));
comboClient->setItemText(1, QCoreApplication::translate("formThird", "Cliente potencial", nullptr));
comboClient->setItemText(2, QCoreApplication::translate("formThird", "Cliente", nullptr));
comboSupplier->setItemText(0, QCoreApplication::translate("formThird", "No", nullptr));
comboSupplier->setItemText(1, QCoreApplication::translate("formThird", "Si", nullptr));
label_3->setText(QCoreApplication::translate("formThird", "Estado", nullptr));
label_2->setText(QCoreApplication::translate("formThird", "CIF", nullptr));
label_9->setText(QCoreApplication::translate("formThird", "Proveedor", nullptr));
label_15->setText(QCoreApplication::translate("formThird", "C\303\263digo", nullptr));
label_5->setText(QCoreApplication::translate("formThird", "C\303\263digo", nullptr));
label_6->setText(QCoreApplication::translate("formThird", "Nombre fiscal", nullptr));
label_16->setText(QCoreApplication::translate("formThird", "Fecha de alta", nullptr));
editDischargeDate->setDisplayFormat(QCoreApplication::translate("formThird", "dd/MM/yyyy", nullptr));
label_23->setText(QCoreApplication::translate("formThird", "Fecha de la \303\272ltima actualizaci\303\263n", nullptr));
editUpdateDate->setDisplayFormat(QCoreApplication::translate("formThird", "dd/MM/yyyy", nullptr));
groupBox_5->setTitle(QCoreApplication::translate("formThird", "Contacto", nullptr));
label_13->setText(QCoreApplication::translate("formThird", "E-mail", nullptr));
label_18->setText(QCoreApplication::translate("formThird", "M\303\263vil", nullptr));
label_12->setText(QCoreApplication::translate("formThird", "Tel\303\251fono / Fax", nullptr));
label_14->setText(QCoreApplication::translate("formThird", "Webside", nullptr));
groupBox_2->setTitle(QCoreApplication::translate("formThird", "Domicilio", nullptr));
label_8->setText(QCoreApplication::translate("formThird", "CP/Poblaci\303\263n", nullptr));
label_11->setText(QCoreApplication::translate("formThird", "Pais", nullptr));
label_10->setText(QCoreApplication::translate("formThird", "Provincia", nullptr));
label_4->setText(QCoreApplication::translate("formThird", "Direcci\303\263n", nullptr));
label_20->setText(QCoreApplication::translate("formThird", "CIF Intracomunitario", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabFile), QCoreApplication::translate("formThird", "Ficha", nullptr));
label->setText(QCoreApplication::translate("formThird", "C\303\263digo contable cliente", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabClient), QCoreApplication::translate("formThird", "Cliente", nullptr));
label_19->setText(QCoreApplication::translate("formThird", "Comtabilidad", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabSupplier), QCoreApplication::translate("formThird", "Proveedor", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabContacts), QCoreApplication::translate("formThird", "Contactos", nullptr));
tabWidget->setTabText(tabWidget->indexOf(tabNotes), QCoreApplication::translate("formThird", "Notas", nullptr));
} // retranslateUi
};
namespace Ui {
class formThird: public Ui_formThird {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMTHIRD_H
+129
View File
@@ -0,0 +1,129 @@
/********************************************************************************
** Form generated from reading UI file 'formthirdlist.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_FORMTHIRDLIST_H
#define UI_FORMTHIRDLIST_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QFrame>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_formThirdList
{
public:
QVBoxLayout *verticalLayout_2;
QTableView *tableView;
QFrame *frame_2;
QHBoxLayout *horizontalLayout;
QPushButton *buttonNew;
QPushButton *buttonEdit;
QPushButton *buttonClone;
QPushButton *buttonDelete;
QPushButton *buttonUpdate;
void setupUi(QWidget *formThirdList)
{
if (formThirdList->objectName().isEmpty())
formThirdList->setObjectName(QString::fromUtf8("formThirdList"));
formThirdList->resize(400, 285);
verticalLayout_2 = new QVBoxLayout(formThirdList);
verticalLayout_2->setSpacing(0);
verticalLayout_2->setObjectName(QString::fromUtf8("verticalLayout_2"));
verticalLayout_2->setContentsMargins(0, 0, 0, 0);
tableView = new QTableView(formThirdList);
tableView->setObjectName(QString::fromUtf8("tableView"));
tableView->setEditTriggers(QAbstractItemView::NoEditTriggers);
tableView->setSelectionMode(QAbstractItemView::SingleSelection);
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
tableView->setSortingEnabled(true);
verticalLayout_2->addWidget(tableView);
frame_2 = new QFrame(formThirdList);
frame_2->setObjectName(QString::fromUtf8("frame_2"));
horizontalLayout = new QHBoxLayout(frame_2);
horizontalLayout->setSpacing(0);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
buttonNew = new QPushButton(frame_2);
buttonNew->setObjectName(QString::fromUtf8("buttonNew"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/add-file.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonNew->setIcon(icon);
horizontalLayout->addWidget(buttonNew);
buttonEdit = new QPushButton(frame_2);
buttonEdit->setObjectName(QString::fromUtf8("buttonEdit"));
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/resources/icons/pencil.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonEdit->setIcon(icon1);
horizontalLayout->addWidget(buttonEdit);
buttonClone = new QPushButton(frame_2);
buttonClone->setObjectName(QString::fromUtf8("buttonClone"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/resources/icons/copy.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonClone->setIcon(icon2);
horizontalLayout->addWidget(buttonClone);
buttonDelete = new QPushButton(frame_2);
buttonDelete->setObjectName(QString::fromUtf8("buttonDelete"));
QIcon icon3;
icon3.addFile(QString::fromUtf8(":/resources/icons/delete.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonDelete->setIcon(icon3);
horizontalLayout->addWidget(buttonDelete);
buttonUpdate = new QPushButton(frame_2);
buttonUpdate->setObjectName(QString::fromUtf8("buttonUpdate"));
QIcon icon4;
icon4.addFile(QString::fromUtf8(":/resources/icons/recycle.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonUpdate->setIcon(icon4);
horizontalLayout->addWidget(buttonUpdate);
verticalLayout_2->addWidget(frame_2);
retranslateUi(formThirdList);
QMetaObject::connectSlotsByName(formThirdList);
} // setupUi
void retranslateUi(QWidget *formThirdList)
{
formThirdList->setWindowTitle(QCoreApplication::translate("formThirdList", "Terceros", nullptr));
buttonNew->setText(QCoreApplication::translate("formThirdList", "Nuevo", nullptr));
buttonEdit->setText(QCoreApplication::translate("formThirdList", "Editar", nullptr));
buttonClone->setText(QCoreApplication::translate("formThirdList", "Duplicar", nullptr));
buttonDelete->setText(QCoreApplication::translate("formThirdList", "Borrar", nullptr));
buttonUpdate->setText(QCoreApplication::translate("formThirdList", "Actualizar", nullptr));
} // retranslateUi
};
namespace Ui {
class formThirdList: public Ui_formThirdList {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_FORMTHIRDLIST_H
+104
View File
@@ -0,0 +1,104 @@
/********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_MAINWINDOW_H
#define UI_MAINWINDOW_H
#include <QtCore/QVariant>
#include <QtWidgets/QAction>
#include <QtWidgets/QApplication>
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QStatusBar>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_MainWindow
{
public:
QAction *exitAction;
QAction *insertRowAction;
QAction *removeRowAction;
QAction *insertColumnAction;
QAction *removeColumnAction;
QAction *insertChildAction;
QWidget *centralwidget;
QVBoxLayout *verticalLayout;
QStatusBar *statusbar;
void setupUi(QMainWindow *MainWindow)
{
if (MainWindow->objectName().isEmpty())
MainWindow->setObjectName(QString::fromUtf8("MainWindow"));
MainWindow->resize(677, 380);
MainWindow->setDockOptions(QMainWindow::AllowNestedDocks|QMainWindow::AllowTabbedDocks|QMainWindow::AnimatedDocks|QMainWindow::ForceTabbedDocks);
exitAction = new QAction(MainWindow);
exitAction->setObjectName(QString::fromUtf8("exitAction"));
insertRowAction = new QAction(MainWindow);
insertRowAction->setObjectName(QString::fromUtf8("insertRowAction"));
removeRowAction = new QAction(MainWindow);
removeRowAction->setObjectName(QString::fromUtf8("removeRowAction"));
insertColumnAction = new QAction(MainWindow);
insertColumnAction->setObjectName(QString::fromUtf8("insertColumnAction"));
removeColumnAction = new QAction(MainWindow);
removeColumnAction->setObjectName(QString::fromUtf8("removeColumnAction"));
insertChildAction = new QAction(MainWindow);
insertChildAction->setObjectName(QString::fromUtf8("insertChildAction"));
centralwidget = new QWidget(MainWindow);
centralwidget->setObjectName(QString::fromUtf8("centralwidget"));
verticalLayout = new QVBoxLayout(centralwidget);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
MainWindow->setCentralWidget(centralwidget);
statusbar = new QStatusBar(MainWindow);
statusbar->setObjectName(QString::fromUtf8("statusbar"));
MainWindow->setStatusBar(statusbar);
retranslateUi(MainWindow);
QMetaObject::connectSlotsByName(MainWindow);
} // setupUi
void retranslateUi(QMainWindow *MainWindow)
{
MainWindow->setWindowTitle(QCoreApplication::translate("MainWindow", "Editable Tree Model", nullptr));
exitAction->setText(QCoreApplication::translate("MainWindow", "E&xit", nullptr));
#if QT_CONFIG(shortcut)
exitAction->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+Q", nullptr));
#endif // QT_CONFIG(shortcut)
insertRowAction->setText(QCoreApplication::translate("MainWindow", "&Insert Row", nullptr));
#if QT_CONFIG(shortcut)
insertRowAction->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+I, R", nullptr));
#endif // QT_CONFIG(shortcut)
removeRowAction->setText(QCoreApplication::translate("MainWindow", "&Remove Row", nullptr));
#if QT_CONFIG(shortcut)
removeRowAction->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+R, R", nullptr));
#endif // QT_CONFIG(shortcut)
insertColumnAction->setText(QCoreApplication::translate("MainWindow", "Insert &Column", nullptr));
#if QT_CONFIG(shortcut)
insertColumnAction->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+I, C", nullptr));
#endif // QT_CONFIG(shortcut)
removeColumnAction->setText(QCoreApplication::translate("MainWindow", "R&emove Column", nullptr));
#if QT_CONFIG(shortcut)
removeColumnAction->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+R, C", nullptr));
#endif // QT_CONFIG(shortcut)
insertChildAction->setText(QCoreApplication::translate("MainWindow", "I&nsert Child", nullptr));
#if QT_CONFIG(shortcut)
insertChildAction->setShortcut(QCoreApplication::translate("MainWindow", "Ctrl+N", nullptr));
#endif // QT_CONFIG(shortcut)
} // retranslateUi
};
namespace Ui {
class MainWindow: public Ui_MainWindow {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_MAINWINDOW_H
+111
View File
@@ -0,0 +1,111 @@
/********************************************************************************
** Form generated from reading UI file 'widgetcomboboxpopuptable.ui'
**
** Created by: Qt User Interface Compiler version 5.15.13
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
#ifndef UI_WIDGETCOMBOBOXPOPUPTABLE_H
#define UI_WIDGETCOMBOBOXPOPUPTABLE_H
#include <QtCore/QVariant>
#include <QtGui/QIcon>
#include <QtWidgets/QApplication>
#include <QtWidgets/QHBoxLayout>
#include <QtWidgets/QHeaderView>
#include <QtWidgets/QPushButton>
#include <QtWidgets/QSpacerItem>
#include <QtWidgets/QTableView>
#include <QtWidgets/QVBoxLayout>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class Ui_widgetComboboxPopupTable
{
public:
QVBoxLayout *verticalLayout;
QTableView *tableView;
QWidget *widget;
QHBoxLayout *horizontalLayout;
QPushButton *buttonNew;
QPushButton *buttonEdit;
QSpacerItem *horizontalSpacer;
QPushButton *buttonSelect;
void setupUi(QWidget *widgetComboboxPopupTable)
{
if (widgetComboboxPopupTable->objectName().isEmpty())
widgetComboboxPopupTable->setObjectName(QString::fromUtf8("widgetComboboxPopupTable"));
widgetComboboxPopupTable->resize(500, 287);
verticalLayout = new QVBoxLayout(widgetComboboxPopupTable);
verticalLayout->setSpacing(2);
verticalLayout->setObjectName(QString::fromUtf8("verticalLayout"));
verticalLayout->setContentsMargins(2, 2, 2, 2);
tableView = new QTableView(widgetComboboxPopupTable);
tableView->setObjectName(QString::fromUtf8("tableView"));
tableView->setSelectionBehavior(QAbstractItemView::SelectRows);
verticalLayout->addWidget(tableView);
widget = new QWidget(widgetComboboxPopupTable);
widget->setObjectName(QString::fromUtf8("widget"));
horizontalLayout = new QHBoxLayout(widget);
horizontalLayout->setSpacing(2);
horizontalLayout->setObjectName(QString::fromUtf8("horizontalLayout"));
horizontalLayout->setContentsMargins(0, 0, 0, 0);
buttonNew = new QPushButton(widget);
buttonNew->setObjectName(QString::fromUtf8("buttonNew"));
QIcon icon;
icon.addFile(QString::fromUtf8(":/resources/icons/add-file.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonNew->setIcon(icon);
horizontalLayout->addWidget(buttonNew);
buttonEdit = new QPushButton(widget);
buttonEdit->setObjectName(QString::fromUtf8("buttonEdit"));
QIcon icon1;
icon1.addFile(QString::fromUtf8(":/resources/icons/pencil(1).svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonEdit->setIcon(icon1);
horizontalLayout->addWidget(buttonEdit);
horizontalSpacer = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
horizontalLayout->addItem(horizontalSpacer);
buttonSelect = new QPushButton(widget);
buttonSelect->setObjectName(QString::fromUtf8("buttonSelect"));
QIcon icon2;
icon2.addFile(QString::fromUtf8(":/resources/icons/tick.svg"), QSize(), QIcon::Normal, QIcon::Off);
buttonSelect->setIcon(icon2);
horizontalLayout->addWidget(buttonSelect);
verticalLayout->addWidget(widget);
retranslateUi(widgetComboboxPopupTable);
QMetaObject::connectSlotsByName(widgetComboboxPopupTable);
} // setupUi
void retranslateUi(QWidget *widgetComboboxPopupTable)
{
widgetComboboxPopupTable->setWindowTitle(QCoreApplication::translate("widgetComboboxPopupTable", "Form", nullptr));
buttonNew->setText(QCoreApplication::translate("widgetComboboxPopupTable", "Nuevo", nullptr));
buttonEdit->setText(QCoreApplication::translate("widgetComboboxPopupTable", "Editar", nullptr));
buttonSelect->setText(QCoreApplication::translate("widgetComboboxPopupTable", "Seleccionar", nullptr));
} // retranslateUi
};
namespace Ui {
class widgetComboboxPopupTable: public Ui_widgetComboboxPopupTable {};
} // namespace Ui
QT_END_NAMESPACE
#endif // UI_WIDGETCOMBOBOXPOPUPTABLE_H