simplenotepad.h 699 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef SIMPLENOTEPAD_H
  2. #define SIMPLENOTEPAD_H
  3. #include <QMainWindow>
  4. #include <QFile>
  5. #include <QFileDialog>
  6. #include <QTextStream>
  7. QT_BEGIN_NAMESPACE
  8. namespace Ui { class simplenotepad; }
  9. QT_END_NAMESPACE
  10. class simplenotepad : public QMainWindow
  11. {
  12. Q_OBJECT
  13. public:
  14. simplenotepad(QWidget *parent = nullptr);
  15. ~simplenotepad();
  16. private slots:
  17. void on_actionSave_as_triggered();
  18. void on_actionOpen_triggered();
  19. void on_actionCopy_triggered();
  20. void on_actionPaste_triggered();
  21. void on_actionGo_to_begin_triggered();
  22. void on_actionGo_to_end_triggered();
  23. void on_actionNew_triggered();
  24. private:
  25. Ui::simplenotepad *ui;
  26. };
  27. #endif // SIMPLENOTEPAD_H