mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
Remove the addFieldTypeForm dialog
Delete the addFieldTypeForm dialog which appears to be quite useless. It's not needed by editFieldForm anymore and would probably never been of any use at all.
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
#include "addfieldtypeform.h"
|
||||
|
||||
#include <qvariant.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qimage.h>
|
||||
#include <qpixmap.h>
|
||||
|
||||
#include "sqlitedb.h"
|
||||
/*
|
||||
* Constructs a addFieldTypeForm as a child of 'parent', with the
|
||||
* name 'name' and widget flags set to 'f'.
|
||||
*
|
||||
* The dialog will by default be modeless, unless you set 'modal' to
|
||||
* true to construct a modal dialog.
|
||||
*/
|
||||
addFieldTypeForm::addFieldTypeForm(QWidget* parent, Qt::WindowFlags fl)
|
||||
: QDialog(parent, fl)
|
||||
{
|
||||
setupUi(this);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Destroys the object and frees any allocated resources
|
||||
*/
|
||||
addFieldTypeForm::~addFieldTypeForm()
|
||||
{
|
||||
// no need to delete child widgets, Qt does it all for us
|
||||
}
|
||||
|
||||
/*
|
||||
* Sets the strings of the subwidgets using the current
|
||||
* language.
|
||||
*/
|
||||
void addFieldTypeForm::languageChange()
|
||||
{
|
||||
retranslateUi(this);
|
||||
}
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
#ifndef ADDFIELDTYPEFORM_H
|
||||
#define ADDFIELDTYPEFORM_H
|
||||
|
||||
#include <qvariant.h>
|
||||
|
||||
/* QT_BEGIN_NAMESPACE and QT_END_NAMESPACE weren't introduced into QT right away... */
|
||||
#ifndef QT_BEGIN_NAMESPACE
|
||||
#define QT_BEGIN_NAMESPACE
|
||||
#endif
|
||||
|
||||
#ifndef QT_END_NAMESPACE
|
||||
#define QT_END_NAMESPACE
|
||||
#endif
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QGridLayout>
|
||||
#include <QtGui/QHBoxLayout>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLineEdit>
|
||||
#include <QtGui/QPushButton>
|
||||
#include <QtGui/QSpacerItem>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_addFieldTypeForm
|
||||
{
|
||||
public:
|
||||
QGridLayout *gridLayout;
|
||||
QLineEdit *typeNameEdit;
|
||||
QHBoxLayout *hboxLayout;
|
||||
QSpacerItem *spacer5;
|
||||
QPushButton *cancelButton;
|
||||
QPushButton *okButton;
|
||||
|
||||
void setupUi(QDialog *addFieldTypeForm)
|
||||
{
|
||||
if (addFieldTypeForm->objectName().isEmpty())
|
||||
addFieldTypeForm->setObjectName(QString::fromUtf8("addFieldTypeForm"));
|
||||
addFieldTypeForm->resize(294, 98);
|
||||
gridLayout = new QGridLayout(addFieldTypeForm);
|
||||
gridLayout->setSpacing(6);
|
||||
gridLayout->setContentsMargins(11, 11, 11, 11);
|
||||
gridLayout->setObjectName(QString::fromUtf8("gridLayout"));
|
||||
typeNameEdit = new QLineEdit(addFieldTypeForm);
|
||||
typeNameEdit->setObjectName(QString::fromUtf8("typeNameEdit"));
|
||||
|
||||
gridLayout->addWidget(typeNameEdit, 0, 0, 1, 1);
|
||||
|
||||
hboxLayout = new QHBoxLayout();
|
||||
hboxLayout->setSpacing(6);
|
||||
hboxLayout->setObjectName(QString::fromUtf8("hboxLayout"));
|
||||
spacer5 = new QSpacerItem(31, 20, QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
hboxLayout->addItem(spacer5);
|
||||
|
||||
cancelButton = new QPushButton(addFieldTypeForm);
|
||||
cancelButton->setObjectName(QString::fromUtf8("cancelButton"));
|
||||
|
||||
hboxLayout->addWidget(cancelButton);
|
||||
|
||||
okButton = new QPushButton(addFieldTypeForm);
|
||||
okButton->setObjectName(QString::fromUtf8("okButton"));
|
||||
okButton->setDefault(true);
|
||||
|
||||
hboxLayout->addWidget(okButton);
|
||||
|
||||
|
||||
gridLayout->addLayout(hboxLayout, 1, 0, 1, 1);
|
||||
|
||||
|
||||
retranslateUi(addFieldTypeForm);
|
||||
QObject::connect(okButton, SIGNAL(clicked()), addFieldTypeForm, SLOT(accept()));
|
||||
QObject::connect(cancelButton, SIGNAL(clicked()), addFieldTypeForm, SLOT(reject()));
|
||||
|
||||
QMetaObject::connectSlotsByName(addFieldTypeForm);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *addFieldTypeForm)
|
||||
{
|
||||
addFieldTypeForm->setWindowTitle(QApplication::translate("addFieldTypeForm", "Enter field type", 0, QApplication::UnicodeUTF8));
|
||||
cancelButton->setText(QApplication::translate("addFieldTypeForm", "Cancel", 0, QApplication::UnicodeUTF8));
|
||||
okButton->setText(QApplication::translate("addFieldTypeForm", "OK", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class addFieldTypeForm: public Ui_addFieldTypeForm {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class addFieldTypeForm : public QDialog, public Ui::addFieldTypeForm
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
addFieldTypeForm(QWidget* parent = 0, Qt::WindowFlags fl = Qt::Window);
|
||||
~addFieldTypeForm();
|
||||
|
||||
protected slots:
|
||||
virtual void languageChange();
|
||||
|
||||
};
|
||||
|
||||
#endif // ADDFIELDTYPEFORM_H
|
||||
@@ -15,7 +15,6 @@ HEADERS += \
|
||||
sqlitedb.h \
|
||||
sqlbrowser_util.h \
|
||||
sqlite_source/sqlite3.h \
|
||||
addfieldtypeform.h \
|
||||
choosetableform.h \
|
||||
createindexform.h \
|
||||
createtableform.h \
|
||||
@@ -40,7 +39,6 @@ SOURCES += \
|
||||
sqlitedb.cpp \
|
||||
sqlbrowser_util.c \
|
||||
sqlite_source/sqlite3.c \
|
||||
addfieldtypeform.cpp \
|
||||
choosetableform.cpp \
|
||||
createindexform.cpp \
|
||||
createtableform.cpp \
|
||||
|
||||
Reference in New Issue
Block a user