[kfortune Index] [kfortune Hierarchy] [Headers]
Basic class for KFortune More...
#include <kfortune.h>
Inherits: KTMainWindow
This is the class KFortune. The class is used only for the program kfortune.
[public]The constructor method for class KFortune
| argv | Arguments from command line |
| name | Name for QWidget |
| parent | Parent widget, used for QWidget |
| argc | Argument counter |
[public]The destrucor method for class KFortune
[public slot]Quit the application
| save | Saves the current configuration if true |
[public slot]Shows a message telling the user that a function has not been implemented yet.
[public slot]Shows a new fortune. This means randomly choosing a, checking if it hasn't been displayed the time before, resizing the window and some other stuff.
[public slot]Saves the current fortune to a file
[public slot]Sets a new fortune, this includes checking on html-code
| txt | The fortune text to be set |
[public slot]Shows a window for configuring the keybindings
[public slot]Shows a window for choosing a new font.
[public slot]Configures the kfortune database.
[public slot]Allows the user the select some options by creating a Misc() object.
[public slot]Shows information about the program
[public slot]Show the online-help
[protected]Handles the default keybindigs
[protected]Creates the menubar and connects the menu-entries to the appropriate functions
[protected]Get the configuration from the config-file.
[protected]Save the current configuration to the config-file.
[protected]This function is used enable or disable to menubar
[protected]This function is used enable or disable the buttons.
[protected]This function is used to automaticaly start the program when KDE is started
[protected]Sets whether the program should show offensive fortunes or not
[protected]Reads the data from the different databases. Which databases are used is determined by the KConfig object.
[protected]Updates the cache files of the current used databases. This is done by calling DataFile::updateCache
[protected]Calls readData after having deleted some objects to save some memory.
[protected]Evaluate the command line options.
| argv | The arguments itself |
| argc | Number of arguments |
[protected]This method was created to solve some portability problems between Linux and solaris.
[protected slot]Used by the popup-menu
[protected slot]Only calls the function resizeEvent()
[protected slot]Handels all the resizing of the main window of KFortune
| all | If this is false the widgets won't be resized, but only the fortune text will be updated |
[protected slot]Used to automaticly exit the program.
| Kdoc |