Files
lammps/tools/lammps-gui/lammpsgui.h
2023-07-26 08:43:55 -04:00

74 lines
1.6 KiB
C++

/* -*- c++ -*- ----------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
https://www.lammps.org/, Sandia National Laboratories
LAMMPS development team: developers@lammps.org
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains
certain rights in this software. This software is distributed under
the GNU General Public License.
See the README file in the top-level LAMMPS directory.
------------------------------------------------------------------------- */
#ifndef LAMMPSGUI_H
#define LAMMPSGUI_H
#include <QMainWindow>
#include <QString>
#include <QLabel>
// forward declarations
QT_BEGIN_NAMESPACE
namespace Ui {
class LammpsGui;
}
QT_END_NAMESPACE
class Highlighter;
class StdCapture;
class LammpsGui : public QMainWindow {
Q_OBJECT
public:
LammpsGui(QWidget *parent = nullptr, const char *filename = nullptr);
~LammpsGui();
protected:
void open_file(const QString &filename);
void write_file(const QString &filename);
void start_lammps();
private slots:
void new_document();
void open();
void save();
void save_as();
void quit();
void copy();
void cut();
void paste();
void undo();
void redo();
void clear();
void run_buffer();
void about();
private:
Ui::LammpsGui *ui;
Highlighter *highlighter;
StdCapture *capturer;
QLabel *status;
QString current_file;
QString current_dir;
void *lammps_handle;
};
#endif // LAMMPSGUI_H
// Local Variables:
// c-basic-offset: 4
// End: