You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
900 B
45 lines
900 B
#ifndef _LYRICSCMODULE_H_
|
|
#define _LYRICSCMODULE_H_
|
|
|
|
#include <noatun/pref.h>
|
|
#include <tqvaluevector.h>
|
|
#include <tdelocale.h>
|
|
|
|
class KLineEdit;
|
|
class TDEListBox;
|
|
class KButtonBox;
|
|
|
|
struct SearchProvider {
|
|
TQString name;
|
|
TQString url;
|
|
};
|
|
|
|
class LyricsCModule : public CModule {
|
|
TQ_OBJECT
|
|
|
|
public:
|
|
LyricsCModule(TQObject *_parent);
|
|
public slots:
|
|
virtual void save(void);
|
|
virtual void reopen(void);
|
|
void newSearch(TQString name = i18n( "New Search Provider" ), TQString query = "");
|
|
void delSearch();
|
|
void moveUpSearch();
|
|
void moveDownSearch();
|
|
void selected( TQListBoxItem *i );
|
|
void nameChanged( const TQString &name );
|
|
void queryChanged( const TQString &query );
|
|
protected:
|
|
TDEListBox *providersBox;
|
|
KButtonBox *boxButtons;
|
|
KLineEdit *nameEdit;
|
|
KLineEdit *queryEdit;
|
|
TQValueVector<SearchProvider> mProviders;
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|