New QOrbiter Setup
From LinuxMCE
Revision as of 19:13, 1 October 2012 by Langstonius (Talk | contribs)
In order to create a proper Splash / Setup screen, certain key things but be implemented. This is a guide to those functions and properties that must be set for a new QOrbiter to be created.
Properties
Property Name | Property Type | Signal | Description | Example |
---|---|---|---|---|
tcTotalTime | int | totalTimeChanged() | the total time, in milliseconds of the current media | Here i use the total time to calculate the time when dragging the seek bar back and forth
property int slidertimer: (scroll_tab.x / scroller_transit.width) * dceTimecode.tcTotalTime |
tcCurrentTime | int | timeChanged() | the current position, in milliseconds | |
runningTimer | double | positionChanged() | Used to constantly update the position of the seek bar as media advances | By setting the x property to do a little math, I get the seek bar to advance across the transit as the media plays
x: ( dceTimecode.runningTimer / dceTimecode.tcTotalTime) * scroller.width |
dragTime | String | dragTimeChanged() | the time that the slider if implemented has been dragged to. | Here, it is utilized in a popup that shows when a user drags the seek bar
Text { id: drag_label text: dceTimecode.dragTime anchors.centerIn: parent } |
qsTotalTime | String | totalStringTimeChanged() | Total time of media, formatted in HH::MM::SS - updated every second | |
qsCurrentTime | String | stringTimeChanged() | The current position of the media in HH:MM::SS - updated every second | |
stringPlaybackSpeed | string | sPlaybackSpeedChanged() | Playback speed in string format | |
playbackSpeed | int | playbackSpeedChanged() | Playback Speed in integer format |
Splash Page
This page is not the traditional Splash screen. Instead of it being a loading screen, it should contain the following
- A loader to switch between the Connection Screen and the new QOrbiter setup screen
- logic to change screens and anything else you want done in the the setup screens before connecting to the router.
Connection Screen
This screen should be the first loaded by the Splash.qml and contain the neccesary elements to establish a connection to thr router. This includes:
- Text entry for device number
- text entry from internal ip / hostname
- text entry box for external ip / hostname.
- Button to connect
- Button to start new QOrbiter setup