Diffstat (limited to 'noncore/apps/odict/odict.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/odict/odict.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/odict/odict.cpp b/noncore/apps/odict/odict.cpp index e2d1d7b..1fbdb85 100644 --- a/noncore/apps/odict/odict.cpp +++ b/noncore/apps/odict/odict.cpp | |||
@@ -76,55 +76,55 @@ void ODict::loadConfig() | |||
76 | } | 76 | } |
77 | } | 77 | } |
78 | 78 | ||
79 | 79 | ||
80 | void ODict::saveConfig() | 80 | void ODict::saveConfig() |
81 | { | 81 | { |
82 | Config cfg ( "odict" ); | 82 | Config cfg ( "odict" ); |
83 | cfg.setGroup( "generalsettings" ); | 83 | cfg.setGroup( "generalsettings" ); |
84 | cfg.writeEntry( "errtol" , errorTol ); | 84 | cfg.writeEntry( "errtol" , errorTol ); |
85 | cfg.writeEntry( "casesens" , casesens ); | 85 | cfg.writeEntry( "casesens" , casesens ); |
86 | cfg.writeEntry( "regexp" , regexp ); | 86 | cfg.writeEntry( "regexp" , regexp ); |
87 | cfg.writeEntry( "completewords" , completewords ); | 87 | cfg.writeEntry( "completewords" , completewords ); |
88 | } | 88 | } |
89 | 89 | ||
90 | void ODict::slotDisplayAbout() | 90 | void ODict::slotDisplayAbout() |
91 | { | 91 | { |
92 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) ); | 92 | QMessageBox::about( this, tr( "About ODict" ), tr( "OPIE-Dictionary ODict \n (c) 2002, 2003 Carsten Niehaus \n cniehaus@handhelds.org \n Version 20030103" ) ); |
93 | } | 93 | } |
94 | 94 | ||
95 | void ODict::slotStartQuery() | 95 | void ODict::slotStartQuery() |
96 | { | 96 | { |
97 | QString querystring = query_le->text(); | 97 | QString querystring = query_le->text(); |
98 | qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); | 98 | qDebug("opening dict >%s< for >%s<", activated_name.latin1(),querystring.latin1()); |
99 | if (querystring.isEmpty()){ | 99 | if (querystring.isEmpty()){ |
100 | qWarning("emphty querysting"); | 100 | qWarning("empty querysting"); |
101 | return; | 101 | return; |
102 | } | 102 | } |
103 | if (!activated_name || activated_name.isEmpty()) | 103 | if (!activated_name || activated_name.isEmpty()) |
104 | QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); | 104 | QMessageBox::warning(this,tr("No Dictionary"),tr("Please choose a dictonary") ); |
105 | else | 105 | else |
106 | DingWidget *ding = new DingWidget( vbox , querystring , browser_top, browser_bottom, activated_name); | 106 | DingWidget *ding = new DingWidget( querystring , browser_top, browser_bottom, activated_name ); |
107 | } | 107 | } |
108 | 108 | ||
109 | 109 | ||
110 | void ODict::slotSetErrorcount( int count ) | 110 | void ODict::slotSetErrorcount( int count ) |
111 | { | 111 | { |
112 | errorTol = count; | 112 | errorTol = count; |
113 | } | 113 | } |
114 | 114 | ||
115 | void ODict::slotSettings() | 115 | void ODict::slotSettings() |
116 | { | 116 | { |
117 | ConfigDlg dlg( this, "Config" , true); | 117 | ConfigDlg dlg( this, "Config" , true); |
118 | if ( dlg.exec() == QDialog::Accepted ) | 118 | if ( dlg.exec() == QDialog::Accepted ) |
119 | dlg.writeEntries(); | 119 | dlg.writeEntries(); |
120 | else qDebug( "abgebrochen" ); | 120 | else qDebug( "abgebrochen" ); |
121 | } | 121 | } |
122 | 122 | ||
123 | void ODict::slotSetParameter( int count ) | 123 | void ODict::slotSetParameter( int count ) |
124 | { | 124 | { |
125 | if ( count == 0 ) | 125 | if ( count == 0 ) |
126 | { | 126 | { |
127 | if ( casesens ) | 127 | if ( casesens ) |
128 | casesens = false; | 128 | casesens = false; |
129 | else | 129 | else |
130 | casesens = true; | 130 | casesens = true; |