00001 /*************************************************************************** 00002 * Copyright (C) 2004 by Frodo + PrAn * 00003 * * 00004 * This program is free software; you can redistribute it and/or modify * 00005 * it under the terms of the GNU General Public License as published by * 00006 * the Free Software Foundation; either version 2 of the License, or * 00007 * (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License * 00015 * along with this program; if not, write to the * 00016 * Free Software Foundation, Inc., * 00017 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 00018 ***************************************************************************/ 00019 00029 #ifndef CTEXT_AREA_H 00030 #define CTEXT_AREA_H 00031 00032 #include <qtextedit.h> 00033 #include <qlineedit.h> 00034 #include <qwidget.h> 00035 00036 00048 class cTextAreaMain : public QWidget{ 00049 00050 Q_OBJECT //For class signals and slots, requires moc inclusion at the end of filename.cpp file! 00051 00052 public: 00053 00067 cTextAreaMain( QWidget *parent=0, const char *name=0 ); 00068 00077 QSizePolicy sizePolicy() const; 00078 00079 public slots: 00080 00094 void findLyrics(); 00095 00111 void findNextLyrics(); 00112 00113 00127 void searchLyrics(); 00128 00129 00142 void save(); 00143 00144 signals: 00145 00153 void textChanged(QString); 00154 00165 void printStatus(QString); 00166 00167 00168 private: 00169 00180 QTextEdit *textEdit; 00181 00182 00193 QLineEdit *lineEdit; 00194 00195 00206 int URLresults; 00207 00217 int nextResultsCounter; 00218 00229 QString songTitle; 00230 }; 00231 00232 #endif