Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-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 | |||
@@ -72,53 +72,48 @@ void ODict::loadConfig() | |||
72 | regexp = cfg.readEntry( "regexp" ).toInt(); | 72 | regexp = cfg.readEntry( "regexp" ).toInt(); |
73 | completewords = cfg.readEntry( "completewords" ).toInt(); | 73 | completewords = cfg.readEntry( "completewords" ).toInt(); |
74 | 74 | ||
75 | QStringList groupListCfg = cfg.groupList().grep( "Method_" ); | 75 | QStringList groupListCfg = cfg.groupList().grep( "Method_" ); |
76 | query_co->clear(); | 76 | query_co->clear(); |
77 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) | 77 | for ( QStringList::Iterator it = groupListCfg.begin() ; it != groupListCfg.end() ; ++it ) |
78 | { | 78 | { |
79 | cfg.setGroup( *it ); | 79 | cfg.setGroup( *it ); |
80 | query_co->insertItem( cfg.readEntry( "Name" ) ); | 80 | query_co->insertItem( cfg.readEntry( "Name" ) ); |
81 | } | 81 | } |
82 | slotMethodChanged(1 ); //FIXME: this line should not contain a integer | 82 | slotMethodChanged(1 ); //FIXME: this line should not contain a integer |
83 | } | 83 | } |
84 | 84 | ||
85 | 85 | ||
86 | void ODict::saveConfig() | 86 | void ODict::saveConfig() |
87 | { | 87 | { |
88 | Config cfg ( "odict" ); | 88 | Config cfg ( "odict" ); |
89 | cfg.setGroup( "generalsettings" ); | 89 | cfg.setGroup( "generalsettings" ); |
90 | cfg.writeEntry( "errtol" , errorTol ); | 90 | cfg.writeEntry( "errtol" , errorTol ); |
91 | cfg.writeEntry( "casesens" , casesens ); | 91 | cfg.writeEntry( "casesens" , casesens ); |
92 | cfg.writeEntry( "regexp" , regexp ); | 92 | cfg.writeEntry( "regexp" , regexp ); |
93 | cfg.writeEntry( "completewords" , completewords ); | 93 | cfg.writeEntry( "completewords" , completewords ); |
94 | } | 94 | } |
95 | 95 | ||
96 | void ODict::slotDisplayAbout() | ||
97 | { | ||
98 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030111" ) ); | ||
99 | } | ||
100 | |||
101 | void ODict::slotStartQuery() | 96 | void ODict::slotStartQuery() |
102 | { | 97 | { |
103 | QString querystring = query_le->text(); | 98 | QString querystring = query_le->text(); |
104 | //X qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); | 99 | //X qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); |
105 | //X if (querystring.isEmpty()){ | 100 | //X if (querystring.isEmpty()){ |
106 | //X qWarning("empty querystring"); | 101 | //X qWarning("empty querystring"); |
107 | //X return; | 102 | //X return; |
108 | //X } | 103 | //X } |
109 | //X if (!activated_name || activated_name.isEmpty()) | 104 | //X if (!activated_name || activated_name.isEmpty()) |
110 | //X QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); | 105 | //X QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); |
111 | //X else | 106 | //X else |
112 | //X { | 107 | //X { |
113 | 108 | ||
114 | ding->setCaseSensitive( casesens ); | 109 | ding->setCaseSensitive( casesens ); |
115 | ding->setCompleteWord( completewords ); | 110 | ding->setCompleteWord( completewords ); |
116 | ding->setDict( activated_name ); | 111 | ding->setDict( activated_name ); |
117 | 112 | ||
118 | if ( activated_name != ding->loadedDict() ) | 113 | if ( activated_name != ding->loadedDict() ) |
119 | { | 114 | { |
120 | ding->loadDict(activated_name); | 115 | ding->loadDict(activated_name); |
121 | } | 116 | } |
122 | 117 | ||
123 | BroswerContent test = ding->setText( querystring ); | 118 | BroswerContent test = ding->setText( querystring ); |
124 | 119 | ||