~neon/juk/master

529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
1
/***************************************************************************
2
    begin                : Thu Jul 31 00:31:51 2003
1003 by Scott Wheeler
It's 2004 now. Update copyrights.
3
    copyright            : (C) 2003 - 2004 by Scott Wheeler
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
4
    email                : wheeler@kde.org
5
***************************************************************************/
6
7
/***************************************************************************
8
 *                                                                         *
9
 *   This program is free software; you can redistribute it and/or modify  *
10
 *   it under the terms of the GNU General Public License as published by  *
11
 *   the Free Software Foundation; either version 2 of the License, or     *
12
 *   (at your option) any later version.                                   *
13
 *                                                                         *
14
 ***************************************************************************/
15
16
#ifndef ADVANCEDSEARCHDIALOG_H
17
#define ADVANCEDSEARCHDIALOG_H
18
19
#include <kdialogbase.h>
20
540 by Scott Wheeler
Return the playlist name along with the other data.
21
class KLineEdit;
574 by Frerich Raabe
- Made the More and Fewer buttons do something
22
class KPushButton;
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
23
class QGroupBox;
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
24
class QRadioButton;
25
class SearchLine;
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
26
27
class AdvancedSearchDialog : public KDialogBase
28
{
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
29
    Q_OBJECT
30
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
31
public:
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
32
    struct Result
33
    {
34
        DialogCode result;
35
        PlaylistSearch search;
540 by Scott Wheeler
Return the playlist name along with the other data.
36
        QString playlistName;
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
37
    };
38
811 by Scott Wheeler
CVS_SILENT more whitespace cleanup -- didn't let it run on the files with
39
    AdvancedSearchDialog(const QString &defaultName,
936 by Scott Wheeler
Make it possible to edit the search fields of a search playlist.
40
                         const PlaylistSearch &defaultSearch = PlaylistSearch(),
540 by Scott Wheeler
Return the playlist name along with the other data.
41
                         QWidget *parent = 0,
42
                         const char *name = 0);
43
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
44
    virtual ~AdvancedSearchDialog();
45
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
46
public slots:
47
    Result exec();
48
49
protected slots:
50
    virtual void accept();
573 by Frerich Raabe
- Made the "Clear" button in the advanced search dialog do something.
51
    virtual void clear();
574 by Frerich Raabe
- Made the More and Fewer buttons do something
52
    virtual void more();
53
    virtual void fewer();
811 by Scott Wheeler
CVS_SILENT more whitespace cleanup -- didn't let it run on the files with
54
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
55
private:
574 by Frerich Raabe
- Made the More and Fewer buttons do something
56
    void updateButtons();
57
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
58
    QWidget *m_criteria;
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
59
    PlaylistSearch m_search;
540 by Scott Wheeler
Return the playlist name along with the other data.
60
    QString m_playlistName;
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
61
    QValueList<SearchLine *> m_searchLines;
540 by Scott Wheeler
Return the playlist name along with the other data.
62
    KLineEdit *m_playlistNameLineEdit;
539 by Scott Wheeler
Phase two: now the Advanced Search Dialog should return a PlaylistSearch
63
    QRadioButton *m_matchAnyButton;
64
    QRadioButton *m_matchAllButton;
574 by Frerich Raabe
- Made the More and Fewer buttons do something
65
    KPushButton *m_moreButton;
66
    KPushButton *m_fewerButton;
529 by Scott Wheeler
Add the dialog for what will become the advanced search / vfolders thingie.
67
};
68
69
#endif