add support to store the 5 most recent files and add them to the file menu

This commit is contained in:
Axel Kohlmeyer
2023-08-09 22:22:17 -04:00
parent f1ba4227dc
commit cb4eee809d
5 changed files with 123 additions and 14 deletions

View File

@ -56,12 +56,14 @@ public:
protected:
void open_file(const QString &filename);
void write_file(const QString &filename);
void update_recents(const QString &filename = "");
void start_lammps();
void run_done();
private slots:
void new_document();
void open();
void open_recent();
void save();
void save_as();
void quit();
@ -101,10 +103,11 @@ private:
QString current_file;
QString current_dir;
QList<QString> recent;
LammpsWrapper lammps;
std::string plugin_path;
bool is_running;
QList<QString> recent_files;
std::vector<char *> lammps_args;
};
#endif // LAMMPSGUI_H