90 lines
2.4 KiB
C++
90 lines
2.4 KiB
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include "dialogfind.h"
|
|
#include "ui_dialogfind.h"
|
|
#include <QMainWindow>
|
|
#include <QDragEnterEvent>
|
|
#include <QMdiSubWindow>
|
|
#include <QPrinter>
|
|
#include <QProcess>
|
|
#include <QSettings>
|
|
|
|
namespace Ui {
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
Ui::MainWindow *ui;
|
|
void SyntaxHighlight();
|
|
|
|
private:
|
|
QLineEdit *lineEdit_command;
|
|
QLabel *LS1, *LS2, *LS3;
|
|
QString filename, path;
|
|
DialogFind *dialogFind;
|
|
QSettings settings;
|
|
void open(QString fileName);
|
|
void readSettings();
|
|
QColor intToColor(int intColor);
|
|
|
|
protected:
|
|
void dragEnterEvent(QDragEnterEvent *event);
|
|
void dropEvent(QDropEvent *event);
|
|
void closeEvent(QCloseEvent *event);
|
|
|
|
private slots:
|
|
void on_action_new_triggered();
|
|
void on_action_open_triggered();
|
|
void on_action_close_triggered();
|
|
void on_action_save_triggered();
|
|
void on_action_saveas_triggered();
|
|
void on_action_exportHTML_triggered();
|
|
void on_action_print_triggered();
|
|
void on_action_printPreview_triggered();
|
|
void on_action_theme_triggered();
|
|
void on_action_changelog_triggered();
|
|
void on_action_aboutQt_triggered();
|
|
void on_action_about_triggered();
|
|
void on_action_subWindowView_triggered();
|
|
void on_action_tabbedView_triggered();
|
|
void on_action_cascade_triggered();
|
|
void on_action_tile_triggered();
|
|
void on_action_run_triggered();
|
|
void on_action_zoomin_triggered();
|
|
void on_action_zoomout_triggered();
|
|
void on_action_undo_triggered();
|
|
void on_action_redo_triggered();
|
|
void on_action_find_triggered();
|
|
void on_action_indent_triggered();
|
|
void on_action_font_triggered();
|
|
void on_action_br_triggered();
|
|
void on_action_tr_triggered();
|
|
void on_action_td_triggered();
|
|
void on_action_p_triggered();
|
|
void on_action_div_triggered();
|
|
void on_action_a_triggered();
|
|
void on_action_img_triggered();
|
|
void on_action_deleteTag_triggered();
|
|
void on_action_deleteBR_triggered();
|
|
void find();
|
|
void replace();
|
|
void replaceAll();
|
|
void cursorPositionChange();
|
|
void subWindowActivate(QMdiSubWindow *window);
|
|
void printDocument(QPrinter *printer);
|
|
void updateCommand();
|
|
void printOutput();
|
|
void printError();
|
|
void anchorClick(QUrl url);
|
|
void comboBoxHChanged(QString s);
|
|
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|