1
/***************************************************************************
2
* Copyright (C) 2005 by Adam Treat *
5
* Copyright (C) 2004 by Scott Wheeler *
8
* This program is free software; you can redistribute it and/or modify *
9
* it under the terms of the GNU General Public License as published by *
10
* the Free Software Foundation; either version 2 of the License, or *
11
* (at your option) any later version. *
13
***************************************************************************/
15
#ifndef ADVANCEDSEARCHDIALOG_H
16
#define ADVANCEDSEARCHDIALOG_H
18
#include <kdialogbase.h>
20
#include "datatablesearch.h"
31
class AdvancedSearchDialog : public KDialogBase
39
DataTableSearch search;
40
QString dataTableName;
43
AdvancedSearchDialog( DataTableList dataTables,
44
const DataTableSearch &defaultSearch =
45
DataTableSearch( DataTableSearch::MatchAny, DataTableSearch::Advanced ),
47
const char *name = 0 );
49
virtual ~AdvancedSearchDialog();
55
void saveSearchAs( const QString &name, const DataTableSearch &search );
58
void saveToggled( bool toggle );
59
virtual void accept();
63
virtual void custom();
69
DataTableList m_dataTables;
70
DataTableSearch m_search;
71
QString m_dataTableName;
72
QValueList<SearchLine *> m_searchLines;
73
QValueList<AdvancedLine *> m_advancedLines;
74
QCheckBox *m_saveCheckBox;
75
KLineEdit *m_dataTableNameLineEdit;
76
QRadioButton *m_matchAnyButton;
77
QRadioButton *m_matchAllButton;
78
KPushButton *m_moreButton;
79
KPushButton *m_fewerButton;
81
KPushButton *m_advancedButton;