|
|
|
@ -94,10 +94,13 @@ MenuHandler::MenuHandler( TQWidget *parent, Prefs *prefs, char *name, WFlags fl)
|
|
|
|
|
icon = iconLoader->loadIcon("clear_left", TDEIcon::Small);
|
|
|
|
|
menu->clearButton->setIconSet(icon);
|
|
|
|
|
|
|
|
|
|
connect(menu->clearButton, SIGNAL(clicked()), menu->searchLine, SLOT (clear()) );
|
|
|
|
|
|
|
|
|
|
connect(menu->searchLine, SIGNAL(textChanged(const TQString&)),
|
|
|
|
|
this, SLOT(initializeSearch(const TQString &)));
|
|
|
|
|
connect(menu->clearButton, SIGNAL(clicked()), menu->searchLine, SLOT(clear()));
|
|
|
|
|
|
|
|
|
|
menu->detachButton->setIconSet(TQPixmap(uic_findImage("detach.png")));
|
|
|
|
|
connect(menu->detachButton, SIGNAL(clicked()), this, SLOT (switchWindowMode()) );
|
|
|
|
|
connect(menu->detachButton, SIGNAL(clicked()), this, SLOT(switchWindowMode()));
|
|
|
|
|
|
|
|
|
|
menu->searchLine->setContextMenuEnabled(false);
|
|
|
|
|
|
|
|
|
@ -449,8 +452,6 @@ void MenuHandler::readConfig()
|
|
|
|
|
int h = (int)(r.height()/_menuHeight);
|
|
|
|
|
resize(w,h);
|
|
|
|
|
|
|
|
|
|
_strigiIntegration = prefSkel->strigiIntegration();
|
|
|
|
|
|
|
|
|
|
_isNormalWindow = prefSkel->isNormalWindow();
|
|
|
|
|
if( _isNormalWindow )
|
|
|
|
|
{
|
|
|
|
@ -462,26 +463,6 @@ void MenuHandler::readConfig()
|
|
|
|
|
menu->detachButton->setIconSet(TQPixmap(uic_findImage("detach.png")));
|
|
|
|
|
TQToolTip::add( menu->detachButton, tr2i18n( "Make this menu a normal window" ) );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// disconnect(menu->searchLine, 0, 0, 0);
|
|
|
|
|
if( !_strigiIntegration )
|
|
|
|
|
{
|
|
|
|
|
//menu->searchLine->setListView((TDEListView *)(menu->dynamicList));
|
|
|
|
|
disconnect(menu->searchLine, SIGNAL(returnPressed( const TQString &)),
|
|
|
|
|
this, SLOT (strigiSearch( const TQString &)) );
|
|
|
|
|
connect(menu->searchLine, SIGNAL(textChanged( const TQString &)),
|
|
|
|
|
this, SLOT (initializeSearch( const TQString &)) );
|
|
|
|
|
}
|
|
|
|
|
else //strigi
|
|
|
|
|
{
|
|
|
|
|
menu->searchLine->setListView(NULL);
|
|
|
|
|
menu->searchLine->setEnabled(true);
|
|
|
|
|
disconnect(menu->searchLine, SIGNAL(textChanged( const TQString &)),
|
|
|
|
|
this, SLOT (initializeSearch( const TQString &)) );
|
|
|
|
|
connect(menu->searchLine, SIGNAL(returnPressed( const TQString &)),
|
|
|
|
|
this, SLOT (strigiSearch( const TQString &)) );
|
|
|
|
|
menu->searchLine->setContextMenuEnabled(false);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MenuHandler::updateConfig()
|
|
|
|
@ -1608,12 +1589,6 @@ void MenuHandler::initializeSearch( const TQString & query )
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MenuHandler::strigiSearch( const TQString & query )
|
|
|
|
|
{
|
|
|
|
|
close();
|
|
|
|
|
KRun::runCommand ("konqueror strigi:/?q="+query);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MenuHandler::clearDynList( )
|
|
|
|
|
{
|
|
|
|
|
menu->dynamicList->clear();
|
|
|
|
|