Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/scheduler/scheduler.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 3776 Lines • ▼ Show 20 Line(s) | 3773 | { | |||
---|---|---|---|---|---|
3777 | return false; | 3777 | return false; | ||
3778 | } | 3778 | } | ||
3779 | } | 3779 | } | ||
3780 | 3780 | | |||
3781 | schedulerURL = QUrl::fromLocalFile(fileURL); | 3781 | schedulerURL = QUrl::fromLocalFile(fileURL); | ||
3782 | mosaicB->setEnabled(true); | 3782 | mosaicB->setEnabled(true); | ||
3783 | mDirty = false; | 3783 | mDirty = false; | ||
3784 | delLilXML(xmlParser); | 3784 | delLilXML(xmlParser); | ||
3785 | // update save button tool tip | ||||
3786 | queueSaveB->setToolTip("Save schedule to " + schedulerURL.fileName()); | ||||
3787 | | ||||
3785 | 3788 | | |||
3786 | state = old_state; | 3789 | state = old_state; | ||
3787 | return true; | 3790 | return true; | ||
3788 | } | 3791 | } | ||
3789 | 3792 | | |||
3790 | bool Scheduler::processJobInfo(XMLEle *root) | 3793 | bool Scheduler::processJobInfo(XMLEle *root) | ||
3791 | { | 3794 | { | ||
3792 | XMLEle *ep; | 3795 | XMLEle *ep; | ||
▲ Show 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 3940 | { | |||
3965 | { | 3968 | { | ||
3966 | if ((saveScheduler(schedulerURL)) == false) | 3969 | if ((saveScheduler(schedulerURL)) == false) | ||
3967 | { | 3970 | { | ||
3968 | KSNotification::error(i18n("Failed to save scheduler list"), i18n("Save")); | 3971 | KSNotification::error(i18n("Failed to save scheduler list"), i18n("Save")); | ||
3969 | return; | 3972 | return; | ||
3970 | } | 3973 | } | ||
3971 | 3974 | | |||
3972 | mDirty = false; | 3975 | mDirty = false; | ||
3976 | // update save button tool tip | ||||
3977 | queueSaveB->setToolTip("Save schedule to " + schedulerURL.fileName()); | ||||
3973 | } | 3978 | } | ||
3974 | else | 3979 | else | ||
3975 | { | 3980 | { | ||
3976 | QString message = i18n("Invalid URL: %1", schedulerURL.url()); | 3981 | QString message = i18n("Invalid URL: %1", schedulerURL.url()); | ||
3977 | KSNotification::sorry(message, i18n("Invalid URL")); | 3982 | KSNotification::sorry(message, i18n("Invalid URL")); | ||
3978 | } | 3983 | } | ||
3979 | } | 3984 | } | ||
3980 | 3985 | | |||
▲ Show 20 Lines • Show All 3088 Lines • Show Last 20 Lines |