#include <text_area.h>
Public Slots | |
void | findLyrics () |
Finds and displays song's lyrics in the text area. | |
void | findNextLyrics () |
Finds and displays next lyrcs result. | |
void | searchLyrics () |
Find lirics specified in search text area. | |
void | save () |
Saves the current displayed text in a file. | |
Signals | |
void | textChanged (QString) |
Not used. | |
void | printStatus (QString) |
Signal emitted to change status bar text. | |
Public Member Functions | |
cTextAreaMain (QWidget *parent=0, const char *name=0) | |
Constructor. | |
QSizePolicy | sizePolicy () const |
Define widget's size policy. | |
Private Attributes | |
QTextEdit * | textEdit |
Pointer to a QTextEdit object. | |
QLineEdit * | lineEdit |
Pointer to a QTextEdit object. | |
int | URLresults |
Number of results. | |
int | nextResultsCounter |
Counter. | |
QString | songTitle |
Current song title. |
|
Constructor. Constructor for the class. It creates a new cTextAreaMain object, it takes two optional parameters, the parent widget and its name. This object is essentialy a QTextEdit object from Qt.
|
|
Finds and displays song's lyrics in the text area. This slot uses cHttpSearch class to finds wich song is played by a media-player that is currently running and then proccess all'informations to obtains a clean text file conytaining song's lyrics.
|
|
Finds and displays next lyrcs result. This slot is used after the first search is concluded. It basically does the same that findLyrics() slot does, but, it will process and display next result for the lyrics song, wich is stored in URLsVector vector.
|
|
Signal emitted to change status bar text. This signal is emitted to change staus Bar text.
|
|
Saves the current displayed text in a file. This slot saves the text currently displayed in the Text Area in a file. It opens a window to let the user choose file destination; if the operation suceeds it emits a signal saved(QString), with song's title as parameter.
|
|
Find lirics specified in search text area. It basically does the same that findLyrics() slot does, but uses the string passed with search text area.
|
|
Define widget's size policy.
|
|
Not used.
|
|
Pointer to a QTextEdit object. This pointer will hold the address of a QLineEdit object that is created in cTextArea constructor, used for stand alone lyrics searches.
|
|
Counter. This counter is used in findNextLyrics().
|
|
Current song title. This contains the current displayed song title, it used by save() slot to creates the right path where to save the file.
|
|
Pointer to a QTextEdit object. This pointer will hold the address of a QTextEdit object that is created in cTextArea constructor.
|
|
Number of results. This integer contains the number of results contained in URLsVector.
|