move all icon files to the icons folder
@ -35,14 +35,14 @@ ChartWindow::ChartWindow(const QString &_filename, QWidget *parent) :
|
|||||||
top->addWidget(new QLabel("Select data:"));
|
top->addWidget(new QLabel("Select data:"));
|
||||||
top->addWidget(columns);
|
top->addWidget(columns);
|
||||||
saveAsAct = file->addAction("&Save Graph As...", this, &ChartWindow::saveAs);
|
saveAsAct = file->addAction("&Save Graph As...", this, &ChartWindow::saveAs);
|
||||||
saveAsAct->setIcon(QIcon(":/document-save-as.png"));
|
saveAsAct->setIcon(QIcon(":/icons/document-save-as.png"));
|
||||||
exportCsvAct = file->addAction("&Export data to CSV...", this, &ChartWindow::exportCsv);
|
exportCsvAct = file->addAction("&Export data to CSV...", this, &ChartWindow::exportCsv);
|
||||||
exportCsvAct->setIcon(QIcon(":/application-calc.png"));
|
exportCsvAct->setIcon(QIcon(":/icons/application-calc.png"));
|
||||||
exportDatAct = file->addAction("Export data to &Gnuplot...", this, &ChartWindow::exportDat);
|
exportDatAct = file->addAction("Export data to &Gnuplot...", this, &ChartWindow::exportDat);
|
||||||
exportDatAct->setIcon(QIcon(":/application-plot.png"));
|
exportDatAct->setIcon(QIcon(":/icons/application-plot.png"));
|
||||||
file->addSeparator();
|
file->addSeparator();
|
||||||
closeAct = file->addAction("&Close", this, &QWidget::close);
|
closeAct = file->addAction("&Close", this, &QWidget::close);
|
||||||
closeAct->setIcon(QIcon(":/window-close.png"));
|
closeAct->setIcon(QIcon(":/icons/window-close.png"));
|
||||||
auto *layout = new QVBoxLayout;
|
auto *layout = new QVBoxLayout;
|
||||||
layout->addLayout(top);
|
layout->addLayout(top);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
|
|||||||
@ -657,18 +657,18 @@ void CodeEditor::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
auto *menu = createStandardContextMenu();
|
auto *menu = createStandardContextMenu();
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
auto action = menu->addAction(QString("Display available completions for '%1'").arg(help));
|
auto action = menu->addAction(QString("Display available completions for '%1'").arg(help));
|
||||||
action->setIcon(QIcon(":/expand-text.png"));
|
action->setIcon(QIcon(":/icons/expand-text.png"));
|
||||||
connect(action, &QAction::triggered, this, &CodeEditor::runCompletion);
|
connect(action, &QAction::triggered, this, &CodeEditor::runCompletion);
|
||||||
|
|
||||||
if (!page.isEmpty()) {
|
if (!page.isEmpty()) {
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
action = menu->addAction(QString("Reformat '%1' command").arg(help));
|
action = menu->addAction(QString("Reformat '%1' command").arg(help));
|
||||||
action->setIcon(QIcon(":/format-indent-less-3.png"));
|
action->setIcon(QIcon(":/icons/format-indent-less-3.png"));
|
||||||
connect(action, &QAction::triggered, this, &CodeEditor::reformatCurrentLine);
|
connect(action, &QAction::triggered, this, &CodeEditor::reformatCurrentLine);
|
||||||
|
|
||||||
menu->addSeparator();
|
menu->addSeparator();
|
||||||
action = menu->addAction(QString("View Documentation for '%1'").arg(help));
|
action = menu->addAction(QString("View Documentation for '%1'").arg(help));
|
||||||
action->setIcon(QIcon(":/system-help.png"));
|
action->setIcon(QIcon(":/icons/system-help.png"));
|
||||||
action->setData(page);
|
action->setData(page);
|
||||||
connect(action, &QAction::triggered, this, &CodeEditor::open_help);
|
connect(action, &QAction::triggered, this, &CodeEditor::open_help);
|
||||||
// if we link to help with specific styles (fix, compute, pair, bond, ...)
|
// if we link to help with specific styles (fix, compute, pair, bond, ...)
|
||||||
@ -679,13 +679,13 @@ void CodeEditor::contextMenuEvent(QContextMenuEvent *event)
|
|||||||
page = words.at(0);
|
page = words.at(0);
|
||||||
page += ".html";
|
page += ".html";
|
||||||
auto action2 = menu->addAction(QString("View Documentation for '%1'").arg(help));
|
auto action2 = menu->addAction(QString("View Documentation for '%1'").arg(help));
|
||||||
action2->setIcon(QIcon(":/system-help.png"));
|
action2->setIcon(QIcon(":/icons/system-help.png"));
|
||||||
action2->setData(page);
|
action2->setData(page);
|
||||||
connect(action2, &QAction::triggered, this, &CodeEditor::open_help);
|
connect(action2, &QAction::triggered, this, &CodeEditor::open_help);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
auto action3 = menu->addAction(QString("LAMMPS Manual"));
|
auto action3 = menu->addAction(QString("LAMMPS Manual"));
|
||||||
action3->setIcon(QIcon(":/help-browser.png"));
|
action3->setIcon(QIcon(":/icons/help-browser.png"));
|
||||||
action3->setData(QString());
|
action3->setData(QString());
|
||||||
connect(action3, &QAction::triggered, this, &CodeEditor::open_help);
|
connect(action3, &QAction::triggered, this, &CodeEditor::open_help);
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 6.9 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
@ -79,7 +79,7 @@ ImageViewer::ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QWidge
|
|||||||
QSettings settings;
|
QSettings settings;
|
||||||
|
|
||||||
vdwfactor = 0.5;
|
vdwfactor = 0.5;
|
||||||
auto pix = QPixmap(":/emblem-photos.png");
|
auto pix = QPixmap(":/icons/emblem-photos.png");
|
||||||
|
|
||||||
auto *renderstatus = new QLabel(QString());
|
auto *renderstatus = new QLabel(QString());
|
||||||
renderstatus->setPixmap(pix.scaled(22, 22, Qt::KeepAspectRatio));
|
renderstatus->setPixmap(pix.scaled(22, 22, Qt::KeepAspectRatio));
|
||||||
@ -107,39 +107,39 @@ ImageViewer::ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QWidge
|
|||||||
auto *dummy = new QPushButton(QIcon(), "");
|
auto *dummy = new QPushButton(QIcon(), "");
|
||||||
dummy->hide();
|
dummy->hide();
|
||||||
|
|
||||||
auto *dossao = new QPushButton(QIcon(":/hd-img.png"), "");
|
auto *dossao = new QPushButton(QIcon(":/icons/hd-img.png"), "");
|
||||||
dossao->setCheckable(true);
|
dossao->setCheckable(true);
|
||||||
dossao->setToolTip("Toggle SSAO rendering");
|
dossao->setToolTip("Toggle SSAO rendering");
|
||||||
dossao->setObjectName("ssao");
|
dossao->setObjectName("ssao");
|
||||||
auto *doanti = new QPushButton(QIcon(":/antialias.png"), "");
|
auto *doanti = new QPushButton(QIcon(":/icons/antialias.png"), "");
|
||||||
doanti->setCheckable(true);
|
doanti->setCheckable(true);
|
||||||
doanti->setToolTip("Toggle anti-aliasing");
|
doanti->setToolTip("Toggle anti-aliasing");
|
||||||
doanti->setObjectName("antialias");
|
doanti->setObjectName("antialias");
|
||||||
auto *dovdw = new QPushButton(QIcon(":/vdw-style.png"), "");
|
auto *dovdw = new QPushButton(QIcon(":/icons/vdw-style.png"), "");
|
||||||
dovdw->setCheckable(true);
|
dovdw->setCheckable(true);
|
||||||
dovdw->setToolTip("Toggle VDW style representation");
|
dovdw->setToolTip("Toggle VDW style representation");
|
||||||
dovdw->setObjectName("vdw");
|
dovdw->setObjectName("vdw");
|
||||||
auto *dobox = new QPushButton(QIcon(":/system-box.png"), "");
|
auto *dobox = new QPushButton(QIcon(":/icons/system-box.png"), "");
|
||||||
dobox->setCheckable(true);
|
dobox->setCheckable(true);
|
||||||
dobox->setToolTip("Toggle displaying box");
|
dobox->setToolTip("Toggle displaying box");
|
||||||
dobox->setObjectName("box");
|
dobox->setObjectName("box");
|
||||||
auto *doaxes = new QPushButton(QIcon(":/axes-img.png"), "");
|
auto *doaxes = new QPushButton(QIcon(":/icons/axes-img.png"), "");
|
||||||
doaxes->setCheckable(true);
|
doaxes->setCheckable(true);
|
||||||
doaxes->setToolTip("Toggle displaying axes");
|
doaxes->setToolTip("Toggle displaying axes");
|
||||||
doaxes->setObjectName("axes");
|
doaxes->setObjectName("axes");
|
||||||
auto *zoomin = new QPushButton(QIcon(":/gtk-zoom-in.png"), "");
|
auto *zoomin = new QPushButton(QIcon(":/icons/gtk-zoom-in.png"), "");
|
||||||
zoomin->setToolTip("Zoom in by 10 percent");
|
zoomin->setToolTip("Zoom in by 10 percent");
|
||||||
auto *zoomout = new QPushButton(QIcon(":/gtk-zoom-out.png"), "");
|
auto *zoomout = new QPushButton(QIcon(":/icons/gtk-zoom-out.png"), "");
|
||||||
zoomout->setToolTip("Zoom out by 10 percent");
|
zoomout->setToolTip("Zoom out by 10 percent");
|
||||||
auto *rotleft = new QPushButton(QIcon(":/object-rotate-left.png"), "");
|
auto *rotleft = new QPushButton(QIcon(":/icons/object-rotate-left.png"), "");
|
||||||
rotleft->setToolTip("Rotate left by 15 degrees");
|
rotleft->setToolTip("Rotate left by 15 degrees");
|
||||||
auto *rotright = new QPushButton(QIcon(":/object-rotate-right.png"), "");
|
auto *rotright = new QPushButton(QIcon(":/icons/object-rotate-right.png"), "");
|
||||||
rotright->setToolTip("Rotate right by 15 degrees");
|
rotright->setToolTip("Rotate right by 15 degrees");
|
||||||
auto *rotup = new QPushButton(QIcon(":/gtk-go-up.png"), "");
|
auto *rotup = new QPushButton(QIcon(":/icons/gtk-go-up.png"), "");
|
||||||
rotup->setToolTip("Rotate up by 15 degrees");
|
rotup->setToolTip("Rotate up by 15 degrees");
|
||||||
auto *rotdown = new QPushButton(QIcon(":/gtk-go-down.png"), "");
|
auto *rotdown = new QPushButton(QIcon(":/icons/gtk-go-down.png"), "");
|
||||||
rotdown->setToolTip("Rotate down by 15 degrees");
|
rotdown->setToolTip("Rotate down by 15 degrees");
|
||||||
auto *reset = new QPushButton(QIcon(":/gtk-zoom-fit.png"), "");
|
auto *reset = new QPushButton(QIcon(":/icons/gtk-zoom-fit.png"), "");
|
||||||
reset->setToolTip("Reset view to defaults");
|
reset->setToolTip("Reset view to defaults");
|
||||||
auto *combo = new QComboBox;
|
auto *combo = new QComboBox;
|
||||||
combo->setObjectName("group");
|
combo->setObjectName("group");
|
||||||
@ -192,7 +192,7 @@ ImageViewer::ImageViewer(const QString &fileName, LammpsWrapper *_lammps, QWidge
|
|||||||
mainLayout->addLayout(menuLayout);
|
mainLayout->addLayout(menuLayout);
|
||||||
mainLayout->addWidget(scrollArea);
|
mainLayout->addWidget(scrollArea);
|
||||||
mainLayout->addWidget(buttonBox);
|
mainLayout->addWidget(buttonBox);
|
||||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
setWindowTitle(QString("Image Viewer: ") + QFileInfo(fileName).fileName());
|
setWindowTitle(QString("Image Viewer: ") + QFileInfo(fileName).fileName());
|
||||||
createActions();
|
createActions();
|
||||||
|
|
||||||
@ -475,16 +475,16 @@ void ImageViewer::createActions()
|
|||||||
QMenu *fileMenu = menuBar->addMenu("&File");
|
QMenu *fileMenu = menuBar->addMenu("&File");
|
||||||
|
|
||||||
saveAsAct = fileMenu->addAction("&Save As...", this, &ImageViewer::saveAs);
|
saveAsAct = fileMenu->addAction("&Save As...", this, &ImageViewer::saveAs);
|
||||||
saveAsAct->setIcon(QIcon(":/document-save-as.png"));
|
saveAsAct->setIcon(QIcon(":/icons/document-save-as.png"));
|
||||||
saveAsAct->setEnabled(false);
|
saveAsAct->setEnabled(false);
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
copyAct = fileMenu->addAction("&Copy", this, &ImageViewer::copy);
|
copyAct = fileMenu->addAction("&Copy", this, &ImageViewer::copy);
|
||||||
copyAct->setIcon(QIcon(":/edit-copy.png"));
|
copyAct->setIcon(QIcon(":/icons/edit-copy.png"));
|
||||||
copyAct->setShortcut(QKeySequence::Copy);
|
copyAct->setShortcut(QKeySequence::Copy);
|
||||||
copyAct->setEnabled(false);
|
copyAct->setEnabled(false);
|
||||||
fileMenu->addSeparator();
|
fileMenu->addSeparator();
|
||||||
QAction *exitAct = fileMenu->addAction("&Close", this, &QWidget::close);
|
QAction *exitAct = fileMenu->addAction("&Close", this, &QWidget::close);
|
||||||
exitAct->setIcon(QIcon(":/window-close.png"));
|
exitAct->setIcon(QIcon(":/icons/window-close.png"));
|
||||||
exitAct->setShortcut(QKeySequence::fromString("Ctrl+W"));
|
exitAct->setShortcut(QKeySequence::fromString("Ctrl+W"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -146,7 +146,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
|
|||||||
lammps_args.push_back(mystrdup("-log"));
|
lammps_args.push_back(mystrdup("-log"));
|
||||||
lammps_args.push_back(mystrdup("none"));
|
lammps_args.push_back(mystrdup("none"));
|
||||||
|
|
||||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
|
|
||||||
QFont all_font("Arial", -1);
|
QFont all_font("Arial", -1);
|
||||||
all_font.setStyleHint(QFont::SansSerif, QFont::PreferOutline);
|
all_font.setStyleHint(QFont::SansSerif, QFont::PreferOutline);
|
||||||
@ -163,7 +163,7 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
|
|||||||
|
|
||||||
varwindow = new QLabel(QString());
|
varwindow = new QLabel(QString());
|
||||||
varwindow->setWindowTitle("LAMMPS-GUI - Current Variables:");
|
varwindow->setWindowTitle("LAMMPS-GUI - Current Variables:");
|
||||||
varwindow->setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
varwindow->setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
varwindow->setMinimumSize(100, 50);
|
varwindow->setMinimumSize(100, 50);
|
||||||
varwindow->setText("(none)");
|
varwindow->setText("(none)");
|
||||||
varwindow->setFont(text_font);
|
varwindow->setFont(text_font);
|
||||||
@ -226,15 +226,15 @@ LammpsGui::LammpsGui(QWidget *parent, const char *filename) :
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
lammpsstatus = new QLabel(QString());
|
lammpsstatus = new QLabel(QString());
|
||||||
auto pix = QPixmap(":/lammps-icon-128x128.png");
|
auto pix = QPixmap(":/icons/lammps-icon-128x128.png");
|
||||||
lammpsstatus->setPixmap(pix.scaled(22, 22, Qt::KeepAspectRatio));
|
lammpsstatus->setPixmap(pix.scaled(22, 22, Qt::KeepAspectRatio));
|
||||||
ui->statusbar->addWidget(lammpsstatus);
|
ui->statusbar->addWidget(lammpsstatus);
|
||||||
lammpsstatus->setToolTip("LAMMPS instance is active");
|
lammpsstatus->setToolTip("LAMMPS instance is active");
|
||||||
lammpsstatus->hide();
|
lammpsstatus->hide();
|
||||||
|
|
||||||
auto *lammpsrun = new QPushButton(QIcon(":/system-run.png"), "");
|
auto *lammpsrun = new QPushButton(QIcon(":/icons/system-run.png"), "");
|
||||||
auto *lammpsstop = new QPushButton(QIcon(":/process-stop.png"), "");
|
auto *lammpsstop = new QPushButton(QIcon(":/icons/process-stop.png"), "");
|
||||||
auto *lammpsimage = new QPushButton(QIcon(":/emblem-photos.png"), "");
|
auto *lammpsimage = new QPushButton(QIcon(":/icons/emblem-photos.png"), "");
|
||||||
lammpsrun->setToolTip("Run LAMMPS on input");
|
lammpsrun->setToolTip("Run LAMMPS on input");
|
||||||
lammpsstop->setToolTip("Stop LAMMPS");
|
lammpsstop->setToolTip("Stop LAMMPS");
|
||||||
lammpsimage->setToolTip("Create snapshot image");
|
lammpsimage->setToolTip("Create snapshot image");
|
||||||
@ -1015,7 +1015,7 @@ void LammpsGui::do_run(bool use_buffer)
|
|||||||
else
|
else
|
||||||
logwindow->setWindowTitle("LAMMPS-GUI - Output from running LAMMPS on file - " +
|
logwindow->setWindowTitle("LAMMPS-GUI - Output from running LAMMPS on file - " +
|
||||||
current_file);
|
current_file);
|
||||||
logwindow->setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
logwindow->setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
QFont text_font;
|
QFont text_font;
|
||||||
text_font.fromString(settings.value("textfont", text_font.toString()).toString());
|
text_font.fromString(settings.value("textfont", text_font.toString()).toString());
|
||||||
logwindow->document()->setDefaultFont(text_font);
|
logwindow->document()->setDefaultFont(text_font);
|
||||||
@ -1039,7 +1039,7 @@ void LammpsGui::do_run(bool use_buffer)
|
|||||||
else
|
else
|
||||||
chartwindow->setWindowTitle("LAMMPS-GUI - Thermo charts from running LAMMPS on file - " +
|
chartwindow->setWindowTitle("LAMMPS-GUI - Thermo charts from running LAMMPS on file - " +
|
||||||
current_file);
|
current_file);
|
||||||
chartwindow->setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
chartwindow->setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
chartwindow->setMinimumSize(400, 300);
|
chartwindow->setMinimumSize(400, 300);
|
||||||
shortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), chartwindow);
|
shortcut = new QShortcut(QKeySequence(Qt::CTRL + Qt::Key_W), chartwindow);
|
||||||
QObject::connect(shortcut, &QShortcut::activated, chartwindow, &ChartWindow::close);
|
QObject::connect(shortcut, &QShortcut::activated, chartwindow, &ChartWindow::close);
|
||||||
@ -1202,10 +1202,10 @@ void LammpsGui::about()
|
|||||||
|
|
||||||
QMessageBox msg;
|
QMessageBox msg;
|
||||||
msg.setWindowTitle("About LAMMPS");
|
msg.setWindowTitle("About LAMMPS");
|
||||||
msg.setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
msg.setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
msg.setText(version.c_str());
|
msg.setText(version.c_str());
|
||||||
msg.setInformativeText(info.c_str());
|
msg.setInformativeText(info.c_str());
|
||||||
msg.setIconPixmap(QPixmap(":/lammps-icon-128x128.png").scaled(64, 64));
|
msg.setIconPixmap(QPixmap(":/icons/lammps-icon-128x128.png").scaled(64, 64));
|
||||||
msg.setStandardButtons(QMessageBox::Close);
|
msg.setStandardButtons(QMessageBox::Close);
|
||||||
QFont font;
|
QFont font;
|
||||||
font.setPointSizeF(font.pointSizeF() * 0.75);
|
font.setPointSizeF(font.pointSizeF() * 0.75);
|
||||||
@ -1222,7 +1222,7 @@ void LammpsGui::help()
|
|||||||
{
|
{
|
||||||
QMessageBox msg;
|
QMessageBox msg;
|
||||||
msg.setWindowTitle("LAMMPS-GUI Quick Help");
|
msg.setWindowTitle("LAMMPS-GUI Quick Help");
|
||||||
msg.setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
msg.setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
msg.setText("<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div>");
|
msg.setText("<div>This is LAMMPS-GUI version " LAMMPS_GUI_VERSION "</div>");
|
||||||
msg.setInformativeText("<p>LAMMPS GUI is a graphical text editor that is linked to the LAMMPS "
|
msg.setInformativeText("<p>LAMMPS GUI is a graphical text editor that is linked to the LAMMPS "
|
||||||
"library and thus can run LAMMPS directly using the contents of the "
|
"library and thus can run LAMMPS directly using the contents of the "
|
||||||
@ -1262,7 +1262,7 @@ void LammpsGui::help()
|
|||||||
"accelerator packages and number of OpenMP threads. Due to its nature "
|
"accelerator packages and number of OpenMP threads. Due to its nature "
|
||||||
"as a graphical application, it is <b>not</b> possible to use the "
|
"as a graphical application, it is <b>not</b> possible to use the "
|
||||||
"LAMMPS GUI in parallel with MPI.</p>");
|
"LAMMPS GUI in parallel with MPI.</p>");
|
||||||
msg.setIconPixmap(QPixmap(":/lammps-icon-128x128.png").scaled(64, 64));
|
msg.setIconPixmap(QPixmap(":/icons/lammps-icon-128x128.png").scaled(64, 64));
|
||||||
msg.setStandardButtons(QMessageBox::Close);
|
msg.setStandardButtons(QMessageBox::Close);
|
||||||
msg.exec();
|
msg.exec();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,62 +1,62 @@
|
|||||||
<!-- -*- xml -*- -->
|
<!-- -*- xml -*- -->
|
||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/">
|
<qresource prefix="/">
|
||||||
<file>lammps-icon-128x128.png</file>
|
<file>icons/lammps-icon-128x128.png</file>
|
||||||
<file>help_index.table</file>
|
<file>help_index.table</file>
|
||||||
<!-- This file is updated with: grep 'mycmd ==' ../../src/input.cpp | sed -e 's/^.*mycmd == "\(.*\)".*$/\1/' > lammps_internal_commands.txt -->
|
<!-- This file is updated with: grep 'mycmd ==' ../../src/input.cpp | sed -e 's/^.*mycmd == "\(.*\)".*$/\1/' > lammps_internal_commands.txt -->
|
||||||
<file>lammps_internal_commands.txt</file>
|
<file>lammps_internal_commands.txt</file>
|
||||||
<file>antialias.png</file>
|
<file>icons/antialias.png</file>
|
||||||
<file>application-calc.png</file>
|
<file>icons/application-calc.png</file>
|
||||||
<file>application-exit.png</file>
|
<file>icons/application-exit.png</file>
|
||||||
<file>application-plot.png</file>
|
<file>icons/application-plot.png</file>
|
||||||
<file>axes-img.png</file>
|
<file>icons/axes-img.png</file>
|
||||||
<file>document-new.png</file>
|
<file>icons/document-new.png</file>
|
||||||
<file>document-open-recent.png</file>
|
<file>icons/document-open-recent.png</file>
|
||||||
<file>document-open.png</file>
|
<file>icons/document-open.png</file>
|
||||||
<file>document-revert.png</file>
|
<file>icons/document-revert.png</file>
|
||||||
<file>document-save-as.png</file>
|
<file>icons/document-save-as.png</file>
|
||||||
<file>document-save.png</file>
|
<file>icons/document-save.png</file>
|
||||||
<file>edit-copy.png</file>
|
<file>icons/edit-copy.png</file>
|
||||||
<file>edit-cut.png</file>
|
<file>icons/edit-cut.png</file>
|
||||||
<file>edit-delete.png</file>
|
<file>icons/edit-delete.png</file>
|
||||||
<file>edit-paste.png</file>
|
<file>icons/edit-paste.png</file>
|
||||||
<file>edit-redo.png</file>
|
<file>icons/edit-redo.png</file>
|
||||||
<file>edit-undo.png</file>
|
<file>icons/edit-undo.png</file>
|
||||||
<file>emblem-photos.png</file>
|
<file>icons/emblem-photos.png</file>
|
||||||
<file>expand-text.png</file>
|
<file>icons/expand-text.png</file>
|
||||||
<file>export-movie.png</file>
|
<file>icons/export-movie.png</file>
|
||||||
<file>format-indent-less-3.png</file>
|
<file>icons/format-indent-less-3.png</file>
|
||||||
<file>go-first.png</file>
|
<file>icons/go-first.png</file>
|
||||||
<file>go-last.png</file>
|
<file>icons/go-last.png</file>
|
||||||
<file>go-next-2.png</file>
|
<file>icons/go-next-2.png</file>
|
||||||
<file>go-previous-2.png</file>
|
<file>icons/go-previous-2.png</file>
|
||||||
<file>gtk-go-down.png</file>
|
<file>icons/gtk-go-down.png</file>
|
||||||
<file>gtk-go-up.png</file>
|
<file>icons/gtk-go-up.png</file>
|
||||||
<file>gtk-zoom-fit.png</file>
|
<file>icons/gtk-zoom-fit.png</file>
|
||||||
<file>gtk-zoom-in.png</file>
|
<file>icons/gtk-zoom-in.png</file>
|
||||||
<file>gtk-zoom-out.png</file>
|
<file>icons/gtk-zoom-out.png</file>
|
||||||
<file>hd-img.png</file>
|
<file>icons/hd-img.png</file>
|
||||||
<file>help-about.png</file>
|
<file>icons/help-about.png</file>
|
||||||
<file>help-browser.png</file>
|
<file>icons/help-browser.png</file>
|
||||||
<file>help-faq.png</file>
|
<file>icons/help-faq.png</file>
|
||||||
<file>image-x-generic.png</file>
|
<file>icons/image-x-generic.png</file>
|
||||||
<file>media-playback-start-2.png</file>
|
<file>icons/media-playback-start-2.png</file>
|
||||||
<file>media-playlist-repeat.png</file>
|
<file>icons/media-playlist-repeat.png</file>
|
||||||
<file>object-rotate-left.png</file>
|
<file>icons/object-rotate-left.png</file>
|
||||||
<file>object-rotate-right.png</file>
|
<file>icons/object-rotate-right.png</file>
|
||||||
<file>ovito.png</file>
|
<file>icons/ovito.png</file>
|
||||||
<file>preferences-desktop-font.png</file>
|
<file>icons/preferences-desktop-font.png</file>
|
||||||
<file>preferences-desktop-personal.png</file>
|
<file>icons/preferences-desktop-personal.png</file>
|
||||||
<file>preferences-desktop.png</file>
|
<file>icons/preferences-desktop.png</file>
|
||||||
<file>process-stop.png</file>
|
<file>icons/process-stop.png</file>
|
||||||
<file>run-file.png</file>
|
<file>icons/run-file.png</file>
|
||||||
<file>system-box.png</file>
|
<file>icons/system-box.png</file>
|
||||||
<file>system-help.png</file>
|
<file>icons/system-help.png</file>
|
||||||
<file>system-run.png</file>
|
<file>icons/system-run.png</file>
|
||||||
<file>utilities-terminal.png</file>
|
<file>icons/utilities-terminal.png</file>
|
||||||
<file>vdw-style.png</file>
|
<file>icons/vdw-style.png</file>
|
||||||
<file>vmd.png</file>
|
<file>icons/vmd.png</file>
|
||||||
<file>window-close.png</file>
|
<file>icons/window-close.png</file>
|
||||||
<file>x-office-drawing.png</file>
|
<file>icons/x-office-drawing.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@ -105,7 +105,7 @@
|
|||||||
<widget class="QStatusBar" name="statusbar"/>
|
<widget class="QStatusBar" name="statusbar"/>
|
||||||
<action name="actionNew">
|
<action name="actionNew">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-new.png"/>
|
<iconset theme=":/icons/document-new.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&New</string>
|
<string>&New</string>
|
||||||
@ -116,7 +116,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionOpen">
|
<action name="actionOpen">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-open.png"/>
|
<iconset theme=":/icons/document-open.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Open</string>
|
<string>&Open</string>
|
||||||
@ -127,7 +127,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionSave">
|
<action name="actionSave">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-save.png"/>
|
<iconset theme=":/icons/document-save.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Save</string>
|
<string>&Save</string>
|
||||||
@ -138,7 +138,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionSave_As">
|
<action name="actionSave_As">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-save-as.png"/>
|
<iconset theme=":/icons/document-save-as.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Save &As</string>
|
<string>Save &As</string>
|
||||||
@ -149,7 +149,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionQuit">
|
<action name="actionQuit">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/application-exit.png"/>
|
<iconset theme=":/icons/application-exit.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Quit</string>
|
<string>&Quit</string>
|
||||||
@ -160,7 +160,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionCut">
|
<action name="actionCut">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/edit-cut.png"/>
|
<iconset theme=":/icons/edit-cut.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Cu&t</string>
|
<string>Cu&t</string>
|
||||||
@ -171,7 +171,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionCopy">
|
<action name="actionCopy">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/edit-copy.png"/>
|
<iconset theme=":/icons/edit-copy.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Copy</string>
|
<string>&Copy</string>
|
||||||
@ -182,7 +182,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionPaste">
|
<action name="actionPaste">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/edit-paste.png"/>
|
<iconset theme=":/icons/edit-paste.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Paste</string>
|
<string>&Paste</string>
|
||||||
@ -193,7 +193,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionUndo">
|
<action name="actionUndo">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/edit-undo.png"/>
|
<iconset theme=":/icons/edit-undo.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Undo</string>
|
<string>&Undo</string>
|
||||||
@ -204,7 +204,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionRedo">
|
<action name="actionRedo">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/edit-redo.png"/>
|
<iconset theme=":/icons/edit-redo.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Redo</string>
|
<string>&Redo</string>
|
||||||
@ -215,7 +215,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionRun_Buffer">
|
<action name="actionRun_Buffer">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/system-run.png"/>
|
<iconset theme=":/icons/system-run.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Run LAMMPS from Editor Buffer</string>
|
<string>&Run LAMMPS from Editor Buffer</string>
|
||||||
@ -226,7 +226,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionRun_File">
|
<action name="actionRun_File">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/run-file.png"/>
|
<iconset theme=":/icons/run-file.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Run LAMMPS from File</string>
|
<string>&Run LAMMPS from File</string>
|
||||||
@ -237,7 +237,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionStop_LAMMPS">
|
<action name="actionStop_LAMMPS">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/process-stop.png"/>
|
<iconset theme=":/icons/process-stop.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Stop LAMMPS</string>
|
<string>&Stop LAMMPS</string>
|
||||||
@ -248,7 +248,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionImage">
|
<action name="actionImage">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/emblem-photos.png"/>
|
<iconset theme=":/icons/emblem-photos.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Create &Image</string>
|
<string>Create &Image</string>
|
||||||
@ -259,7 +259,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionAbout_LAMMPS_GUI">
|
<action name="actionAbout_LAMMPS_GUI">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/help-about.png"/>
|
<iconset theme=":/icons/help-about.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&About LAMMPS</string>
|
<string>&About LAMMPS</string>
|
||||||
@ -270,7 +270,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="action_Help">
|
<action name="action_Help">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/help-faq.png"/>
|
<iconset theme=":/icons/help-faq.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Quick &Help</string>
|
<string>Quick &Help</string>
|
||||||
@ -281,7 +281,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionPreferences">
|
<action name="actionPreferences">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/preferences-desktop.png"/>
|
<iconset theme=":/icons/preferences-desktop.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Pre&ferences...</string>
|
<string>Pre&ferences...</string>
|
||||||
@ -292,7 +292,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionLAMMPS_Manual">
|
<action name="actionLAMMPS_Manual">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/help-browser.png"/>
|
<iconset theme=":/icons/help-browser.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>LAMMPS &Manual</string>
|
<string>LAMMPS &Manual</string>
|
||||||
@ -303,7 +303,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionDefaults">
|
<action name="actionDefaults">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-revert.png"/>
|
<iconset theme=":/icons/document-revert.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Reset to &Defaults</string>
|
<string>Reset to &Defaults</string>
|
||||||
@ -311,7 +311,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_in_OVITO">
|
<action name="actionView_in_OVITO">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/ovito.png"/>
|
<iconset theme=":/icons/ovito.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>View in &OVITO</string>
|
<string>View in &OVITO</string>
|
||||||
@ -322,7 +322,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_in_VMD">
|
<action name="actionView_in_VMD">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/vmd.png"/>
|
<iconset theme=":/icons/vmd.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>View in VM&D</string>
|
<string>View in VM&D</string>
|
||||||
@ -333,7 +333,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_Log_Window">
|
<action name="actionView_Log_Window">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/utilities-terminal.png"/>
|
<iconset theme=":/icons/utilities-terminal.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Log Window</string>
|
<string>&Log Window</string>
|
||||||
@ -344,7 +344,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_Graph_Window">
|
<action name="actionView_Graph_Window">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/x-office-drawing.png"/>
|
<iconset theme=":/icons/x-office-drawing.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Chart Window</string>
|
<string>&Chart Window</string>
|
||||||
@ -355,7 +355,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_Slide_Show">
|
<action name="actionView_Slide_Show">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/image-x-generic.png"/>
|
<iconset theme=":/icons/image-x-generic.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Slide Show Window</string>
|
<string>&Slide Show Window</string>
|
||||||
@ -366,7 +366,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="action_1">
|
<action name="action_1">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-open-recent.png"/>
|
<iconset theme=":/icons/document-open-recent.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&1.</string>
|
<string>&1.</string>
|
||||||
@ -374,7 +374,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="action_2">
|
<action name="action_2">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-open-recent.png"/>
|
<iconset theme=":/icons/document-open-recent.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&2.</string>
|
<string>&2.</string>
|
||||||
@ -382,7 +382,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="action_3">
|
<action name="action_3">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-open-recent.png"/>
|
<iconset theme=":/icons/document-open-recent.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&3.</string>
|
<string>&3.</string>
|
||||||
@ -390,7 +390,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="action_4">
|
<action name="action_4">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-open-recent.png"/>
|
<iconset theme=":/icons/document-open-recent.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&4.</string>
|
<string>&4.</string>
|
||||||
@ -398,7 +398,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="action_5">
|
<action name="action_5">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/document-open-recent.png"/>
|
<iconset theme=":/icons/document-open-recent.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&5.</string>
|
<string>&5.</string>
|
||||||
@ -406,7 +406,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_Image_Window">
|
<action name="actionView_Image_Window">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/emblem-photos.png"/>
|
<iconset theme=":/icons/emblem-photos.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Image Window</string>
|
<string>&Image Window</string>
|
||||||
@ -417,7 +417,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionSet_Variables">
|
<action name="actionSet_Variables">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/preferences-desktop-personal.png"/>
|
<iconset theme=":/icons/preferences-desktop-personal.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Set &Variables...</string>
|
<string>Set &Variables...</string>
|
||||||
@ -428,7 +428,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionView_Variable_Window">
|
<action name="actionView_Variable_Window">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/preferences-desktop-personal.png"/>
|
<iconset theme=":/icons/preferences-desktop-personal.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Variables Window</string>
|
<string>&Variables Window</string>
|
||||||
@ -439,7 +439,7 @@
|
|||||||
</action>
|
</action>
|
||||||
<action name="actionLAMMPS_GUI_Howto">
|
<action name="actionLAMMPS_GUI_Howto">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset theme=":/system-help.png"/>
|
<iconset theme=":/icons/system-help.png"/>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>LAMMPS GUI Howto</string>
|
<string>LAMMPS GUI Howto</string>
|
||||||
|
|||||||
@ -73,7 +73,7 @@ Preferences::Preferences(LammpsWrapper *_lammps, QWidget *parent) :
|
|||||||
layout->addWidget(tabWidget);
|
layout->addWidget(tabWidget);
|
||||||
layout->addWidget(buttonBox);
|
layout->addWidget(buttonBox);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
setWindowTitle("LAMMPS-GUI - Preferences");
|
setWindowTitle("LAMMPS-GUI - Preferences");
|
||||||
resize(600, 450);
|
resize(600, 450);
|
||||||
}
|
}
|
||||||
@ -242,9 +242,9 @@ GeneralTab::GeneralTab(QSettings *_settings, LammpsWrapper *_lammps, QWidget *pa
|
|||||||
|
|
||||||
auto *fontlayout = new QHBoxLayout;
|
auto *fontlayout = new QHBoxLayout;
|
||||||
auto *getallfont =
|
auto *getallfont =
|
||||||
new QPushButton(QIcon(":/preferences-desktop-font.png"), "Select Default Font...");
|
new QPushButton(QIcon(":/icons/preferences-desktop-font.png"), "Select Default Font...");
|
||||||
auto *gettextfont =
|
auto *gettextfont =
|
||||||
new QPushButton(QIcon(":/preferences-desktop-font.png"), "Select Text Font...");
|
new QPushButton(QIcon(":/icons/preferences-desktop-font.png"), "Select Text Font...");
|
||||||
fontlayout->addWidget(getallfont);
|
fontlayout->addWidget(getallfont);
|
||||||
fontlayout->addWidget(gettextfont);
|
fontlayout->addWidget(gettextfont);
|
||||||
connect(getallfont, &QPushButton::released, this, &GeneralTab::newallfont);
|
connect(getallfont, &QPushButton::released, this, &GeneralTab::newallfont);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ SetVariables::SetVariables(QList<QPair<QString, QString>> &_vars, QWidget *paren
|
|||||||
auto *row = new QHBoxLayout;
|
auto *row = new QHBoxLayout;
|
||||||
auto *name = new QLineEdit(v.first);
|
auto *name = new QLineEdit(v.first);
|
||||||
auto *val = new QLineEdit(v.second);
|
auto *val = new QLineEdit(v.second);
|
||||||
auto *del = new QPushButton(QIcon(":/edit-delete.png"), "");
|
auto *del = new QPushButton(QIcon(":/icons/edit-delete.png"), "");
|
||||||
name->setObjectName("varname");
|
name->setObjectName("varname");
|
||||||
val->setObjectName("varval");
|
val->setObjectName("varval");
|
||||||
del->setObjectName(QString::number(i));
|
del->setObjectName(QString::number(i));
|
||||||
@ -55,7 +55,7 @@ SetVariables::SetVariables(QList<QPair<QString, QString>> &_vars, QWidget *paren
|
|||||||
|
|
||||||
layout->addWidget(buttonBox);
|
layout->addWidget(buttonBox);
|
||||||
setLayout(layout);
|
setLayout(layout);
|
||||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
setWindowTitle("LAMMPS-GUI - Set Variables");
|
setWindowTitle("LAMMPS-GUI - Set Variables");
|
||||||
resize(300, 200);
|
resize(300, 200);
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ void SetVariables::add_row()
|
|||||||
auto *row = new QHBoxLayout;
|
auto *row = new QHBoxLayout;
|
||||||
auto *name = new QLineEdit(QString());
|
auto *name = new QLineEdit(QString());
|
||||||
auto *val = new QLineEdit(QString());
|
auto *val = new QLineEdit(QString());
|
||||||
auto *del = new QPushButton(QIcon(":/edit-delete.png"), "");
|
auto *del = new QPushButton(QIcon(":/icons/edit-delete.png"), "");
|
||||||
name->setObjectName("varname");
|
name->setObjectName("varname");
|
||||||
val->setObjectName("varval");
|
val->setObjectName("varval");
|
||||||
del->setObjectName(QString::number(nrows - 2));
|
del->setObjectName(QString::number(nrows - 2));
|
||||||
|
|||||||
@ -64,33 +64,33 @@ SlideShow::SlideShow(const QString &fileName, QWidget *parent) :
|
|||||||
auto *dummy = new QPushButton(QIcon(), "");
|
auto *dummy = new QPushButton(QIcon(), "");
|
||||||
dummy->hide();
|
dummy->hide();
|
||||||
|
|
||||||
auto *tomovie = new QPushButton(QIcon(":/export-movie.png"), "");
|
auto *tomovie = new QPushButton(QIcon(":/icons/export-movie.png"), "");
|
||||||
tomovie->setToolTip("Export to movie file");
|
tomovie->setToolTip("Export to movie file");
|
||||||
tomovie->setEnabled(has_exe("ffmpeg"));
|
tomovie->setEnabled(has_exe("ffmpeg"));
|
||||||
|
|
||||||
auto *gofirst = new QPushButton(QIcon(":/go-first.png"), "");
|
auto *gofirst = new QPushButton(QIcon(":/icons/go-first.png"), "");
|
||||||
gofirst->setToolTip("Go to first Image");
|
gofirst->setToolTip("Go to first Image");
|
||||||
auto *goprev = new QPushButton(QIcon(":/go-previous-2.png"), "");
|
auto *goprev = new QPushButton(QIcon(":/icons/go-previous-2.png"), "");
|
||||||
goprev->setToolTip("Go to previous Image");
|
goprev->setToolTip("Go to previous Image");
|
||||||
auto *goplay = new QPushButton(QIcon(":/media-playback-start-2.png"), "");
|
auto *goplay = new QPushButton(QIcon(":/icons/media-playback-start-2.png"), "");
|
||||||
goplay->setToolTip("Play animation");
|
goplay->setToolTip("Play animation");
|
||||||
goplay->setCheckable(true);
|
goplay->setCheckable(true);
|
||||||
goplay->setChecked(playtimer);
|
goplay->setChecked(playtimer);
|
||||||
goplay->setObjectName("play");
|
goplay->setObjectName("play");
|
||||||
auto *gonext = new QPushButton(QIcon(":/go-next-2.png"), "");
|
auto *gonext = new QPushButton(QIcon(":/icons/go-next-2.png"), "");
|
||||||
gonext->setToolTip("Go to next Image");
|
gonext->setToolTip("Go to next Image");
|
||||||
auto *golast = new QPushButton(QIcon(":/go-last.png"), "");
|
auto *golast = new QPushButton(QIcon(":/icons/go-last.png"), "");
|
||||||
golast->setToolTip("Go to last Image");
|
golast->setToolTip("Go to last Image");
|
||||||
auto *goloop = new QPushButton(QIcon(":/media-playlist-repeat.png"), "");
|
auto *goloop = new QPushButton(QIcon(":/icons/media-playlist-repeat.png"), "");
|
||||||
goloop->setToolTip("Loop animation");
|
goloop->setToolTip("Loop animation");
|
||||||
goloop->setCheckable(true);
|
goloop->setCheckable(true);
|
||||||
goloop->setChecked(do_loop);
|
goloop->setChecked(do_loop);
|
||||||
|
|
||||||
auto *zoomin = new QPushButton(QIcon(":/gtk-zoom-in.png"), "");
|
auto *zoomin = new QPushButton(QIcon(":/icons/gtk-zoom-in.png"), "");
|
||||||
zoomin->setToolTip("Zoom in by 10 percent");
|
zoomin->setToolTip("Zoom in by 10 percent");
|
||||||
auto *zoomout = new QPushButton(QIcon(":/gtk-zoom-out.png"), "");
|
auto *zoomout = new QPushButton(QIcon(":/icons/gtk-zoom-out.png"), "");
|
||||||
zoomout->setToolTip("Zoom out by 10 percent");
|
zoomout->setToolTip("Zoom out by 10 percent");
|
||||||
auto *normal = new QPushButton(QIcon(":/gtk-zoom-fit.png"), "");
|
auto *normal = new QPushButton(QIcon(":/icons/gtk-zoom-fit.png"), "");
|
||||||
normal->setToolTip("Reset zoom to normal");
|
normal->setToolTip("Reset zoom to normal");
|
||||||
|
|
||||||
connect(tomovie, &QPushButton::released, this, &SlideShow::movie);
|
connect(tomovie, &QPushButton::released, this, &SlideShow::movie);
|
||||||
@ -127,7 +127,7 @@ SlideShow::SlideShow(const QString &fileName, QWidget *parent) :
|
|||||||
botLayout->setStretch(0, 3);
|
botLayout->setStretch(0, 3);
|
||||||
mainLayout->addLayout(botLayout);
|
mainLayout->addLayout(botLayout);
|
||||||
|
|
||||||
setWindowIcon(QIcon(":/lammps-icon-128x128.png"));
|
setWindowIcon(QIcon(":/icons/lammps-icon-128x128.png"));
|
||||||
setWindowTitle(QString("LAMMPS-GUI - Slide Show: ") + QFileInfo(fileName).fileName());
|
setWindowTitle(QString("LAMMPS-GUI - Slide Show: ") + QFileInfo(fileName).fileName());
|
||||||
|
|
||||||
imagefiles.clear();
|
imagefiles.clear();
|
||||||
|
|||||||