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
77c702a9
Commit
77c702a9
authored
Feb 12, 2013
by
Stefy Lanza (nextime / spora )
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go forward
parent
a9398510
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
6 deletions
+61
-6
main.cpp
src/main.cpp
+61
-6
No files found.
src/main.cpp
View file @
77c702a9
...
...
@@ -36,19 +36,74 @@
*/
#include <QApplication>
#include <QFile>
#include <QObject>
#include "skylivex.h"
/*
* class SkyliveX
* This is the core of the SkyliveX client.
* Here the inter-thread and inter-process communication
* with plugins is done, so, the magic happen here
*/
class
SkyliveX
:
public
QObject
{
Q_OBJECT
public
:
SkyliveX
(
QObject
*
parent
=
0
)
:
QObject
(
parent
)
{}
~
SkyliveX
()
{}
public
slots
:
void
run
()
{
emit
finished
();
}
signals
:
void
finished
();
};
/*
* Not less important than the core is the main window.
* It is a Wekbit object that load our HTML/js gui
* for the main window!
*/
//class MainWindow
/*
* main loop.
* Here lives some objects:
* - the initial splash screen
* - the plugin messages emitter/receiver
* - the main window
* - the plugin manager
* - the config parser
*/
int
main
(
int
argc
,
char
*
argv
[])
{
QApplication
skylivex
(
argc
,
argv
);
QFile
splashfile
(
"gui/splash.html"
);
SplashPage
splashwin
(
splashfile
);
splashwin
.
show
();
// Start our application object
QApplication
skylivex
(
argc
,
argv
);
// Start the splash screen. also
// the splash screen is a (transparent) webkit object
QFile
splashfile
(
"gui/splash.html"
);
SplashPage
splashwin
(
splashfile
);
splashwin
.
show
();
// Instance of the core ITC/IPC messasing
SkyliveX
*
skx
=
new
SkyliveX
(
&
skylivex
);
// connect the "finished" signal coming from the ITC/IPC to the qui call
QObject
::
connect
(
skx
,
SIGNAL
(
finished
()),
&
skx
,
SLOT
(
quit
()));
// and give a slot to the ITC/IPC in the main loop
QTimer
::
signalShot
(
0
,
skx
,
SLOT
(
run
()));
return
skylivex
.
exec
();
// and then.. go!
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