Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/odict.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 857daaa..7f369d4 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp @@ -55,23 +55,43 @@ void ODict::slotDisplayAbout() void ODict::slotStartQuery() { QString querystring = query_le->text(); } + +void ODict::slotSetErrorcount( int count ) +{ + count = 1; +} + +void ODict::slotSettings() +{ + ConfigDlg dlg( this, "Config" , true); + if ( dlg.exec() == QDialog::Accepted ) + dlg.writeEntries(); + else qDebug( "abgebrochen" ); +} + +void ODict::slotSetParameter( int /*count*/ ) +{ +//X if ( int == 0 ) +//X if ( int == 1 ) +//X if ( int == 2 ) +//X else qWarning( "ERROR" ); +} + void ODict::setupMenus() { menu = new QMenuBar( this ); settings = new QPopupMenu( menu ); setting_a = new QAction(tr( "Config" ), Resource::loadPixmap( "today/config" ), QString::null, 0, this, 0 ); connect( setting_a, SIGNAL( activated() ), this, SLOT( slotSettings() ) ); setting_a->addTo( settings ); setting_b = new QAction(tr( "Searchmethods" ), Resource::loadPixmap( "today/config" ), QString::null, 0, this, 0 ); - connect( setting_b, SIGNAL( activated() ), this, SLOT( slotSearchMethods() ) ); - setting_b->addTo( settings ); parameter = new QPopupMenu( menu ); connect( parameter, SIGNAL( activated( int ) ), this, SLOT( slotSetParameter( int ) ) ); parameter->insertItem( tr( "C&ase sensitive" ), 0 ); parameter->insertItem( tr( "Only &complete Words" ), 1 ) ; parameter->insertItem( tr( "Allow ®. expressions" ), 2 ); @@ -92,26 +112,6 @@ void ODict::setupMenus() help->insertItem("&About",this,SLOT( slotDisplayAbout() )); menu->insertItem( tr( "Settings" ) , settings ); menu->insertItem( tr( "Parameter" ) , parameter ); menu->insertItem( tr( "Help" ) , help ); } - -void ODict::slotSetErrorcount( int count ) -{ -} - -void ODict::slotSettings() -{ - ConfigDlg *dlg = new ConfigDlg( this, "Config" ); -} - -void ODict::slotSetParameter( int count ) -{ -//X if ( int == 0 ) -//X if ( int == 1 ) -//X if ( int == 2 ) -//X else qWarning( "ERROR" ); -} - -void ODict::slotSearchMethods(){} - |