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 | |
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 | ||||
-rw-r--r-- | noncore/apps/odict/odict.h | 1 |
2 files changed, 0 insertions, 6 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 @@ -72,53 +72,48 @@ void ODict::loadConfig() 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 ); diff --git a/noncore/apps/odict/odict.h b/noncore/apps/odict/odict.h index b20c165..3065feb 100644 --- a/noncore/apps/odict/odict.h +++ b/noncore/apps/odict/odict.h @@ -36,31 +36,30 @@ class ODict : public QMainWindow private: QPopupMenu *help, *settings, *parameter, *error_tol_menu; QMenuBar *menu; QHBox *hbox; QLineEdit *query_le; QComboBox *query_co; QPushButton *ok_button; QVBoxLayout *vbox_layout; QAction *setting_a, *setting_b; void setupMenus(); int errorTol; bool casesens, completewords, regexp; void loadConfig(); void saveConfig(); QString activated_name; private slots: - void slotDisplayAbout(); void slotStartQuery(); void slotSetErrorcount( int ); void slotSettings(); void slotSetParameter( int ); void slotMethodChanged( int ); }; |