mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-17 02:08:28 -06:00
Rewrite EditDialog using Qt Designer
Create a Qt Designer form file for the edit dialog. Clean up the edit dialog code removing some not working and not used functionality e.g. for blob editing.
This commit is contained in:
46
src/EditDialog.h
Normal file
46
src/EditDialog.h
Normal file
@@ -0,0 +1,46 @@
|
||||
#ifndef __EDITDIALOG_H__
|
||||
#define __EDITDIALOG_H__
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class EditDialog;
|
||||
}
|
||||
|
||||
class EditDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
EditDialog(QWidget* parent = 0);
|
||||
~EditDialog();
|
||||
|
||||
int curCol;
|
||||
int curRow;
|
||||
QString defaultlocation;
|
||||
|
||||
public slots:
|
||||
virtual void reset();
|
||||
virtual void enableExport(bool enabled);
|
||||
virtual void setDataType(int type, int size);
|
||||
virtual void closeEvent(QCloseEvent*);
|
||||
virtual void loadText(QString text, int row, int col);
|
||||
virtual void importData();
|
||||
virtual void exportData();
|
||||
virtual void clearData();
|
||||
virtual void accept();
|
||||
virtual void editTextChanged();
|
||||
|
||||
signals:
|
||||
void goingAway();
|
||||
void updateRecordText(int, int, QString);
|
||||
|
||||
protected:
|
||||
int dataType;
|
||||
int dataSize;
|
||||
|
||||
private:
|
||||
Ui::EditDialog* ui;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user