[TFMXcess Index] [TFMXcess Hierarchy]
Core class to control TFMX-PLAY via KTfxControlData More...
#include <KTfxWidget.h>
Inherits: KTfxControlData
This class adds some real functionality to KTfxControlData.
It contains all the slots and other functions necessary to to control TFMX-PLAY via the widgets provided by KTfxControlData.
make sure application is closed when top widget is closed
helper for the SIGINT handler
This turns on tooltips and unchecks the checkbox.
This turns off tooltips and unchecks the checkbox.
This updated the three LCDs.
This sets the song, tfmxFile, freq, bits, etc., updates the display and, if /dev/dsp is free, invokes TFMX-PLAY.
This stops the player, neccessary display updates are also made.
This reads the configuration, determines whether to show the splash-screen, sets up preloading of song from previous session
This saves the configuration.
Check if tfmx-play can be executed, exit with error message otherwise. This method does the i18n init for the error box on its own!
This creates an accelerator and adds all the keyboard shortcuts.
This connects all the buttons to the various slots.
This sets all the initial defaults for the player, just to be safe...
This evaluates the command-line arguments and, if valid, overrides the current tfmxFile || ( tfmxFile && song ) settings.
This updates the display and starts the player, if a song is preloaded via the config file or command-line argument.
Set up the drop zone for drag-and-drop
Here we initialize most of the translations for buttons, tooltips, message-boxes, etc.
Toggle oversampling on/off.
Toggle oversampling and button on/off.
Called to cleanup the KShellProcess after the player has been stopped, by means of the stop button, for example.
This slot stops the player, then quits the application.
This slot opens a KFileDialog to get a new tfmxFile to play, if myFile is 0. Otherwise, the path given in myFile is used instead. Valid selections are played, config is saved.
myFile | is the path to the file to be opened. |
Overloaded w/o paramter.
This slot stops the player, then saves the config.
This slot plays the current file, otherwise openTfx is called to get a file. Config is saved.
This slot increases song num. and calls stopTfx and playTfx if necessary. Config is saved.
This slot decreases song num. and calls stopTfx and playTfx if necessary. Config is saved.
This slot increases freq and calls stopTfx and playTfx if necessary. Config is saved.
This slot decreases freq and calls stopTfx and playTfx if necessary. Config is saved.
This slot switches to 16 bits and calls stopTfx and playTfx if necessary. Config is saved.
This slot switches to 8 bits and calls stopTfx and playTfx if necessary. Config is saved.
Set stereo output mode, stop/restart/save config works as usual.
Set headphone output mode, stop/restart/save config works as usual. If you want to use headphones with a stereo soundcard, this mode usually sounds better than reguar stereo.
Set mono output mode, stop/restart/save config works as usual.
This slot toggles tooltips on/off, depending on current status of the checkbox. Config is saved.
This slot turns tooltips off if are on and vice versa. The checkbox is (un)checked, config is saved.
This does the real work of adding all the tooltips, nothing else.
This does the real work of removing all the tooltips, nothing else.
This slot invokes the HTML online help.
This slot shows the "about" box. I just couldn't resist putting the new application into the about box, it's just too "kawaii"!
DND slot, activated when something is dropped on the dropzone.
dz | the dropzone that activated this slot |
Returns path of smpl.-file for given mdat.-filepath, if smpl.-file exists. Returns 0 otherwise.
mdatPath | a string containing the path of the mdat. file |
| Kdoc |