Main Page | Namespace List | Class List | Directories | File List | Class Members | File Members

cTextAreaMain Class Reference

Class that manages the Text Area. More...

#include <text_area.h>

List of all members.

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.


Detailed Description

Class that manages the Text Area.

Author:
stonedz
Since:
pre-alpha
This class is a widget that will be filled with text, it is ready to recive text changes via a slot and it redraw its contenents as soon as it recives signals. It inherits from QWidget class of Qt librairies.


Constructor & Destructor Documentation

cTextAreaMain::cTextAreaMain QWidget *  parent = 0,
const char *  name = 0
 

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.

Author:
stonedz
Since:
pre-alpha
Parameters:
parent Parent widget.
name Widget name.
Precondition:
None.


Member Function Documentation

cTextAreaMain::findLyrics  )  [slot]
 

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.

Author:
stonedz
Since:
pre-alpha
Precondition:
None.
See also:
cHttpSearch

cTextAreaMain::findNextLyrics  )  [slot]
 

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.

Author:
stonedz
Since:
pre-alpha
Precondition:
A search should have been made previously.
See also:
URLsVector

findLyrics

cHttpSearch

cTextAreaMain::printStatus QString   )  [signal]
 

Signal emitted to change status bar text.

This signal is emitted to change staus Bar text.

Author:
stonedz
Since:
pre-alpha
Precondition:
None.
See also:
save

cTextAreaMain::save  )  [slot]
 

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.

Author:
stonedz
Since:
pre-alpha
Precondition:
A search should have been made previously.
See also:
saved

cTextAreaMain::searchLyrics  )  [slot]
 

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.

Author:
stonedz
Since:
pre-alpha
See also:
URLsVector

findLyrics

findNextLyrics

cHttpSearch

cTextAreaMain::sizePolicy  )  const
 

Define widget's size policy.

Author:
stonedz
Since:
pre-alpha
Precondition:
None.

cTextAreaMain::textChanged QString   )  [signal]
 

Not used.

Author:
stonedz
Since:
pre-alpha
Precondition:
None.


Member Data Documentation

cTextAreaMain::lineEdit [private]
 

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.

Author:
stonedz
Since:
pre-alpha
See also:
cTextAreaMain

cTextAreaMain::nextResultsCounter [private]
 

Counter.

This counter is used in findNextLyrics().

Author:
stonedz
Since:
pre-alpha
See also:
findNextLyrics

cTextAreaMain::songTitle [private]
 

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.

Author:
stonedz
Since:
pre-alpha
See also:
save

cTextAreaMain::textEdit [private]
 

Pointer to a QTextEdit object.

This pointer will hold the address of a QTextEdit object that is created in cTextArea constructor.

Author:
stonedz
Since:
pre-alpha
See also:
cTextAreaMain

cTextAreaMain::URLresults [private]
 

Number of results.

This integer contains the number of results contained in URLsVector.

Author:
stonedz
Since:
pre-alpha
See also:
URLsVector

cHttpResultsVector


The documentation for this class was generated from the following files:
Generated on Sun Mar 27 03:07:06 2005 for lirica. by  doxygen 1.3.9.1