TabEditor-Qt/mainwindow.h

39 lines
842 B
C
Raw Normal View History

2023-06-20 22:15:15 +08:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
2023-07-10 22:57:48 +08:00
#include <QProgressDialog>
2023-06-20 22:15:15 +08:00
#include <QTableWidget>
2023-06-20 22:27:42 +08:00
#include <QDragEnterEvent>
#include <QMimeData>
2023-06-20 23:05:02 +08:00
#include <QShortcut>
2023-06-20 22:15:15 +08:00
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
void loadTextFile(const QString& fileName);
2023-06-20 22:27:42 +08:00
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent *event);
2023-06-21 00:17:06 +08:00
void convertTextToSqlite();
void convertSqliteToText();
2023-07-10 22:57:48 +08:00
void showProgressDialog(const QString& labelText, int minimum, int maximum);
2023-06-20 22:15:15 +08:00
private slots:
void onOpenButtonClicked();
void onSaveButtonClicked();
private:
Ui::MainWindow *ui;
2023-07-10 22:57:48 +08:00
QProgressDialog* progressDialog;
2023-06-20 22:15:15 +08:00
};
2023-07-10 22:57:48 +08:00
2023-06-20 22:15:15 +08:00
#endif // MAINWINDOW_H