Commit b80547df authored by Scott Wheeler's avatar Scott Wheeler

Add the advanced search to the GUI. Doesn't do anything yet, but this

will come.

svn path=/trunk/kdemultimedia/juk/; revision=240635
parent eff89bf1
......@@ -331,6 +331,9 @@ void JuK::setupActions()
KStdAction::selectAll(this, SLOT(selectAll()), actionCollection());
createSplitterAction(
i18n("Advanced Search"), SLOT(slotAdvancedSearch()), "advancedSearch", "find");
//////////////////////////////////////////////////
// view menu
//////////////////////////////////////////////////
......
/***************************************************************************
juk.h - description
-------------------
......
......@@ -24,6 +24,7 @@
</Menu>
<Menu name="edit"><text>&amp;Edit</text>
<Action name="clear"/>
<Action name="advancedSearch"/>
</Menu>
<Menu name="view" noMerge="1"><text>&amp;View</text>
<Action name="showSearch"/>
......
......@@ -30,6 +30,7 @@
#include "dynamicplaylist.h"
#include "searchplaylist.h"
#include "mediafiles.h"
#include "advancedsearchdialog.h"
////////////////////////////////////////////////////////////////////////////////
// helper functions
......@@ -396,6 +397,12 @@ void PlaylistSplitter::slotSetSearchVisible(bool visible)
redisplaySearch();
}
void PlaylistSplitter::slotAdvancedSearch()
{
AdvancedSearchDialog *d = new AdvancedSearchDialog(this);
d->exec();
delete d;
}
void PlaylistSplitter::slotGuessTagInfo(TagGuesser::Type type)
{
......
......@@ -237,6 +237,8 @@ public slots:
void slotSetSearchVisible(bool visible);
void slotAdvancedSearch();
/**
* Add the file to the playlist. If \a after is null the items will be
* inserted at the end of the list.
......
......@@ -50,6 +50,8 @@ SearchLine::SearchLine(QWidget *parent, const char *name) : QHBox(parent, name)
m_caseSensitive->insertItem(i18n("Pattern Matching"), 2);
connect(m_caseSensitive, SIGNAL(activated(int)),
this, SIGNAL(signalQueryChanged()));
updateColumns();
}
PlaylistSearch::Component SearchLine::searchComponent() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment