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 3784 Lines • ▼ Show 20 Line(s) | 3781 | { | |||
---|---|---|---|---|---|
3785 | return false; | 3785 | return false; | ||
3786 | } | 3786 | } | ||
3787 | } | 3787 | } | ||
3788 | 3788 | | |||
3789 | schedulerURL = QUrl::fromLocalFile(fileURL); | 3789 | schedulerURL = QUrl::fromLocalFile(fileURL); | ||
3790 | mosaicB->setEnabled(true); | 3790 | mosaicB->setEnabled(true); | ||
3791 | mDirty = false; | 3791 | mDirty = false; | ||
3792 | delLilXML(xmlParser); | 3792 | delLilXML(xmlParser); | ||
3793 | // update save button tool tip | ||||
3794 | queueSaveB->setToolTip("Save schedule to " + schedulerURL.fileName()); | ||||
3795 | | ||||
3793 | 3796 | | |||
3794 | state = old_state; | 3797 | state = old_state; | ||
3795 | return true; | 3798 | return true; | ||
3796 | } | 3799 | } | ||
3797 | 3800 | | |||
3798 | bool Scheduler::processJobInfo(XMLEle *root) | 3801 | bool Scheduler::processJobInfo(XMLEle *root) | ||
3799 | { | 3802 | { | ||
3800 | XMLEle *ep; | 3803 | XMLEle *ep; | ||
▲ Show 20 Lines • Show All 172 Lines • ▼ Show 20 Line(s) | 3948 | { | |||
3973 | { | 3976 | { | ||
3974 | if ((saveScheduler(schedulerURL)) == false) | 3977 | if ((saveScheduler(schedulerURL)) == false) | ||
3975 | { | 3978 | { | ||
3976 | KSNotification::error(i18n("Failed to save scheduler list"), i18n("Save")); | 3979 | KSNotification::error(i18n("Failed to save scheduler list"), i18n("Save")); | ||
3977 | return; | 3980 | return; | ||
3978 | } | 3981 | } | ||
3979 | 3982 | | |||
3980 | mDirty = false; | 3983 | mDirty = false; | ||
3984 | // update save button tool tip | ||||
3985 | queueSaveB->setToolTip("Save schedule to " + schedulerURL.fileName()); | ||||
3981 | } | 3986 | } | ||
3982 | else | 3987 | else | ||
3983 | { | 3988 | { | ||
3984 | QString message = i18n("Invalid URL: %1", schedulerURL.url()); | 3989 | QString message = i18n("Invalid URL: %1", schedulerURL.url()); | ||
3985 | KSNotification::sorry(message, i18n("Invalid URL")); | 3990 | KSNotification::sorry(message, i18n("Invalid URL")); | ||
3986 | } | 3991 | } | ||
3987 | } | 3992 | } | ||
3988 | 3993 | | |||
▲ Show 20 Lines • Show All 3088 Lines • Show Last 20 Lines |