From a491aa2ba326826b7493caa83fc6050e11d53be5 Mon Sep 17 00:00:00 2001 From: benmeyer Date: Thu, 31 Oct 2002 20:15:07 +0000 Subject: Changed a number of "OK" to QMesageBox::OK --- (limited to 'noncore/net/networksetup') 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 @@ -2,12 +2,13 @@ CLEAN UP Fix Profiles -Write dns script - WLAN needs to be re-written to not use Config Write a class that parses /proc and not ifconfig -udchcp needs to output the dhcp information + +udchcp needs to output the dhcp information so interfaces can read it + +interfacesetupimp really doesn't need a interface* pointer Possible other modules to write: ppp, ipsec, bluetooth, ipchains 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 @@ -60,7 +60,7 @@ bool InterfaceSetupImp::saveSettings(){ } if(!dhcpCheckBox->isChecked() && (ipAddressEdit->text().isEmpty() || subnetMaskEdit->text().isEmpty())){ - QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", "Ok"); + QMessageBox::information(this, "Not Saved.", "Please fill in the IP address and\n subnet entries.", QMessageBox::Ok); return false; } interfaces->removeAllInterfaceOptions(); 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 @@ -169,7 +169,7 @@ void MainWindowImp::addClicked(){ } // See if the list has anything that we can add. if(list.count() == 0){ - QMessageBox::information(this, "Sorry", "Nothing to add.", "Ok"); + QMessageBox::information(this, "Sorry", "Nothing to add.", QMessageBox::Ok); return; } AddConnectionImp addNewConnection(this, "AddConnectionImp", true); @@ -199,19 +199,19 @@ void MainWindowImp::addClicked(){ void MainWindowImp::removeClicked(){ QListViewItem *item = connectionList->currentItem(); if(!item) { - QMessageBox::information(this, "Sorry","Please select an interface First.", "Ok"); + QMessageBox::information(this, "Sorry","Please select an interface First.", QMessageBox::Ok); return; } Interface *i = interfaceItems[item]; if(i->getModuleOwner() == NULL){ - QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", "Ok"); + QMessageBox::information(this, "Can't remove interface.", "Interface is built in.", QMessageBox::Ok); } else{ if(!i->getModuleOwner()->remove(i)) - QMessageBox::information(this, "Error", "Unable to remove.", "Ok"); + QMessageBox::information(this, "Error", "Unable to remove.", QMessageBox::Ok); else{ - QMessageBox::information(this, "Success", "Interface was removed.", "Ok"); + QMessageBox::information(this, "Success", "Interface was removed.", QMessageBox::Ok); // TODO memory managment.... // who deletes the interface? } @@ -444,7 +444,7 @@ void MainWindowImp::newProfileChanged(const QString& newText){ void MainWindowImp::addProfile(){ QString newProfileName = newProfile->text(); if(profiles.grep(newProfileName).count() > 0){ - QMessageBox::information(this, "Can't Add","Profile already exists.", "Ok"); + QMessageBox::information(this, "Can't Add","Profile already exists.", QMessageBox::Ok); return; } profiles.append(newProfileName); @@ -457,17 +457,17 @@ void MainWindowImp::addProfile(){ */ void MainWindowImp::removeProfile(){ if(profilesList->count() <= 1){ - QMessageBox::information(this, "Can't remove.","At least one profile\nis needed.", "Ok"); + QMessageBox::information(this, "Can't remove.","At least one profile\nis needed.", QMessageBox::Ok); return; } QString profileToRemove = profilesList->currentText(); if(profileToRemove == "All"){ - QMessageBox::information(this, "Can't remove.","Can't remove default.", "Ok"); + QMessageBox::information(this, "Can't remove.","Can't remove default.", QMessageBox::Ok); return; } // Can't remove the curent profile if(profileToRemove == currentProfileLabel->text()){ - QMessageBox::information(this, "Can't remove.",QString("%1 is the current profile.").arg(profileToRemove), "Ok"); + QMessageBox::information(this, "Can't remove.",QString("%1 is the current profile.").arg(profileToRemove), QMessageBox::Ok); return; } @@ -507,7 +507,7 @@ void MainWindowImp::removeProfile(){ */ void MainWindowImp::changeProfile(){ if(profilesList->currentItem() == -1){ - QMessageBox::information(this, "Can't Change.","Please select a profile.", "Ok"); + QMessageBox::information(this, "Can't Change.","Please select a profile.", QMessageBox::Ok); return; } QString newProfile = profilesList->text(profilesList->currentItem()); -- cgit v0.9.0.2