Commit fa257fa3 authored by Stephan Binner's avatar Stephan Binner

replace many Yes/No dialog buttons

svn path=/trunk/KDE/kdeedu/kmplot/; revision=437965
parent edd26dd4
......@@ -211,7 +211,7 @@ bool MainDlg::checkModified()
if( m_modified )
{
int saveit = KMessageBox::warningYesNoCancel( m_parent, i18n( "The plot has been modified.\n"
"Do you want to save it?" ) );
"Do you want to save it?" ), QString::null, KStdGuiItem::save(), KStdGuiItem::discard() );
switch( saveit )
{
case KMessageBox::Yes:
......@@ -248,7 +248,7 @@ void MainDlg::slotSave()
if ( oldfileversion)
{
if ( KMessageBox::warningYesNo( m_parent, i18n( "This file is saved with an old file format; if you save it, you cannot open the file with older versions of Kmplot. Are you sure you want to continue?" ) ) == KMessageBox::No)
if ( KMessageBox::warningContinueCancel( m_parent, i18n( "This file is saved with an old file format; if you save it, you cannot open the file with older versions of Kmplot. Are you sure you want to continue?" ), QString::null, i18n("Save New Format") ) == KMessageBox::Cancel)
return;
}
kmplotio->save( m_url.url() );
......
......@@ -1860,7 +1860,7 @@ void View::mnuHide_clicked()
}
void View::mnuRemove_clicked()
{
if ( KMessageBox::questionYesNo(this,i18n("Are you sure you want to remove this function?")) == KMessageBox::Yes )
if ( KMessageBox::warningContinueCancel(this,i18n("Are you sure you want to remove this function?"), QString::null, KStdGuiItem::del()) == KMessageBox::Continue )
{
Ufkt *ufkt = &m_parser->ufkt[m_parser->ixValue(csmode)];
char const function_type = ufkt->fstr[0].latin1();
......
......@@ -179,13 +179,13 @@ void KParameterEditor::cmdImport_clicked()
}
else if ( !verbose)
{
if ( KMessageBox::warningYesNo(this,i18n("Line %1 is not a valid parameter value and will therefore not be included. Do you want to continue?").arg(i) ) == KMessageBox::No)
if ( KMessageBox::warningContinueCancel(this,i18n("Line %1 is not a valid parameter value and will therefore not be included. Do you want to continue?").arg(i) ) == KMessageBox::Cancel)
{
file.close();
KIO::NetAccess::removeTempFile( tmpfile );
return;
}
else if (KMessageBox::warningYesNo(this,i18n("Would you like to be informed about other lines that cannot be read?") ) == KMessageBox::No)
else if (KMessageBox::warningYesNo(this,i18n("Would you like to be informed about other lines that cannot be read?"), QString::null, i18n("Get Informed"), i18n("Ignore Information") ) == KMessageBox::No)
verbose = true;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment