author | cniehaus <cniehaus> | 2003-03-23 16:05:26 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2003-03-23 16:05:26 (UTC) |
commit | d2a2f5ee260e80a166b070872cefdd35e0b0b3cd (patch) (side-by-side diff) | |
tree | 37b422856b9be9586ee7882739d6fb7c11153a34 /noncore/apps/odict/odict.cpp | |
parent | 9c539b9626f0a3ffca47e9b1247cb727539b46c6 (diff) | |
download | opie-d2a2f5ee260e80a166b070872cefdd35e0b0b3cd.zip opie-d2a2f5ee260e80a166b070872cefdd35e0b0b3cd.tar.gz opie-d2a2f5ee260e80a166b070872cefdd35e0b0b3cd.tar.bz2 |
remove the aboutbox
-rw-r--r-- | noncore/apps/odict/odict.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index 78c3f90..c4114f7 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp @@ -48,101 +48,96 @@ ODict::ODict() : QMainWindow() QHBox *hbox = new QHBox( vbox ); QLabel* query_label = new QLabel( tr( "Query:" ) , hbox ); query_label->show(); query_le = new QLineEdit( hbox ); query_co = new QComboBox( hbox ); connect( query_co , SIGNAL( activated(int) ), this, SLOT( slotMethodChanged(int) ) ); ok_button = new QPushButton( tr( "&Ok" ), hbox ); connect( ok_button, SIGNAL( released() ), this, SLOT( slotStartQuery() ) ); browser_top = new QTextBrowser( vbox ); browser_bottom = new QTextBrowser( vbox ); ding = new DingWidget(); ding->loadValues(); loadConfig(); setCentralWidget( vbox ); } void ODict::loadConfig() { Config cfg ( "odict" ); cfg.setGroup( "generalsettings" ); errorTol = cfg.readEntry( "errtol" ).toInt(); casesens = cfg.readEntry( "casesens" ).toInt(); regexp = cfg.readEntry( "regexp" ).toInt(); completewords = cfg.readEntry( "completewords" ).toInt(); QStringList groupListCfg = cfg.groupList().grep( "Method_" ); query_co->clear(); for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) { cfg.setGroup( *it ); query_co->insertItem( cfg.readEntry( "Name" ) ); } slotMethodChanged(1 ); //FIXME: this line should not contain a integer } void ODict::saveConfig() { Config cfg ( "odict" ); cfg.setGroup( "generalsettings" ); cfg.writeEntry( "errtol" , errorTol ); cfg.writeEntry( "casesens" , casesens ); cfg.writeEntry( "regexp" , regexp ); cfg.writeEntry( "completewords" , completewords ); } -void ODict::slotDisplayAbout() -{ - QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030111" ) ); -} - void ODict::slotStartQuery() { QString querystring = query_le->text(); //X qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); //X if (querystring.isEmpty()){ //X qWarning("empty querystring"); //X return; //X } //X if (!activated_name || activated_name.isEmpty()) //X QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); //X else //X { ding->setCaseSensitive( casesens ); ding->setCompleteWord( completewords ); ding->setDict( activated_name ); if ( activated_name != ding->loadedDict() ) { ding->loadDict(activated_name); } BroswerContent test = ding->setText( querystring ); browser_top->setText( test.top ); browser_bottom->setText( test.bottom ); qDebug( "Text sollte gesetzt sein..." ); //X } } void ODict::slotSetErrorcount( int count ) { errorTol = count; } void ODict::slotSettings() { ConfigDlg dlg( this, "Config" , true); if ( dlg.exec() == QDialog::Accepted ) { dlg.writeEntries(); loadConfig(); } else qDebug( "abgebrochen" ); } |