SMILX
1.01
apps
smilx
smilx.cpp
1
/*=========================================================================
2
The Software is copyright (c) Commonwealth Scientific and Industrial Research Organisation (CSIRO)
3
ABN 41 687 119 230.
4
All rights reserved.
5
6
Licensed under the CSIRO BSD 3-Clause License
7
You may not use this file except in compliance with the License.
8
You may obtain a copy of the License in the file LICENSE.md or at
9
10
https://stash.csiro.au/projects/SMILI/repos/smili/browse/license.txt
11
12
Unless required by applicable law or agreed to in writing, software
13
distributed under the License is distributed on an "AS IS" BASIS,
14
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
See the License for the specific language governing permissions and
16
limitations under the License.
17
=========================================================================*/
22
//Qt
23
#include <QApplication>
24
25
#include "milxQtMain.h"
26
27
int
main
(
int
argc,
char
* argv[])
28
{
29
QApplication app(argc,argv);
30
31
QPixmap icon(
":resources/smilx_icon.png"
);
32
app.setWindowIcon(QIcon(icon));
33
34
QPixmap pixmap(
":resources/smilx_splash.png"
);
35
QSplashScreen splash(pixmap);
36
// splash.setMask(pixmap.mask());
37
splash.showMessage(
"This software is for research purposes only and is NOT approved for clinical use"
, Qt::AlignBottom | Qt::AlignHCenter);
38
splash.show();
39
app.processEvents();
40
41
milxQtMain
Main;
42
Main.setWindowTitle(
"SMILX"
);
43
Main.show();
44
splash.finish(&Main);
45
47
QStringList files = app.arguments();
48
files.erase(files.begin());
//First element is the program name
49
Main.
loadFiles
(files);
50
51
return
app.exec();
52
}
milxQtMain::loadFiles
void loadFiles(const QStringList &filenames)
Opens multiple files for viewing in the current tab.
Definition:
milxQtMain.cpp:523
main
int main(int argc, char *argv[])
Definition:
milxDeformableModelApp.cxx:75
milxQtMain
This class represents the MILX Qt Main Window object using Qt.
Definition:
milxQtMain.h:85
Generated on Thu Jul 6 2017 11:44:23 for SMILX by
1.8.13