generated from allen-cell-animated/github-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '42581392f0e29d5c91e0de20264093a34cc4167f' into feature/…
…color-lut
- Loading branch information
Showing
9 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#include "aboutDialog.h" | ||
|
||
#include <QApplication> | ||
#include <QDialogButtonBox> | ||
#include <QLabel> | ||
#include <QTextBrowser> | ||
#include <QVBoxLayout> | ||
|
||
AboutDialog::AboutDialog() | ||
: QDialog() | ||
{ | ||
setWindowTitle("About AGAVE"); | ||
auto layout = new QVBoxLayout(this); | ||
auto label = new QLabel(this); | ||
|
||
label->setText("<h1 style=\"line-height:70%\"><b>AGAVE</b></h1>" | ||
"<i style=\"line-height:70%\">Advanced GPU Accelerated Volume Explorer</i>" | ||
"<h4><b>Version " + | ||
qApp->applicationVersion() + "</b></h4>"); | ||
label->setAlignment(Qt::AlignCenter); | ||
layout->addWidget(label); | ||
|
||
QString agaveUrl = "https://github.com/allen-cell-animated/agave"; | ||
|
||
auto text = new QLabel(this); | ||
text->setText( | ||
"AGAVE is a desktop volume viewer that uses path trace rendering and cinematic lighting techniques to generate " | ||
"images with a high degree of resolution and clarity. It is designed and optimized for multi-channel OME-TIFF or " | ||
"OME-Zarr files.<br><br>" | ||
"<a href=\"https://www.allencell.org/pathtrace-rendering.html\">Visit our website</a> to learn more and download " | ||
"the latest version."); | ||
text->setFrameShape(QFrame::Panel); | ||
text->setFrameShadow(QFrame::Sunken); | ||
text->setTextInteractionFlags(Qt::TextBrowserInteraction); | ||
text->setOpenExternalLinks(true); | ||
text->setWordWrap(true); | ||
layout->addWidget(text); | ||
|
||
label = new QLabel(this); | ||
label->setText( | ||
"AGAVE is made possible through the hard work and dedication of engineers, designers, and scientists at the Allen " | ||
"Institute for Cell Science and through the continued philanthropy of the Paul Allen estate." | ||
"<br>" | ||
"<br>" | ||
"<b>Copyright 2023 The Allen Institute. All rights reserved.</b><br>" | ||
""); | ||
label->setWordWrap(true); | ||
layout->addWidget(label); | ||
|
||
auto button = new QDialogButtonBox(QDialogButtonBox::Ok, this); | ||
button->setCenterButtons(true); | ||
layout->addWidget(button); | ||
connect(button, &QDialogButtonBox::accepted, this, &QDialog::accept); | ||
|
||
setLayout(layout); | ||
} | ||
|
||
AboutDialog::~AboutDialog() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include <QDialog> | ||
|
||
class AboutDialog : public QDialog | ||
{ | ||
public: | ||
AboutDialog(); | ||
virtual ~AboutDialog(); | ||
|
||
QSize sizeHint() const override { return QSize(500, 100); } | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#include "citationDialog.h" | ||
|
||
#include <QApplication> | ||
#include <QDialogButtonBox> | ||
#include <QLabel> | ||
#include <QTextBrowser> | ||
#include <QVBoxLayout> | ||
|
||
CitationDialog::CitationDialog() | ||
: QDialog() | ||
{ | ||
setWindowTitle("Cite AGAVE"); | ||
auto layout = new QVBoxLayout(this); | ||
|
||
auto label = new QLabel(this); | ||
label->setText("If you use AGAVE in your research, please cite the following:"); | ||
layout->addWidget(label); | ||
|
||
QString agaveUrl = "https://github.com/allen-cell-animated/agave"; | ||
|
||
auto citationtext = new QLabel(this); | ||
citationtext->setText( | ||
"Daniel Toloudis, AGAVE Contributors (2023). AGAVE: Advanced GPU Accelerated Volume Explorer (Version " + | ||
qApp->applicationVersion() + | ||
") [Computer software]. Allen Institute for Cell Science. <a " | ||
"href=\"" + | ||
agaveUrl + "\"></a>"); | ||
citationtext->setFrameShape(QFrame::Panel); | ||
citationtext->setFrameShadow(QFrame::Sunken); | ||
citationtext->setTextInteractionFlags(Qt::TextBrowserInteraction); | ||
citationtext->setOpenExternalLinks(true); | ||
citationtext->setWordWrap(true); | ||
layout->addWidget(citationtext); | ||
|
||
auto label2 = new QLabel(this); | ||
label2->setText("bibtex:"); | ||
layout->addWidget(label2); | ||
|
||
auto citationtext2 = new QLabel(this); | ||
citationtext2->setText("<tt>@software{agave,<br/>" | ||
" author = {Toloudis, Daniel and AGAVE Contributors},<br/>" | ||
" title = {AGAVE: Advanced GPU Accelerated Volume Explorer},<br/>" | ||
" year = {2023},<br/>" | ||
" version = {" + | ||
qApp->applicationVersion() + | ||
"},<br/>" | ||
" url = {" + | ||
agaveUrl + | ||
"}<br/>" | ||
" organization = {Allen Institute for Cell Science}<br/>" | ||
" note = {Computer Software}<br/>" | ||
"}</tt><br/>"); | ||
citationtext2->setFrameShape(QFrame::Panel); | ||
citationtext2->setFrameShadow(QFrame::Sunken); | ||
citationtext2->setTextInteractionFlags(Qt::TextBrowserInteraction); | ||
citationtext2->setOpenExternalLinks(true); | ||
citationtext2->setWordWrap(true); | ||
layout->addWidget(citationtext2); | ||
|
||
auto button = new QDialogButtonBox(QDialogButtonBox::Ok, this); | ||
button->setCenterButtons(true); | ||
layout->addWidget(button); | ||
connect(button, &QDialogButtonBox::accepted, this, &QDialog::accept); | ||
|
||
setLayout(layout); | ||
} | ||
|
||
CitationDialog::~CitationDialog() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include <QDialog> | ||
|
||
class CitationDialog : public QDialog | ||
{ | ||
public: | ||
CitationDialog(); | ||
virtual ~CitationDialog(); | ||
|
||
QSize sizeHint() const override { return QSize(500, 100); } | ||
}; |