Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: step.knsrc
- ===================================================================
- --- step.knsrc (revision 1097521)
- +++ step.knsrc (working copy)
- -1,3 +1,5 @@
- [KNewStuff3]
- -ProvidersUrl=http://edu.kde.org/step/downloads/providers.xml
- +ProvidersUrl=http://download.kde.org/ocs/providers.xml
- +Categories=Step
- +UploadCategories=Step
- TargetDir=step/examples
- Index: mainwindow.cc
- ===================================================================
- --- mainwindow.cc (revision 1097521)
- +++ mainwindow.cc (working copy)
- -51,6 +51,7 @@
- #include <KIO/NetAccess>
- #include <knewstuff3/downloaddialog.h>
- +#include <knewstuff3/uploaddialog.h>
- #include <QFile>
- #include <QGraphicsView>
- -445,24 +446,22 @@
- void MainWindow::uploadExample()
- {
- - KMessageBox::sorry(this, i18n("Uploading is still not implemented in kdelibs."),
- - i18n("Sorry - Step"));
- - /*
- int ret = KMessageBox::questionYesNo(this,
- - i18n("Do you want to upload current experiment to public web server ?"),
- + i18n("Do you want to upload current experiment to public web server?"),
- i18n("Question - Step"));
- if(ret != KMessageBox::Yes) return;
- if(currentFileUrl.isEmpty() || !worldModel->undoStack()->isClean()) {
- ret = KMessageBox::warningContinueCancel(this,
- - i18n("The experiment is not saved. You should it before uploading."),
- + i18n("The experiment is not saved. You should save it before uploading."),
- i18n("Warning - Step"), KStandardGuiItem::save(), KStandardGuiItem::cancel());
- if(ret != KMessageBox::Continue) return;
- if(!saveFile()) return;
- }
- - KNS::Engine::upload( currentFileUrl.url() );
- - */
- + KNS3::UploadDialog dialog("step.knsrc", this);
- + dialog.setUploadFile( currentFileUrl.url() );
- + dialog.exec();
- }
- void MainWindow::downloadExamples()
Advertisement
Add Comment
Please, Sign In to add comment