Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
skylivex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
astronomy
skylivex
Commits
ce1e470a
Commit
ce1e470a
authored
Feb 11, 2013
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
splash window
parent
4c7db249
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
82 additions
and
2 deletions
+82
-2
LICENSE.txt
LICENSE.txt
+1
-0
README.md
README.md
+5
-1
splash.html
gui/splash.html
+1
-1
skylivex.pro
skylivex.pro
+5
-0
main.cpp
src/main.cpp
+70
-0
No files found.
LICENSE.txt
View file @
ce1e470a
See COPYING file
README.md
View file @
ce1e470a
skylivex
skylivex
========
========
SkyliveX: a (new) cross-platform client for the Skylive Robotic telescopes network - http://www.skylive.it
SkyliveX: a (new) cross-platform client for the Skylive Robotic telescopes network - http://www.skylive.it
\ No newline at end of file
gui/splash.html
View file @
ce1e470a
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<title>
SkyliveX
</title>
<title>
SkyliveX
</title>
<style>
<style>
#loading
{
#loading
{
background
:
#fff
;
color
:
#ff0000
;
}
}
</style>
</style>
</head>
</head>
...
...
skylivex.pro
View file @
ce1e470a
SOURCES
=
src
/
main
.
cpp
QT
+=
network
webkitwidgets
widgets
OTHER_FILES
+=
\
gui
/
splash
.
html
src/main.cpp
View file @
ce1e470a
/* ____ _ _ _ __ __
* / ___|| | ___ _| (_)_ _____\ \/ /
* \___ \| |/ / | | | | \ \ / / _ \\ /
* ___) | <| |_| | | |\ V / __// \ Remote Telescopes
* |____/|_|\_\\__, |_|_| \_/ \___/_/\_\ For the masses
* |___/
*
* Copyright (C) 2013 Franco (nextime) Lanza <nextime@nexlab.it>
* Copyright (C) 2013 Ivan Bellia <skylive@skylive.it>
*
* All rights reserved.
*
* This file is part of SkyliveX.
*
* SkyliveX is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Foobar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*
********************************************************************
*
* File: main.cpp
*
* Purpose: Core file for the SkyliveX client. It provide core
* functionality as the enter point of the client and
* to load plugins and make them communicate.
*
*/
#include <QWebView>
#include <QWebFrame>
#include <QDesktopWidget>
#include <QApplication>
#include <QFile>
#include <QUrl>
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
skylivex
(
argc
,
argv
);
QWebView
splashwin
;
QFile
loadinghtml
(
"gui/splash.html"
);
loadinghtml
.
open
(
QIODevice
::
ReadOnly
);
splashwin
.
setWindowFlags
(
Qt
::
FramelessWindowHint
);
QPalette
palette
=
splashwin
.
palette
();
palette
.
setBrush
(
QPalette
::
Base
,
Qt
::
transparent
);
splashwin
.
page
()
->
setPalette
(
palette
);
splashwin
.
setAttribute
(
Qt
::
WA_TranslucentBackground
,
true
);
splashwin
.
setAttribute
(
Qt
::
WA_OpaquePaintEvent
,
false
);
//splashwin.setGeometry(0, 0, QApplication::desktop()->size().width(), QApplication::desktop()->size().height());
splashwin
.
setHtml
(
QString
::
fromUtf8
(
loadinghtml
.
readAll
().
constData
()),
QUrl
());
splashwin
.
resize
(
300
,
200
);
splashwin
.
show
();
return
skylivex
.
exec
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment