author | benmeyer <benmeyer> | 2002-10-31 20:15:07 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-31 20:15:07 (UTC) |
commit | a491aa2ba326826b7493caa83fc6050e11d53be5 (patch) (unidiff) | |
tree | 4598d1770de61605dceafceafce3ad43b633f711 | |
parent | ab5a63544deead5206ca47ff8bf94123aa032281 (diff) | |
download | opie-a491aa2ba326826b7493caa83fc6050e11d53be5.zip opie-a491aa2ba326826b7493caa83fc6050e11d53be5.tar.gz opie-a491aa2ba326826b7493caa83fc6050e11d53be5.tar.bz2 |
Changed a number of "OK" to QMesageBox::OK
-rw-r--r-- | noncore/net/networksetup/TODO | 7 | ||||
-rw-r--r-- | noncore/net/networksetup/interfaces/interfacesetupimp.cpp | 2 | ||||
-rw-r--r-- | noncore/net/networksetup/mainwindowimp.cpp | 20 | ||||
-rw-r--r-- | noncore/settings/networksettings/TODO | 7 | ||||
-rw-r--r-- | noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | 2 | ||||
-rw-r--r-- | noncore/settings/networksettings/mainwindowimp.cpp | 20 |
6 files changed, 30 insertions, 28 deletions
diff --git a/noncore/net/networksetup/TODO b/noncore/net/networksetup/TODO index ec6d2c6..d6bfee1 100644 --- a/noncore/net/networksetup/TODO +++ b/noncore/net/networksetup/TODO | |||
@@ -4,4 +4,2 @@ Fix Profiles | |||
4 | 4 | ||
5 | Write dns script | ||
6 | |||
7 | WLAN needs to be re-written to not use Config | 5 | WLAN needs to be re-written to not use Config |
@@ -9,3 +7,6 @@ WLAN needs to be re-written to not use Config | |||
9 | Write a class that parses /proc and not ifconfig | 7 | Write a class that parses /proc and not ifconfig |
10 | udchcp needs to output the dhcp information | 8 | |
9 | udchcp needs to output the dhcp information so interfaces can read it | ||
10 | |||
11 | interfacesetupimp really doesn't need a interface* pointer | ||
11 | 12 | ||
diff --git a/noncore/net/networksetup/interfaces/interfacesetupimp.cpp b/noncore/net/networksetup/interfaces/interfacesetupimp.cpp index a19aaeb..3b1a4de 100644 --- a/noncore/net/networksetup/interfaces/interfacesetupimp.cpp +++ b/noncore/net/networksetup/interfaces/interfacesetupimp.cpp | |||
@@ -62,3 +62,3 @@ bool InterfaceSetupImp::saveSettings(){ | |||
62 | if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ | 62 | if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ |
63 | QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", "Ok"); | 63 | QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", QMessageBox::Ok); |
64 | return false; | 64 | return false; |
diff --git a/noncore/net/networksetup/mainwindowimp.cpp b/noncore/net/networksetup/mainwindowimp.cpp index 6440bd4..3b0b7e8 100644 --- a/noncore/net/networksetup/mainwindowimp.cpp +++ b/noncore/net/networksetup/mainwindowimp.cpp | |||
@@ -171,3 +171,3 @@ void MainWindowImp::addClicked(){ | |||
171 | if(list.count() == 0){ | 171 | if(list.count() == 0){ |
172 | QMessageBox::information(this, "Sorry", "Nothing to add.", "Ok"); | 172 | QMessageBox::information(this, "Sorry", "Nothing to add.", QMessageBox::Ok); |
173 | return; | 173 | return; |
@@ -201,3 +201,3 @@ void MainWindowImp::removeClicked(){ | |||
201 | if(!item) { | 201 | if(!item) { |
202 | QMessageBox::information(this, "Sorry","Please select an interface First.", "Ok"); | 202 | QMessageBox::information(this, "Sorry","Please select an interface First.", QMessageBox::Ok); |
203 | return; | 203 | return; |
@@ -207,3 +207,3 @@ void MainWindowImp::removeClicked(){ | |||
207 | if(i->getModuleOwner() == NULL){ | 207 | if(i->getModuleOwner() == NULL){ |
208 | QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok"); | 208 | QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", QMessageBox::Ok); |
209 | } | 209 | } |
@@ -211,5 +211,5 @@ void MainWindowImp::removeClicked(){ | |||
211 | if(!i->getModuleOwner()->remove(i)) | 211 | if(!i->getModuleOwner()->remove(i)) |
212 | QMessageBox::information(this, "Error", "Unable to remove.", "Ok"); | 212 | QMessageBox::information(this, "Error", "Unable to remove.", QMessageBox::Ok); |
213 | else{ | 213 | else{ |
214 | QMessageBox::information(this, "Success", "Interface was removed.", "Ok"); | 214 | QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok); |
215 | // TODO memory managment.... | 215 | // TODO memory managment.... |
@@ -446,3 +446,3 @@ void MainWindowImp::addProfile(){ | |||
446 | if(profiles.grep(newProfileName).count() > 0){ | 446 | if(profiles.grep(newProfileName).count() > 0){ |
447 | QMessageBox::information(this, "Can't Add","Profile already exists.", "Ok"); | 447 | QMessageBox::information(this, "Can't Add","Profile already exists.", QMessageBox::Ok); |
448 | return; | 448 | return; |
@@ -459,3 +459,3 @@ void MainWindowImp::removeProfile(){ | |||
459 | if(profilesList->count() <= 1){ | 459 | if(profilesList->count() <= 1){ |
460 | QMessageBox::information(this, "Can't remove.","At least one profile\nis needed.", "Ok"); | 460 | QMessageBox::information(this, "Can't remove.","At least one profile\nis needed.", QMessageBox::Ok); |
461 | return; | 461 | return; |
@@ -464,3 +464,3 @@ void MainWindowImp::removeProfile(){ | |||
464 | if(profileToRemove == "All"){ | 464 | if(profileToRemove == "All"){ |
465 | QMessageBox::information(this, "Can't remove.","Can't remove default.", "Ok"); | 465 | QMessageBox::information(this, "Can't remove.","Can't remove default.", QMessageBox::Ok); |
466 | return; | 466 | return; |
@@ -469,3 +469,3 @@ void MainWindowImp::removeProfile(){ | |||
469 | if(profileToRemove == currentProfileLabel->text()){ | 469 | if(profileToRemove == currentProfileLabel->text()){ |
470 | QMessageBox::information(this, "Can't remove.",QString("%1 is the current profile.").arg(profileToRemove), "Ok"); | 470 | QMessageBox::information(this, "Can't remove.",QString("%1 is the current profile.").arg(profileToRemove), QMessageBox::Ok); |
471 | return; | 471 | return; |
@@ -509,3 +509,3 @@ void MainWindowImp::changeProfile(){ | |||
509 | if(profilesList->currentItem() == -1){ | 509 | if(profilesList->currentItem() == -1){ |
510 | QMessageBox::information(this, "Can't Change.","Please select a profile.", "Ok"); | 510 | QMessageBox::information(this, "Can't Change.","Please select a profile.", QMessageBox::Ok); |
511 | return; | 511 | return; |
diff --git a/noncore/settings/networksettings/TODO b/noncore/settings/networksettings/TODO index ec6d2c6..d6bfee1 100644 --- a/noncore/settings/networksettings/TODO +++ b/noncore/settings/networksettings/TODO | |||
@@ -4,4 +4,2 @@ Fix Profiles | |||
4 | 4 | ||
5 | Write dns script | ||
6 | |||
7 | WLAN needs to be re-written to not use Config | 5 | WLAN needs to be re-written to not use Config |
@@ -9,3 +7,6 @@ WLAN needs to be re-written to not use Config | |||
9 | Write a class that parses /proc and not ifconfig | 7 | Write a class that parses /proc and not ifconfig |
10 | udchcp needs to output the dhcp information | 8 | |
9 | udchcp needs to output the dhcp information so interfaces can read it | ||
10 | |||
11 | interfacesetupimp really doesn't need a interface* pointer | ||
11 | 12 | ||
diff --git a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp index a19aaeb..3b1a4de 100644 --- a/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp +++ b/noncore/settings/networksettings/interfaces/interfacesetupimp.cpp | |||
@@ -62,3 +62,3 @@ bool InterfaceSetupImp::saveSettings(){ | |||
62 | if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ | 62 | if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ |
63 | QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", "Ok"); | 63 | QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", QMessageBox::Ok); |
64 | return false; | 64 | return false; |
diff --git a/noncore/settings/networksettings/mainwindowimp.cpp b/noncore/settings/networksettings/mainwindowimp.cpp index 6440bd4..3b0b7e8 100644 --- a/noncore/settings/networksettings/mainwindowimp.cpp +++ b/noncore/settings/networksettings/mainwindowimp.cpp | |||
@@ -171,3 +171,3 @@ void MainWindowImp::addClicked(){ | |||
171 | if(list.count() == 0){ | 171 | if(list.count() == 0){ |
172 | QMessageBox::information(this, "Sorry", "Nothing to add.", "Ok"); | 172 | QMessageBox::information(this, "Sorry", "Nothing to add.", QMessageBox::Ok); |
173 | return; | 173 | return; |
@@ -201,3 +201,3 @@ void MainWindowImp::removeClicked(){ | |||
201 | if(!item) { | 201 | if(!item) { |
202 | QMessageBox::information(this, "Sorry","Please select an interface First.", "Ok"); | 202 | QMessageBox::information(this, "Sorry","Please select an interface First.", QMessageBox::Ok); |
203 | return; | 203 | return; |
@@ -207,3 +207,3 @@ void MainWindowImp::removeClicked(){ | |||
207 | if(i->getModuleOwner() == NULL){ | 207 | if(i->getModuleOwner() == NULL){ |
208 | QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok"); | 208 | QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", QMessageBox::Ok); |
209 | } | 209 | } |
@@ -211,5 +211,5 @@ void MainWindowImp::removeClicked(){ | |||
211 | if(!i->getModuleOwner()->remove(i)) | 211 | if(!i->getModuleOwner()->remove(i)) |
212 | QMessageBox::information(this, "Error", "Unable to remove.", "Ok"); | 212 | QMessageBox::information(this, "Error", "Unable to remove.", QMessageBox::Ok); |
213 | else{ | 213 | else{ |
214 | QMessageBox::information(this, "Success", "Interface was removed.", "Ok"); | 214 | QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok); |
215 | // TODO memory managment.... | 215 | // TODO memory managment.... |
@@ -446,3 +446,3 @@ void MainWindowImp::addProfile(){ | |||
446 | if(profiles.grep(newProfileName).count() > 0){ | 446 | if(profiles.grep(newProfileName).count() > 0){ |
447 | QMessageBox::information(this, "Can't Add","Profile already exists.", "Ok"); | 447 | QMessageBox::information(this, "Can't Add","Profile already exists.", QMessageBox::Ok); |
448 | return; | 448 | return; |
@@ -459,3 +459,3 @@ void MainWindowImp::removeProfile(){ | |||
459 | if(profilesList->count() <= 1){ | 459 | if(profilesList->count() <= 1){ |
460 | QMessageBox::information(this, "Can't remove.","At least one profile\nis needed.", "Ok"); | 460 | QMessageBox::information(this, "Can't remove.","At least one profile\nis needed.", QMessageBox::Ok); |
461 | return; | 461 | return; |
@@ -464,3 +464,3 @@ void MainWindowImp::removeProfile(){ | |||
464 | if(profileToRemove == "All"){ | 464 | if(profileToRemove == "All"){ |
465 | QMessageBox::information(this, "Can't remove.","Can't remove default.", "Ok"); | 465 | QMessageBox::information(this, "Can't remove.","Can't remove default.", QMessageBox::Ok); |
466 | return; | 466 | return; |
@@ -469,3 +469,3 @@ void MainWindowImp::removeProfile(){ | |||
469 | if(profileToRemove == currentProfileLabel->text()){ | 469 | if(profileToRemove == currentProfileLabel->text()){ |
470 | QMessageBox::information(this, "Can't remove.",QString("%1 is the current profile.").arg(profileToRemove), "Ok"); | 470 | QMessageBox::information(this, "Can't remove.",QString("%1 is the current profile.").arg(profileToRemove), QMessageBox::Ok); |
471 | return; | 471 | return; |
@@ -509,3 +509,3 @@ void MainWindowImp::changeProfile(){ | |||
509 | if(profilesList->currentItem() == -1){ | 509 | if(profilesList->currentItem() == -1){ |
510 | QMessageBox::information(this, "Can't Change.","Please select a profile.", "Ok"); | 510 | QMessageBox::information(this, "Can't Change.","Please select a profile.", QMessageBox::Ok); |
511 | return; | 511 | return; |