shutdown-qapps-1.7.4/0000775000175000017500000000000013513631003013517 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown.qrc0000666000175000017500000000041413401523312016262 0ustar chrischris version.txt qshutdown/src/pixmap/red_glasses.xpm qshutdown/src/pixmap/red_glasses.png shutdown-qapps-1.7.4/qprogram-starter.qrc0000666000175000017500000000027413401523312017544 0ustar chrischris version.txt qprogram-starter/src/pixmap/qprogram-starter.xpm shutdown-qapps-1.7.4/qshutdown/0000775000175000017500000000000013513631003015553 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown/README0000666000175000017500000000502313401523311016433 0ustar chrischrisqshutdown INSTALL: ======== Dependencies: qtbase5-dev, qttools5-dev-tools, build-essential If you want to install from source, open a terminal and change into this folder. To install type: qmake sudo make install distclean For admins: You can enable "parental lock" for every user if you do the following: sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/ now add the following line to the sudoers (for example with "EDITOR=nano sudo -E visudo"): * ALL = NOPASSWD:/usr/bin/qshutdown the * replaces the username or %groupname (Don't forget the % if it's a group). And one more thing: Edit the /root/.qshutdown/qshutdown.conf (after starting qshutdown once as root) and set the option Lock_all to true. If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf. UNINSTALL: ========== To uninstall type: qmake (if the Makefile has been removed) sudo make deinstall (note that ~/.qshutdown/qshutdown.conf and ~/.qshutdown/log.txt won't be removed) KNOWN ISSUES: ============= There is no system tray icon for qshutdown in Ubuntu 11.04. SOLUTION: Type the following line in a terminal: gsettings set com.canonical.Unity.Panel systray-whitelist "['all']" In case you want to use the sudo shutdown command and you have set the rights in the sudoers, but it still doesn't work, please specify your own command in the preferences and try if "sudo shutdown -hP" now works. For most systems using the Gnome Shell a certain DBus method has been removed, thus a shutdown dialog will be likely to appear if qshutdown's methods have been set to automatic or to Gnome session. If you do not want this shutdown dialog to appear, please use ConsoleKit or something else. HINTS ON USAGE: =============== One can not close qshutdown, but only quit it using the sytem tray icon (indicator) or the key combination Ctrl+Q (see shortcuts). If you want qshutdown to stop bugging you, just remove the hook from warnings on? HOTKEYS: ========== Ctrl+I information window Ctrl+Q Quit Ctrl+P Prefereces Ctrl+L write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.) Ctrl+S set to shutdown Ctrl+R set to restart Ctrl+U set to suspend to RAM Ctrl+H set to hibernate Ctrl+E stop timer (only if the countdown has started and the admin didn't restrict the access) Shift+E to edit the config file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)). shutdown-qapps-1.7.4/qshutdown/qshutdown.pro0000666000175000017500000000535213477743261020363 0ustar chrischris!win32{ QT += dbus } TEMPLATE = app TARGET = bin/qshutdown DEPENDPATH = . src src/translations INCLUDEPATH = . src OBJECTS_DIR = build MOC_DIR = build UI_DIR = build RCC_DIR = build QT += widgets gui system(lrelease qshutdown.pro) QMAKE_DISTCLEAN = src/translations/*.qm # Input HEADERS = src/gui.h src/power.h src/info.h\ src/calendar.h src/preferences.h\ src/ch_passwd.h src/passwd.h src/editor.h\ src/about.h src/weekday.h src/weekdayitem.h SOURCES = src/gui.cpp src/main.cpp src/info.cpp\ src/preferences.cpp src/calendar.cpp\ src/ch_passwd.cpp src/passwd.cpp\ src/editor.cpp src/about.cpp src/weekday.cpp\ src/weekdayitem.cpp RESOURCES = ../qshutdown.qrc TRANSLATIONS = src/translations/qshutdown-ast.ts\ src/translations/qshutdown-bg.ts\ src/translations/qshutdown-bs.ts\ src/translations/qshutdown-cs.ts\ src/translations/qshutdown-de.ts\ src/translations/qshutdown-de_DE.ts\ src/translations/qshutdown-en_AU.ts\ src/translations/qshutdown-en_GB.ts\ src/translations/qshutdown-eo.ts\ src/translations/qshutdown-es.ts\ src/translations/qshutdown-fr.ts\ src/translations/qshutdown-gl.ts\ src/translations/qshutdown-he.ts\ src/translations/qshutdown-hr.ts\ src/translations/qshutdown-id.ts\ src/translations/qshutdown-it.ts\ src/translations/qshutdown-ja.ts\ src/translations/qshutdown-ms.ts\ src/translations/qshutdown-my.ts\ src/translations/qshutdown-ro.ts\ src/translations/qshutdown-ru.ts\ src/translations/qshutdown-tr.ts\ src/translations/qshutdown-ug.ts\ src/translations/qshutdown-uk.ts\ src/translations/qshutdown-uz.ts\ src/translations/qshutdown-zh_CN.ts\ src/translations/qshutdown-zh_TW.ts FORMS = src/ui/gui.ui src/ui/preferences.ui\ src/ui/calendar.ui src/ui/ch_passwd.ui\ src/ui/passwd.ui src/ui/editor.ui\ src/ui/about.ui !win32{ # install target.path = /usr/bin icon.files = src/pixmap/red_glasses* icon.path = /usr/share/pixmaps translation.files = src/translations/*.qm translation.path = /usr/share/qshutdown/translations autostart1.files = autostart/qshutdown.desktop autostart1.path = /usr/share/applications autostart2.files = autostart/99qshutdown autostart2.path = /usr/share/qshutdown/autostart INSTALLS = target icon translation autostart1 autostart2 deinstall.depends = uninstall FORCE deinstall.commands = rm -R /usr/share/qshutdown QMAKE_EXTRA_TARGETS = deinstall } shutdown-qapps-1.7.4/qshutdown/qshutdown.qc0000666000175000017500000000011313401523311020127 0ustar chrischris qshutdown qshutdown.pro shutdown-qapps-1.7.4/qshutdown/src/0000775000175000017500000000000013513631003016342 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown/src/gui.cpp0000664000175000017500000011451713477727543017673 0ustar chrischris/* qshutdown, a program to shutdown the shutdown/reboot/suspend/hibernate * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "gui.h" #include "preferences.h" #include "info.h" #include "calendar.h" #include "passwd.h" #include "editor.h" #include "about.h" #include "power.h" #include Gui::Gui(){ setupUi(this); //Seconds won't be recognized, thus removing them (just in case). QString timeEditFormat; timeEditFormat = timeEdit->displayFormat(); if(timeEditFormat.contains(":ss")) timeEditFormat.replace(QString(":ss"), QString("")); if(timeEditFormat.contains(":s")) timeEditFormat.replace(QString(":s"), QString("")); timeEdit->setDisplayFormat(timeEditFormat); timeRunning = false; aWeeklyTimeWasSet = false; logFileSize = 1.5; oldComboBoxIndex = comboBox->currentIndex(); oldTime = timeEdit->time(); localDatetime = QDateTime::currentDateTime(); elapsedTime.start(); //Preferences pref = new Preferences(this); //CalendarBox cal = new Calendar(this); //InfoMessageBox infoBox = new Info(this); //ChangePassword checkPassword = new PassWord(this); //Editor editor = new Editor(this); //Versioning QFile versionFile(":version"); versionFile.open(QIODevice::ReadOnly | QIODevice::Text); QTextStream in(&versionFile); statusBar()->showMessage(tr("Version ") + in.readLine(),15000); versionFile.close(); /* //Parental lock label for the statusbar parentalLockL = new QLabel(tr("locked")); parentalLockL->setFrameShape(QFrame::Box); parentalLockL->setFrameShadow(QFrame::Sunken); parentalLockL->setToolTip(tr("Parental lock is activated")); //Custom mode label for the statusbar customL = new QLabel(tr("custom")); customL->setFrameShape(QFrame::Box); customL->setFrameShadow(QFrame::Sunken); customL->setToolTip(tr("Using user defined command"));*/ //About about = new About(this); //TrayIcon icon = QIcon(":red_glasses"); TIcon = new QSystemTrayIcon(this); TIcon->setIcon(icon); //TrayIconContextMenu menu = new QMenu(this); minimize_restore_action = new QAction(tr("&Minimize"),this); reset_action = new QAction(tr("R&eset"),this); quit_action = new QAction(tr("&Quit"),this); info_action = new QAction(tr("&Info"),this); log_action = new QAction(tr("&Logfile"),this); log_action->setCheckable(true); pref_action = new QAction(tr("&Preferences"),this); power_actions = new QActionGroup(this); shutdown_action = new QAction(tr("&Shutdown"),this); shutdown_action->setCheckable(true); reboot_action = new QAction(tr("&Reboot"),this); reboot_action->setCheckable(true); suspend_action = new QAction(tr("S&uspend"),this); suspend_action->setCheckable(true); hibernate_action = new QAction(tr("&Hibernate"),this); hibernate_action->setCheckable(true); power_actions->addAction(shutdown_action); power_actions->addAction(reboot_action); power_actions->addAction(suspend_action); power_actions->addAction(hibernate_action); menu->addAction(info_action); menu->addAction(reset_action); menu->addAction(pref_action); menu->addAction(log_action); menu->addSeparator(); menu->addAction(shutdown_action); menu->addAction(reboot_action); menu->addAction(suspend_action); menu->addAction(hibernate_action); reset_action->setEnabled(false); menu->addSeparator(); menu->addAction(minimize_restore_action); menu->addAction(quit_action); TIcon->setContextMenu(menu); //setting contextmenu for the systray //PushButton Minimize minim = new QPushButton(this); //to minimize minim->setText(tr("&Minimize!")); minim->setHidden(true); //not yet visible QSizePolicy sizePolicy6(QSizePolicy::Expanding, QSizePolicy::Preferred); sizePolicy6.setHorizontalStretch(0); sizePolicy6.setVerticalStretch(1); sizePolicy6.setHeightForWidth(ok->sizePolicy().hasHeightForWidth()); minim->setSizePolicy(sizePolicy6); gridLayout5->addWidget(minim,0,1,3,1); //Fonts font1 = new QFont; font1->setBold(true); font2 = new QFont; font2->setBold(true); font3 = new QFont; //Timer timer = new QTimer(this); //for updating countdown display and check if time is over ti = new QTimer(this); //for displaying the window, till the OK-Button is clicked ti->start(30000); //gives every 30 seconds a timeout()-signal //Connect signals with slots (actions with funktions) connect(comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(power_action(int))); connect(ti, SIGNAL(timeout()), this, SLOT(showW())); //set window state for ti connect(ok, SIGNAL(clicked(bool)), this, SLOT(set())); //starts timers and time calculations connect(timer, SIGNAL(timeout()), this, SLOT(updateT())); //runs updateT() every second connect(now, SIGNAL(clicked(bool)), this, SLOT(finished_()));//closes the program & starts the shutdown immediately connect(minim, SIGNAL(clicked(bool)), this, SLOT(showMinimized())); //minimizes window connect(TIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); //handles systray-symbol connect(power_actions, SIGNAL(triggered(QAction*)), this, SLOT(power(QAction*))); connect(reset_action, SIGNAL(triggered()), this, SLOT(reset())); connect(action_Reset, SIGNAL(triggered()), this, SLOT(reset())); connect(qApp, SIGNAL(aboutToQuit()), this, SLOT(beforeQuit())); //save window size / logs and unregister qshutdown connect(minimize_restore_action, SIGNAL(triggered()), this, SLOT(tray_actions())); connect(quit_action, SIGNAL(triggered()), qApp, SLOT(quit())); //contextmenu "Quit" for the systray quits Programm connect(actionQuit, SIGNAL(triggered()), qApp, SLOT(quit())); connect(action_Configure, SIGNAL(triggered()), pref, SLOT(show())); connect(pref_action, SIGNAL(triggered()), pref, SLOT(show())); connect(pref, SIGNAL(starting()), ti, SLOT(stop())); connect(pref, SIGNAL(finishing()), this, SLOT(warnings_on())); //start the QTimer ti if timeRunning == false connect(pref, SIGNAL(changeFont()), this, SLOT(getFonts())); connect(pref, SIGNAL(editConf()), checkPassword, SLOT(show())); //ask for password when button was pressed at preferences connect(pref, SIGNAL(removeTrayIcon(bool)), this, SLOT(hideTrayIcon(bool))); connect(action_Info, SIGNAL(triggered()), this, SLOT(setInfoText())); connect(action_Info, SIGNAL(triggered()), infoBox, SLOT(show())); connect(info_action, SIGNAL(triggered()), this, SLOT(setInfoText())); connect(info_action, SIGNAL(triggered()), infoBox, SLOT(show())); connect(infoBox, SIGNAL(starting()), ti, SLOT(stop())); connect(infoBox, SIGNAL(finishing()), this, SLOT(warnings_on())); connect(toolButton, SIGNAL(clicked(bool)), this, SLOT(showCalendarBox())); connect(cal, SIGNAL(aDateWasSet()), this, SLOT(setDate())); connect(cal, SIGNAL(starting()), ti, SLOT(stop())); connect(cal, SIGNAL(finishing()), this, SLOT(warnings_on())); connect(checkPassword, SIGNAL(success()), this, SLOT(showEditor())); //if correct password was entered open editor connect(checkPassword, SIGNAL(starting()), ti, SLOT(stop())); connect(checkPassword, SIGNAL(starting()), pref, SLOT(accept())); connect(checkPassword, SIGNAL(finishing()), this, SLOT(warnings_on())); connect(editor, SIGNAL(saved()), this, SLOT(updateLock())); //update to see if Lock_all was (de)activated connect(editor, SIGNAL(saved()), pref, SLOT(loadSettings())); connect(editor, SIGNAL(starting()), ti, SLOT(stop())); connect(editor, SIGNAL(finishing()), this, SLOT(warnings_on())); connect(editor, SIGNAL(finishing()), pref, SLOT(loadSettings())); connect(actionLog_file, SIGNAL(toggled(bool)), log_action, SLOT(setChecked(bool))); connect(log_action, SIGNAL(toggled(bool)), actionLog_file, SLOT(setChecked(bool))); connect(action_About, SIGNAL(triggered()), about, SLOT(show())); connect(actionAbout_Qt, SIGNAL(triggered()), qApp, SLOT(aboutQt())); connect(actionKeep_window_proportions, SIGNAL(toggled(bool)), this, SLOT(staticProportions(bool))); connect(timeEdit, SIGNAL(timeChanged(QTime)), this, SLOT(saveOldTime(QTime))); connect(comboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(saveOldComboBoxIndex(int))); } Gui::~Gui(){ delete font1; delete font2; delete font3; // delete parentalLockL; // delete customL; } void Gui::showEvent(QShowEvent* show_window){ minimize_restore_action->setText(tr("&Minimize")); QMainWindow::showEvent(show_window); } void Gui::tray_actions(){ if(isMinimized() || isHidden()) //in case that the window is minimized or hidden showNormal(); else hide(); } void Gui::setInfoText(){ infoBox->setHtml(information); } void Gui::warnings_on(){ if(pref->getClosed() && cal->getClosed() && infoBox->getClosed() && checkPassword->getClosed() && editor->getClosed() && !timeRunning) ti->start(); } void Gui::saveOldTime(QTime time){ if(!aWeeklyTimeWasSet) oldTime = time; } void Gui::saveOldComboBoxIndex(int i){ if(!aWeeklyTimeWasSet) oldComboBoxIndex = i; } void Gui::setDate(){ if(!cal->weekly->isChecked() && !timeRunning) { if(cal->setCalendarDate.date() != QDate()) toolButton->setText(cal->setCalendarDate.date().toString(Qt::SystemLocaleShortDate)); } else if(!cal->setWeeklyDate.time().isNull() && !timeRunning){ toolButton->setText(cal->setWeeklyDate.date().toString("ddd")); aWeeklyTimeWasSet = true; timeEdit->setTime(cal->setWeeklyDate.time()); QDateTime myTime = cal->setWeeklyDate; //just for convenience QList item; // get the objects of the matching day if(myTime.date().dayOfWeek() == Qt::Monday) item << cal->mon1 << cal->mon2 << cal->mon3 << cal->mon4 << cal->mon5; else if(myTime.date().dayOfWeek() == Qt::Tuesday) item << cal->tue1 << cal->tue2 << cal->tue3 << cal->tue4 << cal->tue5; else if(myTime.date().dayOfWeek() == Qt::Wednesday) item << cal->wed1 << cal->wed2 << cal->wed3 << cal->wed4 << cal->wed5; else if(myTime.date().dayOfWeek() == Qt::Thursday) item << cal->thu1 << cal->thu2 << cal->thu3 << cal->thu4 << cal->thu5; else if(myTime.date().dayOfWeek() == Qt::Friday) item << cal->fri1 << cal->fri2 << cal->fri3 << cal->fri4 << cal->fri5; else if(myTime.date().dayOfWeek() == Qt::Saturday) item << cal->sat1 << cal->sat2 << cal->sat3 << cal->sat4 << cal->sat5; else if(myTime.date().dayOfWeek() == Qt::Sunday) item << cal->sun1 << cal->sun2 << cal->sun3 << cal->sun4 << cal->sun5; while(item[0]->timeEdit->time() != myTime.time()) //get the correct time from the object item.removeAt(0); //just leave the matching time if(item.count() != 0) comboBox->setCurrentIndex(item[0]->comboBox->currentIndex()); radio1->setChecked(true); radio2->setDisabled(true); radio1->setDisabled(true); timeEdit->setDisabled(true); comboBox->setDisabled(true); } if((cal->setCalendarDate == QDateTime()) && (cal->setWeeklyDate == QDateTime())) if(!timeRunning){ timeEdit->setTime(oldTime); comboBox->setCurrentIndex(oldComboBoxIndex); aWeeklyTimeWasSet = false; radio2->setDisabled(false); radio1->setDisabled(false); if(radio1->isChecked()) timeEdit->setDisabled(false); else spin->setDisabled(false); comboBox->setDisabled(false); toolButton->setText(tr("Calendar")); } } void Gui::center(){ QDesktopWidget *desktop = qApp->desktop(); QPoint pos((desktop->width() - frameGeometry().width()) / 2, (desktop->height() - frameGeometry().height()) / 2); move(pos); } void Gui::iconActivated(QSystemTrayIcon::ActivationReason reason){ if(reason == QSystemTrayIcon::Trigger) tray_actions(); //hide or show } void Gui::power_action(int action){ QList actions = power_actions->actions(); actions[action]->setChecked(true); switch(action){ case 0: targetTime->setText(tr("Shutdown-time:")); minutes->setText(tr("Minutes till shutdown:")); break; case 1: targetTime->setText(tr("Reboot-time:")); minutes->setText(tr("Minutes till reboot:")); break; case 2: targetTime->setText(tr("Suspend-time:")); minutes->setText(tr("Minutes till suspend:")); break; case 3: targetTime->setText(tr("Hibernate-time:")); minutes->setText(tr("Minutes till hibernate:")); break; default:; } } void Gui::power(QAction *action){ if(action == shutdown_action) comboBox->setCurrentIndex(0); if(action == reboot_action) comboBox->setCurrentIndex(1); if(action == suspend_action) comboBox->setCurrentIndex(2); if(action == hibernate_action) comboBox->setCurrentIndex(3); } void Gui::showW(){ if(warnings->isChecked()){ //warnings is checked if(timeRunning){ QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::MessageIcon(3); TIcon->showMessage(tr("Warning"), tr("Action imminent!"), icon, 5000); showRunningProgram(); } else{ QSystemTrayIcon::MessageIcon icon = QSystemTrayIcon::MessageIcon(1); TIcon->showMessage(tr("Information"), tr("Countdown is not running!"), icon, 5000); } } } void Gui::showRunningProgram(){ center(); if(isMinimized() || isHidden()) showNormal(); else activateWindow(); } void Gui::keyPressEvent(QKeyEvent *kEvent){ if(kEvent->modifiers() == Qt::ControlModifier){ if(!timeRunning && !editor->getLockAll()){ if(kEvent->key() == Qt::Key_S){ shutdown_action->setChecked(true); comboBox->setCurrentIndex(0); } if(kEvent->key() == Qt::Key_R){ reboot_action->setChecked(true); comboBox->setCurrentIndex(1); } if(kEvent->key() == Qt::Key_U){ suspend_action->setChecked(true); comboBox->setCurrentIndex(2); } if(kEvent->key() == Qt::Key_H){ hibernate_action->setChecked(true); comboBox->setCurrentIndex(3); } } if(!editor->getLockAll()){ if(kEvent->key() == Qt::Key_E && timeRunning) reset(); if(kEvent->key() == Qt::Key_L){ if(log_action->isChecked()){ log_action->setChecked(false); actionLog_file->setChecked(false); } else{ log_action->setChecked(true); actionLog_file->setChecked(true); } } if(kEvent->key() == Qt::Key_Q) qApp->quit(); } if(kEvent->key() == Qt::Key_I){ setInfoText(); infoBox->show(); } if(kEvent->key() == Qt::Key_P) pref->show(); } if(kEvent->modifiers() == Qt::ShiftModifier){ if(kEvent->key() == Qt::Key_E) checkPassword->show(); //ask for password to edit qshutdown.conf } } void Gui::updateT(){ QDateTime myDate = QDateTime::currentDateTimeUtc(); QString tip1, tip2; if(shutdown_action->isChecked()) tip1 = (tr("shutdown in ")); else if(reboot_action->isChecked()) tip1 = (tr("reboot in ")); else if(suspend_action->isChecked()) tip1 = (tr("suspend in ")); else if(hibernate_action->isChecked()) tip1 = (tr("hibernate in ")); int dayDiff = myDate.date().daysTo(futureDateTime.date()); if(dayDiff < 0){ //reset if targeted date is already in the past. reset(); return; } //end else if(dayDiff > 1){ //if the date difference between today and the selected day //in the calendar is greater than one //if more than one year if(dayDiff > myDate.date().daysInYear()){ tip2 = (QString::number(dayDiff/myDate.date().daysInYear()) + " " + tr("years")); lcdL->setText(tr("years")); lcd->setDigitCount(4); lcd->display((double)dayDiff/myDate.date().daysInYear()); } //if more than one month else if(dayDiff > myDate.date().daysInMonth() && dayDiff <= myDate.date().daysInYear()){ tip2 = (QString::number(dayDiff/myDate.date().daysInMonth()) + " " + tr("months")); lcdL->setText(tr("months")); if((double)dayDiff/myDate.date().daysInMonth() >= 10) lcd->setDigitCount(4); else lcd->setDigitCount(3); lcd->display((double)dayDiff/myDate.date().daysInMonth()); } //if less than days in Month else if(dayDiff <= myDate.date().daysInMonth()){ tip2 = (QString::number(dayDiff) + " " + tr("days")); lcdL->setText(tr("days")); if((double)dayDiff >= 10) lcd->setDigitCount(4); else lcd->setDigitCount(3); lcd->display((double)dayDiff); } } //end of year/month else if(dayDiff == 1){ //if there is one more day to go if(!Time()) return; if(i>=86400){ //if one day and some time to go tip2 = (">= 1 " + tr("day")); lcd->setDigitCount(3); lcd->display(bigI/86400); if(lcd->value() > 1.1) lcdL->setText(tr("days")); else lcdL->setText(tr("day")); } else if(i<86400 && i>3600){ //if there is less than one day, show hours tip2 = (QString::number(i/3600) + " " + tr("hours")); lcdL->setText(tr("hours")); if(bigI/3600 >= 10) lcd->setDigitCount(4); else lcd->setDigitCount(3); lcd->display(bigI/3600); } else if(i<=3600 && i>60){ //if less than one hour tip2 = (QString::number(i/60) + " " + tr("minutes")); lcdL->setText(tr("minutes")); if(bigI/60 >= 10){ lcd->setDigitCount(4); lcd->display(bigI/60); } else lcd->setDigitCount(3); lcd->display(bigI/60); } else if(i<=60){ tip2 = (QString::number(i) + " " + tr("seconds")); lcdL->setText(tr("seconds")); lcd->display(i); } } else if(dayDiff == 0){ if(!Time()) return; if(warnings->isChecked() && (((i<=100) && (i>95)) || ((i<=40) && (i>35))) && !ti->isActive()) ti->start(30000); if(i > 3600){ //Display hours and minutes tip2 = (QString::number(i/3600) + " " + tr("hours") + " + " + QString::number(i/60 - (i/3600)*60) + " " + tr("minutes")); lcdL->setText(tr("hours")); if(bigI/3600 >= 10) lcd->setDigitCount(4); else lcd->setDigitCount(3); lcd->display(bigI/3600); } else if(i<=3600 && i>=60){ //Display only minutes tip2 = (QString::number(i/60) + " " + tr("minutes")); lcdL->setText(tr("minutes")); if(bigI/60 >= 10) lcd->setDigitCount(4); else lcd->setDigitCount(3); lcd->display(bigI/60); } else if(i<=60 && i > 0){ //Display only seconds tip2 = (QString::number(i) + " " + tr("seconds")); lcdL->setText(tr("seconds")); lcd->display(i); } //this will ensure that the shutdown-type will be executed in case a few seconds were skipped else if((i<=0) && !(i<-n)) finished_(); //execute shutdown-type } setWindowTitle(tip1 + tip2); TIcon->setToolTip(tip1 + tip2); } void Gui::set(){ QDateTime localDT = QDateTime::currentDateTime(); QDateTime localFutureDateTime = localDT; //initializing timeRunning = true; cal->timeRunning = true; ti->stop(); bool noCalendarDate = cal->setCalendarDate.isNull(); bool noWeeklyDate = cal->setWeeklyDate.isNull(); if(!noCalendarDate) localFutureDateTime = cal->setCalendarDate; if(!noWeeklyDate) localFutureDateTime = cal->setWeeklyDate; if(noWeeklyDate){ localFutureDateTime.setTime(localDT.time()); if(radio2->isChecked()) //if minute-countdown localFutureDateTime = localFutureDateTime.addSecs(spin->value()*60); else if(radio1->isChecked()){ //if timeEdit if(QDateTime(localFutureDateTime.date(),timeEdit->time(), Qt::LocalTime) > localDT) //set time is greater than current time localFutureDateTime = QDateTime(localFutureDateTime.date(),timeEdit->time(),Qt::LocalTime); else if(noCalendarDate && (timeEdit->time() <= localDT.time())) localFutureDateTime = QDateTime(localFutureDateTime.date().addDays(1),timeEdit->time(),Qt::LocalTime); //add 1 day } } futureDateTime = localFutureDateTime.toUTC(); //convert to UTC time in order to avoid calculating with local times updateT(); //Just updating time/interface for immediate display of remaining time. timer->start(1000); //Update time/interface every second if(lock->isChecked() || editor->getLockAll()){ //when OK-button is clicked and lock is checked QList list; list << spin << radio1 << radio2 << lock << timeEdit << comboBox << targetTime << minutes << pref->tab2 << cal->weekly << cal->scrollAreaWidgetContents; foreach(QWidget * ptr, list) ptr->setDisabled(true); power_actions->setDisabled(true); ok->hide(); minim->show(); minim->setFocus(); minim->setAutoDefault(true); //minimize-button will accept the return key } if(!editor->getLockAll()){ reset_action->setEnabled(true); action_Reset->setEnabled(true); } /* if((comboBox->currentIndex() == 0 && pref->shutdownM->currentIndex() == 6) || (comboBox->currentIndex() == 1 && pref->rebootM->currentIndex() == 6) || (comboBox->currentIndex() == 2 && pref->suspendM->currentIndex() == 5) || (comboBox->currentIndex() == 3 && pref->hibernateM->currentIndex() == 5)){ if(!customL->isVisible()) customL->show(); statusBar()->addPermanentWidget(customL); } else statusBar()->removeWidget(customL);*/ } bool Gui::Time(){ QDateTime futureDateTime10s = futureDateTime.addSecs(n); //adding n (10 seconds) in case of hardware delay. if(QDateTime::currentDateTimeUtc() > futureDateTime10s){ //if targeted time for action is //already over 10 seconds in the past. reset(); return false; } else{ i = QDateTime::currentDateTimeUtc().secsTo(futureDateTime); //the difference of the localTime and the future time bigI = i; //for more precise display with LCD return true; } } void Gui::saveLog(){ #ifdef Q_OS_WIN32 QString file(QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"); #else //!Q_OS_WIN32 QString file(QDir::homePath() + "/.qshutdown/qshutdown.conf"); #endif //Q_OS_WIN32 QSettings settings(file, QSettings::IniFormat); settings.setValue("MainWindow/size",size()); settings.setValue("MainWindow/keep_proportions",actionKeep_window_proportions->isChecked()); if(log_action->isChecked()){ //if logfile is set in the icon contextmenu #ifdef Q_OS_WIN32 QFile logfile(QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/log.txt"); #else //!Q_OS_WIN32 QFile logfile(QDir::homePath() + "/.qshutdown/log.txt"); #endif //Q_OS_WIN32 if(!logfile.open(QIODevice::ReadWrite | QIODevice::Text)){ QTextStream myOutput; myOutput << "E: Can not open log.txt!" << endl; return; } /******* writing log to log.txt *******/ QTextStream out(&logfile); while(!logfile.atEnd()) out.readLine(); out << "[" << localDatetime.toString("yyyy.MM.dd hh:mm") << "] " << 1/(60000.0/elapsedTime.elapsed()) << " minutes uptime\n"; logfile.close(); /******* if log.txt is bigger than set in preferences, delete first line *******/ bool isBigger; if(logfile.size()>logFileSize*1000) isBigger = true; else isBigger = false; while(isBigger){ logfile.open(QIODevice::ReadWrite | QIODevice::Text); QTextStream out(&logfile); out.readLine(); QString content = out.readAll(); logfile.resize(0); out << content; logfile.close(); if(logfile.size()<=logFileSize*1000) isBigger = false; } } } void Gui::finished_(){ if(!pref->quitAfterCountdown->isChecked()) reset(); switch(comboBox->currentIndex()){ case 0: //shutdown switch(pref->shutdownM->currentIndex()){ //shutdown method settings case 0: Power::automatic = true; break; case 1: Power::login1 = true; break; case 2: Power::gnome = true; break; case 3: Power::kde = true; break; case 4: Power::hal_ = true; break; case 5: Power::consolekit = true; break; case 6: Power::sudo = true; break; case 7: Power::user = true; Power::myShutdown = pref->myShutdown; break; default:; } saveLog(); Power::shutdown(); break; case 1: //reboot switch(pref->rebootM->currentIndex()){ //reboot method settings case 0: Power::automatic = true; break; case 1: Power::login1 = true; break; case 2: Power::gnome = true; break; case 3: Power::kde = true; break; case 4: Power::hal_ = true; break; case 5: Power::consolekit = true; break; case 6: Power::sudo = true; break; case 7: Power::user = true; Power::myReboot = pref->myReboot; break; default:; } saveLog(); Power::reboot(); break; case 2: //sleep switch(pref->suspendM->currentIndex()){ //sleep method settings case 0: Power::automatic = true; break; case 1: Power::login1 = true; break; case 2: Power::gnome = true; break; case 3: Power::hal_ = true; break; case 4: Power::upower_ = true; break; case 5: Power::devicekit = true; break; case 6: Power::user = true; Power::mySuspend = pref->mySuspend; break; default:; } if(pref->lockMyScreen){ Power::lockMyScreen = true; } else Power::lockMyScreen = false; Power::suspend(); break; case 3: //hibernate switch(pref->hibernateM->currentIndex()){ //hibernate method settings case 0: Power::automatic = true; break; case 1: Power::login1 = true; break; case 2: Power::gnome = true; break; case 3: Power::hal_ = true; break; case 4: Power::upower_ = true; break; case 5: Power::devicekit = true; break; case 6: Power::user = true; Power::myHibernate = pref->myHibernate; break; default:; } if(pref->lockMyScreen){ Power::lockMyScreen = true; } else Power::lockMyScreen = false; Power::hibernate(); break; default:; } if(pref->quitAfterCountdown->isChecked()) qApp->quit(); } void Gui::hideEvent(QHideEvent* window_hide){ minimize_restore_action->setText(tr("Res&tore")); QMainWindow::hideEvent(window_hide); } void Gui::closeEvent(QCloseEvent* window_close){ if(!pref->quitOnCloseMain->isChecked() && pref->disableTray->isChecked()) showMinimized(); if(!pref->quitOnCloseMain->isChecked() && !pref->disableTray->isChecked()) hide(); if(pref->quitOnCloseMain->isChecked() && !editor->getLockAll()) qApp->quit(); QMainWindow::closeEvent(window_close); } void Gui::beforeQuit(){ saveLog(); #ifndef Q_OS_WIN32 QDBusConnection::sessionBus().unregisterObject(OBJECT_NAME, QDBusConnection::UnregisterNode); QDBusConnection::sessionBus().unregisterService(SERVICE_NAME); #endif //Q_OS_WIN32 } void Gui::loadSettings(){ /***************** create file and it's entries *****************/ #ifdef Q_OS_WIN32 QString file(QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"); #else //!Q_OS_WIN32 QString file(QDir::homePath() + "/.qshutdown/qshutdown.conf"); #endif //Q_OS_WIN32 QSettings settings(file, QSettings::IniFormat); if(!settings.isWritable()){ QTextStream myOutput; myOutput << "W: qshutdown.conf is not writable!" << endl; } if(!settings.contains("Lock_all")) settings.setValue("Lock_all",false); if(!settings.contains("MainWindow/keep_proportions")) settings.setValue("MainWindow/keep_proportions",true); #ifndef Q_OS_WIN32 QFile autostartFile(QDir::homePath() + "/.config/autostart/qshutdown.desktop"); if(autostartFile.exists()) settings.setValue("Autostart",true); else settings.setValue("Autostart",false); #endif pref->autostartFile(); #ifdef Q_OS_WIN32 QString fonts = "Times New Roman"; int fontS1 = 13; int fontS2 = 18; int fontS3 = 11; #else QString fonts = "DejaVu Sans"; int fontS1 = 11; int fontS2 = 15; int fontS3 = 9; #endif /***************** read files entries *****************/ timeEdit->setTime(QTime(settings.value("Time/time_hour",22).toInt(),settings.value("Time/time_minute",00).toInt())); spin->setValue(settings.value("Time/countdown_minutes",60).toInt()); resize(settings.value("MainWindow/size",QSize(290,280)).toSize()); actionKeep_window_proportions->setChecked(settings.value("MainWindow/keep_proportions",true).toBool()); font1->setFamily(settings.value("Fonts/font_type",fonts).toString()); font2->setFamily(settings.value("Fonts/font_type",fonts).toString()); font3->setFamily(settings.value("Fonts/font_type",fonts).toString()); font1->setPointSize(settings.value("Fonts/font1",fontS1).toInt()); font2->setPointSize(settings.value("Fonts/font2",fontS2).toInt()); font3->setPointSize(settings.value("Fonts/font3",fontS3).toInt()); radio1->setChecked(settings.value("CheckBoxes/target_time",false).toBool()); radio2->setChecked(settings.value("CheckBoxes/countdown",true).toBool()); lock->setChecked(settings.value("CheckBoxes/lock",true).toBool()); comboBox->setCurrentIndex(settings.value("Power/comboBox",0).toInt()); warnings->setChecked(settings.value("CheckBoxes/warnings",true).toBool()); log_action->setChecked(settings.value("Logfile/logging",false).toBool()); logFileSize = settings.value("Logfile/size",1.5).toDouble(); //if(settings.contains("Weekly_is_set") && settings.value("Weekly_is_set").toBool()) cal->setDate(); if(settings.value("Time/countdown_at_startup",false).toBool()){ set(); if(settings.value("Hide_at_startup",false).toBool()) QTimer::singleShot(2000, this, SLOT(hide())); } hideTrayIcon(settings.value("CheckBoxes/Disable_tray_icon", false).toBool()); staticProportions(settings.value("MainWindow/keep_proportions",true).toBool()); lockEverything(settings.value("Lock_all",false).toBool()); QList list; list << lcdL << comboBox << targetTime << minutes << spin << timeEdit; foreach(QWidget * ptr, list) ptr->setFont(*font1); ok->setFont(*font2); minim->setFont(*font2); warnings->setFont(*font3); lock->setFont(*font3); now->setFont(*font3); toolButton->setFont(*font3); switch(settings.value("Power/comboBox").toInt()){ case 0: targetTime->setText(tr("Shutdown-time:")); minutes->setText(tr("Minutes till shutdown:")); shutdown_action->setChecked(true); break; case 1: targetTime->setText(tr("Reboot-time:")); minutes->setText(tr("Minutes till reboot:")); reboot_action->setChecked(true); break; case 2: targetTime->setText(tr("Suspend-time:")); minutes->setText(tr("Minutes till suspend:")); suspend_action->setChecked(true); break; case 3: targetTime->setText(tr("Hibernate-time:")); minutes->setText(tr("Minutes till hibernate:")); hibernate_action->setChecked(true); break; default:; } } void Gui::lockEverything(bool actual){ if(radio1->isChecked()) timeEdit->setDisabled(actual); else spin->setDisabled(actual); quit_action->setDisabled(actual); actionQuit->setDisabled(actual); log_action->setDisabled(actual); actionLog_file->setDisabled(actual); power_actions->setDisabled(actual); QList widgetList; widgetList << radio1 << radio2 << lock << comboBox << targetTime << minutes << pref->comboBox << pref->timeEdit << pref->spin << pref->radio1 << pref->radio2 << pref->quitOnCloseMain << pref->autostart << pref->lock << pref->countdown << pref->log << pref->reset << pref->spinBox << pref->tab2; foreach(QWidget * widgetPtr, widgetList) widgetPtr->setDisabled(actual); if(lock->isChecked() && timeRunning && !actual){ QList widgetList2; widgetList2 << timeEdit << spin << radio1 << radio2 << comboBox << targetTime << minutes << pref->tab2; foreach(QWidget * widgetPtr2, widgetList2) widgetPtr2->setDisabled(true); } if(timeRunning){ reset_action->setDisabled(actual); action_Reset->setDisabled(actual); } else{ reset_action->setDisabled(true); action_Reset->setDisabled(true); } if(aWeeklyTimeWasSet){ radio1->setChecked(true); radio2->setDisabled(true); radio1->setDisabled(true); timeEdit->setDisabled(true); comboBox->setDisabled(true); } /* if(actual){ if(!parentalLockL->isVisible()) parentalLockL->show(); statusBar()->addPermanentWidget(parentalLockL); } if(!actual && parentalLockL->isVisible()) statusBar()->removeWidget(parentalLockL);*/ } void Gui::reset(){ timer->stop(); cal->setWeeklyDate = QDateTime(); setWindowTitle("'qshutdown'"); if(!aWeeklyTimeWasSet) toolButton->setText(tr("Calendar")); lcd->display(0); TIcon->setToolTip(NULL); lcdL->setText(tr("minutes")); cal->setCalendarDate.setDate(QDate()); cal->calendarDate.setDate(QDate()); cal->weekly->setEnabled(true); cal->scrollAreaWidgetContents->setEnabled(true); showNormal(); if(!ti->isActive()) ti->start(30000); timeRunning = false; cal->timeRunning = false; minim->hide(); ok->show(); pref->tab2->setEnabled(true); if(!editor->getLockAll()) lockEverything(false); else loadSettings(); action_Reset->setDisabled(true); reset_action->setDisabled(true); //statusBar()->removeWidget(customL); } void Gui::getFonts(){ font1->setFamily(pref->fonts); font1->setPointSize(pref->fontS1); font2->setFamily(pref->fonts); font2->setPointSize(pref->fontS2); font3->setFamily(pref->fonts); font3->setPointSize(pref->fontS3); QList list; list << lcdL << comboBox << targetTime << minutes << spin << timeEdit; foreach(QWidget * ptr, list) ptr->setFont(*font1); ok->setFont(*font2); minim->setFont(*font2); warnings->setFont(*font3); lock->setFont(*font3); now->setFont(*font3); toolButton->setFont(*font3); } void Gui::showCalendarBox(){ if(cal->setCalendarDate.isNull()) cal->calendarWidget->setSelectedDate(QDate::currentDate()); else cal->calendarWidget->setSelectedDate(cal->setCalendarDate.date()); if(editor->getLockAll() || (timeRunning && lock->isChecked())) cal->calendarWidget->blockSignals(true); else cal->calendarWidget->blockSignals(false); cal->show(); } void Gui::updateLock(){ if(editor->getLockAll()) lockEverything(true); else lockEverything(false); } void Gui::showEditor(){ QTimer::singleShot(250, editor, SLOT(show())); } //using singleShot because of focus problems... void Gui::staticProportions(bool var){ if(var) frame->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Fixed); else frame->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding); } void Gui::hideTrayIcon(bool dontShowTray){ //or only minimize if not if(!dontShowTray) TIcon->show(); else TIcon->hide(); } shutdown-qapps-1.7.4/qshutdown/src/info.h0000664000175000017500000000225713477727557017511 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef INFO_H #define INFO_H #include class Info : public QTextEdit{ Q_OBJECT public: Info(QWidget *parent = 0); ~Info(); bool getClosed(); private: bool isClosed; signals: void starting(); void finishing(); protected: virtual void showEvent(QShowEvent* show_Info); virtual void closeEvent(QCloseEvent* close_Info); }; #endif //INFO_H shutdown-qapps-1.7.4/qshutdown/src/main.cpp0000664000175000017500000002106613477727565020033 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "gui.h" #include #include #include #include bool verbose = false; //this is a global variable needed in power.cpp QString shell; int main(int argc, char *argv[]){ // here the QT_program is created QApplication app(argc, argv); //Qt translations QTranslator qtTranslator; qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath)); app.installTranslator(&qtTranslator); //My translations QTranslator translator; QString trDir = "/usr/share/qshutdown/translations/"; translator.load(trDir + "qshutdown-" + QLocale::system().name()); app.installTranslator(&translator); QTextStream myOutput(stdout); if(!QProcessEnvironment().isEmpty()) shell = QProcess::systemEnvironment().filter("SHELL").first().remove("SHELL="); if(shell.isEmpty() && QFile("/bin/bash").exists()) shell = "/bin/bash"; else myOutput << "E: No shell found! Custom commands won't work!"; QString infoStr = QString(QObject::tr("qshutdown will show itself 3 times as a warning " "if there are less than 70 seconds left.

This program uses qdbus to send a " "shutdown/reboot/suspend/hibernate request to either the gnome- or " "kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the " "command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or " "ConsoleKit, or the shutdown command is used, the Session will never be saved. If the " "shutdown command is used, the program will only be able to shutdown and reboot). So " "if nothing happens when the shutdown- or reboot-time is reached, it means that one " "lacks the rights for the shutdown command. In this case one can do the following:" "

Paste the following in a terminal:
EDITOR=nano sudo -E visudo
and " "add this line:
* ALL = NOPASSWD:/sbin/shutdown
whereas * replaces the " "user name or %group name.

The maximum Number of countdown_minutes is " "1440 (24 hours).
The configuration file (and logfile) is located at " "~/.qshutdown/ (under Linux/Unix).

For admins:
If you want " "qshutdown to run with \"parental lock\" for every user, you can do " "\"sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/\" " "and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that " "qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a " "need to add the following line to the sudoers (as above):" "
* ALL = NOPASSWD:/usr/bin/qshutdown

If you should ever forget " "your set password, just remove the whole line starting with \"Password\" manually from " "the qshutdown.conf.

Hints on usage:
If you want qshutdown to stop " "\"bugging\" you, just remove the hook from " "\"warnings on?\".

Hotkeys:" "" "" "
Ctrl+I(this)" " information window
Ctrl+QQuit
Ctrl+PPreferences
Ctrl+Lwrite the run time once into the logfile (works " "only if qshutdown quits. To make it permanent set it in the preferences.)
Ctrl+Sset to shutdown
Ctrl+Rset to restart
Ctrl+Uset to suspend to RAM
Ctrl+Hset to hibernate" "
Ctrl+Estop countdown (only if the countdown has started and the admin " "didn't restrict the access)
Shift+Eto edit the configuration file (for " "this a password is necessary. If you are a user, you can set an \"empty password\" (leave the " "password field empty)).
")); QTextDocumentFragment infoDoc; infoDoc = QTextDocumentFragment::fromHtml(infoStr); QString info = infoDoc.toPlainText(); //Get the arguments passed from the terminal QStringList args = QApplication::arguments(); args.removeFirst(); //this is just the program for(int i=1; i " << (iface.isValid()? "true":"false") << "\nW: " << response.errorName() << ": " << response.errorMessage() << "\nYou can ignore this.\n\n" << endl; QDBusInterface iface2(SERVICE_NAME, OBJECT_NAME, "local.Gui", QDBusConnection::sessionBus(), &window); QDBusMessage response2 = iface2.call("showRunningProgram"); if(response2.type() == QDBusMessage::ErrorMessage) myOutput << "QDBusInterface " << iface2.interface() << " seems to be valid... -> " << (iface2.isValid()? "true":"false") << "\nW: " << response2.errorName() << ": " << response2.errorMessage() << "\nPlease report this." << endl; else if(!args.empty() && ((args[0][0] == '-' && args[0].contains("s")) || args.contains("--start"))) iface2.call("set"); } else if(!args.empty() && ((args[0][0] == '-' && args[0].contains("s")) || args.contains("--start"))) iface.call("set"); } if(!args.empty() && ((args[0][0] == '-' && args[0].contains("s")) || args.contains("--start"))) myOutput << "Starting countdown!\n"; #endif //Q_OS_WIN32 } shutdown-qapps-1.7.4/qshutdown/src/ui/0000775000175000017500000000000013513631003016757 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown/src/ui/about.ui0000664000175000017500000002215113477730241020446 0ustar chrischris About 0 0 425 424 About qshutdown :/red_glasses:/red_glasses Qt::Horizontal QDialogButtonBox::Close 60 60 0 0 0 &About true QFrame::NoFrame QFrame::Plain <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;"> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">qshutdown, a time and countdown based shutdown tool</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Author: Christian Metscher &lt;hakaishi@web.de&gt;</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Copyright © 2010-2019, by Christian Metscher</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">Please use </span><a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" font-size:11pt; text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">or </span><a href="http://www.debian.org/Bugs/Reporting"><span style=" font-size:11pt; text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:11pt;">to report bugs.</span></p></body></html> &Thanks To true QFrame::NoFrame QFrame::Plain <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" content="1" /><style type="text/css"> p, li { white-space: pre-wrap; } </style></head><body style=" font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Special thanks to:</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Fabian Deuchler for helping here and there.</p> <p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">And Brian Nelson for sponsoring the uploads to Debian.</p></body></html> 10 75 true Version x.x.x Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter QLabel { background: white } QFrame::StyledPanel <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> buttonBox rejected() About reject() 316 260 286 274 shutdown-qapps-1.7.4/qshutdown/src/ui/preferences.ui0000666000175000017500000006373413401523312021635 0ustar chrischris Preferences 0 0 430 655 Preferences :/red_glasses:/red_glasses &Edit configuration file Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok Qt::Vertical QSizePolicy::Minimum 20 20 0 0 &Reset settings 0 General true Qt::AlignCenter 0 0 375 530 0 0 6 0 0 2 Shutdown type: Qt::LeftToRight Target time: Minutes to countdown: Font: Font size 1: Font size 2: Font size 3: Size for log file: What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? 1 1440 1 1 0 0 Set a font Liberation Serif Labels for example 6 OK and Minimize buttons 6 checkboxes and "now!" button 6 6 true Size for log file in KB 1 1.000000000000000 0.100000000000000 0 0 What should be displayed first by default at startup? QComboBox::AdjustToContentsOnFirstShow Shutdown Reboot Suspend Hibernate 4 Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. &Quit on closing main window Enable the &target time at startup true Enable the minute &countdown at startup A&utostart Set if the checkbox for "Lock after start?" should be checked by default at startup "&Lock after start?" Set if the checkbox for "Warnings on?" should be checked by default at startup "&Warnings on?" &Start countdown at startup false Hide qshutdown at startup if "Start countdown" is checked. &Hide qshutdown at startup Log start time of qshutdown and how long it was running L&ogging Lock screen &for suspend and hibernate Advanced Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? true 0 0 382 464 Shutdown method: automatic login1 Gnome session KDE session HAL ConsoleKit sudo shutdown -P user defined Reboot method: automatic login1 Gnome session KDE session HAL ConsoleKit sudo shutdown -r user defined Suspend method: automatic login1 Gnome session HAL UPower DeviceKit user defined Hibernate method: automatic login1 Gnome session HAL UPower DeviceKit user defined false Qt::ScrollBarAlwaysOff false false false reset confEditButton buttonBox tabWidget scrollArea comboBox timeEdit spin fontComboBox font1Spin font2Spin font3Spin spinBox disableTray quitOnCloseMain radio1 radio2 autostart lock warn countdown hideMe log lockS quitAfterCountdown buttonBox rejected() Preferences close() 432 631 286 274 countdown toggled(bool) hideMe setEnabled(bool) 206 455 206 481 Preferences rejected() Preferences close() 206 341 206 341 buttonBox accepted() Preferences accept() 265 683 206 353 shutdown-qapps-1.7.4/qshutdown/src/ui/calendar.ui0000666000175000017500000001060313401523312021070 0ustar chrischris Calendar 0 0 325 360 Calendar :/red_glasses:/red_glasses Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok 0 Calendar Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. true Qt::Horizontal true Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop 0 0 283 180 5 0 5 buttonBox accepted() Calendar close() 248 254 157 274 buttonBox rejected() Calendar close() 316 260 286 274 weekly toggled(bool) calendarWidget setDisabled(bool) 60 48 158 173 shutdown-qapps-1.7.4/qshutdown/src/ui/editor.ui0000666000175000017500000000257213401523312020613 0ustar chrischris Editor 0 0 423 402 Editor :/red_glasses:/red_glasses 0 10 10 Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok|QDialogButtonBox::Save plainTextEdit buttonBox shutdown-qapps-1.7.4/qshutdown/src/ui/ch_passwd.ui0000666000175000017500000000604013401523312021272 0ustar chrischris ChangePassword 0 0 263 149 Change Password :/red_glasses:/red_glasses Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok Retype password: QLineEdit::Password QLineEdit::Password New password: false Old password: false QLineEdit::Password oldPasswd newPasswd retypedNewPasswd buttonBox buttonBox rejected() ChangePassword close() 316 260 286 274 ChangePassword rejected() ChangePassword close() 131 74 131 74 shutdown-qapps-1.7.4/qshutdown/src/ui/passwd.ui0000666000175000017500000000470113401523312020622 0ustar chrischris PassWord 0 0 265 114 Password :/red_glasses:/red_glasses QDialogButtonBox::Cancel|QDialogButtonBox::Ok &Set password false false Password: false QLineEdit::Password passwdLineEdit changePasswdButton buttonBox buttonBox rejected() PassWord close() 173 142 170 92 PassWord rejected() PassWord close() 132 56 132 56 shutdown-qapps-1.7.4/qshutdown/src/ui/gui.ui0000666000175000017500000004427613401523312020120 0ustar chrischris Gui 0 0 330 340 'qshutdown' :/red_glasses:/red_glasses 0 0 QFrame::Panel QFrame::Raised 3 0 0 QFrame::Box QFrame::Sunken 1 6 6 6 6 2 2 Minutes till shutdown: false 1 1 1998 12 31 Qt::LocalTime 1 1 1 1440 1 1 2 2 Shutdown-time: 1 1 Qt::RightToLeft true 1 1 Qt::RightToLeft true 2 2 QComboBox::AdjustToContentsOnFirstShow Shutdown Reboot Suspend Hibernate 1 1 You can set a date in the calendar Calendar 0 0 Lock settings after countdown started &Lock after start? 0 0 1 1 Turns on/off all warnings &Warnings on? 15 0 Qt::Horizontal 40 45 0 0 0 30 minutes 0 0 2 4 QLCDNumber::Flat 15 0 0 1 &OK true false Qt::Horizontal QSizePolicy::Preferred 40 10 Qt::Horizontal QSizePolicy::Preferred 40 10 Qt::Horizontal QSizePolicy::Preferred 40 10 0 0 &Now! true 0 0 330 25 &File &Help &Settings &Quit &Info &About &Preferences &Settings false &Reset true &Logfile &Configure true true &Keep proportions About &Qt ok lock warnings comboBox toolButton radio1 timeEdit radio2 spin now timeEdit editingFinished() ok setFocus() 255 101 162 271 spin editingFinished() ok setFocus() 255 135 162 271 radio2 toggled(bool) spin setEnabled(bool) 198 135 255 135 radio1 toggled(bool) timeEdit setEnabled(bool) 198 101 255 101 shutdown-qapps-1.7.4/qshutdown/src/editor.cpp0000664000175000017500000000721213477727532020364 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "editor.h" #include #include #include #include Editor::Editor(QWidget *parent): QDialog(parent){ setupUi(this); isClosed = true; setWindowFlags(Qt::Window); //always in front #ifdef Q_OS_WIN32 confFile = new QFile(QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"); #else //!Q_OS_WIN32 confFile = new QFile(QDir::homePath() + "/.qshutdown/qshutdown.conf"); #endif //Q_OS_WIN32 plainTextEdit->setFocus(); connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked(bool)), this, SLOT(saveChanges())); connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked(bool)), this, SLOT(close())); connect(buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked(bool)), this, SLOT(saveChanges())); connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked(bool)), this, SLOT(close())); connect(this, SIGNAL(rejected()), this, SLOT(close())); } Editor::~Editor(){ delete confFile; } void Editor::showEvent(QShowEvent* show_editor){ isClosed = false; if(!confFile->open(QIODevice::ReadWrite | QIODevice::Text)){ QTextStream myOutput(stdout); myOutput << "E: Can not open qshutdown.conf!" << endl; return; } QString text; //reading content of qshutdown.conf QTextStream in(confFile); text = in.readAll(); plainTextEdit->setPlainText(text); confFile->close(); starting(); QDialog::showEvent(show_editor); } void Editor::closeEvent(QCloseEvent* close_editor){ isClosed = true; finishing(); QDialog::closeEvent(close_editor); } bool Editor::getClosed(){ return isClosed; } bool Editor::getLockAll(){ #ifdef Q_OS_WIN32 QString file(QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"); #else //!Q_OS_WIN32 QString file(QDir::homePath() + "/.qshutdown/qshutdown.conf"); #endif //Q_OS_WIN32 QSettings settings(file, QSettings::IniFormat); return settings.value("Lock_all").toBool(); } void Editor::keyPressEvent(QKeyEvent *kEvent){ if((kEvent->modifiers() == Qt::ControlModifier) && (kEvent->key() == Qt::Key_S)) saveChanges(); if(((kEvent->modifiers() == Qt::ControlModifier) && (kEvent->key() == Qt::Key_Q)) || (kEvent->key() == Qt::Key_Escape)) reject(); } void Editor::saveChanges(){ if(!confFile->open(QIODevice::ReadWrite | QIODevice::Text)){ QTextStream myOutput(stdout); myOutput << "E: Can not open qshutdown.conf!"; return; } QString newContent; //writing content of editor to qshutdown.conf newContent = plainTextEdit->toPlainText(); QTextStream out(confFile); out << newContent; confFile->close(); saved(); //Signal that changes have been saved } shutdown-qapps-1.7.4/qshutdown/src/weekday.cpp0000664000175000017500000000241513477727615020531 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "weekday.h" WeekDay::WeekDay(QWidget *parent) : QFrame(parent){ this->setFrameShape(QFrame::Panel); this->setFrameShadow(QFrame::Raised); dayL = new QHBoxLayout(this); dayL->setContentsMargins(0,0,0,0); label = new QLabel(this); h = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); spin = new QSpinBox(this); spin->setRange(0,5); dayL->addWidget(label); dayL->addItem(h); dayL->addWidget(spin); } WeekDay::~WeekDay(){;} shutdown-qapps-1.7.4/qshutdown/src/about.cpp0000664000175000017500000000572213477727423020213 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "about.h" #include #include About::About(QWidget *parent): QDialog(parent){ setupUi(this); textBrowser->setOpenExternalLinks(true); textBrowser_2->setHtml(tr("

Special thanks to:

" "

Fabian Deuchler for helping here and " "there.

And Brian Nelson for " "sponsoring the uploads to Debian.

" "As well as to Miquel Banchs i Piqué for the idea of " "implementing a routine allowing custom settings for " "each day of the week.

")); textBrowser->setText(tr("

qshutdown, a time and countdown based shutdown tool

" "

Author: Christian Metscher <hakaishi@web.de>

" "

Copyright © 2010-2019, by Christian Metscher

" "

" "https://launchpad.net/~hakaishi

" "

Please use https://bugs.launchpad.net/qt-shutdown-p" " or " "http://www.debian.org/Bugs/Reporting" " to report bugs.

")); //Versioning QFile versionFile(":version"); versionFile.open(QIODevice::ReadOnly | QIODevice::Text); QTextStream in(&versionFile); QString string = in.readLine(); version->setText(tr("Version ") + string); versionFile.close(); icon = QIcon(":red_glasses_image"); QPixmap pixmap = icon.pixmap(QSize(60,60), QIcon::Normal, QIcon::On); label->setPixmap(pixmap); } About::~About(){ } shutdown-qapps-1.7.4/qshutdown/src/gui.h0000664000175000017500000000702013477727547017332 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef GUI_H #define GUI_H #include "ui_gui.h" #include #include #include #include #include #ifndef Q_OS_WIN32 #include #endif #define SERVICE_NAME "org.qshutdown" #define OBJECT_NAME "/org/qshutdown" class Preferences; class Info; class Calendar; class PassWord; class Editor; class About; class Gui : public QMainWindow, public Ui::Gui { Q_OBJECT // important for creating own singals and slots public: Gui(); ~Gui(); void loadSettings(); void center(); QString information; private: bool timeRunning; bool aWeeklyTimeWasSet; QPushButton *minim; QTimer *timer, *ti; QDateTime localDatetime, futureDateTime; QTime elapsedTime, oldTime; QIcon icon; QSystemTrayIcon *TIcon; QMenu *menu; QActionGroup *power_actions; QAction *shutdown_action, *reboot_action, *suspend_action, *hibernate_action; QAction *minimize_restore_action, *quit_action, *reset_action, *info_action, *log_action, *pref_action; int i; //number of seconds left int oldComboBoxIndex; double bigI; //for more precise display const static int n = 10; //to check if i==0 was skipped QFont *font1, *font2, *font3; double logFileSize; Preferences *pref; Info *infoBox; Calendar *cal; PassWord *checkPassword; Editor *editor; About *about; //QLabel *parentalLockL, *customL; // defining signals and slots private slots: void tray_actions(); void warnings_on(); void iconActivated(QSystemTrayIcon::ActivationReason reason); void showW(); void updateT(); bool Time(); void power_action(int action); void power(QAction *action); void reset(); void finished_(); void beforeQuit(); void setInfoText(); void getFonts(); void showCalendarBox(); void saveOldTime(QTime time); void saveOldComboBoxIndex(int i); void setDate(); void lockEverything(bool actual); void updateLock(); void showEditor(); void staticProportions(bool var); void saveLog(); void hideTrayIcon(bool dontShowTray); public slots: Q_SCRIPTABLE void showRunningProgram(); Q_SCRIPTABLE void set(); protected: void keyPressEvent(QKeyEvent* kEvent); virtual void closeEvent(QCloseEvent* window_close); virtual void showEvent(QShowEvent* window_show); virtual void hideEvent(QHideEvent* window_hide); }; #endif //GUI_H shutdown-qapps-1.7.4/qshutdown/src/weekday.h0000664000175000017500000000225513477727620020174 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef WEEKDAY_H #define WEEKDAY_H #include #include #include #include #include #include class WeekDay : public QFrame{ Q_OBJECT public: WeekDay(QWidget *parent = 0); ~WeekDay(); QSpinBox *spin; QLabel *label; private: //QFrame *frame; QHBoxLayout *dayL; QSpacerItem *h; }; #endif //WEEKDAY_H shutdown-qapps-1.7.4/qshutdown/src/ch_passwd.h0000664000175000017500000000255413477727525020524 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CH_PASSWD_H #define CH_PASSWD_H #include "ui_ch_passwd.h" #include #include class ChangePassword : public QDialog, public Ui::ChangePassword { Q_OBJECT public: ChangePassword(QWidget *parent = 0); ~ChangePassword(); signals: void updatePasswordGui(); private: QSettings *settings; QString file; QMessageBox *msgBox1, *msgBox2; private slots: void checkOldPW(); void checkNewPW(); void savePW(); protected: virtual void closeEvent(QCloseEvent* close_ch_pw); }; #endif //CH_PASSWD_H shutdown-qapps-1.7.4/qshutdown/src/info.cpp0000664000175000017500000000243013477727553020031 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "info.h" Info::Info(QWidget *parent): QTextEdit(parent){ isClosed = true; setWindowFlags(Qt::Window); setReadOnly(true); resize(500,450); setWindowTitle(tr("Info")); } Info::~Info(){ } void Info::showEvent(QShowEvent* show_Info){ isClosed = false; starting(); QWidget::showEvent(show_Info); } void Info::closeEvent(QCloseEvent* close_Info){ isClosed = true; finishing(); QWidget::closeEvent(close_Info); } bool Info::getClosed(){ return isClosed; } shutdown-qapps-1.7.4/qshutdown/src/weekdayitem.cpp0000664000175000017500000000356013477727624021412 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "weekdayitem.h" #include WeekDayItem::WeekDayItem(QWidget *parent) : QWidget(parent){ itemL = new QHBoxLayout(this); itemL->setContentsMargins(0,0,0,0); h2 = new QSpacerItem(40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum); timeEdit = new QTimeEdit(this); QString timeEditFormat = timeEdit->displayFormat(); if(timeEditFormat.contains(":ss")) timeEditFormat.replace(QString(":ss"), QString("")); if(timeEditFormat.contains(":s")) timeEditFormat.replace(QString(":s"), QString("")); timeEdit->setDisplayFormat(timeEditFormat); timeEdit->setTime(QTime(22,0,0)); comboBox = new QComboBox(this); comboBox->insertItems(0, QStringList() << QCoreApplication::translate("Gui", "Shutdown", 0) << QCoreApplication::translate("Gui", "Reboot", 0) << QCoreApplication::translate("Gui", "Suspend", 0) << QCoreApplication::translate("Gui", "Hibernate", 0) ); itemL->addItem(h2); itemL->addWidget(timeEdit); itemL->addWidget(comboBox); } WeekDayItem::~WeekDayItem(){;} shutdown-qapps-1.7.4/qshutdown/src/power.h0000664000175000017500000005617213477727600017704 0ustar chrischris/* qshutdown, a program to shutdown the shutdown/reboot/suspend/hibernate * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /* INFO: For Windows hibernate has to be activated: Please note that this only works if the hardware supports it and enough RAM is available. - powercfg -a #prints aviable sleep states - powercfg -hibernate on - powercfg -hibernate off */ #ifndef POWER_H #define POWER_H #ifndef Q_OS_WIN32 #include #endif #include #include extern bool verbose; extern QString shell; namespace Power{ QTextStream oput(stdout); bool lockMyScreen; bool automatic = false; bool login1 = false; bool gnome = false; bool kde = false; bool hal_ = false; bool consolekit = false; bool sudo = false; bool upower_ = false; bool devicekit = false; bool user = false; QString myShutdown, myReboot, mySuspend, myHibernate; void shutdown(){ #ifndef Q_OS_WIN32 QDBusMessage response; //variables for automatic mode bool g_pwr1 = false; bool g_pwr2 = false; QStringList args; args << "-c" << myShutdown; QDBusInterface freedesktopLogin1("org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", QDBusConnection::systemBus()); QDBusInterface gnomeSessionManager("org.gnome.SessionManager", "/org/gnome/SessionManager", "org.gnome.SessionManager", QDBusConnection::sessionBus()); QDBusInterface kdeSessionManager("org.kde.ksmserver", "/KSMServer", "org.kde.KSMServerInterface", QDBusConnection::sessionBus()); QDBusInterface freedesktopHal("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer", "org.freedesktop.Hal.Device.SystemPowerManagement", QDBusConnection::systemBus()); QDBusInterface freedesktopConsoleKit("org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", QDBusConnection::systemBus()); #endif if(automatic){ #ifdef Q_OS_WIN32 QProcess::startDetached("shutdown -s -f -t 00"); // Windows command to shutdown immediately } #else if(QProcess::startDetached("/usr/bin/systemctl poweroff")) return; g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh shutdown"); g_pwr2 = QProcess::startDetached("gnome-power-cmd shutdown"); if(verbose && !g_pwr1 && !g_pwr2) oput << "W: gnome-power-cmd, gnome-power-cmd.sh and gnome-session-quit didn't work" << endl; else if(g_pwr1 || g_pwr2) return; response = freedesktopLogin1.call("PowerOff", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = gnomeSessionManager.call("RequestShutdown"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = gnomeSessionManager.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = kdeSessionManager.call("logout", 0, 2, 2); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopHal.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopConsoleKit.call("Stop"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; if(QProcess::startDetached("sudo shutdown -P now")) return; QProcess::startDetached("sudo shutdown -h -P now"); } //end of automatic else if(login1){ response = freedesktopLogin1.call("PowerOff", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(gnome){ g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh shutdown"); g_pwr2 = QProcess::startDetached("gnome-power-cmd shutdown"); if(verbose && !g_pwr1 && !g_pwr2) oput << "W: gnome-power-cmd, gnome-power-cmd.sh and gnome-session-quit didn't work" << endl; if(g_pwr1 || g_pwr2) return; response = gnomeSessionManager.call("RequestShutdown"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = gnomeSessionManager.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(kde){ response = kdeSessionManager.call("logout", 0, 2, 2); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(hal_){ response = freedesktopHal.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(consolekit){ response = freedesktopConsoleKit.call("Stop"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(sudo){ if(QProcess::startDetached("sudo /usr/bin/systemctl poweroff")) return; if(QProcess::startDetached("sudo shutdown -P now")) return; QProcess::startDetached("sudo shutdown -h -P now"); } else if(user) if(!shell.isEmpty()) QProcess::startDetached(shell, args); //resetting variables automatic = false; login1 = false; gnome = false; kde = false; hal_ = false; consolekit = false; sudo = false; user = false; #endif } void reboot(){ #ifndef Q_OS_WIN32 QDBusMessage response; bool g_pwr1 = false; bool g_pwr2 = false; QStringList args; args << "-c" << myReboot; QDBusInterface freedesktopLogin1("org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", QDBusConnection::systemBus()); QDBusInterface gnomeSessionManager("org.gnome.SessionManager", "/org/gnome/SessionManager", "org.gnome.SessionManager", QDBusConnection::sessionBus()); QDBusInterface kdeSessionManager("org.kde.ksmserver", "/KSMServer", "org.kde.KSMServerInterface", QDBusConnection::sessionBus()); QDBusInterface freedesktopHal("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer", "org.freedesktop.Hal.Device.SystemPowerManagement", QDBusConnection::systemBus()); QDBusInterface freedesktopConsoleKit("org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", QDBusConnection::systemBus()); #endif if(automatic){ #ifdef Q_OS_WIN32 QProcess::startDetached("shutdown -r -f -t 00"); // Windows command to reboot immediately } #else if(QProcess::startDetached("/usr/bin/systemctl reboot")) return; g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh reboot"); g_pwr2 = QProcess::startDetached("gnome-power-cmd reboot"); if(verbose && !g_pwr1 && !g_pwr2) oput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; else if(g_pwr1 || g_pwr2) return; response = freedesktopLogin1.call("Reboot", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = gnomeSessionManager.call("RequestReboot"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; QDBusInterface kdeSessionManager("org.kde.ksmserver", "/KSMServer", "org.kde.KSMServerInterface", QDBusConnection::sessionBus()); response = kdeSessionManager.call("logout", 0, 2, 1); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopHal.call("Reboot"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopConsoleKit.call("Restart"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; QProcess::startDetached("sudo shutdown -r now"); } //end of automatic else if(login1){ response = freedesktopLogin1.call("Reboot", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(gnome){ g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh reboot"); g_pwr2 = QProcess::startDetached("gnome-power-cmd reboot"); if(verbose && !g_pwr1 && !g_pwr2) oput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; if(g_pwr1 || g_pwr2) return; response = gnomeSessionManager.call("RequestReboot"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(kde){ response = kdeSessionManager.call("logout", 0, 2, 1); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(hal_){ response = freedesktopHal.call("Reboot"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(consolekit){ response = freedesktopConsoleKit.call("Restart"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(sudo){ if(QProcess::startDetached("sudo /usr/bin/systemctl reboot")) return; QProcess::startDetached("sudo shutdown -r now"); } else if(user) if(!shell.isEmpty()) QProcess::startDetached(shell, args); //resetting variables automatic = false; login1 = false; gnome = false; kde = false; hal_ = false; consolekit = false; sudo = false; user = false; #endif } void suspend(){ #ifndef Q_OS_WIN32 QDBusMessage response; bool g_pwr1 = false; bool g_pwr2 = false; QStringList args; args << "-c" << mySuspend; QDBusInterface freedesktopLogin1("org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", QDBusConnection::systemBus()); QDBusInterface freedesktopHal("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer", "org.freedesktop.Hal.Device.SystemPowerManagement", QDBusConnection::systemBus()); QDBusInterface freedesktopUPower("org.freedesktop.UPower", "/org/freedesktop/UPower", "org.freedesktop.UPower", QDBusConnection::systemBus()); QDBusInterface freedesktopDeviceKit("org.freedesktop.DeviceKit.Power", "/org/freedesktop/DeviceKit/Power", "org.freedesktop.DeviceKit.Power", QDBusConnection::systemBus()); if(lockMyScreen){ bool lock_works = false; QDBusInterface screenlock("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", QDBusConnection::systemBus()); response = screenlock.call("Lock"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else lock_works = true; if(!lock_works){ if(!QProcess::startDetached("gnome-screensaver-command -l")){ if(verbose) oput << "W: gnome-screensaver-command -l didn't work" << endl; } else lock_works = true; } if(!lock_works){ if(!QProcess::startDetached("qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock")){ if(verbose) oput << "W: qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock didn't work" << endl; } else lock_works = true; } if(!lock_works){ if(!QProcess::startDetached("dcop kdesktop KScreensaverIface lock")){ if(verbose) oput << "W: dcop kdesktop KScreensaverIface lock didn't work" << endl; } else lock_works = true; } if(!lock_works){ if(!QProcess::startDetached("xscreensaver-command -lock")){ if(verbose) oput << "W: xscreensaver-command -lock didn't work" << endl; } else lock_works = true; } } #endif if(automatic){ #ifdef Q_OS_WIN32 QProcess::startDetached("powercfg -hibernate off"); // enable suspend QProcess::startDetached("rundll32 powrprof.dll,SetSuspendState"); } #else if(QProcess::startDetached("/usr/bin/systemctl suspend")) return; g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh suspend"); g_pwr2 = QProcess::startDetached("gnome-power-cmd suspend"); if(!g_pwr1 && !g_pwr2 && verbose) oput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; else if(g_pwr1 || g_pwr2) return; response = freedesktopLogin1.call("Suspend", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopHal.call("Suspend",0); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopUPower.call("Suspend"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopDeviceKit.call("Suspend"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } //end of automatic else if(login1){ response = freedesktopLogin1.call("Suspend", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(gnome){ g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh suspend"); g_pwr2 = QProcess::startDetached("gnome-power-cmd suspend"); if(!g_pwr1 && !g_pwr2 && verbose) oput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; } else if(hal_){ response = freedesktopHal.call("Suspend",0); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(upower_){ response = freedesktopUPower.call("Suspend"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(devicekit){ response = freedesktopDeviceKit.call("Suspend"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(user) if(!shell.isEmpty()) QProcess::startDetached(shell, args); //resetting variables automatic = false; login1 = false; gnome = false; hal_ = false; upower_ = false; devicekit = false; user = false; #endif } void hibernate(){ #ifndef Q_OS_WIN32 QDBusMessage response; bool g_pwr1 = false; bool g_pwr2 = false; QStringList args; args << "-c" << myHibernate; QDBusInterface freedesktopLogin1("org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", QDBusConnection::systemBus()); QDBusInterface freedesktopHal("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer", "org.freedesktop.Hal.Device.SystemPowerManagement", QDBusConnection::systemBus()); QDBusInterface freedesktopUPower("org.freedesktop.UPower", "/org/freedesktop/UPower", "org.freedesktop.UPower", QDBusConnection::systemBus()); QDBusInterface freedesktopDeviceKit("org.freedesktop.DeviceKit.Power", "/org/freedesktop/DeviceKit/Power", "org.freedesktop.DeviceKit.Power", QDBusConnection::systemBus()); if(lockMyScreen){ bool lock_works = false; QDBusInterface screenlock("org.gnome.ScreenSaver", "/org/gnome/ScreenSaver", "org.gnome.ScreenSaver", QDBusConnection::systemBus()); response = screenlock.call("Lock"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else lock_works = true; if(!lock_works){ if(!QProcess::startDetached("gnome-screensaver-command -l")){ if(verbose) oput << "W: gnome-screensaver-command -l didn't work" << endl; } else lock_works = true; } if(!lock_works){ if(!QProcess::startDetached("qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock")){ if(verbose) oput << "W: qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock didn't work" << endl; } else lock_works = true; } if(!lock_works){ if(!QProcess::startDetached("dcop kdesktop KScreensaverIface lock")){ if(verbose) oput << "W: dcop kdesktop KScreensaverIface lock didn't work" << endl; } else lock_works = true; } if(!lock_works){ if(!QProcess::startDetached("xscreensaver-command -lock")){ if(verbose) oput << "W: xscreensaver-command -lock didn't work" << endl; } else lock_works = true; } } #endif if(automatic){ #ifdef Q_OS_WIN32 QProcess::startDetached("powercfg -hibernate on"); // enable hibernate QProcess::startDetached("rundll32 powrprof.dll,SetSuspendState"); } #else if(QProcess::startDetached("/usr/bin/systemctl hibernate")) return; g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh hibernate"); g_pwr2 = QProcess::startDetached("gnome-power-cmd hibernate"); if(!g_pwr1 && !g_pwr2 && verbose) oput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; else if (g_pwr1 || g_pwr2) return; response = freedesktopLogin1.call("Hibernate", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopHal.call("Hibernate"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopUPower.call("Hibernate"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } else return; response = freedesktopDeviceKit.call("Hibernate"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } // end of automatic else if(login1){ response = freedesktopLogin1.call("Hibernate", true); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(gnome){ g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh hibernate"); g_pwr2 = QProcess::startDetached("gnome-power-cmd hibernate"); if(!g_pwr1 && !g_pwr2 && verbose) oput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; } else if(hal_){ response = freedesktopHal.call("Hibernate"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(upower_){ response = freedesktopUPower.call("Hibernate"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(devicekit){ response = freedesktopDeviceKit.call("Hibernate"); if(response.type() == QDBusMessage::ErrorMessage){ if(verbose) oput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } else if(user) if(!shell.isEmpty()) QProcess::startDetached(shell, args); //resetting variables automatic = false; login1 = false; gnome = false; hal_ = false; upower_ = false; devicekit = false; user = false; #endif } } #endif //POWER_H shutdown-qapps-1.7.4/qshutdown/src/about.h0000664000175000017500000000200713477727501017646 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef ABOUT_H #define ABOUT_H #include "ui_about.h" #include class About : public QDialog, public Ui::About { Q_OBJECT public: About(QWidget *parent = 0); ~About(); private: QIcon icon; }; #endif //ABOUT_H shutdown-qapps-1.7.4/qshutdown/src/calendar.h0000664000175000017500000000550713477727513020320 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef CALENDAR_H #define CALENDAR_H #include "ui_calendar.h" #include #include #include "weekday.h" #include "weekdayitem.h" class Calendar : public QDialog, public Ui::Calendar { Q_OBJECT public: Calendar(QWidget *parent = 0); ~Calendar(); bool timeRunning; QDateTime setCalendarDate, calendarDate, setWeeklyDate; bool getClosed(); WeekDay *mon, *tue, *wed, *thu, *fri, *sat, *sun; WeekDayItem *mon1, *mon2, *mon3, *mon4, *mon5, *tue1, *tue2, *tue3, *tue4, *tue5, *wed1, *wed2, *wed3, *wed4, *wed5, *thu1, *thu2, *thu3, *thu4, *thu5, *fri1, *fri2, *fri3, *fri4, *fri5, *sat1, *sat2, *sat3, *sat4, *sat5, *sun1, *sun2, *sun3, *sun4, *sun5; private: QVBoxLayout *scrollArea_layout; bool isClosed; QList *mondayItems; QList *tuesdayItems; QList *wednesdayItems; QList *thursdayItems; QList *fridayItems; QList *saturdayItems; QList *sundayItems; QSettings *settings; QString file; private slots: void getDate(QDate date); void getSortedAndActivatedDays(); void getNearestTime(QList calculatedDay); QList getSortedTimes(); void loadSettings(); void saveToConfFile(); void monday_addTimeEditAndActionBox(int i); void tuesday_addTimeEditAndActionBox(int i); void wednesday_addTimeEditAndActionBox(int i); void thursday_addTimeEditAndActionBox(int i); void friday_addTimeEditAndActionBox(int i); void saturday_addTimeEditAndActionBox(int i); void sunday_addTimeEditAndActionBox(int i); public slots: void setDate(); signals: void aDateWasSet(); void starting(); void finishing(); protected: virtual void showEvent(QShowEvent* show_calendar); virtual void closeEvent(QCloseEvent* close_calendar); }; #endif //CALENDAR_H shutdown-qapps-1.7.4/qshutdown/src/preferences.h0000664000175000017500000000416313477727611021044 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef PREFERENCES_H #define PREFERENCES_H #include "ui_preferences.h" #include #include class Preferences : public QDialog, public Ui::Preferences { Q_OBJECT public: Preferences(QWidget *parent = 0); ~Preferences(); QString fonts; QString myShutdown, myReboot, mySuspend, myHibernate; QString userDef1S, userDef2S, userDef3S, userDef4S; int fontS1, fontS2, fontS3; bool getClosed(); bool lockMyScreen; private: bool isClosed; QString file; QSettings *settings; QMessageBox *msgBox, *infoBox; private slots: void loadSettings(); void saveToConfFile(); void resetSettings(); void fontChanged(QString font); void resetFont(); void fontSize1Changed(int f1); void fontSize2Changed(int f2); void fontSize3Changed(int f3); void lockScreen(); void enableUserDef1(); void enableUserDef2(); void enableUserDef3(); void enableUserDef4(); void setFocusToUserDef(); public slots: void autostartFile(); signals: void starting(); void finishing(); void changeFont(); void editConf(); void removeTrayIcon(bool); protected: virtual void showEvent(QShowEvent* show_pref); virtual void closeEvent(QCloseEvent* close_pref); }; #endif //PREFERENCES_H shutdown-qapps-1.7.4/qshutdown/src/pixmap/0000775000175000017500000000000013513631003017640 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown/src/pixmap/red_glasses.png0000666000175000017500000003461713401523311022654 0ustar chrischrisPNG  IHDR>asRGBbKGD pHYs  tIME  +2 IDATxy$Uy{\yVVV]%j1H0ZՈ`Њ1a ,Ʋ b!@VH[h%U]WfVVޙ?==̬nIa} n/->=RzQkX{5':}L}1 ,6Ԧg8ZOcg[@Q==8U\uEV.2ߊhE1n%_/oMl{+ԃ񫘨1IR0>@I6I@S9е R5,/^vvKy[o>Egŕv8ػ?h+AT9 WWS[Ỳ+=xIW?D hG@SS #TdSu{!c" g. K`j'TH'יִ^ *!H]NImjkX}X>0D*WP}vl~ ah bT,皯IOkwZ~?~sN{ԵuOpB|?@*R h /jN&AuAĀM8[J{ci%Exx9QF~,+Lx !}-K><^APv|Mc*h!3U~VŸ_T/|eZ:̠lF|9 j&JP8~Hp!K*kpY !)a6anȴ# xv(ާI!?Hz̴?=SOPx#M[KƼp˽sq?^>0؟Tg𥠑S@H1 ~ zGV+fcˡ3U'10 W"cu\Cy;4n3Qyn2VN@wdJWJ&`и ;k%RI D1W"kus&|ϵ,c.mt6;Wm2OJX B}7í udY |o?}Wq2Bs CO@-\I :zBژ/5۷W8IuƑ:~S_,0cosD3j7~h 6he.>M/USvoB;"KtK;jvNeRcffsye1ŏ^hz֬=29@ J ` ,!.Dƥ>Kxūvl{:K zsRe&ԋ[pr ǯQcL`%!`tnET Y&@ uIPB<|7KAPn}6ա\6&<$3 c6<?Ecb'SG+X箜%{g,}Mc++*]2% BP^a0l $;gwg5{ps>b^Is<ԡ ȤK8ea)P|-4 $?_R%`ftu|ܿ33AH/2@a8xwU_[?pY~?⚼k^!ʞ:,Pޔo3dY>~DC =kcAb tjc*M EA&gdWL0c#1{LV|!z/Rxfn _ M,| ؗƏW*1ׄ:w>(-lV2)bBLcV׎LO0O. *CbL!c5`.H'uP0y\ʀ yDĮQBIom8+eASպ2f*Mwv9Ee|#8ShbYk;HoE*#3Hh3 lTb(lNT~ߛiH5OP0>ň 0X1XkXl?Xk sabCK 6Ms̶۶2URuΑŎ8q$&I8ƉӸL"IB6N${׃s9ސ7i54şo}=r#"I%ONuȷd5*ko 6M?&^o[y⽏13o㇙hɯ /G0k,Lٽ ; 0st`E0 ֦~>cp#vI XĜI>\suJP^*/z^lq}]af#s)F.OAKp[ĕ=lr.YZ٤*?#Q_T&㱈v,7yɹU>q[ml lGm4Z# HA!L`Lv:e55?rs(f-nlKX#yǁ9ǭWǸDya\sݵcsnv⩧y~g?uGbN.3\f\r6i s@u]3fچ*ϨjA7|q8XlVymʡ?w 7Vjd\r[n;Ω'}O}Lr1d-7#W -Z,0/C@C ͭuyF=DxZ|u! IUK`U}~>.xe *wŵ$LN81r +IM*F V(QѬ>6uYUW:; &e7`SҐ0B>FcB=5D>Zbh{eemϞb~qSg嚃ye>NpN'[A}Vs8|2AW0^ ^x[f+ҟ.TTl[:w.7fҋh4V @Q"YKSKpQmu1+>x7]81x1oDƫAFavhJ{c$ۧjPRd1qZMi\51&]uk Af LB] )^|G[ Dzv{I}Jresʼn'ܦIVpq{mTzpW"(wN]ƒG<˜vʅMX 0'a^_hDc5[g N2_eaLT?LR_$I#d4I*q ؑ$.yO=ItkgṊf I*UMN"Y]C77in&v#(3mv01#`E=z-4Ƶ~oJ*5G6[ܓin8 f|d}M}N 6"MbTåAz݂\J('A wDҘA{6}8b1#I:3S2MD˚*O{ϑM,6 $6V*#ݏ ܾ/G.o'DҾg҄PG&| Be~+wź;UB{>"I,DX1hkM`K@׵"mPiΏ p2J[c"[.tx,y ҉Ӭ/Mvoz4~\mmqV1f!(Mg'#`B4\[0|BE~WbKåV҅V+1 qCEciE|z?zE?c3STIH3AH"c$%1O{{u'C=So:[-Tc1d38b Bң}ZfNmUq Z ڣEV>` Puqh3b3XfaL+B(%",1!vQy7^$39@:L}i,lʵމxOXg9$I~-7\œ5R oUEu~)&,}Lp ~ׅގtl1c1ʘ'+ ` Dsk tBr3uq"9=+b:3{:y 4"xܳyZc9$„T/%`Pʚ*KzDج oz1*x*VV&[ @f#Z4ϭXmLMm`60Ek&DJf} -0jxY꩚I:l{)8g% |gWv[3А1͋_z5?e>w[| .W8+0BrA;Ḯ"Ѯ{y ]3|3S |,QdǨ5p}DQ_\ZG#x"_\PF =MmGh3[xeQE&*,jJ)˃/3jT}9 *}4cjN D:nVI mj-no=si < Z,f{+;_ߢմ}ՕU OZj%>yVZߥ|S^_G_Rc[% Lj>I@J1pK }& 7_צ /ea.I NЎ#$_\3j"ec!nΙ/SNe>GX$Snn+'w,Z4~J3w:o2>:Q]gYQ#KC.ťzN ޺|=G#IqU + `t"#I[q;\Us5YuKGNH. Qsn=~͗obn`G͖c,چdyΎ!yx3G :r 2Ls:O{ N_.QkiEin_frW1ڼ%uzt7ΞK}~:Q|]ώR|HiF9ݫjU;>_u;_fx{6xOWx K퍭T.NR`b/SZ/ ǐչ}[An.eks{9(7/C\f&'˜ík1C |7Ix!5)ʁGg}%G)<矗xD_|?n6iJ{Kjmj`L9x WB{$uwa Gf^Vw ^ AYx 5[͡vm@xmU2ez~8Ü珳Rk~{SҎ1ͶZ,oZb}|:+mӓe;[Z=; HZׁK%Ӑ}>H4Xa_ ^Kh>ql"N e~gy Z7  |'|F-JټaQ?" i-k?g3|b7 ~{]7\=C_r"|%n8v{^QF @gos7hVwnd&xF ,_)U׭ ?W#|+W#M~kUk)DcUp\$Z;mLTfJ5^;{PFlբ[Þ O~>10\i򎸽Bݤ6519VqVnsjimq|TZ~˴[+CEEGX*j0;]K?~>>_^Ǜ)6p/ % 6ĭgw޳|V'TC%NMš\F~A1~i|= g7X[Y߀D\'&ZUίo; ~?_Zmkٳ7 T5,Oo=*.Hhn)MgB}Y+\ƩS+DN^L~ZƢVIK}79K; &'WhP+cT+5GC>-~,q~'sFhn)GOHvow S˜^hr뵖k jm9&mcMV[DMN ,U~wyWxB$K-b;e*Lq'ϴӿXpT'J`xf1NmBRC% P^ythfH|Hs,KXJZH e珢$ _c%uZv5=~v.t֦EYq[1xL+Ux:SppCGb2pmsn}݌sၱ_HpXT¡A\2+X^YXc688[jՀuy%ahQlBҎ1BP1"#sٶoLq:"TQ+0 $XH\N$UK Az)Dqyu8IJQI\ ; >$ +6L3y{X'>\lrn~|#eI9bEZx"y+|ūwY\}B`Po:)[][bMzδW2V,I;ǑbPZَb'q`'ِ,Rl\v* /;N5){h jPE|UԴq[YݤM~yo$9j|XAv^ #L6i#Msˌ0pP{RXK%IGI>< i)O +Mwi 6:gY!ZY09*xHK1M7 \VFNDOnMM[~y xO{_?;v sfQ>:p*ťxkk5퀵ٶ*iSiǾ~RMA5MRCLa:ʙtt:AVv7\E ҨACC5fz!~+[f:Wc'[x'-DhXy*: 9*ZG c MD/w[y 0/f\ԏ*h ?]9vjY=7&]W27&Rd[&J0xHJ7Q;vQXXqL?zxiO{Us%vx%Gq0ԲVh  /|&\sC.? =️k4=֪J}ZT*uwx}ծ֗jg@bZW HbKdb-_jm^v'_E_<s]W{b ww;Tvcx.3̚Q|BܺKWU[^jw~^r#5+\ϗ֫짛NJŦt Kɧӿ~x?S͝FHPe=;AWw]^۫W r&~$.nmC?]LSZ\|llE%*5qs/U˱i ~i%[;?(WM [$E]^^m/-+vox%72?VSiӘJG (GjeRΞ|mQ~Q HthIw$W5^yƝ[Og|9<۹7MU5j녲/VKG~ς2f@vkіqJ/O/R>S/˭xi4YI7R:;j}c C:'o}TCU@@7:=ݫ߅?Hu\~P703[䱧o }\pTJ,Y4 ]2eF:{<怽o_ K˭ <̹q7ȅk-7[ L641ewp{:2w)?0;ۍ }nY&'rCnM4RE"A(HNFQZ_,C]d >i75^y/.gy/>? W؎i#Dl[1Pd{߫"Ps 'Y^\hק, dv{/s^}4>RN58,Lv;{$tv\D)3ߏ.%M|9wa5Z\ w<-W0llݴ&5ֈA0Ʀn̞Q>qvKdsk7uu-hMƳ,/.DgS|"RJ0 PU7^ONq9Ƥv g1{Z?4ۣ[Cz~^Ӯ]1Iny-'w<6oX( Y#vLĄyn==i} ĥxԵIHu\Fdu5>B_cz7*q# V:>&*!FL(mHuZ#N8enux}zG}rU8WJLOHրttW 0Q.j٬Dh&.PM6n&:g63~@3 c #FEFFB7", ", c #FEFEA0", "' c #FDFF8C", ") c #FDFE80", "! c #FFF577", "~ c #FFED70", "{ c #FFE967", "] c #FFE660", "^ c #FFE55B", "/ c #FFE557", "( c #FCE357", "_ c #FCDF52", ": c #ECC42A", "< c #FEFFDE", "[ c #FEFFFF", "} c #FDFFE6", "| c #FEFFC6", "1 c #FEFFAB", "2 c #FEFF95", "3 c #FDFF85", "4 c #FFF879", "5 c #FFEC71", "6 c #FFEA66", "7 c #FFE65E", "8 c #FEE558", "9 c #FEE456", "0 c #FBDF54", "a c #F8DB53", "b c #F6D953", "c c #F5D84E", "d c #DEB11B", "e c #FEFFFB", "f c #FEFFF8", "g c #FEFFD6", "h c #FEFFB8", "i c #FEFF9E", "j c #FDFF8B", "k c #FEFA7D", "l c #FFEE73", "m c #FFE966", "n c #FCE255", "o c #F9DD54", "p c #F7D952", "q c #F4D751", "r c #F2D650", "s c #EFD452", "t c #E8C230", "u c #FEFFFC", "v c #FEFFFE", "w c #FFFFFF", "x c #FDFFE7", "y c #FEFFC5", "z c #FEFFA8", "A c #FEFE92", "B c #FEFC81", "C c #FFEF75", "D c #FFE65B", "E c #FADF55", "F c #F8DA52", "G c #F5D952", "H c #F2D751", "I c #F0D450", "J c #EED24F", "K c #ECCF4F", "L c #E6C032", "M c #FEFFF5", "N c #FEFFF4", "O c #FEFFD1", "P c #FEFFB2", "Q c #FEFF99", "R c #FEFE85", "S c #FFF078", "T c #FFEB67", "U c #FDE356", "V c #F9DC54", "W c #F6D952", "X c #F1D550", "Y c #EFD350", "Z c #ECD04E", "` c #EBCC4D", " . c #E8C94D", ".. c #E1BB2E", "+. c #FDFFBA", "@. c #FFFFFE", "#. c #FEFFF9", "$. c #FEFFDA", "%. c #FEFFBA", "&. c #FEFF9F", "*. c #FEFF8A", "=. c #FFF27A", "-. c #FFEA69", ";. c #FFE65A", ">. c #FBDF56", ",. c #F4D851", "'. c #EBCE4D", "). c #E9CA4C", "!. c #E8C94B", "~. c #E6C74B", "{. c #CFA419", "]. c #FDFED9", "^. c #FEFFF0", "/. c #FEFFFA", "(. c #FEFFDD", "_. c #FEFFBF", ":. c #FEFFA3", "<. c #FDFF8D", "[. c #FFF37C", "}. c #FFE969", "|. c #FEE55A", "1. c #F9DD55", "2. c #F3D750", "3. c #ECCF4E", "4. c #EACA4C", "5. c #E8C94C", "6. c #E6C74A", "7. c #E4C54B", "8. c #E3C346", "9. c #FFFF82", "0. c #FEFFBD", "a. c #FDFFD0", "b. c #FEFFE3", "c. c #FEFFFD", "d. c #FDFFF0", "e. c #FEFFD9", "f. c #FEFFA4", "g. c #FDFF8E", "h. c #FFF37D", "i. c #FDE35A", "j. c #F8DB55", "k. c #F5D851", "l. c #EDD150", "m. c #ECCE4D", "n. c #EBCB4D", "o. c #E9C94C", "p. c #E4C64A", "q. c #E2C349", "r. c #E0C04A", "s. c #D6AD23", "t. c #0A070C", "u. c #FFFF9B", "v. c #FFFFA8", "w. c #FFFFB7", "x. c #FFFFC7", "y. c #FFFFD7", "z. c #FFFFE4", "A. c #FFFFEC", "B. c #FFFFEB", "C. c #FFFFE2", "D. c #FFFFD1", "E. c #FFFFBC", "F. c #FDFEA3", "G. c #FEFF8D", "H. c #FFF67F", "I. c #FFED69", "J. c #FEE45A", "K. c #F7DB55", "L. c #F5DA53", "M. c #F3D753", "N. c #F1D651", "O. c #F0D14F", "P. c #EECF4F", "Q. c #ECCD4E", "R. c #EACB4D", "S. c #E7C94C", "T. c #E4C64B", "U. c #E3C34B", "V. c #E1C046", "W. c #FFDF38", "X. c #AC9E4C", "Y. c #996138", "Z. c #A16C45", "`. c #AA7552", " + c #B58160", ".+ c #BD8C6D", "++ c #C49176", "@+ c #C6947A", "#+ c #C49177", "$+ c #BC8A6C", "%+ c #A9825C", "&+ c #B7A863", "*+ c #DCCD5F", "=+ c #9E875F", "-+ c #AC946B", ";+ c #A08430", ">+ c #9D8328", ",+ c #6F4D11", "'+ c #6C380E", ")+ c #6B380E", "!+ c #6A380D", "~+ c #69390D", "{+ c #693B0D", "]+ c #68390D", "^+ c #67360C", "/+ c #67340C", "(+ c #6A340D", "_+ c #6A4A17", ":+ c #B3870D", "<+ c #29120E", "[+ c #E1515E", "}+ c #EC5963", "|+ c #C12229", "1+ c #C92B35", "2+ c #D03841", "3+ c #D6434F", "4+ c #DD4C57", "5+ c #E1515C", "6+ c #DF515C", "7+ c #D74A55", "8+ c #C93D47", "9+ c #AD2B36", "0+ c #47292E", "a+ c #AC924C", "b+ c #A88C3A", "c+ c #473833", "d+ c #88252E", "e+ c #CE525F", "f+ c #8D090C", "g+ c #87080B", "h+ c #88080B", "i+ c #86070A", "j+ c #85070A", "k+ c #84070A", "l+ c #83070A", "m+ c #8B080B", "n+ c #90070A", "o+ c #2B0104", "p+ c #A48323", "q+ c #C92D35", "r+ c #D1363F", "s+ c #BA1820", "t+ c #C11E26", "u+ c #CA242C", "v+ c #D02C34", "w+ c #D4333D", "x+ c #D63944", "y+ c #D33A44", "z+ c #CE3641", "A+ c #C12D37", "B+ c #A3222B", "C+ c #87652C", "D+ c #FFED6A", "E+ c #FBE25C", "F+ c #AA8E2B", "G+ c #801924", "H+ c #B42931", "I+ c #91090C", "J+ c #91080B", "K+ c #92080B", "L+ c #8F080B", "M+ c #89080B", "N+ c #8C070A", "O+ c #93080B", "P+ c #572509", "Q+ c #FFF268", "R+ c #654313", "S+ c #69040D", "T+ c #9E1014", "U+ c #AA1419", "V+ c #B0181E", "W+ c #B61C23", "X+ c #BA2028", "Y+ c #BB2329", "Z+ c #B9242B", "`+ c #AF222A", " @ c #7F1723", ".@ c #5F381D", "+@ c #FBE259", "@@ c #FCE35D", "#@ c #F6DA56", "$@ c #F5D950", "%@ c #664A12", "&@ c #490004", "*@ c #7C060A", "=@ c #86080B", "-@ c #85080B", ";@ c #81070A", ">@ c #7D070A", ",@ c #610107", "'@ c #3A1105", ")@ c #C9AA35", "!@ c #FFED67", "~@ c #FFF165", "{@ c #CCB33F", "]@ c #83631E", "^@ c #5C250F", "/@ c #661B12", "(@ c #5D1111", "_@ c #5E0F13", ":@ c #6D2119", "<@ c #632619", "[@ c #876226", "}@ c #C5AD40", "|@ c #FFEC60", "1@ c #F6DA57", "2@ c #EED151", "3@ c #F1D14E", "4@ c #C1A333", "5@ c #745717", "6@ c #4E2107", "7@ c #4F0F06", "8@ c #460804", "9@ c #410003", "0@ c #4E0F06", "a@ c #3F0D05", "b@ c #603E0E", "c@ c #997D23", "d@ c #DBB840", "e@ c #D6B543", "f@ c #FFE961", "g@ c #FEE65E", "h@ c #FFEE55", "i@ c #FFEF52", "j@ c #FFE553", "k@ c #FFE355", "l@ c #FFEE53", "m@ c #FFED56", "n@ c #FFE85E", "o@ c #FCE25B", "p@ c #F9DE59", "q@ c #F5D955", "r@ c #F1D653", "s@ c #E7C84D", "t@ c #E8C744", "u@ c #E9C943", "v@ c #E0BE40", "w@ c #DAB841", "x@ c #E5C23D", "y@ c #E3C03C", "z@ c #DCBB48", "A@ c #D8B644", "B@ c #D5B444", "C@ c #D6B442", "D@ c #FFE85B", "E@ c #FFE558", "F@ c #FEE556", "G@ c #FCE156", "H@ c #FADF58", "I@ c #FADE57", "J@ c #F8DC57", "K@ c #F7DB56", "L@ c #F0D451", "M@ c #EDD050", "N@ c #E5C64B", "O@ c #E3C54A", "P@ c #E1C14A", "Q@ c #DFBF48", "R@ c #DDBD48", "S@ c #DCBC47", "T@ c #DBBA45", "U@ c #DAB845", "V@ c #D7B644", "W@ c #D6B445", "X@ c #D4B443", "Y@ c #D3B342", "Z@ c #FFDF45", "`@ c #FDE455", " # c #FCE155", ".# c #FAE055", "+# c #F7DA53", "@# c #F5D953", "## c #F5D852", "$# c #F2D652", "%# c #F1D551", "&# c #EED250", "*# c #EDCF4F", "=# c #E6C84B", "-# c #E3C44A", ";# c #DBBA46", "># c #D6B545", ",# c #D4B343", "'# c #D3B343", ")# c #D0AA34", "!# c #F3CD32", "~# c #FCE154", "{# c #FADF54", "]# c #EDD14F", "^# c #ECCE4E", "/# c #E7C84B", "(# c #E5C54B", "_# c #E1C04A", ":# c #DAB945", "<# c #D6B544", "[# c #D3B243", "}# c #D2AF43", "|# c #C59D25", "1# c #E1B51B", "2# c #F9DE55", "3# c #E8C942", "4# c #D8BA3B", "5# c #F2D651", "6# c #EFD351", "7# c #E1C24A", "8# c #E0BE49", "9# c #DEBD48", "0# c #DDBC47", "a# c #DCBB46", "b# c #D8B744", "c# c #D7B545", "d# c #D2B040", "e# c #AD8A25", "f# c #D2B143", "g# c #D1AE42", "h# c #B68B14", "i# c #F8DA4F", "j# c #F2D34C", "k# c #A5841B", "l# c #C4A735", "m# c #BD9F34", "n# c #BC9E34", "o# c #B99932", "p# c #BA9B34", "q# c #B99A33", "r# c #B69732", "s# c #B59430", "t# c #B08F2E", "u# c #B29130", "v# c #AD8E2E", "w# c #AC8A2C", "x# c #AB8C2D", "y# c #AA8B2D", "z# c #AB8A2D", "A# c #A98A2D", "B# c #906C14", "C# c #CCA836", "D# c #D1AE41", "E# c #CFAD3F", "F# c #E8C028", "G# c #F3D751", "H# c #F0D34D", "I# c #E8C73E", "J# c #E3BF3B", "K# c #E3C143", "L# c #E2C043", "M# c #E1BF44", "N# c #DFBD46", "O# c #DFBF51", "P# c #DEC05E", "Q# c #DDBF66", "R# c #DDBF6D", "S# c #DCBF71", "T# c #DABE70", "U# c #D8BB6A", "V# c #D6B657", "W# c #D4B352", "X# c #D1AC3F", "Y# c #CCA731", "Z# c #CCA732", "`# c #CAA532", " $ c #D0AC3A", ".$ c #CFAE43", "+$ c #C1971F", "@$ c #F2D44C", "#$ c #EBCD4D", "$$ c #E5C54A", "%$ c #E3C449", "&$ c #E1C048", "*$ c #E0BF47", "=$ c #DEBD45", "-$ c #DCBC45", ";$ c #DCBA43", ">$ c #DBB942", ",$ c #D9B844", "'$ c #D8B642", ")$ c #D2B043", "!$ c #D1AD41", "~$ c #CFAD42", "{$ c #CEAC3E", "]$ c #DBAF1A", "^$ c #ECD150", "/$ c #EBCB4C", "($ c #E2C34A", "_$ c #E0C14A", ":$ c #DFBE48", "<$ c #DCBC48", "[$ c #D9B745", "}$ c #D7B544", "|$ c #CEAC42", "1$ c #B98E15", "2$ c #E4BD2E", "3$ c #E9CA4D", "4$ c #E2C249", "5$ c #E0BF49", "6$ c #DCBB47", "7$ c #DBBB46", "8$ c #DBB945", "9$ c #D8B745", "0$ c #D5B445", "a$ c #D1B043", "b$ c #CEAE43", "c$ c #CDAC41", "d$ c #C59C27", "e$ c #E3BD31", "f$ c #E5C64A", "g$ c #DEBE48", "h$ c #DDBC48", "i$ c #D9B744", "j$ c #D1AF43", "k$ c #C8A02A", "l$ c #DDB72C", "m$ c #E2C54B", "n$ c #DFBE47", "o$ c #D2B244", "p$ c #D1AF42", "q$ c #D0AE41", "r$ c #CEAD42", "s$ c #CDA117", "t$ c #E0BF45", "u$ c #DAB946", "v$ c #D8B844", "w$ c #D0AD42", "x$ c #CEAB3D", "y$ c #B98D15", "z$ c #D1A721", "A$ c #DDBB42", "B$ c #DBBA47", "C$ c #DAB846", "D$ c #D5B544", "E$ c #C1961F", "F$ c #C09415", "G$ c #CCA326", "H$ c #D5AE34", "I$ c #D6B643", "J$ c #D5B542", "K$ c #D2B141", "L$ c #CFA832", "M$ c #C39C25", "N$ c #B68A14", " ", " . + @ # $ % & * = - ", " ; > , ' ) ! ~ { ] ^ / ( _ : ", " < [ } | 1 2 3 4 5 6 7 8 9 0 a b c d ", " e [ [ f g h i j k l m 7 / n o p q r s t ", " u v w w w x y z A B C { D 9 E F G H I J K L ", " M v w w w w N O P Q R S T D U V W q X Y Z ` ... ", " +.w @.w w w w #.$.%.&.*.=.-.;.>.a ,.r Y Z '.).!.~.{. ", " ].^.v w @.w [ /.(._.:.<.[.}.|.1.W 2.I J 3.4.5.6.7.8. ", " 9.0.a.b.N c.@.c.d.e._.f.g.h.}.i.j.k.X l.m.n.o.6.p.q.r.s. ", "t. u.v.w.x.y.z.A.B.C.D.E.F.G.H.I.J.K.L.M.N.O.P.Q.R.S.T.U.V. ", " W.X.Y.Z.`. +.+++@+#+$+%+&+*+=+-+;+>+,+'+)+!+~+{+]+^+/+(+_+:+ ", " <+[+}+|+1+2+3+4+5+6+7+8+9+0+a+b+c+d+e+f+g+h+i+j+k+l+l+m+n+o+ ", " p+q+r+s+t+u+v+w+x+y+z+A+B+C+D+E+F+G+H+I+J+K+K+J+L+m+M+N+O+P+ ", " Q+R+S+T+U+V+W+X+Y+Z+`+ @.@+@@@#@$@%@&@*@=@h+h+g+-@;@>@,@'@)@ ", " !@~@{@]@^@/@(@_@:@<@[@}@|@E+1@M.2@3@4@5@6@7@8@9@0@a@b@c@d@e@ ", " f@] g@f@h@i@j@k@l@m@n@o@p@q@r@2@Q.o.~.s@t@u@v@w@x@y@z@A@B@C@ ", " D@;.E@/ F@9 G@H@I@J@K@q@M.L@M@Q.o.~.N@O@P@Q@R@S@T@U@V@W@X@Y@ ", " Z@9 `@ #.#o a +#@###$#%#&#*#` 5.=#T.-#P@Q@R@S@;#U@A@>#,#'#)# ", " !#~#{#o a +###,.r L@&#]#^#R.5./#(#-#_#Q@R@S@T@:#A@<#>#[#}#|# ", " 1#2#F W 3#4#5#X 6#J Z ` 4.5./#T.-#7#8#9#0#a#:#b#c#d#e#f#g#h# ", " i#G q j#k#l#m#n#n#o#o#p#q#r#r#s#t#u#v#w#x#y#z#A#B#C#D#E# ", " F#G#X Y H#I#J#K#L#M#N#O#P#Q#R#S#T#U#V#W#X#Y#Z#`# $D#.$+$ ", " @$&#]#Z #$4.5.!.6.$$%$&$*$=$-$;$>$,$'$<#B@,#)$!$~${$ ", " ]$^$'./$).5.6.6.O@($_$:$9#<$;#T@[$}$W@X@,#)$D#~$|$1$ ", " 2$3$o./#6.$$O@4$5$:$R@6$7$8$9$A@0$X@[#a$D#b$c$d$ ", " e$~.f$O@($_$5$g$h$a#T@:#i$V@B@,#'#j$!$b$c$k$ ", " l$m$P@5$n$R@h$;#T@U@A@}$B@,#o$p$q$r$|$d$ ", " s$t$g$h$a#T@u$v$A@W@X@,#f#D#w$r$x$y$ ", " z$A$B$C$b#}$D$X@[#)$D#.${$E$ ", " F$G$H$I$J$Y@K$L$M$N$ ", " "}; shutdown-qapps-1.7.4/qshutdown/src/passwd.cpp0000664000175000017500000000571613477727570020410 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "passwd.h" #include "ch_passwd.h" #include #include #include PassWord::PassWord(QWidget *parent): QDialog(parent){ setupUi(this); isClosed = true; setWindowFlags(Qt::Window); //always in front #ifdef Q_OS_WIN32 file = QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"; #else //!Q_OS_WIN32 file = QDir::homePath() + "/.qshutdown/qshutdown.conf"; #endif //Q_OS_WIN32 settings = new QSettings(file, QSettings::IniFormat); msgBox = new QMessageBox(this); msgBox->setWindowTitle("Error"); msgBox->setIcon(QMessageBox::Warning); msgBox->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Window); msgBox->setInformativeText(tr("The password is not correct!")); chPW = new ChangePassword(this); update(); //enable password line if a password was set passwdLineEdit->setFocus(); connect(passwdLineEdit, SIGNAL(returnPressed()), this, SLOT(checkPW())); connect(buttonBox, SIGNAL(accepted()), this, SLOT(checkPW())); connect(changePasswdButton, SIGNAL(clicked(bool)), chPW, SLOT(show())); connect(chPW, SIGNAL(updatePasswordGui()), this, SLOT(update())); } PassWord::~PassWord(){ delete settings; } void PassWord::checkPW(){ if(settings->value("Password").toByteArray() == QCryptographicHash::hash(passwdLineEdit->text().toUtf8(), QCryptographicHash::Sha1)){ //check if the entered password matches the saved one success(); passwdLineEdit->clear(); close(); } else msgBox->show(); } void PassWord::update(){ if(settings->contains("Password")){ label->setEnabled(true); passwdLineEdit->setEnabled(true); passwdLineEdit->setFocus(); changePasswdButton->setText(tr("&Change password")); } } void PassWord::showEvent(QShowEvent* show_pw){ isClosed = false; starting(); QDialog::showEvent(show_pw); } void PassWord::closeEvent(QCloseEvent* close_pw){ passwdLineEdit->clear(); isClosed = true; finishing(); QDialog::closeEvent(close_pw); } bool PassWord::getClosed(){ return isClosed; } shutdown-qapps-1.7.4/qshutdown/src/translations/0000775000175000017500000000000013513631003021063 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-de_DE.ts0000664000175000017500000007550013477730323024452 0ustar chrischris About About qshutdown Über qshutdown Version Version &About &Über &Thanks To &Dank an <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Nutzt Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, ein auf Uhrzeit und Countdown basierendes Werkzeug zum Herunterfahren</p><p >Autor: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019 Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Bitte benutzen Sie <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> oder <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a>, um Problemberichte zu melden.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> <p >Besonderen Dank an:<br /></p><p >Fabian Deuchler für seine Hilfe hier und da.<br /><br />Und den Sponsor Brian Nelson für das Hochladen nach Debian.<br /><br />Ebenso wie Miquel Banchs i Piqué für seine Idee eine Routine zu implementieren, die für jeden Tag eine eigene Einstellung erlaubt.</p> Calendar Calendar Kalender Weekly Wöchentlich activate weekly aktiviere wöchentlich Please note that you might want to enable autostart and countdown at startup. Es sei darauf hingewiesen, dass Sie den Autostart und den Countdown bei Programmstart vermutlich aktivieren möchten. ChangePassword Change Password Passwort ändern Retype password: Passwort wiederholen: New password: Neues Passwort: Old password: Altes Passwort: The current password is not correct! Das aktuelle Passwort ist nicht korrekt! The retyped password doesn't match! Die Passwörter stimmen nicht überein! Editor Editor Editor Gui &Minimize! &Minimieren! Shutdown-time: Shutdown-Zeitpunkt: Minutes till shutdown: Minuten zum Shutdown: Reboot-time: Neustart-Zeitpunkt: Minutes till reboot: Minuten zum Neustart: Suspend-time: Standby-Zeitpunkt: Minutes till suspend: Minuten zum Standby: Hibernate-time: Ruhezustand-Zeitpunkt: Minutes till hibernate: Minuten zum Ruhezustand: shutdown in Shutdown in reboot in Neustart in suspend in Standby in hibernate in Ruhezustand in years Jahren months Monaten hours Stunden days Tagen Res&tore &Wiederherstellen &Minimize &Minimieren day Tag minutes Minuten seconds Sekunden Shutdown Shutdown Reboot Neustart Suspend Standby Hibernate Ruhezustand &Lock after start? Nach dem Start &sperren? &Warnings on? &Warnungen an? &Now! &Jetzt! You can set a date in the calendar Sie können ein Datum im Kalender einstellen &OK &OK R&eset R&eset &Quit Be&enden &Info &Info &Logfile Protoko&lldatei &Preferences &Einstellungen &Shutdown &Shutdown &Reboot Neusta&rt S&uspend S&tandby &Hibernate Ru&hezustand Lock settings after countdown started Sperre Einstellungen nachdem der Countdown gestartet hat Calendar Kalender &File &Datei &Help &Hilfe &Settings &Einstellungen &About &Über &Reset &Reset &Configure &Konfigurieren &Keep proportions &Behalte Proportionen bei Warning Warnung Action imminent! Ausführung steht kurz bevor! Information Information Countdown is not running! Der Countdown läuft nicht! Turns on/off all warnings Schaltet alle Warungen an/aus About &Qt Über &Qt Version Version Info Info Info PassWord Password Passwort &Set password Passwort &festlegen Password: Passwort: The password is not correct! Das Passwort ist nicht korrekt! &Change password P&asswort ändern Preferences Preferences Einstellungen Enable the &target time at startup Aktiviere &Ziel-Zeit bei Programmstart Shutdown Shutdown Shutdown type: Shutdown-Art: Target time: Ziel-Zeit: Minutes to countdown: Minuten für Countdown: Font: Schriftart: Font size 1: Schriftgröße 1: Font size 2: Schriftgröße 2: Font size 3: Schriftgröße 3: Size for log file: Größe der Protokolldatei: Reboot Neustart Suspend Standby Hibernate Ruhezustand A&utostart A&utostart &Hide qshutdown at startup &Verstecke qshutdown bei Programmstart Lock screen &for suspend and hibernate Sperre Bildschirm &für Standby und Ruhezustand &Edit configuration file &Konfigurationsdatei editieren Enable the minute &countdown at startup Aktiviere den Minuten-&Countdown bei Programmstart &Reset settings &Einstellungen zurücksetzen Size for log file in KB Größe der Protokolldatei in KB "&Lock after start?" "Nach dem Start &sperren?" "&Warnings on?" "&Warnungen an?" Log start time of qshutdown and how long it was running Protokolliere die Startzeit von qshutdown und wie lange es gelaufen ist L&ogging &Protokollieren checkboxes and "now!" button Checkboxen und "Jetzt!" Knopf OK and Minimize buttons OK und MInimieren Knöpfe Labels for example Z.B Beschriftungen Set a font Setze eine Schriftart What target time should be displayed by default at startup? Welche Ziel-Zeit soll bei Programmstart standardmäßig angezeigt werden? How many minutes should be displayed for countdown by default at startup? Wie viele Minuten sollen bei Programmstart standardmäßig für den Countdown angezeigt werden? What should be displayed first by default at startup? Was sollte bei Programmstart standardmäßig zuerst angezeigt werden? Set if the checkbox for "Lock after start?" should be checked by default at startup Setze ob die Checkbox für "Nach dem Start sperren?" standardmäßig gesetzt sein soll Set if the checkbox for "Warnings on?" should be checked by default at startup Setze ob die Checkbox für "Warnungen an?" bei Programmstart standardmäßig gesetzt sein soll The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Der Knopf zum schließen des Fensters versteckt für gewöhnlich das Hauptfenster. Das Verstecken zu deaktivieren bedeutet, dass qshutdown dann stattdessen beendet wird. General Allgemein Advanced Erweitert Suspend method: Befehlsmethode für Standby: automatic automatisch user defined benutzerdefiniert Hibernate method: Befehlsmethode für Ruhezustand: Shutdown method: Befehlsmethode für Shutdown: Reboot method: Befehlsmethode für Neustart: Please input an user specified command for suspend here Bitte geben sie hier einen benutzerdefinierten Befehl für den Standby ein Gnome session Gnome Sitzung KDE session KDE Sitzung Please input an user specified command for shutdown here Bitte geben sie hier einen benutzerdefinierten Befehl für den Shutdown ein Please input an user specified command for reboot here Bitte geben sie hier einen benutzerdefinierten Befehl für den Neustart ein Please input an user specified command for hibernate here Bitte geben sie hier einen benutzerdefinierten Befehl für den Ruhezustand ein Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Manche Systeme blockieren z.B. den Shutdown weil qshutdown noch läuft. Setze ein Häkchen, wenn qshutdown sich nach dem Ende des Countdowns beenden soll. Quit qshutdown after countdown ended? qshutdown nach dem Countdown beenden? &Start countdown at startup Starte &Countdown bei Programmstart Hide qshutdown at startup if "Start countdown" is checked. Verstecke qshutdown bei Programmstart, wenn "Starte Countdown bei Programmstart" abgehakt ist. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Die Datei "%1" ist nicht beschreibbar! Vielleicht haben Sie dazu einfach keine Rechte. Error Fehler Please read this carefully! Bitte lesen Sie dies sorgfältig! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Willkommen bei qshutdown! Wenn Sie möchten, das qshutdown das System herunterfährt und Sie die Gnome Shell benuten, dann ist es wahrscheinlich, dass ein Shutdown-Dialog erscheint. Wenn Sie einen direkten Shutdown möchten, dann ziehen Sie bitte in Betracht in die Einstellungen zu gehen und die Shutdown-Methode auf ConsoleKit oder ähnliches zu stellen. Sie können gerne jederzeit https://launchpad.net/~hakaishi besuchen um Bugs oder alles was die Übersetzungen betrifft besuchen. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Das Taskleistensymbol zu deaktivieren bedeutet, dass man qshutdown nicht mehr aus der Taskleiste wiederherstellen kann. Bitte erwäge auch "Beenden beim Schließen des Hauptfensters" und "Starte Countdown bei Programmstart" abzuhaken. Falls qshutdown noch läuft und Sie es wiederherstellen wollen, können Sie einfach qshutdown erneut ausführen so wie sie es gewöhnlich täten. Es wird sich dadurch wiederherstellen. Disable tray &icon Deakt&iviere das Taskleistensymbol &Quit on closing main window B&eenden beim Schließen des Hauptfensters QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown wird sich selbst 3 mal als Warnung zeigen, falls weniger als 70 Sekunden übrig sind.<br/><br/>Dieses Programm benutzt qdbus um eine Shutdown/Neustart/Standby/Ruhezustand Anforderung an den Gnome- oder KDE-Session-Manager, zu HAL/ConsoleKit/DeviceKit/UPower zu senden und wenn nichts davon funktioniert, wird der Befehl 'sudo shutdown' benutzt (merke, dass die Sitzung niemals gespeichert werden kann, wenn die Anforderung an HAL oder ConsoleKit gesendet, oder der shutdown Befehl benutzt wird. Falls der shutdown Befehl benutzt wird, kann das Programm nur den Shutdown und Neutstart ausführen). Wenn also beim Erreichen des Shutdown- oder Neustart-Zeitpunkts nichts passiert, liegt das daran, dass einem die Rechte für den shutdown Befehl fehlen. In diesem Fall kann man das Folgende machen:<br/><br/>Füge das Folgende in ein Terminal ein:<pre>EDITOR=nano sudo -E visudo</pre>und füge diese Zeile hinzu:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>wobei * den Benuternamen oder %Gruppennamen ersetzt.<br/><br/>Die maximale Zahl für den Minuten-Countdown ist 1440 (24 Stunden).<br/>Die Konfigurationsdatei (und Protokolldatei) befindet sich im Verzeichnis <i>~/.qshutdown/</i> (unter Linux/Unix).<br/><br/><b>Für Administratoren:</b><br/>Wenn Sie möchten, dass qshutdown mit "Kindersicherung" für alle Benutzer läuft, können Sie "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" ausführen und dann die Option Lock_all in /root/.qshutdown/qshutdown.conf auf true setzen. Beachten Sie bitte, dass qshutdown einmal gestartet worden sein muss, um die qshutdown.conf zu generieren. Des Weiteren sollte das Folgende in die sudoers eingetragen werden (wie oben):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Falls Sie jemals das von Ihnen festgelegte Passwort vergessen sollten, können Sie einfach die ganze mit "Password" beginnende Zeile manuell aus der qshutdown.conf entfernen.<br/><br/><b>Hinweise zur Bedienung:</b><br/>Wenn man möchte, dass qshutdown aufhört zu "nerven", kann man einfach das Häckchen bei "Warnungen an?" entfernen.<br/><br/><b>Kürzel:</b><table border="1"><tr><td>Strg+I</td><td>(dieses) Informationsfenster</td></tr><tr><td>Strg+Q</td><td>Beenden</td></tr><tr><td>Strg+P</td><td>Einstellungen</td></tr><tr><td>Strg+L</td><td>schreibe in die Protokolldatei (funktioniert nur wenn qshutdown beendet wird. Um das permanent zu machen, stelle das in den Einstellungen ein.)</td></tr><tr><td>Strg+S</td><td>stelle auf Shutdown</td></tr><tr><td>Strg+R</td><td>stelle auf Neustart</td></tr><tr><td>Strg+U</td><td>stelle auf Standby (RAM)</td></tr><tr><td>Strg+H</td><td>stelle auf Ruhezustand</td></tr><tr><td>Strg+E</td><td>stoppe den Countdown (funktioniert nur bei laufendem Countdown und wenn der Administrator den Zugriff nicht eingeschränkt hat)</td></tr><tr><td>Umschalttaste(Shift)+E</td><td>zum editieren der Konfigurationsdatei (hierzu ist ein Passwort nötig, das man festlegen kann. Falls man Benutzer ist, kann man einfach ein "leeres Passwort" (Passwortfeld leer lassen) einstellen.)</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-eo.ts0000664000175000017500000005743513477730476024135 0ustar chrischris About About qshutdown Pri qshutdown Version Versio &About &Pri &Thanks To &Dankon al <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Uzado de Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Kalendaro Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Ŝanĝi pasvorton Retype password: Retajpu pasvorton: New password: Nova pasvorto: Old password: Malnova pasvorto: The current password is not correct! La aktuala pasvorto ne estas korekta! The retyped password doesn't match! La retajpita pasvorto ne kongruas! Editor Editor Redaktilo Gui &Minimize! &Malmaksimigu! Shutdown-time: Tempo de elŝalto: Minutes till shutdown: Minutoj ĝis elŝalto: Reboot-time: Tempo de restartigo: Minutes till reboot: Minutoj ĝis restartigo: Suspend-time: Tempo de suspendo: Minutes till suspend: Minutoj ĝis suspendo: Hibernate-time: Tempo de pasivumigo: Minutes till hibernate: Minutoj ĝis pasivumigo: shutdown in elŝalto en reboot in restartigo en suspend in suspendo en hibernate in pasivumigo en years jaroj months monatoj hours horoj days tagoj Res&tore Res&taŭrigi &Minimize &Minimumigi day tago minutes minutoj seconds sekundoj Shutdown Elŝalti Reboot Restartigi Suspend Prokrasti Hibernate Pasivumigi &Lock after start? Ĉu ŝ&losi post starto? &Warnings on? Ĉu enŝalti a&vertojn? &Now! &Nun! You can set a date in the calendar Vi povas agordi daton en la kalendaro &OK &Bone R&eset R&eŝarĝi &Quit &Eliri &Info &Informoj &Logfile Dosierprotoko&lo &Preferences &Agordoj &Shutdown &Elŝalti &Reboot &Restartigi S&uspend S&uspendi &Hibernate &Pasivumigi Lock settings after countdown started Ŝlosi agordojn post ol startigo de ĝisnombrado Calendar Kalendaro &File &Dosiero &Help &Helpo &Settings &Agordoj &About &Pri &Reset &Reŝarĝi &Configure &Agordi &Keep proportions &Manteni proporciojn Warning Averto Action imminent! Ago tujas! Information Informoj Countdown is not running! Ĝisnombrado ne estas rulanta! Turns on/off all warnings Enŝalti/malŝalti ĉiujn avertojn About &Qt Pri &Qt Version Versio Info Info Informoj PassWord Password Pasvorto &Set password Agordi pa&svorton Password: Pasvorto: The password is not correct! La pasvorto ne estas korekta! &Change password Ŝanĝi pa&svorton Preferences Preferences Agordoj Enable the &target time at startup Enŝalti la &tempon de celo je startigo Shutdown Elŝalti Shutdown type: Speco de elŝalto: Target time: Tempo de celo: Minutes to countdown: Minutoj al ĝisnombrado: Font: Tiparo: Font size 1: Grando de tiparo 1: Font size 2: Grando de tiparo 2: Font size 3: Grando de tiparo 3: Size for log file: Grando de protokoldosieroj: Reboot Restartigi Suspend Suspendi Hibernate Pasivumigi A&utostart Aŭt&omata starto &Hide qshutdown at startup &Kaŝi qelŝalton je startigo Lock screen &for suspend and hibernate Ŝlosi ekranon &por prokrasto kaj pasivumigo &Edit configuration file R&edakti agorddosieron Enable the minute &countdown at startup Enŝalti la &minutan ĝisnombradon je starto &Reset settings &Rekomencigi agordojn Size for log file in KB Grando de protokoldosieroj (kB) "&Lock after start?" "Ĉu ŝ&losi post startigo?" "&Warnings on?" "Ĉu enŝalti a&vertojn?" Log start time of qshutdown and how long it was running L&ogging Pr&otokolado checkboxes and "now!" button OK and Minimize buttons Butonoj Bone kaj Minimumigi Labels for example Set a font Agordi tiparon What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? What should be displayed first by default at startup? Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. General Ĝenerala Advanced Progresita Suspend method: Prokrasta metodo: automatic aŭtomata user defined difinita de uzanto Hibernate method: Pasivumiga metodo: Shutdown method: Elŝalta metodo: Reboot method: Restartiga metodo: Please input an user specified command for suspend here Gnome session GNOME-seanco KDE session KDE-seanco Please input an user specified command for shutdown here Please input an user specified command for reboot here Please input an user specified command for hibernate here Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? &Start countdown at startup &Startigi ĝisnombrado je startigo Hide qshutdown at startup if "Start countdown" is checked. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Error Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-ms.ts0000664000175000017500000007306513477730050024132 0ustar chrischris About About qshutdown Perihal qshutdown Version Versi &About Perih&al &Thanks To &Terima Kasih Kepada <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Menggunakan Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, adalah masa dan kiraan mengundur berasaskan alat shutdown</p><p >Pengarang: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Hakcipta &copy; 2010-2019, oleh Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Sila guna <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> atau <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> untuk laporkan pepijat.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Kalendar Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Ubah Kata Laluan Retype password: Taip Semula kata laluan: New password: Kata laluan baru: Old password: Kata laluan lama: The current password is not correct! Kata laluan semasa salah! The retyped password doesn't match! Kata laluan yang ditaip semula tidak sepadan! Editor Editor Penyunting Gui &Minimize! &Minimumkan! Shutdown-time: Masa-dimatikan: Minutes till shutdown: Minit sehingga dimatikan: Reboot-time: Masa-but-semula: Minutes till reboot: Minit sehingga but semula: Suspend-time: Masa-tangguh: Minutes till suspend: Minit sehingga tangguh: Hibernate-time: Masa-hibernasi: Minutes till hibernate: Minit sehingga hibernasi: shutdown in dimatikan dalam reboot in dibut semula dalam suspend in ditangguh dalam hibernate in dihibernasi dalam years tahun months bulan hours jam days hari Res&tore Puli&h &Minimize &Minimumkan day hari minutes minit seconds saat Shutdown Matikan Reboot But Semula Suspend Tangguh Hibernate Hibernasi &Lock after start? &Kunci selepas mula? &Warnings on? &Amaran dihidupkan? &Now! S&ekarang! You can set a date in the calendar Anda boleh tetapkan tarikh dalam kalendar &OK &OK R&eset Teta&p Semula &Quit Ke&luar &Info Makl&umat &Logfile &Fail log &Preferences &Keutamaan &Shutdown &Matikan &Reboot &But Semula S&uspend &Tangguh &Hibernate &Hibernasi Lock settings after countdown started Tetapan kunci selepas kiraan mengundur bermula Calendar Kalendar &File &Fail &Help &Bantuan &Settings Teta&pan &About Perih&al &Reset &Tetap semula &Configure Konfi&gur &Keep proportions K&ekal perkadaran Warning Amaran Action imminent! Tindakan hampir! Information Maklumat Countdown is not running! Kiraan mengundur tidak berjalan! Turns on/off all warnings Matikan/hidupkan semua amaran About &Qt Perihal &Qt Version Versi Info Info Maklumat PassWord Password Kata laluan &Set password T&etap kata laluan Password: Kata Laluan: The password is not correct! Kata laluan salah! &Change password &Ubah kata laluan Preferences Preferences Keutamaan Enable the &target time at startup Benarkan masa sasa&ran pada permulaan Shutdown Matikan Shutdown type: Jenis matikan: Target time: Masa sasaran: Minutes to countdown: Minit untuk kiraan mengundur: Font: Fon: Font size 1: Fon saiz 1: Font size 2: Fon saiz 2: Font size 3: Fon saiz 3: Size for log file: Saiz untuk fail log: Reboot But Semula Suspend Tangguh Hibernate Hibernasi A&utostart Mula-sen&diri &Hide qshutdown at startup Sembuun&yi qshutdown pada permulaan Lock screen &for suspend and hibernate Kunci skrin u&ntuk tangguh dan hibernasi &Edit configuration file Sunt&ing fail konfigurasi Enable the minute &countdown at startup Benarkan minit ki&raan mengundur semasa permulaan &Reset settings T&etap semula tetapan Size for log file in KB Saiz bagi fail log dalam KB "&Lock after start?" "Kun&ci selepas mula?" "&Warnings on?" "&Amaran dihidupkan?" Log start time of qshutdown and how long it was running Masa mula log bagi qshutdown dan berapa lamakah ia berjalan L&ogging Pengel&ogan checkboxes and "now!" button kotak tanda dan butang "sekarang!" OK and Minimize buttons Butang OK dan Minimumkan Labels for example Label untuk contoh Set a font Tetapkan fon What target time should be displayed by default at startup? Apakah masa sasaran yang patut dipaparkan secara lalai semasa permulaan? How many minutes should be displayed for countdown by default at startup? Berapa minitkah patut dipaparkan untuk kiraan mengundur secara lalai pada permulaan? What should be displayed first by default at startup? Apakah yang patut dipaparkan dahulu secara lalai semasa permulaan? Set if the checkbox for "Lock after start?" should be checked by default at startup Tetapkan jika kotak tanda untuk "kunci selepas mula?" patut ditanda secara lalai semasa permulaan Set if the checkbox for "Warnings on?" should be checked by default at startup Tetapkan jika kotak tanda untuk "Amaran dihidupkan?" patut ditanda secara lalai semasa permulaan The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Butang tutup biasanya sembunyian tetingkap utama. Pelumpuhan sembunyi bermaksud, qshutdown akan ditutup. General Am Advanced Lanjutan Suspend method: Kaedah tangguh: automatic automatik user defined ditakrif pengguna Hibernate method: Kaedah hibernasi: Shutdown method: Kaedah matikan: Reboot method: Kaedah but semula: Please input an user specified command for suspend here Sila masukkan perintah dinyatakan pengguna untuk tangguh disini Gnome session Sesi Gnome KDE session Sesi KDE Please input an user specified command for shutdown here Sila masukkan perintah dinyatakan pengguna untuk matikan disini Please input an user specified command for reboot here Sila masukkan perintah dinyatakan pengguna untuk but semula disini Please input an user specified command for hibernate here Sila masukkan perintah dinyatakan pengguna untuk hibernasi disini Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Beberapa sekatan sistem contohnya shutdown kerana qshutdown masih berjalan. Tetapkan cangkuk jika qshutdown patut keluar selepas kiraan mengundur tamat. Quit qshutdown after countdown ended? Keluar qshutdown selepas kiraan mengundur tamat? &Start countdown at startup &Mula kiraan mengundur semasa permulaan Hide qshutdown at startup if "Start countdown" is checked. Sembunyi qshutdown semasa permulaan jika "mula kiraan undur" ditanda. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Fail "%1" tidak boleh ditulis! Mungkin anda tidak mempunyai keizinan membuatnya. Error Ralat Please read this carefully! Sila baca dengan teliti! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Selamat datang ke qshutdown! Jika anda mahu qshutdown iaitu hendak matikan sistem dan anda menggunakan Shell Gnome, maka boleh mendapatkannya melalui dialog matikan disana. Jika anda mahu matikan secara terus, maka pergi ke keutamaan dan tetapkan kaedah matikan ke ConsoleKit atau yang lain. Sila lawati https://launchpad.net/~hakaishi untuk laporkan pepijat atau apa-apa berkenaan terjemahan. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Melumpuhkan ikon talam bermaksud ia tidak berupaya memulihkan qshutdown dari talam. Sila tanda "Keluar jika menutup tetingkap utama" dan "Sembunyi qshutdown semasa permulaan". Jika qshutdown masih berjalan dan anda mahu ia hilang, hanya lakukan qshutdown sekali lagi, sepertimana anda biasa buat. Ia akan muncul semula. Disable tray &icon Lumpuhkan &ikon talam &Quit on closing main window &Keluar bila menutup tetingkap utama QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown akan papar dirinya sebanyak 3 kali sebagai amaran jika terdapat kurang dari 70 saat berbaki.<br/><br/>Program ini gunakan qdbus untuk hantar permintaan matikan/but semula/tangguh/hibernasi sama ada kepada pengurus sesi gnome- atau kde-, kepada HAL/ConsoleKit/DeviceKit/UPower dan jika tiada yang berfungsi, perintah 'sudo shutdown'akan digunakan (perhatian bila menghantar permintaan matikan ke HAL atau ConsoleKit, atau perintah matikan digunakan, Sesi tidak sesekali disimpan. Jika perintah matikan digunakan, program hanya boleh dimatikan dan dibut semula). Jadi jika tiada apa yang berlaku bila shutdown- atau reboot-time dicapai, ia bermakna anda kekurangan hak bagi perintah matikan. Dalam kes ini anda boleh buat perkara berikut:<br/><br/>Tampal berikut dalam terminal:<pre>EDITOR=nano sudo -E visudo</pre>dan tambah baris ini:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>yang mana * gantikan dengan nama pengguna atau nama %group.<br/><br/>Bilangan maksimum minit kiraan mengundur adalah 1440 (24 jam).<br/>Fail konfigurasi (dan fail log) berada du <i>~/.qshutdown/</i> (dibawah Linux/Unix).<br/><br/><b>Untuk pentadbir:</b><br/>Jika anda inginkan qshutdown dijalankan dengan "parental lock" untuk setiap pengguna, anda boleh buat "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" dan tetapkan pilihan Lock_all dalam /root/.qshutdown/qshutdown.conf kepada benar. Perhatian qshutdown mesti dimulakan sekali untuk janakan qshutdown.conf. Tambahan pula, perlu tambah baris berikut ke sudoers (seperti diatas):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Jika anda lupa tetapkan kata laluan anda, hanya buang keseluruhan baris bermula dengan "Password" secara manual dari qshutdown.conf.<br/><br/><b>Petua penggunaan:</b><br/>Jika anda hendak qshutdown henti "mengganggu" anda, hanya buang baris "warnings on?".<br/><br/><b>Kekunci panas:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) Maklumat tetingkap</td></tr><tr><td>Ctrl+Q</td><td>Keluar</td></tr><tr><td>Ctrl+P</td><td>Keutamaan</td></tr><tr><td>Ctrl+L</td><td>tulis masa jalan sekali kedalam fail log (hanya jika qshutdown keluar. Untuk jadikannya kekal, tetapkanya dalam keutamaan.)</td></tr><tr><td>Ctrl+S</td><td>tetapkan ke matikan</td></tr><tr><td>Ctrl+R</td><td>tetapkan ke mula semula</td></tr><tr><td>Ctrl+U</td><td>tetapkan ke tangguh kepada RAM</td></tr><tr><td>Ctrl+H</td><td>tetapkan ke hibernasi</td></tr><tr><td>Ctrl+E</td><td>henti kiraan mengundur (hanya jika kiraan mengundur telah bermula dan pentadbir tidak sekat capaian)</td></tr><trtd>Shift+E</td><td>untuk menyunting faik konfigurasi (untuk ini kata laluan adalah perlu. Jika anda adalah pengguna, anda boleh tetapkan "kata laluan kosong" (biarkan medan kata laluan kosong)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-bs.ts0000664000175000017500000007254513477730453024130 0ustar chrischris About About qshutdown O qshutdownu Version Verzija &About O progr&amu &Thanks To &Zahvaljujemo <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">koristi Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, alat za odgođeno gašenje računara</p><p >Autor: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Sva prava zadržana &copy; 2010-2019, Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Molimo vas da koristite <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> ili <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> za prijavu grešaka.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Kalendar Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Promijeni šifru Retype password: Ponovo upišite šifru: New password: Nova šifra: Old password: Stara šifra: The current password is not correct! Trenutna šifra nije tačna! The retyped password doesn't match! Ponovljena šifra se ne poklapa! Editor Editor Uređivač Gui &Minimize! &Minimiziraj! Shutdown-time: Vrijeme gašenja: Minutes till shutdown: Br. minuta do gašenja: Reboot-time: Vrijeme ponovnog pokretanja: Minutes till reboot: Br. minuta do ponovnog pokretanja: Suspend-time: Vrijeme suspendovanja: Minutes till suspend: Br. minuta do suspendovanja: Hibernate-time: Vrijeme hibernacije: Minutes till hibernate: Br. minuta do hibernacije: shutdown in gašenja za reboot in ponovno pokretanje za suspend in suspendovanje za hibernate in hibernacija za years godina months mjeseci hours sati days dana Res&tore &Obnovi &Minimize &Minimiziraj day dan minutes minuta seconds sekundi Shutdown Ugasi Reboot Ponovo pokreni Suspend Suspenduj Hibernate Hibernacija &Lock after start? &Zaključati nakon pokretanja? &Warnings on? &Uključiti upozorenja? &Now! &Odmah! You can set a date in the calendar Datum možete postaviti u kalendaru &OK &U redu R&eset &Resetuj &Quit &Izlaz &Info &Info &Logfile &Izvještaji &Preferences &Postavke &Shutdown &Gašenje &Reboot &Ponovo pokreni S&uspend S&uspendovanje &Hibernate &Hibernacija Lock settings after countdown started Zaključaj postavke nakon što se pokrene brojač Calendar Kalendar &File &Datoteka &Help &Pomoć &Settings &Postavke &About O progr&amu &Reset &Resetuj &Configure &Podesi &Keep proportions &Zadrži proporcije Warning Upozorenje Action imminent! Akcija je neizbježna! Information Informacije Countdown is not running! Brojač nije pokrenut! Turns on/off all warnings Uključuje/Isključuje sva upozorenja About &Qt O &Qt-u Version Verzija Info Info Info PassWord Password Šifra &Set password &Postavi šifru Password: Šifra: The password is not correct! Ova šifra nije tačna! &Change password &Promijeni šifru Preferences Preferences Podešavanja Enable the &target time at startup Omogućava &željeno vrijeme pri pokretanju Shutdown Ugasi Shutdown type: Vrsta gašenja: Target time: Željeno vrijeme: Minutes to countdown: Br. minuta do odbrojavanja: Font: Font: Font size 1: Font veličina 1: Font size 2: Font veličina 2: Font size 3: Font veličina 3: Size for log file: Veličina datoteke izvještaja: Reboot Ponovo pokreni Suspend Suspendovanje Hibernate Hibernacija A&utostart A&utomatsko pokretanje &Hide qshutdown at startup &Sakrij qshutdowm pri pokretanju Lock screen &for suspend and hibernate Zaključaj ekran &za suspendovanje i hibernaciju &Edit configuration file &Uredi konfiguracijsku datoteku Enable the minute &countdown at startup &Omogući minutno &odbrojavanje pri pokretanju &Reset settings &Resetujpostavke Size for log file in KB Veličina izvještaja u KB "&Lock after start?" "&Zaključati pri pokretanju?" "&Warnings on?" "&Uključiti upozorenja?" Log start time of qshutdown and how long it was running Bilježi vrijeme pokretanja za qshutdown i vrijeme u kojem je bio pokrenut L&ogging I&zvještavanje checkboxes and "now!" button potvđivanje i dugme "odmah!" OK and Minimize buttons OK i dugme za minimiziranje Labels for example Npr. natpisi Set a font Postavite font What target time should be displayed by default at startup? Koje željeno vrijeme bi trebalo da bude prikazano pri pokretanju? How many minutes should be displayed for countdown by default at startup? Koliko minuta za brojač bi trebalo biti prikazano pri pokretanju? What should be displayed first by default at startup? Šta se prvo treba prikazati pri pokretanju? Set if the checkbox for "Lock after start?" should be checked by default at startup Da li će "Zaključati nakon pokretanja?" biti odabrano kao početna opcija Set if the checkbox for "Warnings on?" should be checked by default at startup Da li će "Uključiti upozorenja?" biti odabrano kao početna opcija The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Dugme za zatvaranje obično sakriva glavni prozor. Onemogućavanje sakrivanja znači da će se qshutdown onda zatvoriti. General Općenito Advanced Napredno Suspend method: Metoda suspendovanja: automatic automatski user defined korisnički definisano Hibernate method: Metoda hibernacije: Shutdown method: Metoda gašenja: Reboot method: Metoda ponovnog pokretanja: Please input an user specified command for suspend here Molimo vas da ovdje upišete korisničku komandu za suspendovanje Gnome session Gnome sesija KDE session KDE sesija Please input an user specified command for shutdown here Molimo vas da ovdje upišete korisničku komandu za gašenje Please input an user specified command for reboot here Molimo vas da ovdje upišete korisničku komandu za ponovno pokretanje Please input an user specified command for hibernate here Molimo vas da ovdje upišete korisničku komandu za hibernaciju Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Neki sistemi blokiraju gašenje zbog toga što je qshutdown pokrenut. Možete postaviti opciju da se qshutdown zatvori nakon što se odbrojavanje završi. Quit qshutdown after countdown ended? Zatvoriti qshutdown nakon što se odbrojavanje završi? &Start countdown at startup &Pokreni brojač pri pokretanju Hide qshutdown at startup if "Start countdown" is checked. Sakrij qshutdown pri pokretanju ako je "Pokreni brojač" označeno. The File "%1" is not writable! Maybe you just don't have the permissions to do so. U datoteku "%1" se ne može zapisivati! Možda nemate potrebnu dozvolu za zapisivanje. Error Greška Please read this carefully! Molimo vas da ovo pažljivo pročitate! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Dobro došli u qshutdown! Ako želite da qshutdown vrši gašenje vašeg sistema a koristite Gnome Shell, onda je vrlo vjerovatno da će vam se tamo prikazati dijaloški okvir. Ako želite izvršiti direktno gašenje, onda vas molimo da otvorite opcije i podesite metodu gašenja na ConsoleKit ili nešto drugo. Prijave i primjedbe za greške i prijevode možete izvršiti na https://launchpad.net/~hakaishi Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown će se prikazati tri puta kao upozorenje ako je ostalo manje od 70 sekundi do gašenja.<br/><br/>Ovaj program koristi qdbus da pošalje zahtjev za gašenje/ponovno pokretanje/suspendovanje/hibernaciju za gnome- ili kde-session-manager, za HAL/ConsoleKit/DeviceKit/UPower i, ako nijedan od ovih zahtjeva ne uspije, koristit će se 'sudo shutdown' (napomena: prilikom slanja zahtjeva na HAL ili ConsoleKit ili kada se koristi komanda za gašenje, sesija nikada neće biti sačuvana. Ako se koristi komanda za gašenje, program će samo moći da izvrši gašenje ili ponovno pokretanje). Ako se ništa ne dogodi u željenom vremenu gašenja ili ponovnog pokretanja, to znači da nemate potrebne dozvole za izvršavanje komande za gašenje. U ovom slučaju možete uraditi sljedeće:<br/><br/>Zalijepite sljedeću komandu u terminal:<pre>EDITOR=nano sudo -E visudo</pre>i dodajte ovu liniju:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>gdje * mijenja ime korisnika ili %grupe.<br/><br/>Maksimalan broj za brojač je 1440 (24 sata).<br/>Konfiguracijska datoteka (i izvještaj) je locirana u <i>~/.qshutdown/</i> (za Linux/Unix).<br/><br/><b>Za administratore:</b><br/>Ako želite pokretati qshutdown zaključan za svakog korisnika, koristite komandu "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" i postavite opciju Lock_all u /root/.qshutdown/qshutdown.conf na true. qshutdown se mora pokrenuti barem jednom da bi generisao qshutdown.conf. Dalje, potrebno je dodati sljedeću liniju u sudoers (kao i u prethodnom slučaju):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Ako ikada zaboravite vašu šifru, jednostavno obrišite cijelu liniju koja počinje sa "Password" u datoteci qshutdown.conf.<br/><br/><b>Napomene o korištenju:</b><br/>Ako želite da vas qshutdown prestane stalno obavještavati, jednostavno isključite "Uključiti upozorenja?".<br/><br/><b>Prečice:</b><table border="1"><tr><td>Ctrl+I</td><td>(ovaj) informacijski prozor</td></tr><tr><td>Ctrl+Q</td><td>Izlaz</td></tr><tr><td>Ctrl+P</td><td>Postavke</td></tr><tr><td>Ctrl+L</td><td>zapiši ukupno trajanje izvršavanja jednom u izvještaj (radi jedino ako se qshutdown zatvori. Za trajnu postavku ove opcije, aktivirajte je u postavkama.)</td></tr><tr><td>Ctrl+S</td><td>postavka gašenja</td></tr><tr><td>Ctrl+R</td><td>postavka ponovnog pokretanja</td></tr><tr><td>Ctrl+U</td><td>postavka suspendovanja u RAM</td></tr><tr><td>Ctrl+H</td><td>postavka hibernacije</td></tr><tr><td>Ctrl+E</td><td>zaustavi odbrojavanje (u slučaju da je brojač pokrenut a administrator nije ograničio pristup)</td></tr><tr><td>Shift+E</td><td>uređivanje konfiguracijske datoteke (za ovo je neophodna šifra. Ako ste vi korisnik, možete postaviti "praznu šifru" (ostavite polje za šifru prazno)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-bg.ts0000664000175000017500000010730313477731114024076 0ustar chrischris About About qshutdown За qshutdown Version Версия &About &За програмата &Thanks To Б&лагодарности <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">За използването на Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, инструмент за изключване на компютъра, работещ на базата на хронометър и брояч (таймер) за обратно броене</p><p >Автор: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019 Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Моля, използвайте <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a>, за за докладвате за грешки в програмата.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Календар Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Промяна на парола Retype password: Въведете отново паролата: New password: Нова парола: Old password: Стара парола: The current password is not correct! Настоящата парола не е правилна! The retyped password doesn't match! Паролите не съвпадат Editor Editor Текстов редактор Gui &Minimize! &Минимизиране! Shutdown-time: Време до/за изключването на компютъра: Minutes till shutdown: Минути до изключването на компютъра: Reboot-time: Време до/за рестартирането на компютъра: Minutes till reboot: Минути до рестартирането на компютъра: Suspend-time: Време до/за приспиване на компютъра: Minutes till suspend: Минути до приспиването на компютъра: Hibernate-time: Време до/за дълбоко приспиване на компютъра: Minutes till hibernate: Минути до дълбоко приспиване на компютъра: shutdown in изключване след reboot in рестартиране след suspend in приспиване след hibernate in дълбоко приспиване след years години months месеца hours час(а) days ден(а) Res&tore В&ъзстановяване &Minimize &Минимизиране day ден minutes минута(/-и) seconds секунди Shutdown Изключване Reboot Рестартиране Suspend Приспиване Hibernate Дълбоко заспиване &Lock after start? &Заключване след стартиране? &Warnings on? С &предупреждения? &Now! &Сега! You can set a date in the calendar Можете да насрочите дата в календара &OK &ОК R&eset &Анулиране &Quit &Изход &Info &Информация &Logfile &Дневник на дейността &Preferences Пре&дпочитания &Shutdown &Изключване &Reboot &Рестартиране S&uspend &Приспиване &Hibernate &Дълбоко приспиване Lock settings after countdown started Заключване на настройките след начало на обратното броене Calendar Календар &File &Файл &Help Помо&щ &Settings &Настройки &About &За програмата &Reset &Анулиране &Configure &Конфигуриране &Keep proportions &Запазване на пропорцииите Warning Предупреждение Action imminent! Действието предстои да се случи! Information Информация Countdown is not running! Обратното броене не е включено! Turns on/off all warnings Включване/изключване на всички предупреждения About &Qt За &Qt Version версия Info Info Информация PassWord Password Парола &Set password Зада&ване на парола Password: Парола: The password is not correct! Въведенета парола не е правилна! &Change password &Промяна на паролата Preferences Preferences Предпочитания Enable the &target time at startup Включване на пусковото време при зареждане Shutdown Изключване Shutdown type: Вид изключване: Target time: Пусково време: Minutes to countdown: Минути до обратното броене: Font: Шрифт: Font size 1: Големина (кегел) на шрифта 1: Font size 2: Големина на шрифта 2: Font size 3: Големина на шрифта 3: Size for log file: Големина на дневника за дейността: Reboot Рестартиране на компютъра Suspend Приспиване Hibernate Дълбоко заспиване A&utostart А&втоматично стартиране &Hide qshutdown at startup С&криване на qshutdown при зареждане Lock screen &for suspend and hibernate Заключване на е&крана при заспиване и дълбоко заспиване &Edit configuration file Р&едактиране на файла с конфигурации Enable the minute &countdown at startup Включване на обратното броене с минути при зареждане &Reset settings Нули&ране на настройките Size for log file in KB Големина на дневника за дейността в КБ "&Lock after start?" "Зак&лючване след стартиране?" "&Warnings on?" "&С предупреждения?" Log start time of qshutdown and how long it was running Записване в дневника на времето на стартиране на qshutdown и колко дълго програмата е работила L&ogging Запи&сване в дневника checkboxes and "now!" button кутийки за отмятане и бутон „Сега!“ OK and Minimize buttons бутони „ОК“ и „Минимизиране“ Labels for example С надписи, например Set a font Избор на шрифт What target time should be displayed by default at startup? Какво пусково време трябва да се показва по подразбиране при зареждане? How many minutes should be displayed for countdown by default at startup? Колко на брой минути трябва да се показват в полето за обратно броене при зареждане? What should be displayed first by default at startup? По подразбиране какво трябва да се показва първо при зареждане? Set if the checkbox for "Lock after start?" should be checked by default at startup Задайте, ако кутийката за отмятане за „Заключване след стартиране?“ трябва да бъде отметната по подразбиране при зареждане Set if the checkbox for "Warnings on?" should be checked by default at startup Задайте, ако кутийката за отмятане за „С предупреждения?“ трябва да бъде отметната по подразбиране при зареждане The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Бутонът за затваряне обикновено скрива основния прозорец. Изключването на скриването означава, че програмата qshutdown вместо гореописаното ще бъде напълно изключена. General Общи настройки Advanced Раширени Suspend method: Метод за приспиване: automatic автоматично user defined според избора на потребителя Hibernate method: Метод за дълбоко заспиване: Shutdown method: Метод за изключване на компютъра: Reboot method: Метод за рестартиране: Please input an user specified command for suspend here Моля, въведете команда по избор на потребителя за заспиване на компютъра тук Gnome session сесия на Gnome KDE session сесия на KDE Please input an user specified command for shutdown here Моля, въведете команда по избор на потребителя за изключване на компютъра тук Please input an user specified command for reboot here Моля, въведете команда по избор на потребителя за рестартиране на компютъра тук Please input an user specified command for hibernate here Моля, въведете команда по избор на потребителя за дълбоко заспиване на компютъра тук Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Някои системи например блокират изключването на компютъра, защото qshutdown все още работи. Задайте регистриране (hook), ако искате qshutdown по подразбиране да се изключва напълно, когато обратното броене свърши. Quit qshutdown after countdown ended? Пълно изключване на qshutdown при свършване на обратното броене? &Start countdown at startup &Стартиране на обратното броене при зареждане Hide qshutdown at startup if "Start countdown" is checked. Скриване на qshutdown при зареждане, ако кутийката за отмятане при „Стартиране на обратното броене“ е отметната. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Във файла "%1" не може да се записва! Може би просто нямате нужните права за запис, за да извършите гореописаното. Error Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown ще се покаже 3 пъти като предупреждение, ако остават по-малко от 70 секунди.<br/><br/>Тази програма използва qdbus, за да изпраща заявка за изключване/рестартиране/заспиване/дълбоко заспиване на компютъра или до gnome- или до kde-session-manager, до HAL/ConsoleKit/DeviceKit/UPower и ако нито едно от тези не проработи, командата „sudo shutdown“ ще бъде използвана (имайте предвид, че когато се изпраща заявката за изключване на компютъра до HAL или ConsoleKit, или когато се използва командата „shutdown“, вашата сесия никога няма да бъде запазена. Ако се използва командата „shutdown“, програмата ще може само да изключи и/или рестартира компютъра ви. Затова ако нищо не се случи, когато времето до/за изключване или рестартиране е достигнато, това означава, че не притежавате нужните права за използване на командата „shutdown“. В такъв случай можете да направите следното:<br/><br/>Поставете следното в отворен прозорец на конзолния терминал:<pre>EDITOR=nano sudo -E visudo</pre>и добавете следния ред:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>, където * заменя заменя потребителското име или %group името на групата.<br/><br/>Максималният брой на минути до/за изключване е 1440 (= 24 часа, т.е. 1 денонощие).<br/>Файлът с конфигурации (и дневникът за дейността) е разположен в <i>~/.qshutdown/</i> (под Линукс/Юникс (Linux/Unix)).<br/><br/><b>За администратори:</b><br/>Ако желаете qshutdown да работи с „предпазителя от родители за деца“ за всеки потребител, вие можете да изпълните „sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/“ и да зададете зададете настройката Lock_all (Заключване на всички) в /root/.qshutdown/qshutdown.conf със стойност true (вярно). Имайте предвид, че qshutdown трябва да бъде стартиран веднъж, за да бъде генериран файла с конфигурации qshutdown.conf. Освен това е нужно да добавите следния ред към командите sudo (показани по-горе):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Ако вие някога забравите своята зададена парола, просто ръчно премахнете целия ред, започващ с „Password“ (Парола) от файла с конфигурации qshutdown.conf.<br/><br/><b>Кратък съвет за използването на програмата:</b><br/>Ако желаете qshutdown да спре да ви „притеснява“ (напр. със съобщения или предупреждения), просто премахнете регистрирането (hook) от полете „warnings on?“ (включени предупреждения?).<br/><br/><b>Клавишни комбинации на програмата:</b><table border="1"><tr><td>Ctrl + I</td><td>(този) прозорец с информация</td></tr><tr><td>Ctrl + Q</td><td>Изход</td></tr><tr><td>Ctrl + P</td><td>Предпочитания</td></tr><tr><td>Ctrl + L</td><td>еднократно записване на времето за работа в дневника за дейността (работи само, ако програмата qshutdown бива изключена напълно. За да направите това действие постоянно, задайте го в настройките в „Предпочитания“.)</td></tr><tr><td>Ctrl + S</td><td>задаване на изключване на компютъра</td></tr><tr><td>Ctrl + R</td><td>задаване на рестартиране на компютъра</td></tr><tr><td>Ctrl + U</td><td>задаване на заспиване на компютъра към RAM паметта</td></tr><tr><td>Ctrl + H</td><td>задаване на дълбоко заспиване на компютъра</td></tr><tr><td>Ctrl + E</td><td>спиране на обратното броене (само ако обратното броене е започнало и администраторът не е ограничил достъпа)</td></tr><tr><td>Shift + E</td><td>за редактиране на файла с конфигурационни настройки (за изпълняване на това е нужна парола. Ако сте потребител, можете да зададете „празна парола“ (като оставите полете за въвеждане на паролата празно)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-my.ts0000664000175000017500000006576213477731073024153 0ustar chrischris About About qshutdown qshutdown အကြောင်း Version ဗားရှင်း &About &A အကြောင်း &Thanks To &T ကျေးဇူးတင်လွှာ <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Qt ကိုသုံးပြီး</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar ပြက္ခဒိန် Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password စကားဝှက် ကိုပြောင်းမည်။ Retype password: စကားဝှက်ကို ပြန်ရိုက်ပါ။ New password: စကားဝှက်အသစ် - Old password: စကားဝှက်အဟောင်း - The current password is not correct! ယခုစကားဝှက်သည်မမှန်ကန်ပါ The retyped password doesn't match! ပြန်ရိုက်သည့်စကားဝှက်နှစ်ခုသည်မတူညီပါ။ Editor Editor Editor Gui &Minimize! &M ချုံ့မည် Shutdown-time: ပိတ်မည့်အချိန်- Minutes till shutdown: မပိတ်ခင်လိုသည့်မိနစ် - Reboot-time: Minutes till reboot: ပြန်မစခင်လိုသည့်မိနစ် Suspend-time: ဆိုင်းငံ့မည့်အချိန် - Minutes till suspend: မဆိုင်းငံ့ခင်လိုသည့်မိနစ် Hibernate-time: Minutes till hibernate: shutdown in ပိတ်တော့မည့် reboot in ပြန်စတော့မည့် suspend in ဆိုင်းငံ့တော့မည့် hibernate in years နှစ်များ months လများ hours နာရီများ days နေ့များ Res&tore &Minimize &M ချုံ့မည် day နေ့ minutes မိနစ် seconds စက္ကန့်များ Shutdown ပိတ်မည် Reboot စနစ်ပြန်လည်စတင်ရန် Suspend ဆိုင်းငံ့ထားမည် Hibernate လက်ရှိ အခြေအနေတိုင်းမှတ်သား၍ အပြီးထွက်မည် &Lock after start? &L ​ပြန်စပြီးပါက သော့ခတ်ထားမလား။ &Warnings on? &Now! &N ယခုချက်ချင်း You can set a date in the calendar ပြက္ခဒိန်တွင်ရက်စွဲသတ်မှတ်နိုင်ပါသည်။ &OK &O အိုကေ R&eset &e ပြန်စမည် &Quit &Q ထွက် &Info &I သတင်းအချက်အလက် &Logfile &Logfile &Preferences &Preferences &Shutdown &Sလုံး၀ပိတ်မည် &Reboot &R အစကနေပြန်စမည် S&uspend &u ဆိုင်းငံ့ထားမည် &Hibernate Lock settings after countdown started Calendar ပြက္ခဒိန် &File &Fဖိုင် &Help &H အကူအညီ &Settings &Settings &About &A အကြောင်း &Reset &Reset &Configure &Keep proportions Warning သတိပေးချက် Action imminent! Information အချက်အလက် Countdown is not running! အချိန်ကိုနောက်ပြန်ရေတွက်ခြင်းကိုမဖွင့်ထားပါ Turns on/off all warnings သတိပေးချက်များအားလုံးကိုဖွင့်မည်၊ပိတ်ထားမည် About &Qt &Qt အကြောင်း Version ဗားရှင်း Info Info အချက်အလက် PassWord Password စကားဝှက် &Set password &S စကားဝှက်သတ်မှတ်မည် Password: စကားဝှက် − The password is not correct! စကားဝှက်မမှန်ကန်ပါ &Change password &C စကားဝှက်ကိုပြောင်းမည် Preferences Preferences Preferences Enable the &target time at startup Shutdown ပိတ်မည် Shutdown type: ပိတ်မည့်အမျိုးအစား- Target time: Target အချိန်- Minutes to countdown: Font: စာလုံးပုံစံ- Font size 1: စာလုံးအရွယ်အစား ၁ - Font size 2: စာလုံးအရွယ်အစား ၂ - Font size 3: စာလုံးအရွယ်အစား ၃ - Size for log file: သိမ်းမည့်ဖိုင်အတွက်အရွယ်အစား- Reboot စနစ်ပြန်လည်စတင်ရန် Suspend ဆိုင်းငံ့ထားမည် Hibernate လက်ရှိ အခြေအနေတိုင်းမှတ်သား၍ အပြီးထွက်မည် A&utostart &u အလိုအလျောက်စမည် &Hide qshutdown at startup &H qshutdown ကိုစက်စတင်ဖွင့်ဖွင့်ခြင်းတွင် ဖျောက်ထားမည် Lock screen &for suspend and hibernate &Edit configuration file Enable the minute &countdown at startup &Reset settings &Reset settings Size for log file in KB သိမ်းမည့်ဖိုင်အရွယ်အစားKB ဖြင့် "&Lock after start?" "&Lပြန်စပြီးသည့်အချိန်တွင်သော့ခတ်ပိတ်ထားမလား" "&Warnings on?" Log start time of qshutdown and how long it was running L&ogging checkboxes and "now!" button OK and Minimize buttons အိုကေ နှင့် ချုံ့မည့်ခလုတ်များ Labels for example Set a font စာလုံးပုံစံသတ်မှတ်မည် What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? What should be displayed first by default at startup? Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. General အထွေထွေ Advanced အဆင့်မြင့် Suspend method: ဆိုင်းငံ့မည့်နည်းလမ်း- automatic အလိုအလျောက် user defined အသုံးပြုသူမှသတ်မှတ်ထားသော Hibernate method: Hibernate နည်းလမ်း- Shutdown method: လုံး၀ပိတ်မည့်နည်းလမ်း - Reboot method: စက်ကိုပိတ်ပြီးပြန်ဖွင့်နိုင်မည့်နည်းလမ်း- Please input an user specified command for suspend here Gnome session Gnome ကဏ္ဍ KDE session KDE ကဏ္ဍ Please input an user specified command for shutdown here Please input an user specified command for reboot here Please input an user specified command for hibernate here Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? အချိန်ရေတွက်မှု့ပြီးပါက qshutdown ကိုထွက်မလား။ &Start countdown at startup &S စက်စဖွင့်ဖွင့်ခြင်းမှာ အချိန်ရေတွက်မှု့ကိုစမည် Hide qshutdown at startup if "Start countdown" is checked. The File "%1" is not writable! Maybe you just don't have the permissions to do so. ဖိုင် "%1" ကိုရေးလို့မရပါ သင်ခွင့်ပြုချက်မရှိလို့လည်းဖြစ်နိုင်ပါသည်။ Error Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-ru.ts0000664000175000017500000013202113477730373024135 0ustar chrischris About About qshutdown О пакете qshutdown &About &О программе &Thanks To &Благодарности <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">С использованием Qt</span></p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown позволяет осуществлять выключение по времени и обратному отсчёту</p><p >Автор: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Авторские права; 2010-2019, принадлежат Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Используйте <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> или <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> для отправки сообщений об ошибках.</p> Version Версия Calendar Calendar Календарь Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Изменить пароль Retype password: Повторите пароль: New password: Новый пароль: Old password: Старый пароль: The current password is not correct! Текущий пароль не верен! The retyped password doesn't match! Пароли не совпадают! Editor Editor Редактор Gui Minutes till shutdown: Минут до выключения: Shutdown-time: Время выключения: Shutdown Выключить Reboot Перезагрузить Suspend Режим ожидания Hibernate Спящий режим You can set a date in the calendar Вы можете установить дату в календаре Calendar Календарь Lock settings after countdown started Заблокировать настройки после начала обратного отсчёта &Lock after start? &Блокировать после запуска? Turns on/off all warnings Вкл/Выкл все предупреждения &Warnings on? &Включить предупреждения? minutes минуты &OK &OK &Now! &Сейчас! &File &Файл &Help &Справка &Settings &Настройки &Quit &Закончить &Info &Информация &About &О программе &Preferences &Настройки &Reset &Сброс &Logfile &Журнал &Configure &Параметры &Keep proportions &Сохранять пропорции About &Qt Информация о &Qt Version Версия &Minimize &Свернуть R&eset С&брос &Shutdown &Выключение &Reboot &Перезагрузка S&uspend &Ожидание &Hibernate С&пящий режим &Minimize! &Свернуть! Reboot-time: Время перезагрузки: Minutes till reboot: Минут до перезагрузки: Suspend-time: Время перехода в спящий режим: Minutes till suspend: Минут до перехода в спящий режим: Hibernate-time: Спящий режим-время: Minutes till hibernate: Минут до перехода в спящий режим: Warning Предупреждение Action imminent! Событие приближается! Information Информация Countdown is not running! Обратный отсчёт не запущен! shutdown in выключение через reboot in перезагрузка через suspend in переход в ждущий режим через hibernate in переход в спящий режим через years лет months месяцев days дней day день hours часов seconds секунды Res&tore &Восстановить Info Info Информация PassWord Password Пароль &Set password &Настроить пароль Password: Пароль: The password is not correct! Неправильный пароль! &Change password &Изменить пароль Preferences Preferences Параметры &Edit configuration file &Редактирование файла конфигурации &Reset settings С&брос настроек General Общие Shutdown type: Тип выключения: Target time: Контрольное время: Minutes to countdown: Минут до обратного отсчёта: Font: Шрифт: Font size 1: Размер шрифта 1: Font size 2: Размер шрифта 2: Font size 3: Размер шрифта 3: Size for log file: Размер файла системного журнала: What target time should be displayed by default at startup? Какое контрольное время должно отображаться по умолчанию при запуске? How many minutes should be displayed for countdown by default at startup? Сколько минут обратного отсчёта должно отображаться по умолчанию при запуске? Set a font Настройка шрифта Labels for example Метки например OK and Minimize buttons Кнопки OK и Свернуть checkboxes and "now!" button флажки и кнопка "Сейчас!" Size for log file in KB Размер системного журнала в КБ What should be displayed first by default at startup? Что должно отображаться сначала по умолчанию при запуске? Shutdown Выключение Reboot Перезагрузка Suspend Режим ожидания Hibernate Спящий режим Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Отключение значка в трее означает, что нельзя будет открыть qshutdown из трея. Проверьте также настройки параметров "Завершить при закрытии главного окна" и "Скрывать qshutdown после запуска". Если qshutdown работает, а вы хотите снова открыть программу, то просто запустите qshutdown как обычно. После этого qshutdown появится снова. Disable tray &icon Отключить &значок в трее The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Кнопка "закрыть" обычно скрывает главное окно. Отключение функции "скрыть" означает завершение работы qshutdown. &Quit on closing main window За&вершить при закрытии главного окна Enable the &target time at startup Включить &контрольное время при запуске Enable the minute &countdown at startup Включить &обратный отсчёт при запуске A&utostart &Автозагрузка Set if the checkbox for "Lock after start?" should be checked by default at startup Установка флажка "Блокировать после запуска?" по умолчанию при загрузке "&Lock after start?" "Б&локировка после запуска?" Set if the checkbox for "Warnings on?" should be checked by default at startup Установка флажка "Включить предупреждения?" по умолчанию при загрузке "&Warnings on?" "&Включить предупреждения?" &Start countdown at startup &Запуск обратного отсчёта при старте Hide qshutdown at startup if "Start countdown" is checked. Скрыть qshutdown после запуска, если стоит флажок "Начать обратный отсчёт". &Hide qshutdown at startup &Скрывать qshutdown после запуска Log start time of qshutdown and how long it was running Регистрировать время запуска qshutdown и продолжительность работы L&ogging &Журналирование Lock screen &for suspend and hibernate Блокировка экрана &в режиме ожидания и спящем режиме Advanced Дополнительные automatic автоматически Gnome session Сессия Gnome KDE session Сессия KDE user defined по выбору пользователя Suspend method: Переход в режим ожидания: Hibernate method: Переход в спящий режим: Shutdown method: Выключение: Reboot method: Перезагрузка: Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Некоторые системы блокируют, например, выключение, поскольку qshutdown продолжает работу. Настройте hook, если работа qshutdown должна быть завершена после окончания обратного отсчёта. Quit qshutdown after countdown ended? Завершить работу qshutdown после окончания обратного отсчёта? Please input an user specified command for shutdown here Задайте команду для выключения Please input an user specified command for reboot here Задайте команду для перезагрузки Please input an user specified command for suspend here Задайте команду для перехода в режим ожидания Please input an user specified command for hibernate here Задайте команду для перехода в спящий режим Error Ошибка The File "%1" is not writable! Maybe you just don't have the permissions to do so. Файл "%1" не доступен для записи! Возможно, отсутствуют права на данную операцию. Please read this carefully! Прочтите внимательно! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Добро пожаловать в qshutdown! Если вы хотите, чтобы qshutdown, например, завершило работу системы, и вы используете Gnome Shell, то вы можете открыть диалоговое окно выключения оттуда. Если вы хотите завершить работу системы напрямую, то перейдите в параметры и выберите способ выключения: ConsoleKit или что-то другое. Сообщения об ошибках или вопросы, касающиеся перевода, вы можете оставить по адресу https://launchpad.net/~hakaishi. QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown покажет предупреждение 3 раза, когда будет оставаться менее 70 секунд.<br/><br/>Программа использует qdbus для отправки запроса shutdown/reboot/suspend/hibernate менеджеру gnome- или kde-session-manager, в HAL/ConsoleKit/DeviceKit/UPower; а если это не сработает, то будет использована команда 'sudo shutdown'. (Внимание: при отправке запроса на выключение в HAL или ConsoleKit, а также при использовании команды shutdown, сессия не сохраняется. Если используется команда shutdown, то программа может только завершить работу и выполнить перезагрузку.) Если после наступления времени отключения или перезагрузки ничего не происходит, то это означает отсутствие прав на использование команды shutdown. В этом случае можно поступить следующим образом:<br/><br/>Скопируйте следующее в терминал:<pre>EDITOR=nano sudo -E visudo</pre>и добавьте строку:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>, где * заменяет имя пользователя или группы %group.<br/><br/>Максимальное время обратного отсчёта составляет 1440 минут (24 часа).<br/>Файл конфигурации (и системного журнала) находится по адресу <i>~/.qshutdown/</i> (в системах Linux/Unix).<br/><br/><b>Для администраторов:</b><br/>Если вы хотите запустить qshutdown с функцией "родительского контроля" для всех пользователей, то вы можете выполнить "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" и установить параметру Lock_all в /root/.qshutdown/qshutdown.conf значение true. Следует помнить, что необходимо запустить qshutdown один раз, чтобы создать qshutdown.conf. Потом необходимо добавить следующую строку для sudoers (как описано выше):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Если вы забыли пароль, то просто удалите всю строку, начиная со слова "Password", вручную из qshutdown.conf.<br/><br/><b>Советы по использованию:</b><br/>Чтобы qshutdown вам не надоедал, отключите функцию "Включить предупреждения?".<br/><br/><b>Горячие клавиши:</b><table border="1"><tr><td>Ctrl+I</td><td>Окно информации</td></tr><tr><td>Ctrl+Q</td><td>Завершить</td></tr><tr><td>Ctrl+P</td><td>Параметры</td></tr><tr><td>Ctrl+L</td><td>Запись информации о работе в журнал (только при завершении работы qshutdown. Чтобы данное действие выполнялось постоянно, необходимо настроить журналирование в параметрах.)</td></tr><tr><td>Ctrl+S</td><td>Выключение</td></tr><tr><td>Ctrl+R</td><td>Перезапуск</td></tr><tr><td>Ctrl+U</td><td>Режим ожидания с сохранением в RAM</td></tr><tr><td>Ctrl+H</td><td>Спящий режим</td></tr><tr><td>Ctrl+E</td><td>Остановка обратного отсчёта (только если обратный отсчёт запущен, а доступ не ограничен администратором)</td></tr><tr><td>Shift+E</td><td>Редактирование файла конфигурации (требуется пароль. Если вы пользователь, то можете установить "без пароля" (оставив поле пароля пустым)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-fr.ts0000664000175000017500000007540413477730157024131 0ustar chrischris About About qshutdown À propos de qshutdown Version Version &About À &propos &Thanks To &Remerciements <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:18pt;">qshutdown</span><br /><span style=" font-size:12pt;">Utilise Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, un outil d'extinction à base de comptes à rebours</p><p >Auteur: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, par Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Merci d'utiliser <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> ou <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> pour signaler des anomalies.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendrier Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Changer de mot de passe Retype password: Ressaisissez le mot de passe: New password: Nouveau mot de passe: Old password: Ancien mot de passe: The current password is not correct! Le mot de passe est incorrect! The retyped password doesn't match! Les mots de passe ne correspondent pas! Editor Editor Éditeur Gui &Minimize! &Réduire! Shutdown-time: Heure d'arrêt: Minutes till shutdown: Minutes avant l'extinction: Reboot-time: Heure de redémarrage: Minutes till reboot: Minutes avant le redémarrage: Suspend-time: Heure de mise en veille: Minutes till suspend: Minutes avant mise en veille: Hibernate-time: Heure d'hibernation: Minutes till hibernate: Minutes avant l'hibernation: shutdown in Extinction dans reboot in Redémarrage dans suspend in Mise en veille dans hibernate in Hibernation dans years ans months mois hours heures days jours Res&tore Res&taurer &Minimize &Minimiser day jour minutes minutes seconds secondes Shutdown Arrêter Reboot Redémarrer Suspend Mettre en veille Hibernate Hiberner &Lock after start? Verroui&ller après le démarrage? &Warnings on? Acti&ver les alertes? &Now! &Maintenant! You can set a date in the calendar Vous pouvez choisir une date dans le calendrier &OK &OK R&eset Réinitialis&er &Quit &Quitter &Info &Info &Logfile Fichier journa&l &Preferences &Préférences &Shutdown &Éteindre &Reboot &Redémarrer S&uspend Mettre en &veille &Hibernate &Hiberner Lock settings after countdown started Verrouiller les paramètres après le début du compte à rebours Calendar Calendrier &File &Fichier &Help &Aide &Settings &Paramêtres &About À &propos &Reset &Réinitialiser &Configure &Configuration &Keep proportions Conserver les &proportions Warning Avertissement Action imminent! Action imminente! Information Information Countdown is not running! Le compte à rebours n'est pas lancé! Turns on/off all warnings Activer ou non les alertes About &Qt À propos de &Qt Version Version Info Info Info PassWord Password Mot de passe &Set password &Définir le mot de passe Password: Mot de passe: The password is not correct! Le mot de passe est incorrect! &Change password &Changer le mot de passe Preferences Preferences Préférences Enable the &target time at startup Sélec&tionner le mode «heure cible» au démarrage Shutdown Extinction Shutdown type: Type d'extinction: Target time: Heure cible: Minutes to countdown: Minutes à décompter: Font: Police de caractère: Font size 1: Taille de police 1: Font size 2: Taille de police 2: Font size 3: Taille de police 3: Size for log file: Taille du journal: Reboot Redémarrer Suspend Mise en veille Hibernate Hibernation A&utostart Lancement a&utomatique &Hide qshutdown at startup Cac&her qshutdown au lancement Lock screen &for suspend and hibernate &Verrouiller l'écran pour la mise en veille et l'hibernation &Edit configuration file Édit&er le fichier de configuration Enable the minute &countdown at startup Séle&ctionner le mode «minuterie» au démarrage &Reset settings &Réinitialiser la configuration Size for log file in KB Taille du journal (en Ko) "&Lock after start?" «Verroui&ller après le démarrage?» "&Warnings on?" «Acti&ver les alertes?» Log start time of qshutdown and how long it was running Journalise l'heure de démarrage de qshutdown et son temps d'activité L&ogging &Journalisation checkboxes and "now!" button Cases à cocher et boutton «Maintenant!» OK and Minimize buttons Boutons OK et Minimiser Labels for example Libellés (entre autre) Set a font Sélectionnez une police de caractère What target time should be displayed by default at startup? Quelle heure cible doit être sélectionnée par défaut au démarrage? How many minutes should be displayed for countdown by default at startup? Combien de minutes de compte à rebours doivent-être sélectionnées par défaut au démarrage? What should be displayed first by default at startup? Quelle doit être l'option sélectionnée par défaut au démarrage? Set if the checkbox for "Lock after start?" should be checked by default at startup Définit si la case «Verrouiller après démarrage?» doit être cochée par défaut au démarrage Set if the checkbox for "Warnings on?" should be checked by default at startup Définit si la case «Activer les alertes?» doit être cochée par défaut au démarrage. The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Par défaut, le bouton de fermeture permet de masquer la fenêtre principale. Cette option permet de désactiver ce comportement. General Générale Advanced Avancée Suspend method: Méthode de mise en veille: automatic automatique user defined Définit par l'utilisateur Hibernate method: Méthode d'hibernation: Shutdown method: Méthode d'extinction: Reboot method: Méthode de redémarrage: Please input an user specified command for suspend here Saisissez ici une commande spécifique pour la mise en veille Gnome session Gnome session KDE session KDE session Please input an user specified command for shutdown here Saisissez ici une commande spécifique pour l'extinction Please input an user specified command for reboot here Saisissez ici une commande spécifique pour le redémarrage Please input an user specified command for hibernate here Saisissez ici une commande spécifique pour l'hibernation Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Certains systèmes peuvent bloquer, par exemple, l'extinction car qshutdown est toujours en cours de fonctionnement. Cette option définit si qshutdown doit se fermer après la fin du compte à rebours. Quit qshutdown after countdown ended? Quitter qshutdown après la fin du compte à rebours? &Start countdown at startup Démarrer le compte à rebour&s au démarrage Hide qshutdown at startup if "Start countdown" is checked. Masquer qshutdown au démarrage si «Démarrer le compte à rebours au démarrage» est sélectionné. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Le fichier «%1» n'est pas accessible en écriture! Il vous manque peut-être juste les droits correspondants. Error Erreur Please read this carefully! Veuillez lire ceci avec attention! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Bienvenue dans qshutdown! Si vous souhaitez, par exemple, éteindre le système et que vous utilisez l'interface Gnome, alors vous souhaiterez certainement le faire depuis une boîte de dialogue. Si vous désirez une extinction directe, veuillez alors vous rendre dans les préférences et la configuration de la méthode d'arrêt ConsoleKit ou autre. Veuillez vous rendre sur https://launchpad.net/~hakaishi pour signaler les bogues ou pour quoi que ce soit concernant les traductions. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. La désactivation de l'icône signifie qu'il ne sera plus possible de restaurer qshutdown depuis la zone de notifications. Veuillez également vérifier «[nbsp]Quitter à la fermeture de la fenêtre principale[nbsp]» et «[nbsp]Masquer qshutdown au démarrage[nbsp]». Si qshutdown est toujours en cours d'exécution et que vous souhaitez le faire réapparaître, alors exécuter de nouveau qshutdown tout comme comme vous le feriez normalement. Il réapparaîtra. Disable tray &icon Désactiver l'&icône &Quit on closing main window &Quitter à la fermeture de la fenêtre principale QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown affichera 3 avertissements durant les 70 dernières secondes du compte à rebours.<br/><br/>Ce programme utilise qdbus pour envoyer des requêtes d'extinction/redémarrage/mise en veille/hibernation à, au choix, gnome- ou kde- session-manager, HAL, ConsoleKit, DeviceKit ou UPower. Si aucun des précédents ne fonctionne, la commande «sudo shutdown» sera utilisée (notez que lors de l'envoi de la requête d'extinction à HAL ou ConsoleKit ou lorsque la commande «shutdown» est utilisée, la session ne sera jamais sauvegardée. Si la commande «shutdown» est utilisée, seule l'extinction et le redémarrage seront disponibles). Par conséquent, si rien ne se passe après la fin du compte à rebours, cela signifie que l'utilisateur courant n'a pas le droit d'utiliser la commande «shutdown». Dans ce cas, vous pouvez suivre la procédure suivante:<br/><br/>Copiez ce qui suit dans un terminal:<pre>EDITOR=nano sudo -E visudo</pre> et ajoutez cette ligne:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> en remplaçant «*» par le nom de l'utilisateur ou du groupe.<br/><br/>Le nombre maximum de minutes par compte à rebours est 1440 (soit 24 heures).<br/>Sous Linux/Unix, le fichier de configuration (ainsi que le journal) est situé dans <i>~/.qshutdown/</i>.<br/><br/><b>Pour les administrateurs:</b><br/>Si vous souhaitez que qshutdown fonctionne avec le «verrou parental» pour tous les utilisateurs, vous pouvez exécuter «sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/» et affecter l'option «Lock_all» à «true» dans /root/.qshutdown/qshutdown.conf. Notez que qshutdown doit-être lancé au moins une fois afin de générer le fichier qshudown.conf. Il est également nécessaire d'ajouter la ligne suivante au fichier «sudoer» (comme expliqué ci-dessus):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Si vous avez oublié votre mot de passe, supprimez simplement la ligne commençant par «Password» dans qshutdown.conf.<br/><br/><b>Astuce:</b><br/>Si vous voulez que qshutdown arrête de vous déranger, décochez simplement la case «Activer les alertes?».<br/><br/><b>Raccourcis clavier:</b><table border="1"><tr><td>Ctrl+I</td><td>Afficher cette fenêtre</td></tr><tr><td>Ctrl+Q</td><td>Quitter</td></tr><tr><td>Ctrl+P</td><td>Préférences</td></tr><tr><td>Ctrl+L</td><td>Écrire le temps d'utilisation dans le journal lorsque qshutdown quittera (pour rendre ce comportement permanent, rendez-vous dans les préférences).</td></tr><tr><td>Ctrl+S</td><td>Sélectionner l'extinction</td></tr><tr><td>Ctrl+R</td><td>Sélectionner le redémarrage</td></tr><tr><td>Ctrl+U</td><td>Sélectionner la mise en veille</td></tr><tr><td>Ctrl+H</td><td>Sélectionner l'hibernation</td></tr><tr><td>Ctrl+E</td><td>Arrêter le compte à rebours (si celui-ci est en route et si l'administrateur n'a pas restreint l'accès)</td></tr><tr><td>Maj+E</td><td>Éditer le fichier de configuration (un mot de passe sera nécessaire. Si vous n'êtes qu'un simple utilisateur, vous pouvez utiliser un mot de passe vide).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-uz.ts0000664000175000017500000007755613477730624024171 0ustar chrischris About About qshutdown qshutdown ҳақида Version Версияси &About &Ҳақида &Thanks To &Раҳмат, сизга, <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Qt'дан фойдаланиш</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, вақт ва ўчириш вақти ҳисобига асосланган ўчириш воситаси</p><p >Муаллифи: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Муаллифлик ҳуқуқи &copy; 2010-2019, Christian Metscher'га тегишли</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Марҳамат, <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> сайтидан фойдаланинг ёки носозликларни хабар бериш <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> сайтидан фойдаланинг.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Календар Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Махфий сўзни ўзгартириш Retype password: Махфий сўзни қайта киритинг: New password: Янги махфий сўз: Old password: Эски махфий сўз: The current password is not correct! Жорий махфий сўз хато! The retyped password doesn't match! Кейинги киритилган махфий сўзингиз олдингисидан фарқли! Editor Editor Таҳрирчи Gui &Minimize! &Ёиғиш! Shutdown-time: Ўчиш вақти: Minutes till shutdown: Ўчгунгача дақиқалар: Reboot-time: Ўчиб-ёниш вақти: Minutes till reboot: Ўчиб-ёнгунга қадар дақиқалар: Suspend-time: Кутиш усули вақти: Minutes till suspend: Кутиш усулига қадар дақиқалар: Hibernate-time: Уйқуга кетиш вақти: Minutes till hibernate: Уйқуга кетганга қадар дақиқалар: shutdown in ўчириш: reboot in ўчириб-ёқиш: suspend in кутиш усулига ўтиш: hibernate in уйқуга кетиш: years йиллар months ойлар hours соатлар days кунлар Res&tore Қайта &тиклаш &Minimize Й&иғиш day кун minutes дақиқалар seconds сониялар Shutdown Ўчириш Reboot Ўчириб-ёқиш Suspend Кутиш усули Hibernate Уйқуга кетиш усули &Lock after start? Ишга туширилгандан сўнг &қулфлансинми? &Warnings on? &Огоҳлантирилсинми? &Now! &Ҳозир! You can set a date in the calendar Сиз вақтни тақвимда ўрната оласиз &OK &OK R&eset Т&иклаш &Quit Чи&қиш &Info &Маълумот &Logfile &Маълумотлар файли &Preferences &Мослаш &Shutdown Ў&чириш &Reboot &Ўчириб-ёқиш S&uspend К&тиш усулига ўтиш &Hibernate &Уйқуга кетиш Lock settings after countdown started Вақт ҳисоби ишга тушгандан сўнг мослашларни қулфлаш Calendar Тақвим &File &Файл &Help &Ёрдам &Settings &Мосламалар &About &Ҳақида &Reset &Тиклаш &Configure &Мослаш &Keep proportions Пропорцияни &сақлаш Warning Диққат Action imminent! Амални бекор қилиб бўлмайди! Information Маълумот Countdown is not running! Тескари вақт ҳисоби ишга туширилмаган! Turns on/off all warnings Огоҳлантиришларни ўчириш/ёқиш About &Qt &Qt ҳақида Version Версияси Info Info Маълумот PassWord Password Махфий сўз &Set password Махфий сўз &ўрнатиш Password: Махфий сўз: The password is not correct! Махфий сўз - хато! &Change password Махфий сўзни &ўзгартириш Preferences Preferences Параметрлар Enable the &target time at startup Ишга тушиш &мўлжал вақтини ёқиш Shutdown Ўчириш Shutdown type: Ўчириш тури: Target time: Мўлжалланган вақт: Minutes to countdown: Тескари ҳисоб вақти дақиқалари: Font: Шрифт: Font size 1: Шрифт ҳажми 1: Font size 2: Шрифт ҳажми 2: Font size 3: Шрифт ҳажми 3: Size for log file: Лог файл ҳажми: Reboot Ўчириб-ёқиш Suspend Кутиш усули Hibernate Уйқуга кетиш усули A&utostart А&вто ишга тушиш &Hide qshutdown at startup qshutdown ишга тушганда &яшириш Lock screen &for suspend and hibernate Кутиш ва уйқуга кетиш усули &учун экранни қулфлаш &Edit configuration file Мослаш файлини &ўзгартириш Enable the minute &countdown at startup Ушбу дақиқа ва &тескари ҳисоб вақти ишга туширилганда ёқилсин &Reset settings Мослашларни &тиклаш Size for log file in KB Маълумот файлининг КБлардаги ҳажми "&Lock after start?" "Ишга тушганда &қулфлансинми?" "&Warnings on?" "&Огоҳлантирилсинми?" Log start time of qshutdown and how long it was running qshutdown'нинг ишга тушиш вақти ва қанча вақт ишлаганини журналга қўшиш L&ogging Л&оглаш checkboxes and "now!" button байроқча ва "Ҳозир!" тугмаси OK and Minimize buttons ОК ва тугмаларни йиғиш Labels for example Намуна учун ёрлиқлар Set a font Шрифт ўрнатиш What target time should be displayed by default at startup? Стандарт ҳолатда ишга тушганда, қанча мўлжал вақт кўриниши керак? How many minutes should be displayed for countdown by default at startup? Стандарт ҳолатда ишга тушганда, тескари вақт ҳисоби учун қанча дақиқа кўриниши керак? What should be displayed first by default at startup? Стандарт ҳолатда ишга тушганда, биринчи нима кўриниши керак? Set if the checkbox for "Lock after start?" should be checked by default at startup Агарда байроқча "Ишга тушгандан сўнг қулфлансинми?" учун ўрнатилган бўлса, стандарт ҳолатда ишга тушган вақтда текширилади Set if the checkbox for "Warnings on?" should be checked by default at startup Агарда байроқча "Огоҳлантиришлар ёқилсинми?" учун ўрнатилган бўлса, стандарт ҳолатда ишга тушган вақтда текширилади The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Одатда яшириш тугмаси асосий ойнани яширади. Яширишни ўчириш - qshutdown'дан тўғридан-тўғри чиқиб кетиш деганидир. General Умумий Advanced Қўшимча Suspend method: Кутиш усули: automatic автоматик user defined аниқ фойдаланувчи Hibernate method: Уйқуга кетиш усули: Shutdown method: Ўчириш усули: Reboot method: Ўчириб-ёқиш усули: Please input an user specified command for suspend here Марҳамат, кутиш усулига ўтиш учун бу ерга фойдаланувчи кўрсатган буйруқни киритинг Gnome session Gnome сеанси KDE session KDE сеанси Please input an user specified command for shutdown here Марҳамат, ўчириш учун бу ерга фойдаланувчи кўрсатган буйруқни киритинг Please input an user specified command for reboot here Марҳамат, ўчириб-ёқиш учун бу ерга фойдаланувчи кўрсатган буйруқни киритинг Please input an user specified command for hibernate here Марҳамат, уйқуга кетиш учун бу ерга фойдаланувчи кўрсатган буйруқни киритинг Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Баъзи тизим блокланган, масалан, ўчириш, чунки qshutdown ҳалигача ишламоқда. Агар тескари ҳисоб тугагандан сўнг qshutdown`дан чиқиш керак бўлса, унга "тўғри" белгисини белгиланг. Quit qshutdown after countdown ended? Тескари ҳисоб вақти тугаганда qshutdown дастуридан чиқилсинми? &Start countdown at startup Тескари ҳисоб вақтини тизим юкланганда &ишга тушириш Hide qshutdown at startup if "Start countdown" is checked. "Тескари ҳисоб вақти ишга тушганда" текширилса, qshutdown ишга тушиш вақтида яширилсин. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Файл "%1" ёзиб бўлмайди! Балки, сизга ўзгартиришга рухсат берилмагандир. Error Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-tr.ts0000664000175000017500000007345513477730276024155 0ustar chrischris About About qshutdown qshutdown hakkında Version Sürüm &About &Hakkında &Thanks To &Teşekkürler <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Qt Kullanılarak</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, bir süreli ve geri sayımlı kapatma aracı</p><p >Yazar: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Telif Hakkı &copy; 2010-2019, Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Lütfen hata raporları için <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> veya <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> kullanın.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Takvim Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Parolayı Değiştir Retype password: Parolayı tekrar giriniz: New password: Yeni parola: Old password: Eski parola: The current password is not correct! Şu anki parola doğru değil! The retyped password doesn't match! Yeniden yazılan parola uyuşmuyor! Editor Editor Düzenleyici Gui &Minimize! &Küçült! Shutdown-time: Kapanma zamanı: Minutes till shutdown: Kapatmaya kalan dakika: Reboot-time: Yeniden başlatma zamanı: Minutes till reboot: Yeniden başlatmaya kalan dakika: Suspend-time: Askıya alma zamanı: Minutes till suspend: Askıya almaya kalan dakika: Hibernate-time: Bekletme zamanı: Minutes till hibernate: Beklemeye kalan dakika: shutdown in kapanıyor reboot in yeniden başlatılıyor suspend in askıya alınıyor hibernate in beklemeye geçiyor years yıl months ay hours saat days gün Res&tore &Geri Yükle &Minimize &Küçült day gün minutes dakika seconds sâniye Shutdown Bilgisayarı Kapat Reboot Yeniden Başlat Suspend Askıya Al Hibernate Beklet &Lock after start? Başladıktan sonra ki&litlensin mi? &Warnings on? &Uyarılar açık mı? &Now! &Şimdi! You can set a date in the calendar Takvimden bir târih seçebilirsiniz &OK &Tamam R&eset &Sıfırla &Quit &Çıkış &Info &Bilgi &Logfile &Kayıt dosyası &Preferences &Tercihler &Shutdown &Bilgisayarı Kapat &Reboot &Yeniden Başlat S&uspend &Uyku &Hibernate &Hazırda Beklet Lock settings after countdown started Geri sayım başladıktan sonra ayarları kilitle Calendar Takvim &File &Dosya &Help &Yardım &Settings &Ayarlar &About &Hakkında &Reset &Sıfırla &Configure &Yapılandır &Keep proportions &Ana pencere orantılarını sâbit tut Warning Uyarı Action imminent! Az kaldı! Information Bilgilendirme Countdown is not running! Geri sayım başlatılmadı! Turns on/off all warnings Bütün uyarıları açar/kapatır About &Qt &Qt Hakkında Version Sürüm Info Info Bilgi PassWord Password Parola &Set password &Parola belirle Password: Parola: The password is not correct! Parola yanlış! &Change password Parolayı &değiştir Preferences Preferences Tercihler Enable the &target time at startup &Hedef zamanı başlangıçta etkinleştir Shutdown Bilgisayarı Kapat Shutdown type: Kapatma türü: Target time: Hedef zaman: Minutes to countdown: Geri sayıma kalan dakika: Font: Yazı tipi: Font size 1: Yazı tipi boyutu 1: Font size 2: Yazı tipi boyutu 2: Font size 3: Yazı tipi boyutu 3: Size for log file: Kayıt dosyası boyutu: Reboot Yeniden Başlat Suspend Askıya Al Hibernate Hazırda Beklet A&utostart &Özişler Başlat &Hide qshutdown at startup &qshutdown'ı başlangıçta gizle Lock screen &for suspend and hibernate Bekleme ve u&ykuda ekranı kilitle &Edit configuration file Yapılandırma dosyasını düz&enle Enable the minute &countdown at startup Başlanfıçta dakika &geri sayımını etkinleştir &Reset settings Ayarları sıfı&rla Size for log file in KB Günlük dosyasının KB cinsinden boyutu "&Lock after start?" "&Başladıktan sonra kilitlensin mi?" "&Warnings on?" "&Uyarılar açık mı?" Log start time of qshutdown and how long it was running qshutdown'ın günlük başlama zamanı ve ne kadar süredir çalışıyor olduğu L&ogging G&ünlükleme checkboxes and "now!" button işaret kutuları ve "şimdi!" düğmesi OK and Minimize buttons TAMAM ve Simge Durumuna Küçült düğmeleri Labels for example Örneğin etiketler Set a font Bir yazı tipi ayarlayın What target time should be displayed by default at startup? Başlangıçta öntanımlı hangi hedef zamanı görüntülenmeli? How many minutes should be displayed for countdown by default at startup? Geri sayım için başlangıçta öntanımlı olarak kaç dakika gösterilsin? What should be displayed first by default at startup? Başlangıçta öntanımlı ilk ne görüntülenmeli? Set if the checkbox for "Lock after start?" should be checked by default at startup "Başlangıçtan sonra kilitlensin mi?" işaret kutusunun başlangıçta işaretlenip işaretlenmemesini ayarla Set if the checkbox for "Warnings on?" should be checked by default at startup "Uyarılar açık mı?" işaret kutusunun başlangıçta işaretlenip işaretlenmemesini ayarla The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Kapat düğmesi genellikle ana pencereyi gizler. Gizlemeyi kapatmak, qshutdown'ın bunun yerine kapatılmasını sağlar. General Genel Advanced Gelişmiş Suspend method: Askıya alma yöntemi: automatic otomatik user defined kullanıcı tanımlı Hibernate method: Bekletme yöntemi: Shutdown method: Kapatma yöntemi: Reboot method: Yeniden başlatma yöntemi: Please input an user specified command for suspend here Buraya lütfen askıya alma için kullanıcı tanımlı bir komut girin Gnome session Gnome oturumu KDE session KDE oturumu Please input an user specified command for shutdown here Buraya lütfen kapatmak için kullanıcı tanımlı bir komut girin Please input an user specified command for reboot here Buraya lütfen yeniden başlatma için kullanıcı tanımlı bir komut girin Please input an user specified command for hibernate here Buraya lütfen bekletme için kullanıcı tanımlı bir komut girin Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Bazı sistemler qshutdown hala çalıştığı için kapatmayı engeller. qshutdown'ın geri sayımdan sonra çıkmasını isterseniz bir kanca ayarlayın. Quit qshutdown after countdown ended? Geri sayım bittikten sonra qshutdown kapatılsın mı? &Start countdown at startup &Başlangıçta geri sayımı başlat Hide qshutdown at startup if "Start countdown" is checked. "Geri sayımı başlat" işaretliyse başlangıçta qshutdown'ı gizle. The File "%1" is not writable! Maybe you just don't have the permissions to do so. "%1" dosyası yazılabilir değil! Belki yazmak için yetkiye sahip olmayabilirsiniz. Error Hata Please read this carefully! Lütfen bunu dikkatle okuyun! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Qshutdown'a hoş geldiniz! Eğer qshutdown'ı sistemi kapatmak için kullanmak isterseniz ve Gnome Kabuğu kullanıyorsanız, muhtemelen oradan bir kapatma uyarısı alacaksınız. Doğrudan bir kapatma isterseniz, lütfen tercihler ve ayarlar içerisinden kapatma yöntemini ConsoleKit veya başka bir yöntem olarak ayarlayın. Lütfen hata raporları ve çeviriler ile ilgili konularda https://launchpad.net/~hakaishi adresini ziyaret edin. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> 70 saniyeden az kalmışsa qshutdown kendini 3 kez uyarı olarak gösterecektir.<br/><br/>Bu program gnome- veya kde-session-manager içerisinde bir kapatma/yeniden başlatma/askıya alma/bekletme talebi için qdbus kullanarak HAL/ConsoleKit/DeviceKit/UPower'a ulaşır. Bunların hiçbiri çalışmazsa, 'sudo shutdown' komutu kullanılacaktır (HAL veya ConsoleKit'e kapatma talebi gönderilirken, Oturum asla kaydedilmez, eğer kapatma komutu kullanılırsa, program sadece bilgisayarı kapatabilir veya yeniden başlatabilir). Eğer kapatma veya yeniden başlatma zamanı dolduğunda herhangi bir şey olmazsa, kapatma komutundaki izinlerde bir sorun var demektir. Bu durumda şunu izleyin:<br/><br/>Aşağıdaki metni bir uçbirime yapıştırın:<pre>EDITOR=nano sudo -E visudo</pre>ve şu satırı ekleyin:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>Burada * kullanıcı adını veya % grup adını temsil eder.<br/><br/>Azami geri_sayım dakikası 1440'tür (24 saat).<br/>Yapılandırma dosyası (ve günlük dosyası) <i>~/.qshutdown/</i> (Linux/Unix altında) bulunur.<br/><br/><b>Yöneticiler için:</b><br/>Eğer qshutdown'ı her kullanıcı için "aile kilidi" ile çalıştırmak isterseniz, "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" yapabilir ve /root/.qshutdown/qshutdown.conf içerisindeki Lock_all değerini true ayarlayabilirsiniz. Bu dosyanın oluşturulabilmesi için qshutdown'ın en az bir kere çalıştırılmış olması gerektiğini göz önüne alın. Ayrıca şu satırın da sudoers içerisine (yukarıdaki gibi) eklenmesi gereklidir:<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Eğer parola ayarlamayı unutursanız, basitçe qshutdown.conf dosyasındaki "Password" ile başlayan tüm satırı kaldırın.<br/><br/><b>Kullanım ipuçları:</b><br/>Qshutdown'ın sizi rahatsız etmesini önlemek isterseniz, sadece "uyarılar açık mı?" seçeneğinin işaretini kaldırın.<br/><br/><b>Kısayollar:</b><table border="1"><tr><td>Ctrl+I</td><td>(bu) bilgi penceresi</td></tr><tr><td>Ctrl+Q</td><td>Çık</td></tr><tr><td>Ctrl+P</td><td>Tercihler</td></tr><tr><td>Ctrl+L</td><td>çalışma zamanını bir kez günlük dosyasına yaz (sadece qshutdown çıkarsa çalışır. Kalıcı olarak ayarlamak için tercihlerde ayarlayın.)</td></tr><tr><td>Ctrl+S</td><td>kapatmak üzere ayarla</td></tr><tr><td>Ctrl+R</td><td>yeniden başlatmak üzere ayarla</td></tr><tr><td>Ctrl+U</td><td>RAM'e askıya almak üzere ayarla</td></tr><tr><td>Ctrl+H</td><td>beklemeye almak üzere ayarla</td></tr><tr><td>Ctrl+E</td><td>geri sayımı başlat (sadece geri sayım başladıysa ve yönetici erişimi kısıtlamadıysa)</td></tr><tr><td>Shift+E</td><td>yapılandırma dosyasını düzenlemek için (bunun için bir parola gereklidir. Eğer bir kullanıcıysanız, bir "boş parola" belirleyebilirsiniz (parola alanını boş bırakın)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-zh_TW.ts0000664000175000017500000007175513477730204024553 0ustar chrischris About About qshutdown 關於qshutdown Version 版本 &About 關於(&A) &Thanks To 感謝(&T) <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">使用 Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown是一種以時間倒數機制的關機工具</p><p >作者:Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >請使用 <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> 來回報臭蟲。</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar 行事曆 Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password 變更密碼 Retype password: 重新輸入密碼: New password: 新的密碼: Old password: 舊的密碼: The current password is not correct! 當前的密碼不正確! The retyped password doesn't match! 重新嘗試後的密碼不正確! Editor Editor 編輯器 Gui &Minimize! &最小化! Shutdown-time: 關機時間: Minutes till shutdown: 分鐘直到關機: Reboot-time: 重新開機時間: Minutes till reboot: 分鐘直到重新開機: Suspend-time: 暫停時間: Minutes till suspend: 分鐘直到暫停: Hibernate-time: 休眠時間: Minutes till hibernate: 分鐘直到休眠: shutdown in 關機時間 reboot in 重開機時間 suspend in 暫停時間 hibernate in 休眠時間 years months hours days Res&tore 恢復(&T) &Minimize 最小化(&M) day minutes seconds Shutdown 關機 Reboot 重新開機 Suspend 暫停 Hibernate 休眠 &Lock after start? 鎖定後開始?(&L) &Warnings on? 警告(&W)? &Now! 現在(&N)! You can set a date in the calendar 您可以在行事曆裡設定一個日期 &OK 確定(&O) R&eset 重置(&E) &Quit 結束(&Q) &Info 訊息(&I) &Logfile 紀錄檔(&L) &Preferences 偏好設定(&P) &Shutdown 關機(&S) &Reboot 重新開機(&R) S&uspend 暫停(&U) &Hibernate 休眠(&H) Lock settings after countdown started 在開始到數時計時後鎖住設定 Calendar 行事曆 &File 檔案(&F) &Help 幫助(&H) &Settings 設定(&S) &About 關於(&A) &Reset 重置(&R) &Configure 設定(&C) &Keep proportions 保持比例(&K) Warning 警告 Action imminent! 即將發生的動作! Information 信息 Countdown is not running! 倒數計時沒有執行! Turns on/off all warnings 開啟或關閉所有警告 About &Qt 關於 &Qt Version 版本 Info Info 信息 PassWord Password 密碼 &Set password 設定密碼(&S) Password: 密碼: The password is not correct! 密碼不正確! &Change password 變更密碼(&C) Preferences Preferences 偏好設定 Enable the &target time at startup 在啟動時啟用這個目標時間 Shutdown 關機 Shutdown type: 關機類型: Target time: 目標時間: Minutes to countdown: 倒數計時的分鐘: Font: 字型: Font size 1: 字型大小1: Font size 2: 字型大小2: Font size 3: 字型大小3: Size for log file: 紀錄檔的大小限制 Reboot 重新開機 Suspend 暫停 Hibernate 休眠 A&utostart 自動開始(&A) &Hide qshutdown at startup 在啟動後隱藏qshutdown(&H) Lock screen &for suspend and hibernate 對於暫停和休眠鎖住螢幕(&F) &Edit configuration file 編輯設定檔(&E) Enable the minute &countdown at startup 在啟動後啟用分的倒數計時(&C) &Reset settings 重新設定(&R) Size for log file in KB 紀錄檔案的大小(KB) "&Lock after start?" "在開始後鎖定(&L)?" "&Warnings on?" "警告(&W)?" Log start time of qshutdown and how long it was running qshutdown的紀錄開始時間和多久 它被運行 L&ogging 紀錄中(&L) checkboxes and "now!" button 『選擇框』和『現在!』的按鈕 OK and Minimize buttons 『確定』和『最小化』的按鈕 Labels for example 範例標籤 Set a font 設定字型 What target time should be displayed by default at startup? 什麼樣的目標時間會被顯示 默認情況下的啟動? How many minutes should be displayed for countdown by default at startup? 有多少分鐘會被顯示 對於默認情況下啟動的倒數計時? What should be displayed first by default at startup? 什麼是會第一個顯示 默認情況下啟動? Set if the checkbox for "Lock after start?" should be checked by default at startup 設定如果『選擇框』有選擇"在啟動後鎖定?" 將在啟動的默認下檢查 Set if the checkbox for "Warnings on?" should be checked by default at startup 設定如果這個『選擇框』有選擇"警告"? 將會檢查啟動下的預設值 The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. 關閉的按鈕平常隱藏主要的視窗. 禁止隱藏的方法,然後qshutdown會用退出來替代。 General 一般 Advanced 進階 Suspend method: 暫停方法: automatic 自動 user defined 使用者自訂 Hibernate method: 休眠方法: Shutdown method: 關機方法: Reboot method: 重新開機方法: Please input an user specified command for suspend here 請在這裡對於『暫停』輸入使用者特定的指令 Gnome session Gnome session KDE session KDE session Please input an user specified command for shutdown here 請在這裡對於『關機』輸入使用者特定的指令 Please input an user specified command for reboot here 請在這裡對於『重新開機』輸入使用者特定的指令 Please input an user specified command for hibernate here 請在這裡對於『休眠』輸入使用者特定的指令 Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. 有些系統區塊針對關機的範例 因為qshutdown目前仍然在執行中。設定一個監控,當 qshutdown將在倒數計時結束後關閉。 Quit qshutdown after countdown ended? 在倒數計時結束後關閉qshutdown? &Start countdown at startup 在啟動後開始倒數計時&(S) Hide qshutdown at startup if "Start countdown" is checked. 在啟動後隱藏qshutdown,如果 已經檢查過"開始倒數計時"。 The File "%1" is not writable! Maybe you just don't have the permissions to do so. 這個檔案 "%1" 沒有辦法寫入! 可能您沒有寫入的權限。 Error 錯誤 Please read this carefully! 請仔細的閱讀! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. 歡迎qshutdown! 如果您要qshutdown,例如:去關機這個系統,然後您是使用Gnome Shell,那麼你很可能從那裡得到一個關機對話框。如果您要直接關機,然而請考慮進入『喜好設定』和設定CondoleKit關機的方法或別的東西等。 請隨時參觀 https://launchpad.net/~hakaishi 並回報臭蟲或任何關於翻譯的事。 Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown將顯示3次警告,如果這裡有小於70秒左右。<br/><br/>這個應用程式使用 qdbus 去傳送一個 [關機/重新開機/暫停/休眠] 請求的gnome- 或 kde-session-manager,將請求送給 HAL/ConsoleKit/DeviceKit/UPower,這裡會使用'sudo shutdown'指令 (備註: 當傳送出的關機需求給HAL或ConsoleKit,或關機的指令已經被執行中,這個Session將不會被儲存。如果關機的指令已經被執行,這個應用程式也只能去關機和重新開機)。所以,如果在沒有任何事情發生時,當這個 shutdown- 或 reboot-time已達到。 它意味著缺乏了執行關機指命的的權利。在這種情況下,可以做到以下幾點:<br/><br/>張貼底下指令到終端機執行:<pre>EDITOR=nano sudo -E visudo</pre>然後再加上這行:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>然而,這裡的『*』號請取代為使用者名稱或群組(%group)名稱。<br/><br/>對於分的倒數計時(countdown_minutes)的最大數字是1440 (24小時)。<br/>參數設定檔和紀錄檔的位置是在 <i>~/.qshutdown/</i> (基於Linux/Unix系統)。<br/><br/><b>針對管理者:</b><br/>如果您要qshutdown運行"parental lock"對於各使用者,您可以執行 "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" ,然後在 /root/.qshutdown/qshutdown.conf 檔案裡將 "Lock_all" 設定選項改成 true。注意,一但qshutdown啟動後就會產生 qshutdown.conf 設定檔。然而底下這行是必須要加入的:<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>,如果您可能在任何時後忘記您之前設定的密碼,只要手動的在 qshutdown.conf 設定檔裡,從"Password"這一行開始移除全部的文字。<br/><br/><b>使用提示:</b><br/>如果您要停止qshutdown的警告訊息,只要從"警告?"這個設定裡移除即可。<br/><br/><b>熱鍵:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) 信息視窗</td></tr><tr><td>Ctrl+Q</td><td>結束</td></tr><tr><td>Ctrl+P</td><td>喜好設定</td></tr><tr><td>Ctrl+L</td><td>將運行時間寫入紀錄檔(只有當qshutdown退出時。在喜好設置裡將它設為永久的設定。)</td></tr><tr><td>Ctrl+S</td><td>設定關機</td></tr><tr><td>Ctrl+R</td><td>設定重新開機</td></tr><tr><td>Ctrl+U</td><td>設定暫停</td></tr><tr><td>Ctrl+H</td><td>設定休眠</td></tr><tr><td>Ctrl+E</td><td>停止倒數計時 (只有在當倒計時已經開始,管理員沒有限制存取權限)</td></tr><tr><td>Shift+E</td><td>編輯參數設定檔 (密碼是必須的。如果您是一位使用者,您可以設定一個"空白的密碼" (將密碼這個欄位為空))。</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-uk.ts0000664000175000017500000010573413477730644024142 0ustar chrischris About About qshutdown Про qshutdown Version Версія &About Пр&о програму &Thanks To &Подяки <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">З використанням Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p>qshutdown — програма для вимикання комп’ютера у певний момент часу або за відліком</p><p >Автор: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >&copy; Christian Metscher, 2010–2019</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p>Повідомлення про вади можна залишати на <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> або <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a>.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Календар Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Зміна пароля Retype password: Введіть пароль ще раз: New password: Новий пароль: Old password: Старий пароль: The current password is not correct! Поточний пароль є помилковим! The retyped password doesn't match! Повторно введений пароль не збігається з початковим! Editor Editor Редактор Gui &Minimize! &Мінімізувати! Shutdown-time: Час вимикання: Minutes till shutdown: Час у хвилинах до вимикання: Reboot-time: Час перезавантаження: Minutes till reboot: Час у хвилинах до перезавантаження: Suspend-time: Час призупинки: Minutes till suspend: Час у хвилинах до призупинки: Hibernate-time: Час присипляння: Minutes till hibernate: Час у хвилинах до присипляння: shutdown in завершити роботу за reboot in перезавантажити за suspend in призупинити за hibernate in приспати за years років months місяців hours години days днів Res&tore В&ідновити &Minimize &Мінімізувати day день minutes хвилини seconds секунд Shutdown Вимкнути Reboot Перезавантажити Suspend Призупинити Hibernate Приспати &Lock after start? За&блокувати після запуску? &Warnings on? &Попередити? &Now! &Зараз! You can set a date in the calendar Ви можете вказати дату у календарі &OK &Гаразд R&eset С&кинути &Quit Ви&йти &Info &Інформація &Logfile &Файл журналу &Preferences &Параметри &Shutdown Ви&мкнути &Reboot П&ерезавантажити S&uspend Приз&упинити &Hibernate П&риспати Lock settings after countdown started Заблокувати параметри після початку відліку Calendar Календар &File &Файл &Help &Довідка &Settings П&араметри &About &Про програму &Reset &Скинути &Configure &Налаштувати &Keep proportions З&берігати пропорції Warning Попередження Action imminent! Буде виконано дію з припинення роботи! Information Інформація Countdown is not running! Виконується відлік! Turns on/off all warnings Увімкнути або вимкнути попередження About &Qt Про бібліотеку &Qt Version Версія Info Info Інформація PassWord Password Пароль &Set password Встановити &пароль Password: Пароль: The password is not correct! Неправильний пароль! &Change password З&мінити пароль Preferences Preferences Параметри Enable the &target time at startup Увімкнути &час призначення під час запуску Shutdown Вимикання Shutdown type: Тип вимикання: Target time: Час призначення: Minutes to countdown: Час відліку у хвилинах: Font: Шрифт: Font size 1: Розмір шрифту 1: Font size 2: Розмір шрифту 2: Font size 3: Розмір шрифту 3: Size for log file: Розмір файла журналу: Reboot Перезавантаження Suspend Призупинка Hibernate Присипляння A&utostart &Автозапуск &Hide qshutdown at startup &Ховати вікно qshutdown після запуску Lock screen &for suspend and hibernate Блокувати екран після п&ризупинки та присипляння &Edit configuration file &Редагувати файл налаштувань Enable the minute &countdown at startup Увімкнути відлік &хвилин після запуску &Reset settings По&вернути початкові параметри Size for log file in KB Розмір файла журналу у кБ "&Lock after start?" «За&блокувати після запуску?» "&Warnings on?" «&Попередити?» Log start time of qshutdown and how long it was running Записувати час запуску qshutdown та тривалість роботи програми L&ogging &Журналювання checkboxes and "now!" button пункти для позначення і кнопка «Зараз!» OK and Minimize buttons Кнопки «Гаразд» і «Мінімізувати» Labels for example Мітки для прикладу Set a font Встановити шрифт What target time should be displayed by default at startup? Який час призначення має бути типово показано після запуску? How many minutes should be displayed for countdown by default at startup? За скільки хвилин до виконання дії слід показувати відлік після запуску? What should be displayed first by default at startup? Що має бути типово показано першим після запуску? Set if the checkbox for "Lock after start?" should be checked by default at startup Визначає, чи слід типово позначати пункт «Заблокувати після запуску?» після запуску Set if the checkbox for "Warnings on?" should be checked by default at startup Визначає, чи слід типово позначати пункт «Попереджати?» після запуску The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Кнопка закриття зазвичай приховує головне вікно. Вимикання приховування означає, що роботу qshutdown буде просто завершено. General Загальне Advanced Додатково Suspend method: Спосіб призупинки: automatic автоматичний user defined визначений користувачем Hibernate method: Спосіб присипляння: Shutdown method: Спосіб вимикання: Reboot method: Спосіб перезавантаження: Please input an user specified command for suspend here Будь ласка, вкажіть тут потрібну вам команду призупинення Gnome session Сеанс KDE KDE session Сеанс KDE Please input an user specified command for shutdown here Будь ласка, вкажіть тут потрібну вам команду вимикання Please input an user specified command for reboot here Будь ласка, вкажіть тут потрібну вам команду перезавантаження Please input an user specified command for hibernate here Будь ласка, вкажіть тут потрібну вам команду присипляння Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. У деяких системах, вимикання блокується, наприклад через те, що qshutdown продовжує працювати. Щоб запобігти неналежній поведінці системи, ви можете наказати qshutdown завершити роботу, щойно буде завершено відлік. Quit qshutdown after countdown ended? Вийти з qshutdown після завершення відліку? &Start countdown at startup &Розпочати відлік одразу після запуску Hide qshutdown at startup if "Start countdown" is checked. Приховати вікно qshutdown після запуску, якщо позначено пункт «Розпочинати відлік після запуску». The File "%1" is not writable! Maybe you just don't have the permissions to do so. Файл «%1» є непридатним до запису! Ймовірно, ви не маєте належних прав доступу до цього файла. Error Помилка Please read this carefully! Будь ласка, ознайомтеся з цією інформацією! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Вітаємо у qshutdown! Якщо ви хочете скористатися qprogram-starter для автоматичного вимикання системи і використовуєте Gnome Shell, ймовірно, діалогове вікно вимикання буде показано прямо зараз. Якщо ви хочете вимикати систему безпосередньо, будь ласка, відкрийте вікно налаштувань і встановіть у пункті способу вимикання ConsoleKit або щось інше. Щоб повідомити про ваду у програмі або перекладі, скористайтеся сторінкою https://launchpad.net/~hakaishi Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Вимикання піктограми у лотку призведе до неможливості відкрити вікно qshutdown з лотка. Вам варто також позначити пункти «Виходити після закриття головного вікна» та «Ховати вікно qshutdown після запуску». Якщо qshutdown працює, і вам потрібно відкрити вікно програми, просто ще раз віддайте команду qshutdown. У відповідь буде відкрито вікно програми. Disable tray &icon Вимкнути &піктограму у лотку &Quit on closing main window Ви&ходити після закриття головного вікна QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown показуватиме своє вікно тричі як попередження, якщо залишилося менше за 70 секунд.<br/><br/>Ця програма використовує qdbus для надсилання запитів щодо завершення роботи, перезавантаження, призупинки та присипляння до засобу керування сеансом gnome або kde або до HAL/ConsoleKit/DeviceKit/UPower. Якщо ж жоден з цих способів не працює, буде використано команду '«udo shutdown» (зауважте, що у разі надсилання запиту щодо завершення роботи до HAL або ConsoleKit або використання команди shutdown, дані сеансу не зберігатимуться. Якщо буде використано команду shutdown, програма зможе лише завершити роботу або перезавантажити комп’ютер). Отже, якщо нічого не трапиться, коли настане момент завершення роботи або перезавантаження, це означатиме, що у вашого користувача недостатньо прав на виконання команди shutdown. Ви можете скористатися таким способом, щоб виправити це:<br/><br/>Виконайте таку команду у вікні термінала:<pre>EDITOR=nano sudo -E visudo</pre>і додайте такий рядок:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>де * слід замінити на ім’я користувача або %groupname.<br/><br/>Максимальним значенням countdown_minutes є 1440 (24 години).<br/>Файл налаштувань і файл журналу зберігаються у <i>~/.qshutdown/</i> (у Linux/Unix).<br/><br/><b>Для адміністраторів:</b><br/>Якщо вам потрібно, щоб qshutdown працювала як «батьківське блокування» для всіх користувачів, ви можете віддати команду «sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/» і встановити для параметра Lock_all у /root/.qshutdown/qshutdown.conf значення true. Зауважте, що qshutdown перед цим слід запустити принаймні один раз, щоб було створено qshutdown.conf. Крім того, слід додати такий рядок до файла sudoers (спосіб відкриття цього файла для редагування описано вище):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Якщо ви забули ваш пароль, прости вилучіть весь рядок, що починається з «Password», вручну з файла qshutdown.conf.<br/><br/><b>Підказки:</b><br/>Якщо ви хочете, щоб qshutdown припинила вас турбувати, просто зніміть позначку з пункту «Попереджати?».<br/><br/><b>Клавіші керування:</b><table border="1"><tr><td>Ctrl+I</td><td>(це) інформаційне вікно</td></tr><tr><td>Ctrl+Q</td><td>Вийти</td></tr><tr><td>Ctrl+P</td><td>Параметри</td></tr><tr><td>Ctrl+L</td><td>записати час запуску один раз до файла журналу (працює, лише якщо qshutdown завершує роботу. Сталі налаштування можна встановити за допомогою пункту «Параметри».)</td></tr><tr><td>Ctrl+S</td><td>встановити завершення роботи</td></tr><tr><td>Ctrl+R</td><td>встановити перезапуск</td></tr><tr><td>Ctrl+U</td><td>встановити призупинку</td></tr><tr><td>Ctrl+H</td><td>встановити присипляння</td></tr><tr><td>Ctrl+E</td><td>припинити відлік (лише якщо відлік було розпочато і адміністратором не було обмежено доступ до припинення відліку)</td></tr><tr><td>Shift+E</td><td>редагувати файл налаштувань (потрібен пароль. Якщо виконується від імені простого користувача, можна встановити порожній пароль (не заповнювати поле пароля)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-it.ts0000664000175000017500000007251413477731205024130 0ustar chrischris About About qshutdown Informazioni su qshutdown Version Versione &About &Informazioni su &Thanks To &Grazie a <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Uso di Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, uno strumento di spegnimento a tempo</p><p >Autore: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Per la segnalazione di errori, usare <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> o <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a></p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendario Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Cambia password Retype password: Digitare nuovamente la password: New password: Nuova password: Old password: Vecchia password: The current password is not correct! L'attuale password non è corretta! The retyped password doesn't match! Le password non corrispondono. Editor Editor Editor Gui &Minimize! &Minimizza! Shutdown-time: Tempo di spegnimento: Minutes till shutdown: Minuti allo spegnimento: Reboot-time: Tempo di riavvio: Minutes till reboot: Minuti al riavvio: Suspend-time: Tempo di sospensione: Minutes till suspend: Minuti alla sospensione: Hibernate-time: Tempo di ibernazione: Minutes till hibernate: Minuti all'ibernazione: shutdown in spegnimento in reboot in riavvio in suspend in sospensione in hibernate in ibernazione in years anni months mesi hours ore days giorni Res&tore Ripris&tina &Minimize &Minimizza day giorno minutes minuti seconds secondi Shutdown Spegni Reboot Riavvia Suspend Sospendi Hibernate Iberna &Lock after start? &Bloccare dopo l'avvio? &Warnings on? Mostrare &avvisi? &Now! &Ora! You can set a date in the calendar È possibile impostare una data nel calendario &OK &OK R&eset Azz&era &Quit &Esci &Info &Informazioni &Logfile File &registro &Preferences &Preferenze &Shutdown &Spegni &Reboot &Riavvia S&uspend S&ospendi &Hibernate &Iberna Lock settings after countdown started Blocca le impostazioni dopo che il conto alla rovescia è iniziato Calendar Calendario &File &File &Help Ai&uto &Settings Imp&ostazioni &About &Informazioni su &Reset &Azzera &Configure &Configura &Keep proportions &Mantieni proporzioni Warning Avviso Action imminent! Azione imminente! Information Informazione Countdown is not running! Il conto alla rovescia non è avviato! Turns on/off all warnings Attiva/disattiva tutti gli avvisi About &Qt Informazioni su &Qt Version Versione Info Info Informazioni PassWord Password Password &Set password &Imposta password Password: Password: The password is not correct! La password è sbagliata! &Change password &Cambia password Preferences Preferences Preferenze Enable the &target time at startup Abilita il tempo &prestabilito all'avvio Shutdown Spegni Shutdown type: Tipo di spegnimento: Target time: Tempo prestabilito: Minutes to countdown: Minuti del conto alla rovescia: Font: Carattere: Font size 1: Dimensione car. 1: Font size 2: Dimensione car. 2: Font size 3: Dimensione car. 3: Size for log file: Dimensione file registro: Reboot Riavvia Suspend Sospendi Hibernate Iberna A&utostart Avvio a&utomatico &Hide qshutdown at startup &Nascondi qshutdown all'avvio Lock screen &for suspend and hibernate &Blocca schermo in sospensione e ibernazione &Edit configuration file &Modifica file di configurazione Enable the minute &countdown at startup Abilita il &conto alla rovescia all'avvio &Reset settings A&zzera impostazioni Size for log file in KB Dimensione in KB del file registro "&Lock after start?" «&Bloccare dopo l'avvio?» "&Warnings on?" «Mostrare a&vvisi?» Log start time of qshutdown and how long it was running Ora di avvio del registro di qshutdown e sua durata L&ogging &Registro checkboxes and "now!" button Caselle di selezione e pulsante «Ora!» OK and Minimize buttons Pulsanti OK e Minimizza Labels for example Didascalie per gli esempi Set a font Imposta un carattere What target time should be displayed by default at startup? Che tempo predefinito deve essere visualizzato all'avvio? How many minutes should be displayed for countdown by default at startup? Quanti minuti predefiniti devono essere visualizzati per il conto alla rovescia all'avvio? What should be displayed first by default at startup? Cosa deve essere visualizzato per primo all'avvio? Set if the checkbox for "Lock after start?" should be checked by default at startup Scegliere se la casella «Blocco dopo l'avvio?» deve essere attivata in modo predefinito all'avvio Set if the checkbox for "Warnings on?" should be checked by default at startup Scegliere se la casella «Mostro avvisi?» deve essere attivata in modo predefinito all'avvio The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Il pulsante Chiudi in genere nasconde la finestra principale. Disabilitare l'opzione «Nascondi» significa invece che qshutdown verrà chiuso. General Generali Advanced Avanzate Suspend method: Metodo di sospensione: automatic automatico user defined definito dall'utente Hibernate method: Metodo di ibernazione: Shutdown method: Metodo di spegnimento: Reboot method: Metodo di riavvio: Please input an user specified command for suspend here Inserire qui il comando specificato dall'utente per la sospensione Gnome session Sessione Gnome KDE session Sessione KDE Please input an user specified command for shutdown here Inserire qui il comando specificato dall'utente per lo spegnimento Please input an user specified command for reboot here Inserire qui il comando specificato dall'utente per il riavvio Please input an user specified command for hibernate here Inserire qui il comando specificato dall'utente per l'ibernazione Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Alcuni sistemi bloccano lo spegnimento, per esempio se qshutdown è ancora in esecuzione. Impostare un collegamento in modo che qshutdown termini dopo aver concluso il conto alla rovescia. Quit qshutdown after countdown ended? Terminare qshutdown dopo che il conto alla rovescia è concluso? &Start countdown at startup &Avvia il conto alla rovescia all'avvio Hide qshutdown at startup if "Start countdown" is checked. Nasconde qshutdown all'avvio se «Avvia conto alla rovescia» è selezionato. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Il file «%1» non è scrivibile! Forse non si hanno i permessi per eseguire l'operazione. Error Errore Please read this carefully! Leggere con attenzione! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown apparirà tre volte come avviso se sono rimasti meno di 70 secondi.<br/><br/>Questo programma utilizza qdbus per inviare una richiesta di spegnimento/riavvio/sospensione/ibernazione al gestore di sessione gnome o kde, a HAL/ConsoleKit/DeviceKit/UPower e, se nessuno di questi funziona, verrà utilizzato il comando 'sudo shutdown' (nota che quando viene inviata la richiesta di spegnimento a HAL o ConsoleKit, o viene utilizzato il comando 'shutdown', la sessione non verrà mai salvata. Se viene utilizzato il comando di spegnimento, il programma sarà in grado solo di spegnere e riavviare). Se, dunque, non accade nulla quando viene raggiunto il tempo di spegnimento o riavvio, significa che l'utente non possiede i diritti per il comando di spegnimento. In questo caso eseguire la seguente procedura:<br/><br/>Incollare nel terminale il seguente comando:<pre>EDITOR=nano sudo -E visudo</pre>e aggiungere questa riga:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>dove * sostituisce il nome utente o il %nome_gruppo.<br/><br/>Il numero massimo di minuti per il conto alla rovescia è 1440 (24 ore).<br/>Il file di configurazione (e di registro) si trova in <i>~/.qshutdown/</i> (sotto Linux/Unix).<br/><br/><b>Per gli amministratori:</b><br/>se si vuole avviare qshutdown con «blocco parentale» globale, è possibile eseguire «sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/» e impostare a «true» l'opzione «Lock_all» in /root/.qshutdown/qshutdown.conf. Notare che qshutdown deve avviarsi almeno una volta per generare il file qshutdown.conf. Inoltre, bisogna aggiungere la seguente riga ai comandi sudo (di cui sopra):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Se ci si dovesse scordare di impostare la password impostata, rimuovere manualmente l'intera riga che inizia con «Password» dal file qshutdown.conf.<br/><br/><b>Suggerimenti per l'uso:</b><br/>Se si desidera che qshutdown smetta di «annoiare» con avvisi, rimuovere semplicemente il collegamento da «Mostrare avvisi?».<br/><br/><b>Combinazioni da tastiera:</b><table border="1"><tr><td>Ctrl+I</td><td>(questa) finestra informativa</td></tr><tr><td>Ctrl+Q</td><td>Esci</td></tr><tr><td>Ctrl+P</td><td>Preferenze</td></tr><tr><td>Ctrl+L</td><td>scrive il tempo di avvio nel file di registro (funziona solo se si esce da qshutdown. Per renderlo permanente, impostarlo nelle preferenze).</td></tr><tr><td>Ctrl+S</td><td>imposta a spegnimento</td></tr><tr><td>Ctrl+R</td><td>imposta a riavvio</td></tr><tr><td>Ctrl+U</td><td>imposta a sospensione in RAM</td></tr><tr><td>Ctrl+H</td><td>imposta a ibernazione</td></tr><tr><td>Ctrl+E</td><td>ferma il conto alla rovescia (solo se esso è stato avviato e l'amministratore non ha eseguito restrizioni di accesso)</td></tr><tr><td>Shift+E</td><td>per modificare il file di configurazione (per fare questo è necessaria una password. Se si è un utente, è possibile impostare una «password vuota» (lasciare vuoto il campo della password)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-id.ts0000664000175000017500000006363713477730521024116 0ustar chrischris About About qshutdown Tentang qshutdown Version Versi &About Tent&ang &Thanks To &Terima kasih kepada <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, alat shutdown berdasar waktu dan hitung mundur</p><p >Penulis: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Hak cipta &copy; 2010-2019, pada Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Silakan gunakan <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> untuk melaporkan bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Kalender Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Ubah Sandi Retype password: Ulangi sandi: New password: Sandi Baru: Old password: Sandi Lama: The current password is not correct! Sandi saat ini tidak valid! The retyped password doesn't match! Pengulangan sandi tidak cocok! Editor Editor Penyunting Gui &Minimize! &Memperkecil! Shutdown-time: Waktu pemadaman: Minutes till shutdown: Menit sampai padam: Reboot-time: Waktu menyala ulang: Minutes till reboot: Menit sampai menyala ulang: Suspend-time: Waktu suspend: Minutes till suspend: Menit sampai suspend: Hibernate-time: Waktu hibernasi: Minutes till hibernate: Menit sampai hibernasi: shutdown in padam dalam reboot in nyala ulang dalam suspend in suspend dalam hibernate in hibernasi dalam years tahun months bulan hours jam days hari Res&tore M&emulihkan &Minimize &Memperkecil day hari minutes menit seconds detik Shutdown Padamkan Reboot Nyalakan Ulang Suspend Suspensi Hibernate Hibernasi &Lock after start? Kunci sete&lah mulai? &Warnings on? H&idupkan peringatan? &Now! Sekara&ng! You can set a date in the calendar Anda dapat mengatur tanggal pada kalender &OK &OK R&eset Atu&r Ulang &Quit &Keluar &Info &Info &Logfile Berkas &log &Preferences &Preferensi &Shutdown &Matikan &Reboot &Nyalakan ulang S&uspend S&uspensi &Hibernate &Hibernasi Lock settings after countdown started Kunci pengaturan setelah hitung mundur dimulai Calendar Kalender &File &Berkas &Help Ba&ntuan &Settings &Pengaturan &About Tent&ang &Reset Atu&r Ulang &Configure &Konfigurasi &Keep proportions &Jaga proporsi Warning Peringatan Action imminent! Aksi dekat! Information Informasi Countdown is not running! Hitung mundur tidak berjalan! Turns on/off all warnings Nyalakan/matikan semua peringatan About &Qt Tentang &Qt Version Versi Info Info Info PassWord Password Sandi &Set password Atur &sandi Password: Sandi: The password is not correct! Sandi salah! &Change password &Ganti sandi Preferences Preferences Preferensi Enable the &target time at startup Gunakan waktu &target saat menyalakan Shutdown Padamkan Shutdown type: Jenis pemadaman: Target time: Waktu target: Minutes to countdown: Menit sampai hitung mundur: Font: Fonta: Font size 1: Ukuran fonta 1: Font size 2: Ukuran fonta 2: Font size 3: Ukuran fonta 3: Size for log file: Ukuran untuk berkas log: Reboot Nyalakan Ulang Suspend Suspensi Hibernate Hibernasi A&utostart Mul&ai otomatis &Hide qshutdown at startup Sembunyikan qs&hutdown saat menyalakan Lock screen &for suspend and hibernate Kunci layar &saat suspensi dan hibernasi &Edit configuration file Sunting konfigurasi b&erkas Enable the minute &countdown at startup &aktifkan hitung mundur menit saat menyalakan &Reset settings Atu&r ulang pengaturan Size for log file in KB Ukuran berkas log dalam KB "&Lock after start?" "Kunci sete&lah mulai?" "&Warnings on?" "Nyalakan &peringatan?" Log start time of qshutdown and how long it was running Log waktu mulai qshutdown dan berapa lama ia berjalan L&ogging L&ogging checkboxes and "now!" button kotak centang dam tombol "Sekarang!" OK and Minimize buttons Tombol OK dan Mengecilkan Labels for example Label untuk contoh Set a font Atur fonta What target time should be displayed by default at startup? Kapan waktu target yang harus ditampilkan secara default saat menyalakan? How many minutes should be displayed for countdown by default at startup? Berapa menit yg ditampilkan untuk hitung mundur default saat menyalakan? What should be displayed first by default at startup? Apa yang pertama harus ditampilkan secara default saat menyalakan? Set if the checkbox for "Lock after start?" should be checked by default at startup Atur apakah kotak centang "Kunci saat mulai?" harus dicentang otomatis saat menyalakan? Set if the checkbox for "Warnings on?" should be checked by default at startup Atur apakah kotak "Nyalakan peringatan?" harus dicentang otomatis saat menyalakan The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Tombol keluar [X] biasanya menyembunyikan jendela utama Mematikan penyembunyian berarti bahwa qshutdown akan langsung keluar. General Umum Advanced Lanjutkan Suspend method: Metode suspensi: automatic otomatis user defined diatur pengguna Hibernate method: Metode hibernasi: Shutdown method: Metode pemadaman: Reboot method: Metode nyalakan ulang: Please input an user specified command for suspend here Silakan masukan perintah yang pengguna untuk suspensi disini Gnome session Sesi Gnome KDE session Sesi KDE Please input an user specified command for shutdown here Silakan masukan perintah yang pengguna untuk pemadaman disini Please input an user specified command for reboot here Silakan masukan perintah yang pengguna untuk menyalakan ulang disini Please input an user specified command for hibernate here Silakan masukan perintah yang pengguna untuk hibernasi disini Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Sistem memblok contoh pemadaman karena qshutdown masih berjalan. atur kait agar qshutdown keluar setelah hitung mundur. Quit qshutdown after countdown ended? Keluarkan qshutdown setelah hitung mundur selesai? &Start countdown at startup Mulai hitung mundur &saat menyalakan Hide qshutdown at startup if "Start countdown" is checked. Menyembunyikan qshutdown saat menyalakan jika "mulai hitung mundur" tercentang. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Berkas "%1" tidak dapat ditulis! Mungkin anda tidak memiliki ijin untuk melakukannya. Error Kesalahan Please read this carefully! Mohon baca dengan teliti! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Selamat Datang di qshutdown! Jika Anda ingin qshutdown misalnya untuk shutdown sistem dan Anda menggunakan Gnome Shell, maka Anda akan mendapatkan dialog shutdown yang dari sana. Jika Anda ingin shutdown langsung, maka silakan pergi ke preferensi dan pengaturan metode shutdown untuk ConsoleKit atau yang lainnya. Jangan sungkan mengunjungi https://launchpad.net/~hakaishi untuk melaporkan bug atau untuk sesuatu tentang penerjemahan. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon Nonaktifkan tray &ikon &Quit on closing main window Keluar saat menutup jendela ( Alt + &Q ) QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-zh_CN.ts0000664000175000017500000007004213477727772024525 0ustar chrischris About About qshutdown 关于 qshutdown Version 版本 &About 关于(&A) &Thanks To 感谢(&T) <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">使用 Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p>qshutdown,一款基于时间和倒计时的关机工具</p><p>作者:Christian Metscher &lt;hakaishi@web.de&gt;</p><p>版权所有 &copy; 2010-2019, Christian Metscher</p><p><a href="https://launchpad.net/~hakaishi"> <span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p>请使用 <a href="https://bugs.launchpad.net/qt-shutdown-p"> <span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> 或 <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> 来报告故障。</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar 日历 Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password 更改密码 Retype password: 再输入一次密码: New password: 新密码: Old password: 旧密码: The current password is not correct! 当前密码不正确! The retyped password doesn't match! 重新输入的密码不匹配! Editor Editor 编辑器 Gui &Minimize! 最小化(&M)! Shutdown-time: 关机时间: Minutes till shutdown: 离关机还剩时间(分钟): Reboot-time: 重启时间: Minutes till reboot: 离重启还有时间(分钟): Suspend-time: 挂起时间: Minutes till suspend: 离挂起还有(分钟): Hibernate-time: 休眠时间: Minutes till hibernate: 离休眠还有(分钟): shutdown in 关机倒计时 reboot in 重启倒计时 suspend in 挂起倒计时 hibernate in 休眠倒计时 years months hours 小时 days Res&tore 恢复(&T) &Minimize 最小化(&M) day minutes seconds Shutdown 关机 Reboot 重启 Suspend 挂起 Hibernate 休眠 &Lock after start? 启动后锁定(&L)? &Warnings on? 开启警告(&W)? &Now! 现在(&N)! You can set a date in the calendar 您可以在日历中设置一个日期 &OK 确定(&O) R&eset 重置(&E) &Quit 退出(&Q) &Info 信息(&I) &Logfile 日志文件(&L) &Preferences 首选项(&P) &Shutdown 关机(&S) &Reboot 重启(&R) S&uspend 挂起(&U) &Hibernate 休眠(&H) Lock settings after countdown started 倒计时开始后锁定设置 Calendar 日历 &File 文件(&F) &Help 帮助(&H) &Settings 设置(&S) &About 关于(&A) &Reset 重置(&R) &Configure 配置(&C) &Keep proportions 保持窗口尺寸比例(&K) Warning 警告 Action imminent! 即将执行! Information 信息 Countdown is not running! 倒计时没有运行! Turns on/off all warnings 开启/关闭所有警告 About &Qt 关于 &Qt Version 版本 Info Info 信息 PassWord Password 密码 &Set password 设置密码(&S) Password: 密码: The password is not correct! 密码不正确! &Change password 更改密码(&C) Preferences Preferences 首选项 Enable the &target time at startup 启动时启用目标时间(&T) Shutdown 关机 Shutdown type: 关机类型: Target time: 目标时间: Minutes to countdown: 倒计时(分钟): Font: 字体: Font size 1: 字号 1: Font size 2: 字号 2: Font size 3: 字号 3: Size for log file: 日志文件大小: Reboot 重启 Suspend 挂起 Hibernate 休眠 A&utostart 自动启动(&U) &Hide qshutdown at startup 启动后隐藏 qshutdown (&H) Lock screen &for suspend and hibernate 挂起和休眠期间锁屏(&F) &Edit configuration file 编辑配置文件(&E) Enable the minute &countdown at startup 启动时开启分钟和倒计时(&C) &Reset settings 重置设置(&R) Size for log file in KB 日志文件大小(单位:KB) "&Lock after start?" “启动时锁定(&L)?” "&Warnings on?" “开启警告(&W)?” Log start time of qshutdown and how long it was running 记录 qshutdown 的启动时刻和它的运行时间 L&ogging 日志(&O) checkboxes and "now!" button 复选框和“现在!”按钮 OK and Minimize buttons 确认和最小化按钮 Labels for example 如标签(Label) Set a font 设置字体 What target time should be displayed by default at startup? 启动时默认显示什么目标时间? How many minutes should be displayed for countdown by default at startup? 启动时默认显示几分钟的倒计时? What should be displayed first by default at startup? 启动时默认显示什么? Set if the checkbox for "Lock after start?" should be checked by default at startup 设置在启动时是否默认选中 “启动后锁定?”复选框 Set if the checkbox for "Warnings on?" should be checked by default at startup 设置启动时是否默认选中 “开启警告?”复选框 The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. 点击关闭按钮通常会关闭主窗口。 禁用隐藏则会退出 qshutdown。 General 常规 Advanced 高级 Suspend method: 挂起方式: automatic 自动 user defined 用户定义 Hibernate method: 休眠方式: Shutdown method: 关机方式: Reboot method: 重启方式: Please input an user specified command for suspend here 请在这里输入一个用户指定的“挂起”命令 Gnome session Gnome 会话 KDE session KDE 会话 Please input an user specified command for shutdown here 请在这里输入一个用户指定的“关机”命令 Please input an user specified command for reboot here 请在这里输入一个用户指定的“重启”命令 Please input an user specified command for hibernate here 请在这里输入一个用户指定的“休眠”命令 Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. 有些系统会阻止关机等操作,因为 qshutdown 还 在运行。如果需要 qshutdown 在倒计时结束时 退出,设置一个钩子(hook)。 Quit qshutdown after countdown ended? 倒计时结束时退出 qshutdown? &Start countdown at startup 启动时开启倒计时(&S) Hide qshutdown at startup if "Start countdown" is checked. 若选择了“启动倒计时”则 在启动时隐藏 qshutdown The File "%1" is not writable! Maybe you just don't have the permissions to do so. 文件“%1”不可写! 您也许没有写权限。 Error 错误 Please read this carefully! 请仔细阅读! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> 在剩余不到 70 秒时,qshutdown 会显示 3 次。<br/><br/>该程序使用 qdbus 来向 gnome- 或 kde-session-manager 或 HAL/ConsoleKit/DeviceKit/UPower 发送 关机/重启/挂起/休眠 请求。如果都不行,则使用“sudo shutdown”命令(注意,在向 HAL 或 ConsoleKit 发送请求,或使用 shutdown 命令时,会话将不能保存。 使用 shutdown 命令时,程序只能关机或重启)。因此,如果关机或重启时间到了,却没有动作,说明用户没有执行 shutdown 命令的权限。这种情况下,用户可以这样做:<br/><br/>将以下命令粘贴到终端中:<pre>EDITOR=nano sudo -E visudo</pre>添加这一行命令<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>其中 * 用用户名或 %group 名替换。<br/><br/>关机倒计时最多 1440 分钟(24 小时)。<br/>配置文件(和日志文件)位于 <i>~/.qshutdown/</i>(Linux/Unix 环境下)。<br/><br/><b>对于管理员:</b><br/>如果您想让每位用户以带“家长控制”的方式运行 qshutdown,您可以执行“sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/”并将 /root/.qshutdown/qshutdown.conf 中的 Lock_all 选项设为 true。注意 qshutdown 必须启动一次来生成 qshutdown.conf。另外还需要向 sudoers 中添加一行(和上面一样):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>如果您不小心忘记了自己设置的密码,从 qshutdown.conf 中删除带有“Password”的那一行即可。<br/><br/><b>用法提示:</b><br/>如果您不想让 qshutdown “骚扰”您,只需从“开启警告?”中移除这个钩子。<br/><br/><b>快捷键:</b><table border="1"><tr><td>Ctrl+I</td><td>(这个)信息窗口</td></tr><tr><td>Ctrl+Q</td><td>退出</td></tr><tr><td>Ctrl+P</td><td>首选项</td></tr><tr><td>Ctrl+L</td><td>将运行时间写入日志文件一次(只有 qshutdown 退出才有效。想永久设置请在首选项中修改。)</td></tr><tr><td>Ctrl+S</td><td>设置为关机</td></tr><tr><td>Ctrl+R</td><td>设置为重启</td></tr><tr><td>Ctrl+U</td><td>设置为挂起到内存</td></tr><tr><td>Ctrl+H</td><td>设置为休眠</td></tr><tr><td>Ctrl+E</td><td>停止倒计时(只有倒计时已启动且管理员未作限制时才有效)</td></tr><tr><td>Shift+E</td><td>编辑配置文件(这需要一个密码。如果只有您一位用户,您可以设置一个“空密码”(密码字段不填))。</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-ro.ts0000664000175000017500000007256213477730422024137 0ustar chrischris About About qshutdown Despre qshutdown Version Versiunea &About &Despre &Thanks To &Mulțumiri <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Utilizează Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, utilitar de închidere programată a calculatorului</p><p >Autor: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Vă rugăm utilizați <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> sau <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> pentru raportarea defectelor.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendar Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Schimbați parola Retype password: Reintroduceți parola: New password: Parola nouă: Old password: Parolă veche: The current password is not correct! Parola actuală nu este corectă! The retyped password doesn't match! Parola nouă nu se potrivește! Editor Editor Editor Gui &Minimize! &Minimizează! Shutdown-time: Oră oprire: Minutes till shutdown: Minute până la oprire: Reboot-time: Oră repornire: Minutes till reboot: Minute până la repornire: Suspend-time: Oră suspendare: Minutes till suspend: Minute până la suspendare: Hibernate-time: Oră hibernare: Minutes till hibernate: Minute până la hibernare: shutdown in oprește în reboot in repornește în suspend in suspendă în hibernate in hibernează în years ani months luni hours ore days zile Res&tore &Reface &Minimize &Minimizare day zi minutes minute seconds secunde Shutdown Închidere Reboot Repornire Suspend Suspendare Hibernate Hibernare &Lock after start? B&lochează după pornire? &Warnings on? A&vertizări? &Now! Acu&m! You can set a date in the calendar Puteți stabili data în calendar &OK &OK R&eset R&esetare &Quit &Ieșire &Info &Info &Logfile Jurna&l &Preferences &Preferințe &Shutdown &Oprire &Reboot &Repornire S&uspend &Suspendare &Hibernate &Hibernare Lock settings after countdown started Blocare setări după începerea numărătorii inverse Calendar Calendar &File &Fișier &Help &Ajutor &Settings &Configurări &About &Despre &Reset &Resetare &Configure &Configurare &Keep proportions &Păstrează proporțiile Warning Atenție Action imminent! Acțiune iminentă! Information Informații Countdown is not running! Numărătoarea inversă nu este activă! Turns on/off all warnings Activare/Dezactivare atenționări About &Qt Despre &Qt Version Versiunea Info Info Info PassWord Password Parolă &Set password &Stabilire parolă Password: Parolă: The password is not correct! Parolă incorectă! &Change password S&chimbă parola Preferences Preferences Preferințe Enable the &target time at startup Activează ora dori&tă la pornirea calculatorului Shutdown Închidere Shutdown type: Tip închidere: Target time: Oră dorită: Minutes to countdown: Numărătoare inversă - minute: Font: Font: Font size 1: Mărime font 1: Font size 2: Mărime font 2: Font size 3: Mărime font 3: Size for log file: Mărime fișier jurnal: Reboot Repornire Suspend Suspendare Hibernate Hibernare A&utostart A&utostart &Hide qshutdown at startup Ascu&nde qshutdown la pornirea calculatorului Lock screen &for suspend and hibernate Blochează ecranul &la suspendare și hibernare &Edit configuration file &Editare fișier de configurare Enable the minute &countdown at startup Activare numărătoare &minute la pornirea calculatorului &Reset settings &Resetare configurare Size for log file in KB Mărime în KB pentru fișierul jurnal "&Lock after start?" „B&locare după pornire?” "&Warnings on?" „Acti&vare avetizări?” Log start time of qshutdown and how long it was running Scrieți în fișierul jurnal când a pornit qshutdown și cât timp a funcționat L&ogging Fișier &jurnal checkboxes and "now!" button Căsuțe bifare și butonul „acum!” OK and Minimize buttons Butoanele OK și Minimizează Labels for example Etichete de exemplu Set a font Alegere font What target time should be displayed by default at startup? Ce oră doriți să fie afișată implicit la pornire? How many minutes should be displayed for countdown by default at startup? Câte minute să fie afișate la pornire pentru numărătoarea inversă? What should be displayed first by default at startup? Ce să fie afișat mai întâi la pornire? Set if the checkbox for "Lock after start?" should be checked by default at startup Căsuța „Blochează după pornire?” să fie bifată implicit la pornire Set if the checkbox for "Warnings on?" should be checked by default at startup Căsuța „Activare avertizări?” să fie bifată implicit la pornire The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Butonul de închidere de obicei ascunde fereastra principală. Dezactivarea ascunderii înseamnă că qshutdown se va închide complet. General General Advanced Avansat Suspend method: Metodă suspendare: automatic automat user defined stabilit de utilizator Hibernate method: Metodă hibernare: Shutdown method: Metodă oprire: Reboot method: Metodă repornire: Please input an user specified command for suspend here Introduceți aici o comandă personalizată pentru suspendare Gnome session Sesiune Gnome KDE session Sesiune KDE Please input an user specified command for shutdown here Introduceți aici o comandă personalizată pentru oprire Please input an user specified command for reboot here Introduceți aici o comandă personalizată pentru repornire Please input an user specified command for hibernate here Introduceți aici o comandă personalizată pentru hibernare Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Unele sisteme blochează oprirea pentru că qshutdown rulează pe ele. Stabiliți dacă qshutdown trebuie să se închidă la terminarea numărătorii. Quit qshutdown after countdown ended? Închidere qshutdown la terminarea numărătorii? &Start countdown at startup &Începere numărătoare la pornire Hide qshutdown at startup if "Start countdown" is checked. Ascunde qshutdown la pornirea calculatorului dacă este bifat „Pornire numărătoare”. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Fișierul „%1” nu poate fi scris! Poate nu aveți permisiune de scriere. Error Eroare Please read this carefully! Citiți aceasta cu atenție! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Bine ați venit la qshutdown! Dacă doriți ca qshutdown de exemplu, să închidă sistemul și utilizați Gnome Shell, atunci vă sunt susceptibile de a primi un dialog de oprire de acolo. Dacă doriți o închidere directă, atunci vă rugăm să luați în considerare de a merge în preferințe și stabilirea metodei de închidere pentru ConsoleKit sau altceva. Vă rugăm să nu ezitați să vizitați https://launchpad.net/~hakaishi pentru a raporta buguri sau pentru orice cu privire la traduceri. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown va apărea de trei ori ca avertizare dacă mai sunt 70 de secunde rămase.<br/><br/>Acest program utilizează qdbus pentru a trimite o cerere de închidere/repornire/suspendare/hibernare către administratorul de sesiune Gnome sau KDE, către HAL/ConsoleKit/DeviceKit/UPower și dacă nu funcționează niciunul se va utiliza comanda „sudo shutdown” (când se trimite cererea de închidere către HAL sau ConsoleKit, sau se utilizează comanda de mai sus, sesiunea nu va fi salvată. Dacă se utilizează comanda cu shutdown, programul va putea doar închide sau reporni calculatorul). Dacă nu se întâmplă nimic în momentul în care se termină numărătoarea, înseamnă că nu aveți drepturi de executare a comenzii shutdown. În acest caz puteți:<br/><br/>copia asta într-un terminal:<pre>EDITOR=nano sudo -E visudo</pre>și adăugați rândul ăsta:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>unde * înlocuiește numele de utilizator sau de grup. <br/><br/>Numărul maxim de minute disponibile pentru numărătoare inversă este de 1440 (24 ore).<br/>Fișierul de configurare (și fișierul jurnal) sunt în<i>~/.qshutdown/</i> (Linux/Unix).<br/><br/><b>Pentru administratori:</b><br/>Dacă vreți ca qshutdown să ruleze cu „parental lock” pentru toți utilizatorii, utilizați comanda „sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/” și setați opțiunea Lock_all in /root/.qshutdown/qshutdown.conf la true (activat). Qshutdown trebuie să fie pornit măcar oadtă pentru a genera qshutdown.conf. Ba mai mult, trebuie adăugat rândul următor în sudoers (ca mai sus):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Dacă uitați vreodată parola, ștergeți rândul care începe cu "Password" din qshutdown.conf.<br/><br/><b>Sfaturi de utilizare:</b><br/>Ca să nu vă mai enerveze qshutsdown ,debifați „Activare avertizări?”.<br/><br/><b>Scurtături tastatură:</b><table border="1"><tr><td>Ctrl+I</td><td>fereastra (asta) cu informații</td></tr><tr><td>Ctrl+Q</td><td>Ieșire</td></tr><tr><td>Ctrl+P</td><td>Preferințe</td></tr><tr><td>Ctrl+L</td><td>scrie durata de funcționare o singură dată în fișierul jurnal (utilizabil doar dacă qshutdown se închide. O puteți seta ca permamentă în preferințe.)</td></tr><tr><td>Ctrl+S</td><td>stabilire închidere</td></tr><tr><td>Ctrl+R</td><td>stabilire repornire</td></tr><tr><td>Ctrl+U</td><td>suspendă în RAM</td></tr><tr><td>Ctrl+H</td><td>stabilire hibernare</td></tr><tr><td>Ctrl+E</td><td>oprire numărătoare (doar dacă administratorul nu a restricționat accesul și numărătoarea este în desfășurare)</td></tr><tr><td>Shift+E</td><td>editare fișier de configurare (este necesară o parolă.Ca utilizator puteți stabili o „parolă goală” (nu scrieți nimic în căsuța pentru parolă)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-gl.ts0000664000175000017500000007451113477731024024114 0ustar chrischris About About qshutdown Sobre qshutdown Version Versión &About &Sobre &Thanks To A&gradecementos <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">emprega Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >O qshutdown é unha ferramenta de apagado en función da hora ou da conta atrás</p><p >Autor: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Dereitos de autor &copy; 2010-2019, por Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> ou <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> para informar dos fallos.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> <p >Especialmente agradecidos a:<br /></p><p >Fabian Deuchler por axudar aquí e acolá,<br /><br /> Brian Nelson por patrocinar os envíos a Debian<br /><br />e a Miquel Banchs i Piqué pola idea de implementar unha rutina que permite personalizar os axustes para cada día da semana.</p Calendar Calendar Calendario Weekly Semanal activate weekly activar semanal Please note that you might want to enable autostart and countdown at startup. Teña en conta que quizais vostede desexa activar o inicio automático e a conta atrás no arranque. ChangePassword Change Password Cambiar o contrasinal Retype password: Escriba de novo o contrasinal: New password: Novo contrasinal: Old password: Contrasinal antigo: The current password is not correct! O contrasinal actual non é correcto! The retyped password doesn't match! O contrasinal rescrito non coincide! Editor Editor Editor Gui &Minimize! &Minimizar! Shutdown-time: Hora do apagado: Minutes till shutdown: Minutos ata apagar: Reboot-time: Hora do reinicio: Minutes till reboot: Minutos ata reiniciar: Suspend-time: Hora da suspensión: Minutes till suspend: Minutos ata suspender: Hibernate-time: Hora da hibernación: Minutes till hibernate: Minutos ata hibernar: shutdown in apagado en reboot in reinicio en suspend in suspensión en hibernate in hibernación en years anos months meses hours horas days días Res&tore &Restaurar &Minimize &Minimizar day día minutes minutos seconds segundos Shutdown Apagar Reboot Reiniciar Suspend Suspender Hibernate Hibernar &Lock after start? &Bloquear despois de iniciar? &Warnings on? Activar os a&visos? &Now! A&gora! You can set a date in the calendar Pode estabelecer unha data no calendario &OK &Aceptar R&eset R&estabelecer &Quit &Saír &Info &Información &Logfile Ficheiro de &rexistro &Preferences &Preferencias &Shutdown &Apagar &Reboot &Reiniciar S&uspend S&uspender &Hibernate &Hibernar Lock settings after countdown started Bloquear os axustes despois de iniciada a conta atrás Calendar Calendario &File &Ficheiro &Help &Axuda &Settings &Configuracións &About &Sobre &Reset &Restaurar &Configure &Configurar &Keep proportions &Manter as proporcións Warning Aviso Action imminent! Acción inminente! Information Información Countdown is not running! A conta atrás non está a traballar! Turns on/off all warnings Activa ou desactiva todos os avisos About &Qt Sobre &Qt Version Versión Info Info Información PassWord Password Contrasinal &Set password E&stabelecer o contrasinal Password: Contrasinal: The password is not correct! O contrasinal non é correcto! &Change password &Cambiar o contrasinal Preferences Preferences Preferencias Enable the &target time at startup Activar a &hora obxectivo no arrinque Shutdown Apagar Shutdown type: Tipo de apagado: Target time: Hora da activación: Minutes to countdown: Minutos para a conta atrás: Font: Tipo de letra: Font size 1: Tamaño de letra 1: Font size 2: Tamaño de letra 2: Font size 3: Tamaño de letra 3: Size for log file: Tamaño do ficheiro de rexistro: Reboot Reiniciar Suspend Suspender Hibernate Hibernar A&utostart Iniciar a&utomaticamente &Hide qshutdown at startup &Agochar o qshutdown no arrinque Lock screen &for suspend and hibernate &Bloquear a pantalla ao suspender ou hibernar &Edit configuration file &Editar o ficheiro de configuración Enable the minute &countdown at startup Activar a &conta atrás en minutos no arrinque &Reset settings &Restabelecer os axustes Size for log file in KB Tamaño do ficheiro de rexistro en KB "&Lock after start?" «&Bloquear despois de iniciar?» "&Warnings on?" «Activar os a&visos?» Log start time of qshutdown and how long it was running Rexistrar a hora de inicio de qshutdown e o tempo que está en execución L&ogging Re&xistro checkboxes and "now!" button caixas de verificación e botón «agora» OK and Minimize buttons Botóns Aceptar e Minimizar Labels for example Etiquetas por exemplo Set a font Estabelecer un tipo de letra What target time should be displayed by default at startup? Que hora de activación desexa amosar de xeito predeterminado no arrinque? How many minutes should be displayed for countdown by default at startup? Cantos minutos deberán amosarse, de xeito predeterminado na conta atrás no arrinque? What should be displayed first by default at startup? Debería amosarse de xeito predeterminado ao arrincar por primeira vez? Set if the checkbox for "Lock after start?" should be checked by default at startup Estabelece se a caixiña de comprobación «Bloquear despois de iniciar?» debe ser marcada de xeito predeterminado no arrinque Set if the checkbox for "Warnings on?" should be checked by default at startup Establece se a caixiña de comprobación «Activar os avisos?» debe ser marcada de xeito predeterminado no arrinque The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Normalmente, o botón de pechar agocha a xanela principal. Ao desactivar o agochamento pecharase o aplicativo ao premer o botón. General Xeral Advanced Avanzado Suspend method: Método de suspensión: automatic automático user defined definido polo usuario Hibernate method: Método de hibernación: Shutdown method: Método de apagado: Reboot method: Método de reinicio: Please input an user specified command for suspend here Escriba aquí unha orde específica para suspender Gnome session Sesión de Gnome KDE session Sesión de KDE Please input an user specified command for shutdown here Escriba aquí unha orde específica para apagar Please input an user specified command for reboot here Escriba aquí unha orde específica para reiniciar Please input an user specified command for hibernate here Escriba aquí unha orde específica para hibernar Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Algúns sistemas poden bloquear, por exemplo, o apagado xa que qshutdown aínda está a traballar. Esta opción define que qshutdown debe pecharse despois rematar a conta atrás. Quit qshutdown after countdown ended? Saír de qshutdown cando remate a conta atrás? &Start countdown at startup &Iniciar a conta atras no arrinque Hide qshutdown at startup if "Start countdown" is checked. Agochar qshutdown no arrinque se está marcado «Iniciar a conta atrás». The File "%1" is not writable! Maybe you just don't have the permissions to do so. O ficheiro «%1» non é escribíbel. E probábel que non teña permisos para facelo. Error Erro Please read this carefully! Por favor, lea isto detidamente! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Benvido a qshutdown! Se quere que qshutdown p.ex. apague automaticamente o sistema e emprega o Gnome Shell, entón é probábel que obteña un diálogo de apagado. Se quere dispor dun apagado directo, vaia ás preferencias e estabeleza o método de apagado para ConsoleKit ou outro. Non dubide en visitar https://launchpad.net/~hakaishi para informar de erros, ou calquera outra cousa sobre as traducións. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Se desactiva a icona da bandexa xa non poderá restabelecer o qshutdown desde a bandexa. Considere tamén marcar «Saír ao pechar a xanela principal» e «Agochar o qshutdown no arrinque». Se o programa está aínda en execución e desexa que reapareza, execute o qshutdown de novo, como faría normalmente. Disable tray &icon Desactivar a &icona da bandexa &Quit on closing main window &Saír ao pechar a xanela principal QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown amosará 3 veces un aviso se restan menos de 70 segundos no reloxo.<br/><br/>Este programa utiliza qdbus para enviar unha orde de apagado/reinicio/suspensión/hibernación ou unha solicitude de gnome- ou kde-session-manager, para HAL/ConsoleKit/DeviceKit/UPower e se ningún destes traballa, pode empregar a orde «sudo shutdown» (Teña en conta que ao enviar a solicitude de apagado a HAL ou a ConsoleKit, ou se se emprega a orde «shutdown», a sesión non se gardará nunca. De empregarse a orde «shutdown», o programa só será quen de apagar e reiniciar o sistema). Se non ocorre nada cando se acada o tempo do apagado ou reinicio, quere dicir que non se dispón dos permisos necesarios para executar a orde «shutdown». Neste caso pode facerse o seguinte:<br/><br/>Pegue o seguinte nun terminal:<pre>EDITOR=nano sudo -E visudo</pre>e engada esta liña:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>onde * substitúe o nome de usuario ou o nome do grupo %group.<br/><br/>O número máximo de minutos na conta atrás é de 1440 (24 horas).<br/>O ficheiro de configuración (e o de rexistro) atópase en<i>~/.qshutdown/</i> (en Linux/Unix).<br/><br/><b>Para os administradores:</b><br/> Se quere que qshutdown se execute con «bloqueo de menores» para todos os usuarios, pode facer: «sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d» e estabelecer a opción «Lock_all» en «/root/.qshutdown/qshutdown.conf» como «true» (verdadeiro). Teña en conta que qshutdown ten que comezar unha vez para xerar o ficheiro qshutdown.conf. Ademais, é necesario engadir a seguinte liña aos «sudoers» (como a anterior):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Se algunha vez esquece o conxunto de contrasinais, só ten que retirar, manualmente, toda a liña que comeza con «Password» do ficheiro «qshutdown.conf».<br/><br/><b>Consellos de uso:</b><br/>Se quere que qshutdown deixe de «molestar», abonda con retirar a opción «Activar os avisos?»<br/><br/><b>Atallos:</b><table border="1"><tr><td>Ctrl+I</td><td>(esta) xanela de información</td></tr><tr><td>Ctrl+Q</td><td>Saír</td></tr><tr><td>Ctrl+P</td><td>Preferencias</td></tr><tr><td>Ctrl+L</td><td>escribir unha vez o tempo de execución no ficheiro de rexistro (só funciona se qshutdown pecha. Para facelo permanente estabelézao nas preferencias).</td></tr><tr><td>Ctrl+S</td><td>estabelecer o apagado</td></tr><tr><td>Ctrl+R</td><td>estabelecer o reinicio</td></tr><tr><td>Ctrl+U</td><td>estabelecer a suspensión na RAM</td></tr><tr><td>Ctrl+H</td><td>estabelecer a hibernación</td></tr><tr><td>Ctrl+E</td><td>deter a conta atrás (só se xa comezou a conta atrás e o administrador non restrinxiu o acceso)</td></tr><tr><td>Maiús+E</td><td>para editar o ficheiro de configuración (para isto é preciso un contrasinal. Se vostede é un usuario, pode estabelecer un «contrasinal baleiro» (deixe o campo do contrasinal baleiro)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-ja.ts0000664000175000017500000007027013477730716024111 0ustar chrischris About About qshutdown qshutdown について Version バージョン &About qshutdown について(&A) &Thanks To 謝辞(&T) <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Qt を使用しています</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdownは、時間とカウントダウンのもとで動いているシャットダウンツール</p><p >デベロッパー:メッチャー・クリスティアン&lt;hakaishi@web.de&gt;</p><p >コピーライト &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >バグレポートは、<a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a>それとも<a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a>にて宜しくお願いします。</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> <p >特別に感謝したい人達:<br /></p><p >Fabian Deuchlerは色なところを助けていただきました。<br /><br />Brian NelsonはDebianへのアップロードをスポンサーしていただきました。<br /><br />Miquel Banchs i Piquéは曜日ごとのスケジューラのアイディアをくださいました。</p> Calendar Calendar カレンダー Weekly 毎週 activate weekly 毎週設定を有効にし Please note that you might want to enable autostart and countdown at startup. 備考:自動起動やカウントダウンなどを有効したらいいかもしれません。 ChangePassword Change Password パスワードの変更 Retype password: もう一度入力して下さい: New password: 新しいパスワード: Old password: 旧パスワード: The current password is not correct! パスワードが間違っています! The retyped password doesn't match! パスワードが一致していません! Editor Editor エディター Gui &Minimize! 最小化!(&M) Shutdown-time: シャットダウンする時間: Minutes till shutdown: シャットダウンまでの分数: Reboot-time: 再起動する時間: Minutes till reboot: 再起動までの分数: Suspend-time: サスペンドする時間: Minutes till suspend: サスペンドまでの分数: Hibernate-time: ハイバネーションする時間: Minutes till hibernate: ハイバネーションまでの分数: shutdown in シャットダウンまで reboot in 再起動まで suspend in サスペンドまで hibernate in ハイバネーションまで years months hours 時間 days Res&tore 表示する(&T) &Minimize 最小化(&M) day minutes seconds Shutdown シャットダウン Reboot 再起動 Suspend サスペンド Hibernate ハイバネーション &Lock after start? 開始後にロックする?(&L) &Warnings on? 警告をオンにする?(&W) &Now! 今すぐ!(&N) You can set a date in the calendar カレンダーに日時を設定できる &OK &OK R&eset 再設定(&E) &Quit 終了(&Q) &Info インフォ(&I) &Logfile ログファイル(&L) &Preferences 設定(&P) &Shutdown シャットダウン(&S) &Reboot 再起動(&R) S&uspend サスペンド(&U) &Hibernate ハイバネーション(&H) Lock settings after countdown started 開始後に設定をロックする Calendar カレンダー &File ファイル(&F) &Help ヘルプ(&L) &Settings 設定(&S) &About qshutdown について(&A) &Reset 再設定(&R) &Configure 環境設定する(&C) &Keep proportions 形を変えない(&K) Warning 警告 Action imminent! 後わずか! Information インフォメーション Countdown is not running! カウントダウンは起動していません! Turns on/off all warnings 警告をオン/オフ About &Qt &Qt について Version バージョン Info Info インフォ PassWord Password パスワード &Set password パスワードを設定して下さい(&S) Password: パスワード: The password is not correct! パスワードが正しくありません! &Change password パスワードを変更する(&C) Preferences Preferences 設定 Enable the &target time at startup 起動時に目標時間を有効化する(&T) Shutdown シャットダウン Shutdown type: シャットダウンタイプ: Target time: 目標時間: Minutes to countdown: カウントダウンの分数: Font: フォント: Font size 1: フォントサイズ 1: Font size 2: フォントサイズ 2: Font size 3: フォントサイズ 3: Size for log file: ログファイルのサイズ: Reboot 再起動 Suspend サスペンド Hibernate ハイバネーション A&utostart 自動起動(&U) &Hide qshutdown at startup 起動後に qshutdown を隠す(&H) Lock screen &for suspend and hibernate サスペンドとハイバネーションの為に画面をロックする(&F) &Edit configuration file ファイルの構成編集(&E) Enable the minute &countdown at startup 起動時にカウントダウンの分数を有功にする(&C) &Reset settings 設定を元に戻す(&R) Size for log file in KB ログファイルのサイズ(KB) "&Lock after start?" 「開始後にロックする?(&L)」 "&Warnings on?" 「警告をオンにする?(&W)」 Log start time of qshutdown and how long it was running 初めから終わりまでの時間を記録する L&ogging 記録する(&L) checkboxes and "now!" button チェックボックスと「今すぐ!」ボタン OK and Minimize buttons OK と最小化ボタン Labels for example 例はラベルです Set a font フォントを設定して下さい What target time should be displayed by default at startup? どの目的時間が、起動時の標準設定で表示されるべきか。 How many minutes should be displayed for countdown by default at startup? 起動の際、カウントダウンの為の基準時間は何分と表示されるべきか。 What should be displayed first by default at startup? 機動の際、基準では何が最初に表示されるべきか。 Set if the checkbox for "Lock after start?" should be checked by default at startup 「開始後にロックする?」の項目を基準として設置する。 Set if the checkbox for "Warnings on?" should be checked by default at startup 「警告をオンにする?」の項目を基準として設置する。 The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. 通常通り、ウィンドウを閉めるためのボタンを押し、 メインウィンドウを隠します。 隠匿機能の無効化とは、qshutdownが その代わりに閉じられることを指します。 General 一般的 Advanced 詳細 Suspend method: サスペンドの方法: automatic 自動的 user defined 利用者の定義 Hibernate method: ハイバネーションの方法: Shutdown method: シャットダウンの方法: Reboot method: 再起動の方法: Please input an user specified command for suspend here ユーザーのみ、ここにサスペンドの指示を入力してください。 Gnome session Gnome session KDE session KDE session Please input an user specified command for shutdown here ユーザーのみ、ここにシャットダウンの指示を入力してください。 Please input an user specified command for reboot here ユーザーのみ、ここに再起動の指示を入力してください。 Please input an user specified command for hibernate here ユーザーのみ、ここにハイバネーションの指示を入力してください。 Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. qshutdownが続行中なので、いくつかのシステムは シャットダウンなどをブロックします。 qshutdownがカウントダウン後に終了されるべき場合は、 チェックをしてください。 Quit qshutdown after countdown ended? カウントダウンの後で qshutdown を終了するか? &Start countdown at startup 起動後にカウントダウンを始める(&S) Hide qshutdown at startup if "Start countdown" is checked. ”カウントダウンを始める”がチェックされると、 プログラム起動時にqshutdownが隠れる。 The File "%1" is not writable! Maybe you just don't have the permissions to do so. "%1"のファイルは、書きこむことができません。 おそらく、あなたはそれを許可されていません。 Error エラー Please read this carefully! 下記の文章をよく読んでください。 Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. qshutdownへようこそ! 「Gnome Shell」を使いながらqshutdownで、例えばシャットダウンを行いたいのなら(行いたければ)、おそらくシャットダウン項目が出てきます。直接シャットダウンを行いたいなら、設定でConsoleKitのシャットダウン方式を設定してください。 問題が生じた場合、もしくは、翻訳の際は、https://launchpad.net/~hakaishi をアクセスしてください。 Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. トレイアイコンを無効にするとqshutdownを トレイから表示することはできなくなります。 「メインウィンドウを閉める際に終了する」と 「起動後に qshutdown を隠す」を有効にする ことを考慮してください。qshutdownが 起動している間に表示したい時に、qshutdown を再び実行すると出ます。 Disable tray &icon トレイアイコンを無効する(&I) &Quit on closing main window メインウィンドウを閉める際に終了する(&Q) QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-ug.ts0000664000175000017500000010212713477730545024127 0ustar chrischris About About qshutdown qshutdown ھەققىدە Version نەشرى &About ھەققىدە(&A) &Thanks To تەشەككۈرلەر(&T) <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <html dir="rtl"><p><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">ئىشلىتىدۇ Qt</span></p></html> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <html dir="rtl"><p>qshutdown ۋاقىت ۋە تەتۈر ساناق ئاساسىدىكى تاقاش قورالى</p><p>يازغۇچى: &lt;Christian Metscher &lt;hakaishi@web.de</p><p>نەشر ھوقۇقىغا ئىگە &copy; 2010-‏2019, ל־Christian Metscher </p><p><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p>خاتالىق دوكلاتىنى <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> ياكى <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;\">https://bugs.launchpad.net/qt-shutdown-p</span></a> غا يوللاڭ.</p></body></html> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar يىلنامە Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password ئىم ئۆزگەرت Retype password: ئىمنى قايتا كىرگۈزۈڭ: New password: يېڭى ئىم: Old password: كونا ئىم: The current password is not correct! نۆۋەتتىكى ئىم خاتا! The retyped password doesn't match! قايتا كىرگۈزگەن ئىم ماس كەلمىدى! Editor Editor تەھرىرلىگۈچ Gui &Minimize! كىچىكلەت(&M)! Shutdown-time: تاقاش ۋاقتى: Minutes till shutdown: تاقاشقىچە قالغان ۋاقىت: Reboot-time: قايتا قوزغىتىش ۋاقتى: Minutes till reboot: قايتا قوزغىتىشقىچە قالغان ۋاقىت: Suspend-time: ئېسىلغان ۋاقىت: Minutes till suspend: ئېسىشقىچە بولغان ۋاقىت: Hibernate-time: ئۆچەك ۋاقتى: Minutes till hibernate: ئۈچەككىچە بولغان ۋاقىت: shutdown in دە ئېتىش reboot in دە قايتا قوزغىتىش suspend in ئېسىپ قويدى hibernate in ئۈچەكتە years يىللار months ئايلار hours سائەت days كۈن Res&tore ئەسلىگە كەلتۈر(&T) &Minimize كىچىكلەت(&M) day كۈن minutes مىنۇت seconds سېكۇنت Shutdown تاقا Reboot قايتا قوزغىتىش Suspend توڭلىتىش Hibernate ئۈچەك &Lock after start? قوزغاتقاندىن كىيىن قۇلۇپلا؟(&L) &Warnings on? ئاگاھلاندۇرامدۇ؟(&W) &Now! دەرھال(&N)! You can set a date in the calendar يىلنامە چېسلاسىنى تەڭشىيەلەيسىز &OK جەزملە(&O) R&eset ئەسلىگە قايتۇر(&E) &Quit چېكىن(&Q) &Info ئۇچۇرى(&I) &Logfile خاتىرە ھۆججەت(&L) &Preferences مايىللىق(&P) &Shutdown تاقا(&S) &Reboot قايتا قوزغات(&R) S&uspend ئېسىپ قويۇلدى(&U) &Hibernate ئۆچەككە كىرگۈز(&H) Lock settings after countdown started تەتۈر ساناق باشلانغاندا تەڭشەكنى قۇلۇپلا Calendar يىلنامە &File ھۆججەت(&F) &Help ياردەم(&H) &Settings تەڭشەكلەر(&S) &About ھەققىدە(&A) &Reset ئەسلىگە قايتۇر(&R) &Configure سەپلە(&C) &Keep proportions نىسبەتنى ساقلاپ قال(&K) Warning ئاگاھلاندۇرۇش Action imminent! مەشغۇلات يېقىنلاپ قالدى! Information ئۇچۇر Countdown is not running! تەتۈر ساناق ئىجرا قىلىنمايۋاتىدۇ! Turns on/off all warnings ھەممە ئاگاھلاندۇرۇشنى ئاچ/تاقا About &Qt &Qt ھەققىدە Version نەشرى Info Info ئۇچۇر PassWord Password ئىم &Set password ئىم تەڭشەك(&S) Password: ئىم: The password is not correct! ئىم خاتا! &Change password ئىم ئۆزگەرت(&C) Preferences Preferences مايىللىق Enable the &target time at startup قوزغاتقاندا نىشان ۋاقىتنى قوزغات(&T) Shutdown تاقا Shutdown type: تاقاش تىپى: Target time: نىشان ۋاقىت: Minutes to countdown: تەتۈر ساناش ۋاقتى: Font: خەت نۇسخا: Font size 1: خەت نۇسخا 1: Font size 2: خەت نۇسخا 2: Font size 3: خەت نۇسخا 3: Size for log file: خاتىرە ھۆججەت چوڭلۇقى: Reboot قايتا قوزغات Suspend توڭلات Hibernate ئۈچەك A&utostart ئۆزلۈكىدىن قوزغات&U) &Hide qshutdown at startup قوزغالغاندا qshutdown نى يوشۇر (&H) Lock screen &for suspend and hibernate توڭلاتقان ۋە ئۆچەككە كىرگەندە ئېكراننى قۇلۇپلا (&F) &Edit configuration file سەپلىمە ھۆججەت تەھرىر(&E) Enable the minute &countdown at startup قوزغالغاندا مىنۇت تەتۈر ساناقنى قوزغات(&C) &Reset settings تەڭشەكلەرنى ئەسلىگە قايتۇر(&R) Size for log file in KB خاتىرە ھۆججەت سىغىمى كىلوبايت "&Lock after start?" «قوزغالغاندىن كېيىن قۇلۇپلامدۇ؟(&L)» "&Warnings on?" «ئاگاھلاندۇرامدۇ؟(&W)» Log start time of qshutdown and how long it was running qshutdown نىڭ قوزغالغان ۋاقتى ۋە قانچىلىك ۋاقىت ئىجرا قىلىنغانلىقىنى خاتىرىلەيدۇ L&ogging تىزىمغا كىرىۋاتىدۇ(&O) checkboxes and "now!" button كۆپ تاللاش رامكىسى ۋە «دەرھال!» توپچىسى OK and Minimize buttons جەزملە ۋە كىچىكلەت توپچا Labels for example مىسالنىڭ بەلگىسى Set a font خەت نۇسخا تەڭشەك What target time should be displayed by default at startup? كۆڭۈلدىكى ئەھۋالدا قوزغالغاندا قانداق نىشان ۋاقىتنى كۆرسىتىدۇ؟ How many minutes should be displayed for countdown by default at startup? كۆڭۈلدىكى ئەھۋالدا قوزغالغاندا تەتۈر ساناقنى قانچە مىنۇت كۆرسىتىدۇ؟ What should be displayed first by default at startup? كۆڭۈلدىكى ئەھۋالدا قوزغالغاندا ئالدى بىلەن نېمىنى كۆرسىتىدۇ؟ Set if the checkbox for "Lock after start?" should be checked by default at startup ئەگەر «قوزغىلىشتىن ئىلگىرى قۇلۇپلانسۇنمۇ؟» تاللانما رامكا تاللانغان بولسا كۆڭۈلدىكى ئەھۋالدا قوزغىتىش قىلىپ تەڭشىلىدۇ. Set if the checkbox for "Warnings on?" should be checked by default at startup ئەگەر «ئاگاھلاندۇرۇشنى ئاچامدۇ؟» تاللانما رامكا تاللانغان بولسا كۆڭۈلدىكى ئەھۋالدا قوزغىتىش قىلىپ تەڭشىلىدۇ. The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. تاقا توپچىسى ئادەتتە ئاساسىي كۆزنەكنى يوشۇرىدۇ. يوشۇرۇشنى چەكلەش qshutdown دىن شۇئان چېكىنىشنى بىلدۈرىدۇ. General ئادەتتىكى Advanced ئالىي Suspend method: توڭلىتىش ئۇسۇلى: automatic ئاپتوماتىك user defined ئىشلەتكۈچى بەلگىلىگەن Hibernate method: ئۈچەك ئۇسۇلى: Shutdown method: تاقاش ئۇسۇلى: Reboot method: قايتا قوزغىتىش ئۇسۇلى: Please input an user specified command for suspend here بۇ جايدا توڭلىتىش ئۈچۈن ئىشلەتكۈچى بەلگىلىگەن بۇيرۇقنى كىرگۈزۈڭ Gnome session Gnome ئەڭگىمە KDE session KDE ئەڭگىمە Please input an user specified command for shutdown here بۇ جايدا تاقاش ئۈچۈن ئىشلەتكۈچى بەلگىلىگەن بۇيرۇقنى كىرگۈزۈڭ Please input an user specified command for reboot here بۇ جايدا قايتا قوزغىتىش ئۈچۈن ئىشلەتكۈچى بەلگىلىگەن بۇيرۇقنى كىرگۈزۈڭ Please input an user specified command for hibernate here بۇ جايدا ئۈچەككە كىرىش ئۈچۈن ئىشلەتكۈچى بەلگىلىگەن بۇيرۇقنى كىرگۈزۈڭ Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. بەزى سىستېمىلار كومپيۇتېرنى تاقاشقا ئوخشاش مەشغۇلاتنى توسىدۇ چۈنكى qshutdown ئىجرا قىلىنىۋاتىدۇ. تەتۈر ساناق ئاخىرلاشقاندىن كېيىن qshutdown چېكىنىدىغان بولسا ئىلمەك (hook)تىن بىرنى تەڭشەڭ. Quit qshutdown after countdown ended? تەتۈر ساناق ئاخىرلاشقاندىن كېيىن qshutdown دىن چېكىنەمدۇ؟ &Start countdown at startup قوزغالغاندا countdown نى قوزغات(&S) Hide qshutdown at startup if "Start countdown" is checked. «قوزغالغاندا countdown نى قوزغات» تاللانغان بولسا قوزغالغاندا qshutdown نى يوشۇر. The File "%1" is not writable! Maybe you just don't have the permissions to do so. بۇ "%1" ھۆججەتكە يازالمايدۇ! بەلكىم يېزىش ھوقۇقىڭىز بولماسلىقى مۇمكىن. Error خاتالىق Please read this carefully! بۇنى تەپسىلىي ئوقۇڭ ! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> يەنە 70 سېكۇنتمۇ قالمىغاندا qshutdown ئۈچ قېتىم ئاگاھلاندۇرىدۇ. <br/><br/>بۇ پىروگرامما qdbus ئىشلىتىپ gnome- ياكىkde-session-manager ياكى HAL/ConsoleKit/DeviceKit/UPower غا تاقا/قايتا قوزغات/توڭلات/ئۆچەك ئىلتىماسىنى يوللايدۇ. ئەگەر ھېچقايسىسىدا ئىنكاس بولمىسا ئۇنداقتا «sudo shutdown» بۇيرۇقى(دىققەت، HAL ياكى ConsoleKit قا ئىلتىماس يوللىغان ياكى shutdown بۇيرۇقىنى ئىشلەتكەندە، سۆزلىشىشنى ساقلىغىلى بولمايدۇ. shutdown بۇيرۇقىنى ئىشلەتكەندە، پىروگرامما پەقەت كومپيۇتېرنى تاقىيالايدۇ ياكى قايتا قوزغىتالايدۇ)نى ئىشلىتىڭ. شۇڭلاشقا، ئەگەر كومپيۇتېرنى تاقاش ياكى قايتا قوزغىتىش ۋاقتى توشقاندا، مەشغۇلات بولمىسا، ئىشلەتكۈچىنىڭ shutdown بۇيرۇقىنى ئىجرا قىلىش ھوقۇقى يوقلۇقىنى بىلدۈرىدۇ. بۇ خىل ئەھۋالدا ئىشلەتكۈچى تۆۋەندىكىدەك مەشغۇلات قىلسا بولىدۇ: <br/><br/>تۆۋەندىكى بۇيرۇقنى تېرمىنالغا كۆچۈرۈپ: <pre>EDITOR=nano sudo -E visudo</pre> بۇ بىر قۇر بۇيرۇقنى قوشۇپ <pre>* ALL = NOPASSWD:/sbin/shutdown</pre>بۇنىڭدا * ئىشلەتكۈچى ئاتى ياكى %group ئاتى بىلەن ئالماشتۇرۇلىدۇ. <br/><br/> كومپيۇتېرنى تەتۈر ساناقتا تاقاش ئەڭ ئۇزۇن بولغاندا 1440 مىنۇت (24 سائەت).<br/>سەپلىمە ھۆججەت (ۋە كۈندىلىك خاتىرە ھۆججەت) ئورنى <i>~/.qshutdown/</i> (Linux/Unix مۇھىتىدا). <br/><br/><b>باشقۇرغۇچىغا نىسبەتەن: </b><br/>ئەگەر ھەر بىر ئىشلەتكۈچىنىڭ qshutdown بۇيرۇقىنى «ئاتا ئانا تىزگىنى» ئۇسۇلىدا ئىجرا قىلدۇرۇشنى ئويلىسىڭىز، «sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/» نى ئىجرا قىلىڭ ھەمدە /root/.qshutdown/qshutdown.conf دىكى Lock_all تاللانمىنى true (راست) قىلىپ تەڭشەڭ دىققەت qshutdown نى بىرلا قېتىم ئىجرا قىلىپ qshutdown.conf نى شەكىللەندۈرىدۇ. ئۇنىڭدىن باشقا sudoers غا بىر قۇر (ئۈستىدىكى بىلەن ئوخشاش) قوشۇڭ: <pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>ئەگەر سىز ئېھتىياتسىزلىقتىن تەڭشىگەن ئىمنى ئۇنتۇپ قالسىڭىز، qshutdown.conf دىن «Password» بار قۇرنى ئۆچۈرۈۋەتسىڭىزلا بولىدۇ. <br/><br/><b>ئىشلىتىش ئەسكەرتىشى: </b><br/>ئەگەر qshutdown نىڭ سىزنى ئاۋارە قىلىشىنى خاھلىمىسىڭىز «ئاگاھلاندۇرۇشنى باشلامدۇ؟» دىن بۇ ئىلمەكنى ئېلىۋەتسىڭىز بولىدۇ.<br/><br/><b>تېز كۇنۇپكا: </b><table border="1"><tr><td>Ctrl+I</td><td>بۇ ئۇچۇر كۆزنىكى </td></tr><tr><td>Ctrl+Q</td><td>چېكىن</td></tr><tr><td>Ctrl+P</td><td>مايىللىق</td></tr><tr><td>Ctrl+L</td><td>ئىجرا قىلىش ۋاقتىنى كۈندىلىك خاتىرە ھۆججىتىگە بىر قېتىم (پەقەت qshutdown چېكىنگەندە ئاندىن كۈچكە ئىگە. مەڭگۈلۈك تەڭشىمەكچى بولسىڭىز مايىللىقتىن ئۆزگەرتىڭ.)يازىدۇ.</td></tr><tr><td>Ctrl+S</td><td>تاقاشقا تەڭشە</td></tr><tr><td>Ctrl+R</td><td>قايتا قوزغىتىشقا تەڭشە</td></tr><tr><td>Ctrl+U</td><td>ئەسلەككە توڭلات</td></tr><tr><td>Ctrl+H</td><td>ئۈچەككە تەڭشە</td></tr><tr><td>Ctrl+E</td><td>تەتۈر ساناقنى توختات(پەقەت تەتۈر ساناق قوزغىتىلغان ھەمدە باشقۇرغۇچى چەكلىمىگەن ئەھۋالدا كۈچكە ئىگە)</td></tr><tr><td>Shift+E</td><td>سەپلىمە ھۆججەت تەھرىر (بۇنىڭغا بىر ئىم كېرەك. ئەگەر پەقەت سىزلا بولسىڭىز «بوش ئىم» )(ئىم سۆز بۆلىكىنى تولدۇرمايسىز)تەڭشىسىڭىز بولىدۇ.</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-hr.ts0000664000175000017500000006046613477730130024124 0ustar chrischris About About qshutdown O qshutdown Version Inačica &About &O programu &Thanks To &Zahvale <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">koristi Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Kalendar Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Promijeni lozinku Retype password: Ponovi lozinku: New password: Nova lozinka: Old password: Stara lozinka: The current password is not correct! Trenutna lozinka nije ispravna! The retyped password doesn't match! Potvrda lozinke se ne poklapa! Editor Editor Uređivač Gui &Minimize! &Smanji! Shutdown-time: Vrijeme do gašenja: Minutes till shutdown: Minuta do gašenja: Reboot-time: Vrijeme do ponovnog pokretanja: Minutes till reboot: Minuta do ponovnog pokretanja: Suspend-time: Vrijeme suspenzije: Minutes till suspend: Minuta do suspenzije: Hibernate-time: Vrijeme hibernacije: Minutes till hibernate: Minuta do hibernacije: shutdown in gašenje u reboot in ponovno pokretanje u suspend in suspenzija u hibernate in hibernacija u years godina months mjeseci hours sati days dani Res&tore Pri&kaži &Minimize &Minimiziraj day dan minutes minute seconds sekunde Shutdown Isključi Reboot Ponovno pokreni Suspend Suspenzija Hibernate Hiberniraj &Lock after start? &Zaključaj nakon pokretanja? &Warnings on? &Prikaži upozorenja? &Now! &Isključi odmah! You can set a date in the calendar Datum možete postaviti u kalendaru &OK &U redu R&eset P&oništi &Quit &Prestanak &Info &Informacije &Logfile &Dnevnik datoteka &Preferences &Postavke &Shutdown &Isključivanje &Reboot &Ponovno pokretanje S&uspend S&uspendiraj &Hibernate &Hiberniraj Lock settings after countdown started Zaključaj postavke nakon što je pokrenuto odbrojavnje Calendar Kalendar &File &Datoteka &Help &Pomoć &Settings &Postavke &About &O programu &Reset &Poništi &Configure &Podešavanje &Keep proportions &Zadrži razmjer Warning Upozorenje Action imminent! Radnja je neminovna! Information Informacije Countdown is not running! Odbrojavanje nije pokrenuto! Turns on/off all warnings Uključi/Isključi sva upozorenja About &Qt O &Qt Version Inačica Info Info Informacije PassWord Password Lozinka &Set password &Postavi lozinku Password: Lozinka: The password is not correct! Lozinka nije ispravna! &Change password &Promijeni lozinku Preferences Preferences Postavke Enable the &target time at startup Omogući &ciljano vrijeme pri pokretanju Shutdown Isključi Shutdown type: Način isključivanja: Target time: Ciljano vrijeme: Minutes to countdown: Minute za odbrojavanje: Font: Slovo: Font size 1: Veličina slova 1: Font size 2: Veličina slova 2: Font size 3: Veličina slova 3: Size for log file: Veličina datoteke dnevnika: Reboot Ponovno pokreni Suspend Suspendiraj Hibernate Hiberniraj A&utostart A&utomatsko pokretanje &Hide qshutdown at startup &Sakrij qshutdown pri pokretanju Lock screen &for suspend and hibernate Zaključaj zaslon &pri suspenziji i hibernaciji &Edit configuration file Uredi konfiguracijsku datoteku Enable the minute &countdown at startup Omogući odbrojavanje &minuta pri pokretanju &Reset settings &Vrati početne postavke Size for log file in KB Veličina za dnevnik datoteku u KB "&Lock after start?" "&Zaključaj nakon pokretanja?" "&Warnings on?" "&Prikaži upozorenja?" Log start time of qshutdown and how long it was running Zapiši vrijeme pokretanja programa qshutdown i koliko dugo je bio pokrenut L&ogging Z&apisivanje dnevnika checkboxes and "now!" button potvrdni okviri i "sad!" gumb OK and Minimize buttons OK i Minimiziraj buttons gumbi Labels for example Oznake za primjer Set a font Postavi slova What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? What should be displayed first by default at startup? Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. General Općenito Advanced Napredno Suspend method: Način suspenzije: automatic automatski user defined korisnički definirano Hibernate method: Način hibernacije: Shutdown method: Način isključivanja: Reboot method: Način ponovnog pokretanja: Please input an user specified command for suspend here Molim vas, ovdje unesite korisnički određenu naredbu za suspendiranje Gnome session Gnome sesija KDE session KDE sesija Please input an user specified command for shutdown here Molim vas, ovdje unesite korisnički određenu naredbu za isključivanje Please input an user specified command for reboot here Molim vas, ovdje unesite korisnički određenu naredbu za ponovno pokretanje Please input an user specified command for hibernate here Molim vas, ovdje unesite korisnički određenu naredbu za hibernaciju Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? Ugasi qshutdown nakon što je odbrojavanja završilo? &Start countdown at startup &Početak odbrojavanja pri pokretanju Hide qshutdown at startup if "Start countdown" is checked. The File "%1" is not writable! Maybe you just don't have the permissions to do so. U Datoteku "%1" nije dopušteno pisanje! Možda naprosto nemate dopuštenja za to. Error Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-en_AU.ts0000664000175000017500000007213313477730751024505 0ustar chrischris About About qshutdown About qshutdown Version Version &About &About &Thanks To &Thanks To <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendar Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Change Password Retype password: Retype password: New password: New password: Old password: Old password: The current password is not correct! The current password is not correct! The retyped password doesn't match! The retyped password doesn't match! Editor Editor Editor Gui &Minimize! &Minimize! Shutdown-time: Shutdown-time: Minutes till shutdown: Minutes till shutdown: Reboot-time: Reboot-time: Minutes till reboot: Minutes till reboot: Suspend-time: Suspend-time: Minutes till suspend: Minutes till suspend: Hibernate-time: Hibernate-time: Minutes till hibernate: Minutes till hibernate: shutdown in shutdown in reboot in reboot in suspend in suspend in hibernate in hibernate in years years months months hours hours days days Res&tore Res&tore &Minimize &Minimise day day minutes minutes seconds seconds Shutdown Shutdown Reboot Reboot Suspend Suspend Hibernate Hibernate &Lock after start? &Lock after start? &Warnings on? &Warnings on? &Now! &Now! You can set a date in the calendar You can set a date in the calendar &OK &OK R&eset R&eset &Quit &Quit &Info &Info &Logfile &Logfile &Preferences &Preferences &Shutdown &Shutdown &Reboot &Reboot S&uspend S&uspend &Hibernate &Hibernate Lock settings after countdown started Lock settings after countdown started Calendar Calendar &File &File &Help &Help &Settings &Settings &About &About &Reset &Reset &Configure &Configure &Keep proportions &Keep proportions Warning Warning Action imminent! Action imminent! Information Information Countdown is not running! Countdown is not running! Turns on/off all warnings Turns on/off all warnings About &Qt About &Qt Version Version Info Info Info PassWord Password Password &Set password &Set password Password: Password: The password is not correct! The password is not correct! &Change password &Change password Preferences Preferences Preferences Enable the &target time at startup Enable the &target time at startup Shutdown Shutdown Shutdown type: Shutdown type: Target time: Target time: Minutes to countdown: Minutes to countdown: Font: Font: Font size 1: Font size 1: Font size 2: Font size 2: Font size 3: Font size 3: Size for log file: Size for log file: Reboot Reboot Suspend Suspend Hibernate Hibernate A&utostart A&utostart &Hide qshutdown at startup &Hide qshutdown at startup Lock screen &for suspend and hibernate Lock screen &for suspend and hibernate &Edit configuration file &Edit configuration file Enable the minute &countdown at startup Enable the minute &countdown at startup &Reset settings &Reset settings Size for log file in KB Size for log file in KB "&Lock after start?" "&Lock after start?" "&Warnings on?" "&Warnings on?" Log start time of qshutdown and how long it was running Log start time of qshutdown and how long it was running L&ogging L&ogging checkboxes and "now!" button checkboxes and "now!" button OK and Minimize buttons OK and Minimise buttons Labels for example Labels for example Set a font Set a font What target time should be displayed by default at startup? What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? How many minutes should be displayed for countdown by default at startup? What should be displayed first by default at startup? What should be displayed first by default at startup? Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. General General Advanced Advanced Suspend method: Suspend method: automatic automatic user defined user defined Hibernate method: Hibernate method: Shutdown method: Shutdown method: Reboot method: Reboot method: Please input an user specified command for suspend here Please input an user specified command for suspend here Gnome session Gnome session KDE session KDE session Please input an user specified command for shutdown here Please input an user specified command for shutdown here Please input an user specified command for reboot here Please input an user specified command for reboot here Please input an user specified command for hibernate here Please input an user specified command for hibernate here Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? Quit qshutdown after countdown ended? &Start countdown at startup &Start countdown at startup Hide qshutdown at startup if "Start countdown" is checked. Hide qshutdown at startup if "Start countdown" is checked. The File "%1" is not writable! Maybe you just don't have the permissions to do so. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Error Error Please read this carefully! Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon Disable tray &icon &Quit on closing main window &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-en_GB.ts0000664000175000017500000007272013477731144024467 0ustar chrischris About About qshutdown About qshutdown Version Version &About &About &Thanks To &Thanks To <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendar Weekly Weekly activate weekly activate weekly Please note that you might want to enable autostart and countdown at startup. Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Change Password Retype password: Retype password: New password: New password: Old password: Old password: The current password is not correct! The current password is not correct! The retyped password doesn't match! The retyped password doesn't match! Editor Editor Editor Gui &Minimize! &Minimise! Shutdown-time: Shutdown-time: Minutes till shutdown: Minutes until shutdown: Reboot-time: Reboot-time: Minutes till reboot: Minutes until reboot: Suspend-time: Suspend-time: Minutes till suspend: Minutes till suspend: Hibernate-time: Hibernate-time: Minutes till hibernate: Minutes until hibernation: shutdown in shutdown in reboot in reboot in suspend in suspend in hibernate in hibernate in years years months months hours hours days days Res&tore Res&tore &Minimize &Minimise day day minutes minutes seconds seconds Shutdown Shutdown Reboot Reboot Suspend Suspend Hibernate Hibernate &Lock after start? &Lock after start? &Warnings on? &Warnings on? &Now! &Now! You can set a date in the calendar You can set a date in the calendar &OK &OK R&eset R&eset &Quit &Quit &Info &Info &Logfile &Logfile &Preferences &Preferences &Shutdown &Shutdown &Reboot &Reboot S&uspend S&uspend &Hibernate &Hibernate Lock settings after countdown started Lock settings after countdown started Calendar Calendar &File &File &Help &Help &Settings &Settings &About &About &Reset &Reset &Configure &Configure &Keep proportions &Keep proportions Warning Warning Action imminent! Action imminent! Information Information Countdown is not running! Countdown is not running! Turns on/off all warnings Turns on/off all warnings About &Qt About &Qt Version Version Info Info Info PassWord Password Password &Set password &Set password Password: Password: The password is not correct! The password is not correct! &Change password &Change password Preferences Preferences Preferences Enable the &target time at startup Enable the &target time at startup Shutdown Shutdown Shutdown type: Shutdown type: Target time: Target time: Minutes to countdown: Minutes to countdown: Font: Font: Font size 1: Font size 1: Font size 2: Font size 2: Font size 3: Font size 3: Size for log file: Size for log file: Reboot Reboot Suspend Suspend Hibernate Hibernate A&utostart A&utostart &Hide qshutdown at startup &Hide qshutdown at startup Lock screen &for suspend and hibernate Lock screen &for suspend and hibernate &Edit configuration file &Edit configuration file Enable the minute &countdown at startup Enable the minute &countdown at startup &Reset settings &Reset settings Size for log file in KB Size for log file in KB "&Lock after start?" "&Lock after start?" "&Warnings on?" "&Warnings on?" Log start time of qshutdown and how long it was running Log start time of qshutdown and how long it was running L&ogging L&ogging checkboxes and "now!" button checkboxes and "now!" button OK and Minimize buttons OK and Minimise buttons Labels for example Labels for example Set a font Set a font What target time should be displayed by default at startup? What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? How many minutes should be displayed for countdown by default at startup? What should be displayed first by default at startup? What should be displayed first by default at startup? Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. General General Advanced Advanced Suspend method: Suspend method: automatic automatic user defined user defined Hibernate method: Hibernate method: Shutdown method: Shutdown method: Reboot method: Reboot method: Please input an user specified command for suspend here Please input an user specified command for suspend here Gnome session Gnome session KDE session KDE session Please input an user specified command for shutdown here Please input an user specified command for shutdown here Please input an user specified command for reboot here Please input an user specified command for reboot here Please input an user specified command for hibernate here Please input an user specified command for hibernate here Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? Quit qshutdown after countdown ended? &Start countdown at startup &Start countdown at startup Hide qshutdown at startup if "Start countdown" is checked. Hide qshutdown at startup if "Start countdown at startup" is checked. The File "%1" is not writable! Maybe you just don't have the permissions to do so. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Error Error Please read this carefully! Please read this carefully! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anything concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon Disable tray &icon &Quit on closing main window &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the username or %groupname.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configurationfile (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Prefereces</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the config file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-es.ts0000664000175000017500000007454113477731000024116 0ustar chrischris About About qshutdown Acerca de qshutdown Version Versión &About &Acerca de &Thanks To Agradecimien&tos a <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Utiliza Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, un tiempo regresivo basado en la herramienta de apagado shutdown tool</p><p >Autor: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, por Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> Para reportar un error.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendario Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Cambiar contraseña Retype password: Vuelva a escribir la contraseña: New password: Contraseña nueva: Old password: Contraseña anterior: The current password is not correct! La contraseña actual no es correcta. The retyped password doesn't match! La contraseña reescrita no coincide. Editor Editor Editor Gui &Minimize! &Minimizar Shutdown-time: Tiempo de apagado: Minutes till shutdown: Minutos hasta apagar: Reboot-time: Tiempo de reinicio: Minutes till reboot: Minutos hasta reiniciar: Suspend-time: Tiempo de suspensión: Minutes till suspend: Minutos hasta suspender: Hibernate-time: Tiempo de hibernado: Minutes till hibernate: Minutos hasta hibernar: shutdown in apagado en reboot in reinicio en suspend in suspensión en hibernate in hibernación en years años months meses hours horas days días Res&tore Res&taurar &Minimize &Minimizar day día minutes minutos seconds segundos Shutdown Apagar Reboot Reiniciar Suspend Suspender Hibernate Hibernar &Lock after start? ¿&Bloquear después de iniciar? &Warnings on? ¿Activar a&visos? &Now! &Ahora You can set a date in the calendar Puede establecer una fecha en el calendario &OK &Aceptar R&eset R&establecer &Quit &Salir &Info &Información &Logfile Archivo de &registro &Preferences &Preferencias &Shutdown &Apagar &Reboot &Reiniciar S&uspend S&uspender &Hibernate &Hibernar Lock settings after countdown started Bloquear la configuración después de iniciada la cuenta atrás Calendar Calendario &File &Archivo &Help Ay&uda &Settings &Opciones &About &Acerca de &Reset &Restablecer &Configure &Configurar &Keep proportions &Mantener proporciones Warning Aviso Action imminent! ¡Acción inminente! Information Información Countdown is not running! La cuenta regresiva no está corriendo! Turns on/off all warnings Activa o desactiva todos los avisos About &Qt Acerca de &Qt Version Versión Info Info Información PassWord Password Contraseña &Set password E&stablecer contraseña Password: Contraseña: The password is not correct! La contraseña no es correcta. &Change password &Cambiar contraseña Preferences Preferences Preferencias Enable the &target time at startup Habilitar el &objetivo y el tiempo en el arranque Shutdown Apagar Shutdown type: Tipo de apagado: Target time: Tiempo Objetivo: Minutes to countdown: Minutos a la cuenta regresiva: Font: Tipo de letra: Font size 1: Tamaño de letra 1: Font size 2: Tamaño de letra 2: Font size 3: Tamaño de letra 3: Size for log file: Tamaño para el archivo log: Reboot Reiniciar Suspend Suspender Hibernate Hibernar A&utostart Iniciar a&utomáticamente &Hide qshutdown at startup &Ocultar qshutdown al inicio Lock screen &for suspend and hibernate &Bloquear la pantalla al suspender o hibernar &Edit configuration file &Editar archivo de configuración Enable the minute &countdown at startup Habilitar el &contador de minutos al inicio &Reset settings &Restablecer opciones Size for log file in KB Tamaño para el archivo log en KB "&Lock after start?" «¿&Bloquear después de iniciar?» "&Warnings on?" «¿Activar a&visos?» Log start time of qshutdown and how long it was running Registrar el tiempo de inicio de qshutdown y por cuánto estuvo en funcionamiento L&ogging &Registro checkboxes and "now!" button casillas de verificación y botón «ahora» OK and Minimize buttons Botones Aceptar y Minimizar Labels for example Etiquetas por ejemplo Set a font Establecer un tipo de letra What target time should be displayed by default at startup? ¿Qué tiempo objetivo debe ser visualizado por defecto en el arranque? How many minutes should be displayed for countdown by default at startup? ¿Cuántos minutos deberán ser mostrados, por defecto, para la cuenta regresiva al inicio? What should be displayed first by default at startup? ¿Qué se debe mostrar en primer lugar por defecto en el arranque? Set if the checkbox for "Lock after start?" should be checked by default at startup Establecer si la casilla de verificación "Bloquear después de empezar?" debe ser marcada por defecto en el arranque Set if the checkbox for "Warnings on?" should be checked by default at startup Establecer si la casilla de verificación de "Advertencias sobre?" debe ser marcada por defecto en el arranque The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Normalmente, el botón de cerrar oculta la ventana principal. Al desactivar el ocultamiento se saldrá completamente de la aplicación al pulsar el botón, en vez de ocultarla. General General Advanced Avanzado Suspend method: Método de suspensión: automatic automático user defined definido por el usuario Hibernate method: Método de hibernación: Shutdown method: Método de apagado: Reboot method: Método de reinicio: Please input an user specified command for suspend here Escriba aquí un comando específico para suspender Gnome session Sesión de Gnome KDE session Sesión de KDE Please input an user specified command for shutdown here Escriba aquí un comando específico para apagar Please input an user specified command for reboot here Escriba aquí un comando específico para reiniciar Please input an user specified command for hibernate here Ingrese un comando específico de usuario para hibernar Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Algunos sistemas bloquean por ejemplo el apagado por que qshutdown esta aún corriendo. Establezca un gancho si qshutdown deberá cerrarse después de terminada la cuenta regresiva. Quit qshutdown after countdown ended? ¿Salir de qshutdown cuando termine la cuenta atrás? &Start countdown at startup &Inicia la cuenta regresiva en el inicio Hide qshutdown at startup if "Start countdown" is checked. Oculta qshutdown al inicio si "Iniciar la cuenta regresiva" está marcado. The File "%1" is not writable! Maybe you just don't have the permissions to do so. El archivo «%1» no es escribible. Quizá no tiene los permisos para hacerlo. Error Error Please read this carefully! Por favor, lea esto cuidadosamente! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Bienvenido a qshutdown! Si quieres qshutdown ejemplo para apagar el sistema y está usando el Gnome Shell, entonces es probable que obtenga un diálogo de apagado a partir de ahí. Si desea un apagado directo, entonces por favor considere entrar en las preferencias y establecer el método de apagado a ConsoleKit o alguna otra cosa. Por favor, siéntase libre para visitar https://launchpad.net/~hakaishi reportar errores o para cualquier cosa concerniente a traducciones. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Desactivación del icono de la bandeja significa que ya no es posible para restaurar qshutdown desde la bandeja. Por favor, considerar también la comprobación "Salir al cerrar la ventana principal "y" Ocultar qshutdown en el arranque ". Si qshutdown todavía se está ejecutando y desea que reaparezca, a continuación, sólo ejecutar qshutdown de nuevo, del mismo modo como lo haría normalmente. Por lo tanto, volverá a aparecer. Disable tray &icon Desactivar la bandeja y el &icono &Quit on closing main window &Salir al cierre de la ventana principal QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown se demostrará 3 veces como una advertencia si hay menos de 70 segundos en el reloj.<br/><br/>Este programa usa qdbus para enviar un apagado/reinicio/Suspensión/hibernación solicitud ya sea a la gnome o kde-session-manager,a HAL/ConsoleKit/DeviceKit/UPower y si ninguna de estas funciona, el comando 'sudo shutdown' se utilizará (tenga en cuenta que al enviar la solicitud de cierre de HAL o ConsoleKit, el comando shutdown es utilizado,nunca se guarda la sesión . Si el comando shutdown es usado,el programa sólo será capaz de apagar y reiniciar el sistema ). Así que si no pasa nada cuando el cierre – o reinicie-se alcanza el tiempo, esto significa que se carece de los derechos para el comando shutdown . IEn este caso uno puede hacer lo siguiente :<br/><br/>Pegue lo siguiente en una terminal :<pre>EDITOR=nano sudo -E visudo</pre>y adjunta esta linea:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * sustituye el nombre de usuario o %group name.<br/><br/>El máximo número de countdown_minutes es 1440 (24 horas).<br/>El archivo de configuración (y archivo de registro) esta ubicado en <i>~/.qshutdown/</i> (bajoLinux/Unix).<br/><br/><b>Para administradores:</b><br/>Si quieres correr qshutdown con "parental lock" para todos los usuarios, usted puede hacer "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/"y establecer la opción Lock_all en /root/.qshutdown/qshutdown.conf como true. Tenga en cuenta que qshutdown tiene que comenzar una vez para generar la qshutdown.conf. Además existe la necesidad de añadir la siguiente línea a los sudoers (como anteriormente):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Si alguna vez se olvide de su contraseña de configuración, basta con retirar toda la línea que comienza con "Password" manualmente desde el qshutdown.conf.<br/><br/><b>Consejos sobre el uso :</b><br/>Si quieres detener qshutdown "bugging"usted, simplemente quite el gancho de "advertencias sobre? ".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(esta) ventana de información</td></tr><tr><td>Ctrl+Q</td><td>Salir</td></tr><tr><td>Ctrl+P</td><td>Preferencias</td></tr><tr><td>Ctrl+L</td><td>escribir el tiempo de ejecución, una vez en el archivo de registro(sólo funciona si qshutdown cierra. Para hacerlo permanente configuralo en las preferencias. )</td></tr><tr><td>Ctrl+S</td><td>configurar para apagar</td></tr><tr><td>Ctrl+R</td><td>configurar para reiniciar</td></tr><tr><td>Ctrl+U</td><td>configurar para suspender la RAM</td></tr><tr><td>Ctrl+H</td><td>configurar para hibernar</td></tr><tr><td>Ctrl+E</td><td>detener cuenta regresiva (sólo si la cuenta regresiva ha comenzado y el administrador no restringir el acceso) </td></tr><tr><td>Shift+E</td><td>para editar el archivo de configuración(para esto es necesaria una contraseña. Si usted es un usuario, puede establecer una "Clave vacia" (dejar el campo de contraseña vacío)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-cs.ts0000664000175000017500000005674013477730570024130 0ustar chrischris About About qshutdown O aplikaci qshutdown Version Verze &About O &aplikaci &Thanks To Podě&kování <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Kalendář Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Změnit heslo Retype password: Heslo znovu: New password: Nové heslo: Old password: Původní heslo: The current password is not correct! Aktuální heslo není správné! The retyped password doesn't match! Přepsané heslo nesouhlasí! Editor Editor Editor Gui &Minimize! &Minimalizovat! Shutdown-time: Čas vypnutí: Minutes till shutdown: Minut do vypnutí: Reboot-time: Čas restartu: Minutes till reboot: Minut do restartu: Suspend-time: Čas-uspání: Minutes till suspend: Minuty do uspání: Hibernate-time: Čas-hibernace: Minutes till hibernate: Minuty do hibernace: shutdown in vypínání za reboot in restartování za suspend in uspání za hibernate in years roků months měsíců hours hodin days dnů Res&tore Obnovi&t &Minimize &Minimalizovat day den minutes minut seconds vteřin Shutdown Vypnutí Reboot Restartování Suspend Uspat do paměti Hibernate Hibernace &Lock after start? &Warnings on? &Now! &Teď! You can set a date in the calendar Datum můžete nastavit pomocí kalendáře &OK &OK R&eset R&eset &Quit &Ukončit &Info &Informace &Logfile &Preferences &Předvolby &Shutdown Vy&pnout &Reboot &Restartovat S&uspend &Uspat do RAM &Hibernate &Uspat na disk Lock settings after countdown started Uzamkne nastavení pokud bylo spuštěno odpočítávání Calendar Kalendář &File &Soubor &Help &Nápověda &Settings &Nastavení &About &O programu &Reset O&bnovit &Configure &Nastavit &Keep proportions Warning Upozornění Action imminent! Information Informace Countdown is not running! Běží odpočítávání! Turns on/off all warnings Zapnout/vypnout všechna varování About &Qt O &Qt Version Verze Info Info Informace PassWord Password Heslo &Set password &Nastavit heslo Password: Heslo: The password is not correct! Špatné heslo! &Change password Změnit &heslo Preferences Preferences Nastavení Enable the &target time at startup Shutdown Vypnout Shutdown type: Způsob vypnutí: Target time: Minutes to countdown: Minut do začátku odpočívání: Font: Písmo: Font size 1: Velikost písma 1: Font size 2: Velikost písma 2: Font size 3: Velikost písma 3: Size for log file: Velikost logu: Reboot Restartovat Suspend Uspat do paměti Hibernate Uspat na disk A&utostart &Hide qshutdown at startup Lock screen &for suspend and hibernate &Edit configuration file &Upravit konfigurační soubor Enable the minute &countdown at startup &Reset settings &Resetovat nastavení Size for log file in KB Velikost logu v KB "&Lock after start?" "&Uzamknout po startu?" "&Warnings on?" Log start time of qshutdown and how long it was running L&ogging checkboxes and "now!" button OK and Minimize buttons Labels for example Set a font Nastavení písma What target time should be displayed by default at startup? How many minutes should be displayed for countdown by default at startup? What should be displayed first by default at startup? Set if the checkbox for "Lock after start?" should be checked by default at startup Set if the checkbox for "Warnings on?" should be checked by default at startup The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. General Obecné Advanced Pokročilé Suspend method: Metoda uspání: automatic automaticky user defined definováno uživatelem Hibernate method: Metoda hibernace: Shutdown method: Metoda vypínání: Reboot method: Metoda restartu: Please input an user specified command for suspend here Gnome session KDE session Please input an user specified command for shutdown here Please input an user specified command for reboot here Please input an user specified command for hibernate here Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Quit qshutdown after countdown ended? &Start countdown at startup Hide qshutdown at startup if "Start countdown" is checked. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Error Chyba Please read this carefully! Toto čtěte pozorně! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Disable tray &icon &Quit on closing main window QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-ast.ts0000664000175000017500000007400013477730347024301 0ustar chrischris About About qshutdown Tocante a qshutdown Version Versión &About Tocante &a &Thanks To Agradecimien&tos <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Usando Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, una ferramienta d'apagáu pol horariu y cuenta atrás</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Por favor, usa <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> o <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> pa informar de fallos.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar Calendariu Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password Camudar la contraseña Retype password: Escribi la contraseña otra vuelta: New password: Contraseña nueva: Old password: Contraseña antigua: The current password is not correct! ¡La contraseña actual ye incorreuta! The retyped password doesn't match! ¡La contraseña que volvisti a escribir nun casa! Editor Editor Editor Gui &Minimize! ¡A&menorgar! Shutdown-time: Hora d'apagáu: Minutes till shutdown: Minutos pal apagáu: Reboot-time: Hora de reaniciu: Minutes till reboot: Minutos pal reaniciu: Suspend-time: Hora de suspensión: Minutes till suspend: Minutos pa la suspensión: Hibernate-time: Hora d'hibernación: Minutes till hibernate: Minutos pa la hibernación: shutdown in apagáu en reboot in reaniciu en suspend in suspensión en hibernate in hibernación en years años months meses hours hores days díes Res&tore Res&taurar &Minimize A&menorgar day día minutes minutos seconds segundos Shutdown Apagáu Reboot Reaniciar Suspend Suspender Hibernate Hibernar &Lock after start? ¿B&loquiar dempués del aniciu? &Warnings on? ¿Activar a&visos? &Now! ¡A&gora! You can set a date in the calendar Puedes conseñar una data del calendariu &OK Aceu&tar R&eset R&eaniciar &Quit &Colar &Info &Info &Logfile &Rexistru &Preferences &Preferencies &Shutdown A&pagar &Reboot &Reaniciar S&uspend S&uspender &Hibernate &Hibernar Lock settings after countdown started Bloquiar la configuración cuando s'anicie la cuenta atrás Calendar Calendariu &File &Ficheru &Help &Ayuda &Settings Preferencie&s &About Tocante &a &Reset &Reaniciar &Configure &Configurar &Keep proportions &Guardar proporciones Warning Avisu Action imminent! ¡Aición inminente! Information Informacion Countdown is not running! ¡La cuenta atrás nun ta executandose! Turns on/off all warnings Activar/desactivar tolos avisos About &Qt Tocante a &Qt Version Versión Info Info Info PassWord Password Contraseña &Set password Afitar contra&seña Password: Contraseña: The password is not correct! ¡La contraseña nun ye correuta! &Change password &Camudar contraseña Preferences Preferences Preferencies Enable the &target time at startup Activar l'oxetivu &tiempu nel aniciu Shutdown Apagar Shutdown type: Triba d'apagáu: Target time: Hora oxetivu: Minutes to countdown: Minutos pa la cuenta atrás: Font: Fonte: Font size 1: Tamañu de fonte 1: Font size 2: Tamañu de fonte 2: Font size 3: Tamañu de fonte 3: Size for log file: Tamañu del ficheru de rexistru: Reboot Reaniciar Suspend Suspender Hibernate Hibernar A&utostart &Autoarranque &Hide qshutdown at startup &Anubrir qshutdown nel aniciu Lock screen &for suspend and hibernate &Bloquiar pantalla con suspender ya hibernar &Edit configuration file &Editar ficheru de configuración Enable the minute &countdown at startup Activar la &cuenta atrás de minutos nel aniciu &Reset settings &Reaniciar preferencies Size for log file in KB Tamañu del ficheru de rexistru en kB "&Lock after start?" "¿B&loquiar dempués d'aniciar?" "&Warnings on?" "¿Ac&tivar avisos?" Log start time of qshutdown and how long it was running Rexistrar el tiempu d'arranque de qshutdown y cuánto lleva n'execución L&ogging Re&xistru checkboxes and "now!" button caxelles de marcar y botón "¡agora!" OK and Minimize buttons Botones Aceutar y Amenorgar Labels for example Etiquetes d'exemplu Set a font Escueyi una fonte What target time should be displayed by default at startup? ¿Qué hora oxetivu tien de vese de mou predetermináu nel aniciu? How many minutes should be displayed for countdown by default at startup? ¿Cuántos minutos tienen de vese na cuenta atrás predeterminada nel aniciu? What should be displayed first by default at startup? ¿Qué tien de vese primero nel aniciu de mou predetermináu? Set if the checkbox for "Lock after start?" should be checked by default at startup Configurar si "¿Bloquiar dempués del aniciu?" tien de tar marcáu de mou predetermináu Set if the checkbox for "Warnings on?" should be checked by default at startup Configurar si la caxella "¿Activar avisos?" tien de tar marcada de mou predetermináu The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. El botón zarrar de vezu anubre la ventana principal. Desactivar anubrimientu significa que qshutdown entós zarraráse. General Xeneral Advanced Avanzáu Suspend method: Métodu de suspensión: automatic automáticu user defined definíu pol usuariu Hibernate method: Métodu d'hibernación: Shutdown method: Métodu d'apagáu: Reboot method: Métodu de reaniciu: Please input an user specified command for suspend here Escribi equí un comandu d'usuariu pa la suspensión Gnome session Sesión de Gnome KDE session Sesión de KDE Please input an user specified command for shutdown here Escribi equí un comandu d'usuariu pal apagáu Please input an user specified command for reboot here Escribi equí un comandu d'usuariu pal reaniciu Please input an user specified command for hibernate here Escribi equí un comandu d'usuariu pa la hibernación Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Dellos sistemes torguen por exemplu l'apagáu porque qshutdown ta executandose entá. Pon una llamada si qshutdown tien de finar en acabando la cuenta atrás. Quit qshutdown after countdown ended? ¿Colar de qshutdown en acabando la cuenta atrás? &Start countdown at startup Llanzar cuenta atrá&s nel aniciu Hide qshutdown at startup if "Start countdown" is checked. Anubrir qshutdown nel aniciu si ta marcáu "Llanzar cuenta atrás nel aniciu". The File "%1" is not writable! Maybe you just don't have the permissions to do so. ¡El ficheru "%1" nun pue escribise! Seique nun tengas permisos pa facelo. Error Error Please read this carefully! ¡Por favor, llea esto con atención! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. ¡Bienveníu a qshutdown! Si quier, por exemplu, que qshutdown apague'l sistema y ta usando Gnome Shell, posiblemente recibirá un diálogu d'apagáu de la mesma. Si quier un apagáu direutu, por favor, considere entrar nes preferencies y configurar el métodu d'apagáu a ConsoleKit o daqué distinto. Visite con total llibertá https://launchpad.net/~hakaishi si quier informar de fallos o de cualquier cosa tocante a les traducciones. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Si desactives l'iconu de la bandexa yá nun vas poder restablecelu dende la bandexa. Considera tamién marcar «Colar al zarrar la ventana principal» y «Anubrir o qshutdown nel arranque». Si'l programa aínda ta n'execución y quies que reapaeza, executa qshutdown de nueves, como fadríes normalmente. Disable tray &icon Desactivar l'&iconu de la bandexa &Quit on closing main window &Colar al zarrar la ventana principal QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown apaecerá 3 vegaes como avisu si queden menos de 70 segundos.<br/><br/>Esti programa usa qdbus pa unviar una solicitú d'apagáu/reaniciu/suspensión/hibernación al alministrador de sesión de gnome o al de kde, a HAL/ConsoleKit/DeviceKit/UPower y, si nun funciona dengunu d'ellos, S'usará el comandu 'sudo shutdown' (atalanta qu'al unviar la solicitú d'apagáu a HAL o ConsoleKit, o si s'usa'l comandu shutdown, nunca se guardará la Sesión. Al usar el comandu shutdown, el programa namái podrá apagar y reaniciar). Poro, si nun asocede ren al llegar el tiempu d'apagáu o reaniciu, quier dicir que ún nun tien permisu pa usar el comandu shutdown. Nesti casu se pue facer lo siguiente:<br/><br/>Pega lo que sigue nun terminal:<pre>EDITOR=nano sudo -E visudo</pre>y amiesta esta llinia:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> onde * ye'l nome d'usuariu o'l nome de grupu.<br/><br/>El númberu máximu de minutos de la cuenta atrás ye de 1440 (24 hores).<br/>El ficheru de configuración (ya'l de rexistru) alcuentrase'n <i>~/.qshutdown/</i> (baxo Linux/Unix).<br/><br/><b>P'alministradores:</b><br/>Si quies que qshutdown s'execute con "bloquéu paternu" pa cada usuariu, pues facer "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" y configurar la opción Lock_all de /root/.qshutdown/qshutdown.conf como true. Atalanta que qshutdown tien d'executase una vegada pa xenerar qshutdown.conf. Amás ye necesario amestar la siguiente llinia a sudoers (como más arriba):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/> Si t'escaecieres dacuando la conseña configurada, val con que desanicies manualmente de qshutdown.conf toa llinia qu'empience por "Password".<br/><br/><b>Gabitos d'usu:</b><br/>Si quies que qshutdown dexe de "molestate", namái desanicia la llamada de "¿activar avisos?".<br/><br/><b>Atayos:</b><table border="1"><tr><td>Ctrl+I</td><td>(esta) ventana d'información</td></tr><tr><td>Ctrl+C</td><td>Colar</td></tr><tr><td>Ctrl+P</td><td>Preferencies</td></tr><tr><td>Ctrl+L</td><td>escribi una vegada la execución nel ficheru de rexistru (sólo funciona fasta la salida de qshutdown. Pa facelo permanente, configuralo nes preferencies.)</td></tr><tr><td>Ctrl+A</td><td>llanzar l'apagáu</td></tr><tr><td>Ctrl+R</td><td>llanzar el reaniciu</td></tr><tr><td>Ctrl+U</td><td>llanzar la suspensión a RAM</td></tr><tr><td>Ctrl+H</td><td>llanzar la hibernación</td></tr><tr><td>Ctrl+E</td><td>parar la cuenta atrás (sólo si yá s'anició la cuenta atrás y l'alministrador nun torgó l'accesu)</td></tr><tr><td>Mayús+E</td><td>pa editar el ficheru de configuración (pa esto ye necesaria una contraseña. Si yes un usuariu, pues configurar una "contraseña balera" (dexa baleru'l campu contraseña)).</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-he.ts0000664000175000017500000010000713477731047024101 0ustar chrischris About About qshutdown על אודות qshutdown Version גרסה &About על &אודות &Thanks To &תודות <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <html dir="rtl"><p><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">על גבי Qt</span></p></html> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <html dir="rtl"><p>qshutdown, כלי לכיבוי לפי תזמון או ספירה לאחור</p><p>יוצר: &lt;Christian Metscher &lt;hakaishi@web.de</p><p>כל הזכויות שמורות &copy; 2010-‏2019, ל־Christian Metscher </p><p><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p>נא להשתמש בכתובת <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> כדי לדווח על תקלות.</p></html> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> Calendar Calendar לוח שנה Weekly activate weekly Please note that you might want to enable autostart and countdown at startup. ChangePassword Change Password החלפת הססמה Retype password: נא להזין את הססמה מחדש: New password: ססמה חדשה: Old password: ססמה ישנה: The current password is not correct! הססמה הנוכחית שגויה! The retyped password doesn't match! הססמה שהוזנה מחדש אינה תואמת! Editor Editor עורך Gui &Minimize! מ&זעור! Shutdown-time: מועד הכיבוי: Minutes till shutdown: הדקות עד לכיבוי: Reboot-time: מועד ההפעלה מחדש: Minutes till reboot: דקות עד להפעלה מחדש: Suspend-time: מועד ההשהיה: Minutes till suspend: דקות עד ההשהיה: Hibernate-time: מועד התרדמת: Minutes till hibernate: דקות עד לתרדמת: shutdown in כיבוי בעוד reboot in הפעלה מחדש בעוד suspend in השהיה בעוד hibernate in תרדמת בעוד years שנים months חודשים hours שעות days ימים Res&tore ש&חזור &Minimize מ&זעור day יום minutes דקות seconds שניות Shutdown כיבוי Reboot הפעלה מחדש Suspend השהיה Hibernate מצב תרדמת &Lock after start? ל&נעול לאחד ההפעלה? &Warnings on? לה&פעיל את האזהרות? &Now! &כעת! You can set a date in the calendar באפשרותך לקבוע תאריך בלוח השנה &OK &אישור R&eset אי&פוס &Quit י&ציאה &Info &מידע &Logfile קובץ &רישום &Preferences ה&עדפות &Shutdown &כיבוי &Reboot הפעלה מ&חדש S&uspend ה&שהיה &Hibernate ת&רדמת Lock settings after countdown started נעילת ההגדרות לאחר הפעלת הספירה לאחור Calendar לוח שנה &File &קובץ &Help ע&זרה &Settings ה&גדרות &About על &אודות &Reset אי&פוס &Configure ה&גדרה &Keep proportions &שמירה על יחס התצוגה Warning אזהרה Action imminent! פעולה דחופה! Information פרטים Countdown is not running! לא החלה ספירה לאחור! Turns on/off all warnings הפעלה/נטרול של כל האזהרות About &Qt על או&דות Qt Version גרסה Info Info פרטים PassWord Password ססמה &Set password ה&גדרת ססמה Password: ססמה: The password is not correct! הססמה שגויה! &Change password ה&חלפת הססמה Preferences Preferences העדפות Enable the &target time at startup הפעלת זמן הי&עד כבר בהתחלה Shutdown כיבוי Shutdown type: סוג הכיבוי: Target time: מועד היעד: Minutes to countdown: הדקות לספירה לאחור: Font: גופן: Font size 1: גודל גופן 1: Font size 2: גודל גופן 2: Font size 3: גודל גופן 3: Size for log file: גודל קובץ היומן: Reboot הפעלה מחדש Suspend השהיה Hibernate תרדמת A&utostart הפעלה &אוטומטית &Hide qshutdown at startup ה&סתרת qshutdown עם עליית המחשב Lock screen &for suspend and hibernate נעילת המסך מ&פני השהיה ותרדמת &Edit configuration file ע&ריכת קובץ התצורה Enable the minute &countdown at startup הפעלת דקת הספירה לא&חור עם ההפעלה &Reset settings &איפוס הגדרות Size for log file in KB גודל קובץ היומן בקילובתים "&Lock after start?" „האם ל&נעול לאחר ההפעלה?“ "&Warnings on?" „א&זהרות פעילות?“ Log start time of qshutdown and how long it was running תיעוד זמן ההפעלה של qshutdown ואת משך פעולת התכנית L&ogging &רישום checkboxes and "now!" button תיבות סימון והלחצן „כעת!“ OK and Minimize buttons לחצני האישור והמזעור Labels for example תוויות לדוגמה Set a font הגדרת גופן What target time should be displayed by default at startup? מה זמן היעד שיוצג כבררת מחדל עם ההפעלה? How many minutes should be displayed for countdown by default at startup? כמה דקות יוצגו בספירה לאחור כבררת מחדל עם ההפעלה? What should be displayed first by default at startup? מה אמור להופיע קודם כבררת מחדל עם ההפעלה? Set if the checkbox for "Lock after start?" should be checked by default at startup הגדרה האם תיבת הסימון „נעילה לאחר ההפעלה?“ אמור להיות מסומנת בהתחלה כבררת מחדל. Set if the checkbox for "Warnings on?" should be checked by default at startup הגדרה האם תיבת הסימון „אזהרות פעילות?“ אמור להיות מסומנת בהתחלה כבררת מחדל. The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. לחצן הסגירה מסתיר את החלון הראשי בדרך כלל. נטרול ההסתרה משמעה ש־qshutdown פשוט תצא במקום. General כללי Advanced מצג מתקדם Suspend method: שיטת ההשהיה: automatic אוטומטית user defined בהגדרות המשתמש Hibernate method: שיטת התרדמת: Shutdown method: שיטת הכיבוי: Reboot method: שיטת ההפעלה מחדש: Please input an user specified command for suspend here נא להזין את הפקודה המיוחדת לכיבוי להלן Gnome session הפעלת GNOME KDE session הפעלת KDE Please input an user specified command for shutdown here נא להזין פקודה מיוחדת לכיבוי להלן Please input an user specified command for reboot here נא להזין פקודה מיוחדת להפעלה מחדש להלן Please input an user specified command for hibernate here נא להזין פקודה מיוחדת לתרדמת להלן Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. חלק מהמערכות לדוגמה, חוסמות את הכיבוי כיוון ש־qshutdown עדיין פעילה. יש להגדיר עוגן אם qshutdown אמור להיסגר לאחר סיו ם הספירה לאחור. Quit qshutdown after countdown ended? האם לצאת מ־qshutdown לאחר סיום הספירה לאחור? &Start countdown at startup ה&פעלת הספירה לאחור עם ההפעלה Hide qshutdown at startup if "Start countdown" is checked. הסתרת qshutdown עם הפעלתה אם יש סימון על „הפעלת הספירה לאחור עם ההפעלה“. The File "%1" is not writable! Maybe you just don't have the permissions to do so. הקובץ „%1“ מוגן מפני כתיבה! יתכן שאין לך את ההרשאות לעשות זאת. Error שגיאה Please read this carefully! נא לקרוא זאת בקפידה! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. ברוך בואך ל־qshutdown! אם ברצונך להשתמש ב־qshutdown לכבות את המערכת למשל והסביבה שלך היא Gnome Shell, אז תהיה לך אפשרות לקבל חלונית כיבוי מכאן. אם עדיף לך לכבות באופן ישיר, אז כדאי לך לשקול להיכנס להגדרות ולהגדיר את שיטת הכיבוי ל־ConsoleKit או משהו בסגנון. אפשר לבקר אותנו בכתובת https://launchpad.net/~hakaishi כדי לדווח על תקלות או כל דבר בנושא התרגום. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. נטרול סמל המערכת משמעו שלא תהיה יותר אפשרות לשחזר את qshutdown מאזור המערכת. נא לשקול לסמן גם את „לצאת עם סגירת החלון הראשי“ וגם את „להסתיר את qshutdown עם ההפעלה“. אם qshutdown עדיין פעיל וברצונך שיוצג שוב, אז עליך פשוט להפעיל את qshutdown פעם נוספת בדיוק כמו הפעלה רגילה ואז הוא יופיע שוב. Disable tray &icon &נטרול סמל באזור הדיווחים &Quit on closing main window י&ציאה עם סגירת החלון הראשי QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> <html dir="rtl"><p>qshutdown תציג את עצמה 3 פעמים כאות אזהרהאם נותרו פחות מ־ 70 שניות.</p><p>תכנית זו משתמשת ב־ qdbus כדי לשלוח בקשת כיבוי/הפעלה מחדש/השהיה/תרדמת לאחד ממנהלי ההפעלה, בין אם gnome- או kde-session-manager, ל־ HAL/ConsoleKit/DeviceKit/UPower ואם אף אחד מאלה לא עובד, ייעשה שימוש בפקודה 'sudo shutdown' (נא לשים לב שבעת שליחת בקשת הכיבוי ל־ HAL או ל־ ConsoleKit, או בעת שימוש בפקודה shutdown, ההפעלה לא תישמר. אם ייעשה שימוש בפקודת הכיבוי (shutdown), התכנית תוכל רק לכבות או להפעיל מחדש). כך שאם לא קורה דבר כאשר הגיע מועד הכיבוי או ההפעלה מחדש, משמעות הדבר היא שחסרה ההרשאה להפעלת פקודת הכיבוי. במקרה שכזה ניתן לבצע את הפעולות הבאות:</p><p>להדביק את הפקודות הבאות במסוף:<pre>EDITOR=nano sudo -E visudo</pre>להוסיף את השורה הזאת:<pre>ALL = NOPASSWD:/sbin/shutdown *</pre>כאשר * מחליף את שם_המשתמש או את %שם_הקבוצה.</p><p>המספר הגבוה ביותר של countdown_minutes (דקות לספירה לאחור) הוא 1440 (24 שעות).<br/>קובץ התצורה (וקובץ היומן) נמצאים תחת התיקייה <i>/qshutdown./~</i> (במערכות Linux/Unix).</p><b>למנהלים:</b><br />אם ברצונכם ש־ qshutdown יופעל במצב „בקרת הורים“ עבור כל המשתמשים, באפשרותכם <p>להשתמש בפקודה "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d" ולהגדיר את האפשרות Lock_all תחת /root/.qshutdown/qshutdown.conf כדי שתהיה true (אמת/פעיל). נא לשים לב שיש להפעיל את qshutdown לפחות פעם אחת כדי שייווצר הקובץ qshutdown.conf. יתר על כך יש להוסיף את השורה הבאה לקובץ ה־ sudoers (כמופיע להלן):<p><pre>ALL = NOPASSWD:/usr/bin/qshutdown *</pre><br/>אם אי פעם שכחת את הססמה שהוגדרה עבורך, <p>עליך פשוט להסיר את כל השורה המתחילה ב־ "Password" ידנית מהקובץ qshutdown.conf.</p><b>טיפים לשימוש:</b><br /></p>אם ברצונך ש־ qshutdown תפסיק „לנג׳ס“ לך, עליך פשוט להסיר את העוגן מ„אזהרות פעילות?“.<p><b>מקשי קיצור:</b><table border="1"><tr><td>Ctrl+I</td><td>חלון מידע (זה) </td></tr><tr><td>Ctrl+Q</td><td>יציאה</td></tr><tr><td>Ctrl+P</td><td>העדפות</td></tr><tr><td>Ctrl+L</td><td>כתיבת זמן הפעילות ליומן הפעילות (יופעל רק עם יציאה מ־qshutdown. כדי להפוך הגדרה זו לקבועה יש לסדר זאת בהגדרות.)</td></tr><tr><td>Ctrl+S</td><td>הגדרה לכיבוי</td></tr><tr><td>Ctrl+R</td><td>הגדרה להפעלה מחדש</td></tr><tr><td>Ctrl+U</td><td>הגדרה להשהיה לזיכרון</td></tr><tr><td>Ctrl+H</td><td>הגדרה לתרדמת</td></tr><tr><td>Ctrl+E</td><td>עצירת הספירה לאחור (רק אם החלה הספירה לאחור והמנהל לא הגביל את הגישה לכך)</td></tr><tr><td>Shift+E</td><td>לעריכת קובץ התצורה (לשם כך נדרשת ססמה. אם תכנה זו משמשת אותך כמשתמש רגיל, ניתן להגדיר „ססמה ריקה“ (להשאיר את שדה הססמה ריק)).</td></tr></table></div></html> shutdown-qapps-1.7.4/qshutdown/src/translations/qshutdown-de.ts0000664000175000017500000007547613477730670024123 0ustar chrischris About About qshutdown Über qshutdown Version Version &About &Über &Thanks To &Dank an <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Using Qt</span></p> <p ><span style=" font-size:20pt;">qshutdown</span><br /><span style=" font-size:14pt;">Nutzt Qt</span></p> <p >qshutdown, a time and countdown based shutdown tool</p><p >Author: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019, by Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Please use <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> or <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a> to report bugs.</p> <p >qshutdown, ein auf Uhrzeit und Countdown basierendes Werkzeug zum Herunterfahren</p><p >Autor: Christian Metscher &lt;hakaishi@web.de&gt;</p><p >Copyright &copy; 2010-2019 Christian Metscher</p><p ><a href="https://launchpad.net/~hakaishi"><span style=" text-decoration: underline; color:#0000ff;">https://launchpad.net/~hakaishi</span></a></p><p >Bitte benutzen Sie <a href="https://bugs.launchpad.net/qt-shutdown-p"><span style=" text-decoration: underline; color:#0000ff;">https://bugs.launchpad.net/qt-shutdown-p</span></a> oder <a href="http://www.debian.org/Bugs/Reporting"><span style=" text-decoration: underline; color:#0000ff;">http://www.debian.org/Bugs/Reporting</span></a>, um Problemberichte zu melden.</p> <p >Special thanks to:<br /></p><p >Fabian Deuchler for helping here and there.<br /><br />And Brian Nelson for sponsoring the uploads to Debian.<br /><br />As well as to Miquel Banchs i Piqué for the idea of implementing a routine allowing custom settings for each day of the week.</p> <p >Besonderen Dank an:<br /></p><p >Fabian Deuchler für seine Hilfe hier und da.<br /><br />Und den Sponsor Brian Nelson für das Hochladen nach Debian.<br /><br />Ebenso wie Miquel Banchs i Piqué für seine Idee eine Routine zu implementieren, die für jeden Tag eine eigene Einstellung erlaubt.</p> Calendar Calendar Kalender Weekly Wöchentlich activate weekly aktiviere wöchentlich Please note that you might want to enable autostart and countdown at startup. Es sei darauf hingewiesen, dass Sie den Autostart und den Countdown bei Programmstart vermutlich aktivieren möchten. ChangePassword Change Password Passwort ändern Retype password: Passwort wiederholen: New password: Neues Passwort: Old password: Altes Passwort: The current password is not correct! Das aktuelle Passwort ist nicht korrekt! The retyped password doesn't match! Die Passwörter stimmen nicht überein! Editor Editor Editor Gui &Minimize! &Minimieren! Shutdown-time: Shutdown-Zeitpunkt: Minutes till shutdown: Minuten zum Shutdown: Reboot-time: Neustart-Zeitpunkt: Minutes till reboot: Minuten zum Neustart: Suspend-time: Standby-Zeitpunkt: Minutes till suspend: Minuten zum Standby: Hibernate-time: Ruhezustand-Zeitpunkt: Minutes till hibernate: Minuten zum Ruhezustand: shutdown in Shutdown in reboot in Neustart in suspend in Standby in hibernate in Ruhezustand in years Jahren months Monaten hours Stunden days Tagen Res&tore &Wiederherstellen &Minimize &Minimieren day Tag minutes Minuten seconds Sekunden Shutdown Shutdown Reboot Neustart Suspend Standby Hibernate Ruhezustand &Lock after start? Nach dem Start &sperren? &Warnings on? &Warnungen an? &Now! &Jetzt! You can set a date in the calendar Sie können ein Datum im Kalender einstellen &OK &OK R&eset R&eset &Quit Be&enden &Info &Info &Logfile Protoko&lldatei &Preferences &Einstellungen &Shutdown &Shutdown &Reboot Neusta&rt S&uspend S&tandby &Hibernate Ru&hezustand Lock settings after countdown started Sperre Einstellungen nachdem der Countdown gestartet hat Calendar Kalender &File &Datei &Help &Hilfe &Settings &Einstellungen &About &Über &Reset &Reset &Configure &Konfigurieren &Keep proportions &Behalte Proportionen bei Warning Warnung Action imminent! Ausführung steht kurz bevor! Information Information Countdown is not running! Der Countdown läuft nicht! Turns on/off all warnings Schaltet alle Warungen an/aus About &Qt Über &Qt Version Version Info Info Info PassWord Password Passwort &Set password Passwort &festlegen Password: Passwort : The password is not correct! Das Passwort ist nicht korrekt! &Change password P&asswort ändern Preferences Preferences Einstellungen Enable the &target time at startup Aktiviere &Ziel-Zeit bei Programmstart Shutdown Shutdown Shutdown type: Shutdown-Art: Target time: Ziel-Zeit: Minutes to countdown: Minuten für Countdown: Font: Schriftart: Font size 1: Schriftgröße 1: Font size 2: Schriftgröße 2: Font size 3: Schriftgröße 3: Size for log file: Größe der Protokolldatei: Reboot Neustart Suspend Standby Hibernate Ruhezustand A&utostart A&utostart &Hide qshutdown at startup &Verstecke qshutdown bei Programmstart Lock screen &for suspend and hibernate Sperre Bildschirm &für Standby und Ruhezustand &Edit configuration file &Konfigurationsdatei editieren Enable the minute &countdown at startup Aktiviere den Minuten-&Countdown bei Programmstart &Reset settings &Einstellungen zurücksetzen Size for log file in KB Größe der Protokolldatei in KB "&Lock after start?" "Nach dem Start &sperren?" "&Warnings on?" "&Warnungen an?" Log start time of qshutdown and how long it was running Protokolliere die Startzeit von qshutdown und wie lange es gelaufen ist L&ogging &Protokollieren checkboxes and "now!" button Checkboxen und "Jetzt!" Knopf OK and Minimize buttons OK und MInimieren Knöpfe Labels for example Z.B Beschriftungen Set a font Setze eine Schriftart What target time should be displayed by default at startup? Welche Ziel-Zeit soll bei Programmstart standardmäßig angezeigt werden? How many minutes should be displayed for countdown by default at startup? Wie viele Minuten sollen bei Programmstart standardmäßig für den Countdown angezeigt werden? What should be displayed first by default at startup? Was sollte bei Programmstart standardmäßig zuerst angezeigt werden? Set if the checkbox for "Lock after start?" should be checked by default at startup Setze ob die Checkbox für "Nach dem Start sperren?" standardmäßig gesetzt sein soll Set if the checkbox for "Warnings on?" should be checked by default at startup Setze ob die Checkbox für "Warnungen an?" bei Programmstart standardmäßig gesetzt sein soll The close button usually hides the main window. Disabling hiding means, that qshutdown will then quit instead. Der Knopf zum schließen des Fensters versteckt für gewöhnlich das Hauptfenster. Das Verstecken zu deaktivieren bedeutet, dass qshutdown dann stattdessen beendet wird. General Allgemein Advanced Erweitert Suspend method: Befehlsmethode für Standby: automatic automatisch user defined benutzerdefiniert Hibernate method: Befehlsmethode für Ruhezustand: Shutdown method: Befehlsmethode für Shutdown: Reboot method: Befehlsmethode für Neustart: Please input an user specified command for suspend here Bitte geben sie hier einen benutzerdefinierten Befehl für den Standby ein Gnome session Gnome Sitzung KDE session KDE Sitzung Please input an user specified command for shutdown here Bitte geben sie hier einen benutzerdefinierten Befehl für den Shutdown ein Please input an user specified command for reboot here Bitte geben sie hier einen benutzerdefinierten Befehl für den Neustart ein Please input an user specified command for hibernate here Bitte geben sie hier einen benutzerdefinierten Befehl für den Ruhezustand ein Some systems block for example the shutdown because qshutdown is still running. Set a hook if qshutdown should quit after the countdown ended. Manche Systeme blockieren z.B. den Shutdown weil qshutdown noch läuft. Setze ein Häkchen, wenn qshutdown sich nach dem Ende des Countdowns beenden soll. Quit qshutdown after countdown ended? qshutdown nach dem Countdown beenden? &Start countdown at startup Starte &Countdown bei Programmstart Hide qshutdown at startup if "Start countdown" is checked. Verstecke qshutdown bei Programmstart, wenn "Starte Countdown bei Programmstart" abgehakt ist. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Die Datei "%1" ist nicht beschreibbar! Vielleicht haben Sie dazu einfach keine Rechte. Error Fehler Please read this carefully! Bitte lesen Sie dies sorgfältig! Welcome to qshutdown! If you want qshutdown e.g. to shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Willkommen bei qshutdown! Wenn Sie möchten, das qshutdown das System herunterfährt und Sie die Gnome Shell benuten, dann ist es wahrscheinlich, dass ein Shutdown-Dialog erscheint. Wenn Sie einen direkten Shutdown möchten, dann ziehen Sie bitte in Betracht in die Einstellungen zu gehen und die Shutdown-Methode auf ConsoleKit oder ähnliches zu stellen. Sie können gerne jederzeit https://launchpad.net/~hakaishi besuchen um Bugs oder alles was die Übersetzungen betrifft besuchen. Disabling the tray icon means that it is no longer possible to restore qshutdown from tray. Please consider also checking "Quit on closing main window" and "Hide qshutdown at startup". If qshutdown is still running and you want it to reappear, then just execute qshutdown again, just as you normally would. It will thus reappear. Das Taskleistensymbol zu deaktivieren bedeutet, dass man qshutdown nicht mehr aus der Taskleiste wiederherstellen kann. Bitte erwäge auch "Beenden beim Schließen des Hauptfensters" und "Starte Countdown bei Programmstart" abzuhaken. Falls qshutdown noch läuft und Sie es wiederherstellen wollen, können Sie einfach qshutdown erneut ausführen so wie sie es gewöhnlich täten. Es wird sich dadurch wiederherstellen. Disable tray &icon Deakt&iviere das Taskleistensymbol &Quit on closing main window B&eenden beim Schließen des Hauptfensters QObject qshutdown will show itself 3 times as a warning if there are less than 70 seconds left.<br/><br/>This program uses qdbus to send a shutdown/reboot/suspend/hibernate request to either the gnome- or kde-session-manager, to HAL/ConsoleKit/DeviceKit/UPower and if none of these works, the command 'sudo shutdown' will be used (note that when sending the shutdown request to HAL or ConsoleKit, or the shutdown command is used, the Session will never be saved. If the shutdown command is used, the program will only be able to shutdown and reboot). So if nothing happens when the shutdown- or reboot-time is reached, it means that one lacks the rights for the shutdown command. In this case one can do the following:<br/><br/>Paste the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre>and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>whereas * replaces the user name or %group name.<br/><br/>The maximum Number of countdown_minutes is 1440 (24 hours).<br/>The configuration file (and logfile) is located at <i>~/.qshutdown/</i> (under Linux/Unix).<br/><br/><b>For admins:</b><br/>If you want qshutdown to run with "parental lock" for every user, you can do "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" and set the option Lock_all in /root/.qshutdown/qshutdown.conf to true. Note that qshutdown has to start once to generate the qshutdown.conf. Furthermore there is a need to add the following line to the sudoers (as above):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>If you should ever forget your set password, just remove the whole line starting with "Password" manually from the qshutdown.conf.<br/><br/><b>Hints on usage:</b><br/>If you want qshutdown to stop "bugging" you, just remove the hook from "warnings on?".<br/><br/><b>Hotkeys:</b><table border="1"><tr><td>Ctrl+I</td><td>(this) information window</td></tr><tr><td>Ctrl+Q</td><td>Quit</td></tr><tr><td>Ctrl+P</td><td>Preferences</td></tr><tr><td>Ctrl+L</td><td>write the run time once into the logfile (works only if qshutdown quits. To make it permanent set it in the preferences.)</td></tr><tr><td>Ctrl+S</td><td>set to shutdown</td></tr><tr><td>Ctrl+R</td><td>set to restart</td></tr><tr><td>Ctrl+U</td><td>set to suspend to RAM</td></tr><tr><td>Ctrl+H</td><td>set to hibernate</td></tr><tr><td>Ctrl+E</td><td>stop countdown (only if the countdown has started and the admin didn't restrict the access)</td></tr><tr><td>Shift+E</td><td>to edit the configuration file (for this a password is necessary. If you are a user, you can set an "empty password" (leave the password field empty)).</td></tr></table> qshutdown wird sich selbst 3 mal als Warnung zeigen, falls weniger als 70 Sekunden übrig sind.<br/><br/>Dieses Programm benutzt qdbus um eine Shutdown/Neustart/Standby/Ruhezustand Anforderung an den Gnome- oder KDE-Session-Manager, zu HAL/ConsoleKit/DeviceKit/UPower zu senden und wenn nichts davon funktioniert, wird der Befehl 'sudo shutdown' benutzt (merke, dass die Sitzung niemals gespeichert werden kann, wenn die Anforderung an HAL oder ConsoleKit gesendet, oder der shutdown Befehl benutzt wird. Falls der shutdown Befehl benutzt wird, kann das Programm nur den Shutdown und Neutstart ausführen). Wenn also beim Erreichen des Shutdown- oder Neustart-Zeitpunkts nichts passiert, liegt das daran, dass einem die Rechte für den shutdown Befehl fehlen. In diesem Fall kann man das Folgende machen:<br/><br/>Füge das Folgende in ein Terminal ein:<pre>EDITOR=nano sudo -E visudo</pre>und füge diese Zeile hinzu:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>wobei * den Benuternamen oder %Gruppennamen ersetzt.<br/><br/>Die maximale Zahl für den Minuten-Countdown ist 1440 (24 Stunden).<br/>Die Konfigurationsdatei (und Protokolldatei) befindet sich im Verzeichnis <i>~/.qshutdown/</i> (unter Linux/Unix).<br/><br/><b>Für Administratoren:</b><br/>Wenn Sie möchten, dass qshutdown mit "Kindersicherung" für alle Benutzer läuft, können Sie "sudo cp /usr/share/qshutdown/autostart/99qshutdown /etc/X11/Xsession.d/" ausführen und dann die Option Lock_all in /root/.qshutdown/qshutdown.conf auf true setzen. Beachten Sie bitte, dass qshutdown einmal gestartet worden sein muss, um die qshutdown.conf zu generieren. Des Weiteren sollte das Folgende in die sudoers eingetragen werden (wie oben):<pre>* ALL = NOPASSWD:/usr/bin/qshutdown</pre><br/>Falls Sie jemals das von Ihnen festgelegte Passwort vergessen sollten, können Sie einfach die ganze mit "Password" beginnende Zeile manuell aus der qshutdown.conf entfernen.<br/><br/><b>Hinweise zur Bedienung:</b><br/>Wenn man möchte, dass qshutdown aufhört zu "nerven", kann man einfach das Häckchen bei "Warnungen an?" entfernen.<br/><br/><b>Kürzel:</b><table border="1"><tr><td>Strg+I</td><td>(dieses) Informationsfenster</td></tr><tr><td>Strg+Q</td><td>Beenden</td></tr><tr><td>Strg+P</td><td>Einstellungen</td></tr><tr><td>Strg+L</td><td>schreibe in die Protokolldatei (funktioniert nur wenn qshutdown beendet wird. Um das permanent zu machen, stelle das in den Einstellungen ein.)</td></tr><tr><td>Strg+S</td><td>stelle auf Shutdown</td></tr><tr><td>Strg+R</td><td>stelle auf Neustart</td></tr><tr><td>Strg+U</td><td>stelle auf Standby (RAM)</td></tr><tr><td>Strg+H</td><td>stelle auf Ruhezustand</td></tr><tr><td>Strg+E</td><td>stoppe den Countdown (funktioniert nur bei laufendem Countdown und wenn der Administrator den Zugriff nicht eingeschränkt hat)</td></tr><tr><td>Umschalttaste(Shift)+E</td><td>zum editieren der Konfigurationsdatei (hierzu ist ein Passwort nötig, das man festlegen kann. Falls man Benutzer ist, kann man einfach ein "leeres Passwort" (Passwortfeld leer lassen) einstellen.)</td></tr></table> shutdown-qapps-1.7.4/qshutdown/src/calendar.cpp0000664000175000017500000010243313477727506020651 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "calendar.h" #include #include #include #include Calendar::Calendar(QWidget *parent): QDialog(parent){ setupUi(this); isClosed = true; timeRunning = false; setWindowFlags(Qt::Window); #ifdef Q_OS_WIN32 file = QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"; #else //!Q_OS_WIN32 file = QDir::homePath() + "/.qshutdown/qshutdown.conf"; #endif //Q_OS_WIN32 settings = new QSettings(file, QSettings::IniFormat); calendarWidget->setMinimumDate(QDate::currentDate()); mondayItems = new QList; tuesdayItems = new QList; wednesdayItems = new QList; thursdayItems = new QList; fridayItems = new QList; saturdayItems = new QList; sundayItems = new QList; mon = new WeekDay(this); mon->label->setText(QDate::longDayName(Qt::Monday)); mon1 = new WeekDayItem(this); mon2 = new WeekDayItem(this); mon3 = new WeekDayItem(this); mon4 = new WeekDayItem(this); mon5 = new WeekDayItem(this); *mondayItems << mon1 << mon2 << mon3 << mon4 << mon5; tue = new WeekDay(this); tue->label->setText(QDate::longDayName(Qt::Tuesday)); tue1 = new WeekDayItem(this); tue2 = new WeekDayItem(this); tue3 = new WeekDayItem(this); tue4 = new WeekDayItem(this); tue5 = new WeekDayItem(this); *tuesdayItems << tue1 << tue2 << tue3 << tue4 << tue5; wed = new WeekDay(this); wed->label->setText(QDate::longDayName(Qt::Wednesday)); wed1 = new WeekDayItem(this); wed2 = new WeekDayItem(this); wed3 = new WeekDayItem(this); wed4 = new WeekDayItem(this); wed5 = new WeekDayItem(this); *wednesdayItems << wed1 << wed2 << wed3 << wed4 << wed5; thu = new WeekDay(this); thu->label->setText(QDate::longDayName(Qt::Thursday)); thu1 = new WeekDayItem(this); thu2 = new WeekDayItem(this); thu3 = new WeekDayItem(this); thu4 = new WeekDayItem(this); thu5 = new WeekDayItem(this); *thursdayItems << thu1 << thu2 << thu3 << thu4 << thu5; fri = new WeekDay(this); fri->label->setText(QDate::longDayName(Qt::Friday)); fri1 = new WeekDayItem(this); fri2 = new WeekDayItem(this); fri3 = new WeekDayItem(this); fri4 = new WeekDayItem(this); fri5 = new WeekDayItem(this); *fridayItems << fri1 << fri2 << fri3 << fri4 << fri5; sat = new WeekDay(this); sat->label->setText(QDate::longDayName(Qt::Saturday)); sat1 = new WeekDayItem(this); sat2 = new WeekDayItem(this); sat3 = new WeekDayItem(this); sat4 = new WeekDayItem(this); sat5 = new WeekDayItem(this); *saturdayItems << sat1 << sat2 << sat3 << sat4 << sat5; sun = new WeekDay(this); sun->label->setText(QDate::longDayName(Qt::Sunday)); sun1 = new WeekDayItem(this); sun2 = new WeekDayItem(this); sun3 = new WeekDayItem(this); sun4 = new WeekDayItem(this); sun5 = new WeekDayItem(this); *sundayItems << sun1 << sun2 << sun3 << sun4 << sun5; verticalLayout_3->addWidget(mon,0,Qt::AlignTop); foreach(WeekDayItem *item, *mondayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->addWidget(tue,0,Qt::AlignTop); foreach(WeekDayItem *item, *tuesdayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->addWidget(wed,0,Qt::AlignTop); foreach(WeekDayItem *item, *wednesdayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->addWidget(thu,0,Qt::AlignTop); foreach(WeekDayItem *item, *thursdayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->addWidget(fri,0,Qt::AlignTop); foreach(WeekDayItem *item, *fridayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->addWidget(sat,0,Qt::AlignTop); foreach(WeekDayItem *item, *saturdayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->addWidget(sun,0,Qt::AlignTop); foreach(WeekDayItem *item, *sundayItems){ verticalLayout_3->addWidget(item,0,Qt::AlignTop); item->setVisible(false); item->setEnabled(false); } verticalLayout_3->setSpacing(0); connect(calendarWidget, SIGNAL(clicked(QDate)), this, SLOT(getDate(QDate))); connect(weekly, SIGNAL(toggled(bool)), scrollAreaWidgetContents, SLOT(setEnabled(bool))); connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked(bool)), this, SLOT(setDate())); connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked(bool)), this, SLOT(saveToConfFile())); connect(mon->spin, SIGNAL(valueChanged(int)), this, SLOT(monday_addTimeEditAndActionBox(int))); connect(tue->spin, SIGNAL(valueChanged(int)), this, SLOT(tuesday_addTimeEditAndActionBox(int))); connect(wed->spin, SIGNAL(valueChanged(int)), this, SLOT(wednesday_addTimeEditAndActionBox(int))); connect(thu->spin, SIGNAL(valueChanged(int)), this, SLOT(thursday_addTimeEditAndActionBox(int))); connect(fri->spin, SIGNAL(valueChanged(int)), this, SLOT(friday_addTimeEditAndActionBox(int))); connect(sat->spin, SIGNAL(valueChanged(int)), this, SLOT(saturday_addTimeEditAndActionBox(int))); connect(sun->spin, SIGNAL(valueChanged(int)), this, SLOT(sunday_addTimeEditAndActionBox(int))); if(!QFile::exists(file)) saveToConfFile(); else loadSettings(); } Calendar::~Calendar(){ delete settings; } void Calendar::getDate(QDate date){ calendarDate.setDate(date); } void Calendar::setDate(){ if(calendarWidget->selectedDate() != QDate::currentDate()) calendarDate.setDate(calendarWidget->selectedDate()); if(!weekly->isChecked() && !calendarDate.isNull() && !(calendarDate.date() == QDate::currentDate())) //if a day was selected setCalendarDate = calendarDate; //don't touch calendarDate! else setCalendarDate = QDateTime(); if(weekly->isChecked()) getSortedAndActivatedDays(); else setWeeklyDate = QDateTime(); aDateWasSet(); } void Calendar::getSortedAndActivatedDays(){ int activatedDays[7] = {0, 0, 0, 0, 0, 0, 0}; //note that each day has at least the value 0! if(mon->spin->value() > 0) //check if an item is available for each day. activatedDays[0] = Qt::Monday; //Qt::Monday is int 1 etc. if(tue->spin->value() > 0) activatedDays[1] = Qt::Tuesday; if(wed->spin->value() > 0) activatedDays[2] = Qt::Wednesday; if(thu->spin->value() > 0) activatedDays[3] = Qt::Thursday; if(fri->spin->value() > 0) activatedDays[4] = Qt::Friday; if(sat->spin->value() > 0) activatedDays[5] = Qt::Saturday; if(sun->spin->value() > 0) activatedDays[6] = Qt::Sunday; int todaysDayOfWeek = QDate::currentDate().dayOfWeek(); QList calculatedDay; for(int i=0; i < 7; i++){ if(activatedDays[i] != 0){ // if zero, then there were no items! int x = activatedDays[i] - todaysDayOfWeek; if(x < 0) x += 7; calculatedDay << x; } } //note that all calculated days are in the future. Only if it is today, the time can be in the past! if(calculatedDay.isEmpty()){ setWeeklyDate = QDateTime(); aDateWasSet(); return; } qSort(calculatedDay); setWeeklyDate = QDateTime::currentDateTime().addDays(calculatedDay[0]); getNearestTime(calculatedDay); } void Calendar::getNearestTime(QList calculatedDay){ QList times = getSortedTimes(); if(QDateTime(setWeeklyDate.date(),times[0]) > QDateTime::currentDateTime()) setWeeklyDate.setTime(times[0]); else{ int i = 0; //first index for the list of the sorted times while((QDateTime(setWeeklyDate.date(),times[i]) <= QDateTime::currentDateTime()) && (i < times.count())){ //as long as we have a next position and the time is in the past: i+1 ++i; } //at this point we have either a matching time or nothing. Nothing would be bad... if(i < times.count()) //there has been a matching time... setWeeklyDate.setTime(times[i]); if(i >= times.count()){ //there was no matching time, but there still might be one on another day. if(calculatedDay.count() > 1){ //if there is at least another day... setWeeklyDate = QDateTime::currentDateTime().addDays(calculatedDay[1]); //take another day... times = getSortedTimes(); //and get the new times list. setWeeklyDate.setTime(times[0]); //the first time setting will do. } else{ // there is no other day => +7 setWeeklyDate = QDateTime::currentDateTime().addDays(7); setWeeklyDate.setTime(times[0]); } } } } QList Calendar::getSortedTimes(){ QList times; if(setWeeklyDate.date().dayOfWeek() == Qt::Monday) //Which day of week is the choosen day? foreach(WeekDayItem *item, *mondayItems) if(item->isEnabled()) //get all items if they are visible/enabled. times << item->timeEdit->time(); if(setWeeklyDate.date().dayOfWeek() == Qt::Tuesday) foreach(WeekDayItem *item, *tuesdayItems) if(item->isEnabled()) times << item->timeEdit->time(); if(setWeeklyDate.date().dayOfWeek() == Qt::Wednesday) foreach(WeekDayItem *item, *wednesdayItems) if(item->isEnabled()) times << item->timeEdit->time(); if(setWeeklyDate.date().dayOfWeek() == Qt::Thursday) foreach(WeekDayItem *item, *thursdayItems) if(item->isEnabled()) times << item->timeEdit->time(); if(setWeeklyDate.date().dayOfWeek() == Qt::Friday) foreach(WeekDayItem *item, *fridayItems) if(item->isEnabled()) times << item->timeEdit->time(); if(setWeeklyDate.date().dayOfWeek() == Qt::Saturday) foreach(WeekDayItem *item, *saturdayItems) if(item->isEnabled()) times << item->timeEdit->time(); if(setWeeklyDate.date().dayOfWeek() == Qt::Sunday) foreach(WeekDayItem *item, *sundayItems) if(item->isEnabled()) times << item->timeEdit->time(); for(int i=0; i < times.count()-1; i++){ //sort all available times for(int x=0; x < times.count()-1; x++){ if(times[x] > times[x+1]) times.swap(x,x+1); } } return times; } void Calendar::showEvent(QShowEvent* show_calendar){ isClosed = false; starting(); loadSettings(); QDialog::showEvent(show_calendar); } void Calendar::closeEvent(QCloseEvent* close_calendar){ isClosed = true; finishing(); QDialog::closeEvent(close_calendar); } bool Calendar::getClosed(){ return isClosed; } void Calendar::monday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << mon1 << mon2 << mon3 << mon4 << mon5; break; case 1: addItemList << mon1; removeItemList << mon2 << mon3 << mon4<< mon5; break; case 2: addItemList << mon1 << mon2; removeItemList << mon3 << mon4 << mon5; break; case 3: addItemList << mon1 << mon2 << mon3; removeItemList << mon4 << mon5; break; case 4: addItemList << mon1 << mon2 << mon3 << mon4; removeItemList << mon5; break; case 5: addItemList << mon1 << mon2 << mon3 << mon4 << mon5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::tuesday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << tue1 << tue2 << tue3 << tue4 << tue5; break; case 1: addItemList << tue1; removeItemList << tue2 << tue3 << tue4<< tue5; break; case 2: addItemList << tue1 << tue2; removeItemList << tue3 << tue4 << tue5; break; case 3: addItemList << tue1 << tue2 << tue3; removeItemList << tue4 << tue5; break; case 4: addItemList << tue1 << tue2 << tue3 << tue4; removeItemList << tue5; break; case 5: addItemList << tue1 << tue2 << tue3 << tue4 << tue5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::wednesday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << wed1 << wed2 << wed3 << wed4 << wed5; break; case 1: addItemList << wed1; removeItemList << wed2 << wed3 << wed4<< wed5; break; case 2: addItemList << wed1 << wed2; removeItemList << wed3 << wed4 << wed5; break; case 3: addItemList << wed1 << wed2 << wed3; removeItemList << wed4 << wed5; break; case 4: addItemList << wed1 << wed2 << wed3 << wed4; removeItemList << wed5; break; case 5: addItemList << wed1 << wed2 << wed3 << wed4 << wed5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::thursday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << thu1 << thu2 << thu3 << thu4 << thu5; break; case 1: addItemList << thu1; removeItemList << thu2 << thu3 << thu4<< thu5; break; case 2: addItemList << thu1 << thu2; removeItemList << thu3 << thu4 << thu5; break; case 3: addItemList << thu1 << thu2 << thu3; removeItemList << thu4 << thu5; break; case 4: addItemList << thu1 << thu2 << thu3 << thu4; removeItemList << thu5; break; case 5: addItemList << thu1 << thu2 << thu3 << thu4 << thu5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::friday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << fri1 << fri2 << fri3 << fri4 << fri5; break; case 1: addItemList << fri1; removeItemList << fri2 << fri3 << fri4<< fri5; break; case 2: addItemList << fri1 << fri2; removeItemList << fri3 << fri4 << fri5; break; case 3: addItemList << fri1 << fri2 << fri3; removeItemList << fri4 << fri5; break; case 4: addItemList << fri1 << fri2 << fri3 << fri4; removeItemList << fri5; break; case 5: addItemList << fri1 << fri2 << fri3 << fri4 << fri5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::saturday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << sat1 << sat2 << sat3 << sat4 << sat5; break; case 1: addItemList << sat1; removeItemList << sat2 << sat3 << sat4<< sat5; break; case 2: addItemList << sat1 << sat2; removeItemList << sat3 << sat4 << sat5; break; case 3: addItemList << sat1 << sat2 << sat3; removeItemList << sat4 << sat5; break; case 4: addItemList << sat1 << sat2 << sat3 << sat4; removeItemList << sat5; break; case 5: addItemList << sat1 << sat2 << sat3 << sat4 << sat5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::sunday_addTimeEditAndActionBox(int i){ QList removeItemList; QList addItemList; switch(i){ case 0: removeItemList << sun1 << sun2 << sun3 << sun4 << sun5; break; case 1: addItemList << sun1; removeItemList << sun2 << sun3 << sun4<< sun5; break; case 2: addItemList << sun1 << sun2; removeItemList << sun3 << sun4 << sun5; break; case 3: addItemList << sun1 << sun2 << sun3; removeItemList << sun4 << sun5; break; case 4: addItemList << sun1 << sun2 << sun3 << sun4; removeItemList << sun5; break; case 5: addItemList << sun1 << sun2 << sun3 << sun4 << sun5; break; default:; } foreach(WeekDayItem *item, addItemList){ item->setVisible(true); item->setEnabled(true); } foreach(WeekDayItem *item, removeItemList){ item->setVisible(false); item->setEnabled(false); } } void Calendar::saveToConfFile(){ if(settings->isWritable()){ settings->setValue("Calendar/size",size()); settings->setValue("Calendar_or_weekly",tabWidget->currentIndex()); settings->setValue("Weekly_is_set",weekly->isChecked()); settings->setValue("Monday/number_of_times",mon->spin->value()); settings->setValue("Monday/time_1",mon1->timeEdit->time().toString()); settings->setValue("Monday/time_2",mon2->timeEdit->time().toString()); settings->setValue("Monday/time_3",mon3->timeEdit->time().toString()); settings->setValue("Monday/time_4",mon4->timeEdit->time().toString()); settings->setValue("Monday/time_5",mon5->timeEdit->time().toString()); settings->setValue("Monday/method_1",mon1->comboBox->currentIndex()); settings->setValue("Monday/method_2",mon2->comboBox->currentIndex()); settings->setValue("Monday/method_3",mon3->comboBox->currentIndex()); settings->setValue("Monday/method_4",mon4->comboBox->currentIndex()); settings->setValue("Monday/method_5",mon5->comboBox->currentIndex()); settings->setValue("Tuesday/number_of_times",tue->spin->value()); settings->setValue("Tuesday/time_1",tue1->timeEdit->time().toString()); settings->setValue("Tuesday/time_2",tue2->timeEdit->time().toString()); settings->setValue("Tuesday/time_3",tue3->timeEdit->time().toString()); settings->setValue("Tuesday/time_4",tue4->timeEdit->time().toString()); settings->setValue("Tuesday/time_5",tue5->timeEdit->time().toString()); settings->setValue("Tuesday/method_1",tue1->comboBox->currentIndex()); settings->setValue("Tuesday/method_2",tue2->comboBox->currentIndex()); settings->setValue("Tuesday/method_3",tue3->comboBox->currentIndex()); settings->setValue("Tuesday/method_4",tue4->comboBox->currentIndex()); settings->setValue("Tuesday/method_5",tue5->comboBox->currentIndex()); settings->setValue("Wednesday/number_of_times",wed->spin->value()); settings->setValue("Wednesday/time_1",wed1->timeEdit->time().toString()); settings->setValue("Wednesday/time_2",wed2->timeEdit->time().toString()); settings->setValue("Wednesday/time_3",wed3->timeEdit->time().toString()); settings->setValue("Wednesday/time_4",wed4->timeEdit->time().toString()); settings->setValue("Wednesday/time_5",wed5->timeEdit->time().toString()); settings->setValue("Wednesday/method_1",wed1->comboBox->currentIndex()); settings->setValue("Wednesday/method_2",wed2->comboBox->currentIndex()); settings->setValue("Wednesday/method_3",wed3->comboBox->currentIndex()); settings->setValue("Wednesday/method_4",wed4->comboBox->currentIndex()); settings->setValue("Wednesday/method_5",wed5->comboBox->currentIndex()); settings->setValue("Thursday/number_of_times",thu->spin->value()); settings->setValue("Thursday/time_1",thu1->timeEdit->time().toString()); settings->setValue("Thursday/time_2",thu2->timeEdit->time().toString()); settings->setValue("Thursday/time_3",thu3->timeEdit->time().toString()); settings->setValue("Thursday/time_4",thu4->timeEdit->time().toString()); settings->setValue("Thursday/time_5",thu5->timeEdit->time().toString()); settings->setValue("Thursday/method_1",thu1->comboBox->currentIndex()); settings->setValue("Thursday/method_2",thu2->comboBox->currentIndex()); settings->setValue("Thursday/method_3",thu3->comboBox->currentIndex()); settings->setValue("Thursday/method_4",thu4->comboBox->currentIndex()); settings->setValue("Thursday/method_5",thu5->comboBox->currentIndex()); settings->setValue("Friday/number_of_times",fri->spin->value()); settings->setValue("Friday/time_1",fri1->timeEdit->time().toString()); settings->setValue("Friday/time_2",fri2->timeEdit->time().toString()); settings->setValue("Friday/time_3",fri3->timeEdit->time().toString()); settings->setValue("Friday/time_4",fri4->timeEdit->time().toString()); settings->setValue("Friday/time_5",fri5->timeEdit->time().toString()); settings->setValue("Friday/method_1",fri1->comboBox->currentIndex()); settings->setValue("Friday/method_2",fri2->comboBox->currentIndex()); settings->setValue("Friday/method_3",fri3->comboBox->currentIndex()); settings->setValue("Friday/method_4",fri4->comboBox->currentIndex()); settings->setValue("Friday/method_5",fri5->comboBox->currentIndex()); settings->setValue("Saturday/number_of_times",sat->spin->value()); settings->setValue("Saturday/time_1",sat1->timeEdit->time().toString()); settings->setValue("Saturday/time_2",sat2->timeEdit->time().toString()); settings->setValue("Saturday/time_3",sat3->timeEdit->time().toString()); settings->setValue("Saturday/time_4",sat4->timeEdit->time().toString()); settings->setValue("Saturday/time_5",sat5->timeEdit->time().toString()); settings->setValue("Saturday/method_1",sat1->comboBox->currentIndex()); settings->setValue("Saturday/method_2",sat2->comboBox->currentIndex()); settings->setValue("Saturday/method_3",sat3->comboBox->currentIndex()); settings->setValue("Saturday/method_4",sat4->comboBox->currentIndex()); settings->setValue("Saturday/method_5",sat5->comboBox->currentIndex()); settings->setValue("Sunday/number_of_times",sun->spin->value()); settings->setValue("Sunday/time_1",sun1->timeEdit->time().toString()); settings->setValue("Sunday/time_2",sun2->timeEdit->time().toString()); settings->setValue("Sunday/time_3",sun3->timeEdit->time().toString()); settings->setValue("Sunday/time_4",sun4->timeEdit->time().toString()); settings->setValue("Sunday/time_5",sun5->timeEdit->time().toString()); settings->setValue("Sunday/method_1",sun1->comboBox->currentIndex()); settings->setValue("Sunday/method_2",sun2->comboBox->currentIndex()); settings->setValue("Sunday/method_3",sun3->comboBox->currentIndex()); settings->setValue("Sunday/method_4",sun4->comboBox->currentIndex()); settings->setValue("Sunday/method_5",sun5->comboBox->currentIndex()); } } void Calendar::loadSettings(){ resize(settings->value("MainWindow/size",QSize(325,360)).toSize()); tabWidget->setCurrentIndex(settings->value("Calendar_or_weekly",0).toInt()); weekly->setChecked(settings->value("Weekly_is_set", false).toBool()); if(!timeRunning) scrollAreaWidgetContents->setEnabled(weekly->isChecked()); mon->spin->setValue(settings->value("Monday/number_of_times",0).toInt()); mon1->timeEdit->setTime(QTime::fromString(settings->value("Monday/time_1","22:00:00").toString(), "hh:mm:ss")); mon2->timeEdit->setTime(QTime::fromString(settings->value("Monday/time_2","22:00:00").toString(), "hh:mm:ss")); mon3->timeEdit->setTime(QTime::fromString(settings->value("Monday/time_3","22:00:00").toString(), "hh:mm:ss")); mon4->timeEdit->setTime(QTime::fromString(settings->value("Monday/time_4","22:00:00").toString(), "hh:mm:ss")); mon5->timeEdit->setTime(QTime::fromString(settings->value("Monday/time_5","22:00:00").toString(), "hh:mm:ss")); mon1->comboBox->setCurrentIndex(settings->value("Monday/method_1",0).toInt()); mon2->comboBox->setCurrentIndex(settings->value("Monday/method_2",0).toInt()); mon3->comboBox->setCurrentIndex(settings->value("Monday/method_3",0).toInt()); mon4->comboBox->setCurrentIndex(settings->value("Monday/method_4",0).toInt()); mon5->comboBox->setCurrentIndex(settings->value("Monday/method_5",0).toInt()); tue->spin->setValue(settings->value("Tuesday/number_of_times",0).toInt()); tue1->timeEdit->setTime(QTime::fromString(settings->value("Tuesday/time_1","22:00:00").toString(), "hh:mm:ss")); tue2->timeEdit->setTime(QTime::fromString(settings->value("Tuesday/time_2","22:00:00").toString(), "hh:mm:ss")); tue3->timeEdit->setTime(QTime::fromString(settings->value("Tuesday/time_3","22:00:00").toString(), "hh:mm:ss")); tue4->timeEdit->setTime(QTime::fromString(settings->value("Tuesday/time_4","22:00:00").toString(), "hh:mm:ss")); tue5->timeEdit->setTime(QTime::fromString(settings->value("Tuesday/time_5","22:00:00").toString(), "hh:mm:ss")); tue1->comboBox->setCurrentIndex(settings->value("Tuesday/method_1",0).toInt()); tue2->comboBox->setCurrentIndex(settings->value("Tuesday/method_2",0).toInt()); tue3->comboBox->setCurrentIndex(settings->value("Tuesday/method_3",0).toInt()); tue4->comboBox->setCurrentIndex(settings->value("Tuesday/method_4",0).toInt()); tue5->comboBox->setCurrentIndex(settings->value("Tuesday/method_5",0).toInt()); wed->spin->setValue(settings->value("Wednesday/number_of_times",0).toInt()); wed1->timeEdit->setTime(QTime::fromString(settings->value("Wednesday/time_1","22:00:00").toString(), "hh:mm:ss")); wed2->timeEdit->setTime(QTime::fromString(settings->value("Wednesday/time_2","22:00:00").toString(), "hh:mm:ss")); wed3->timeEdit->setTime(QTime::fromString(settings->value("Wednesday/time_3","22:00:00").toString(), "hh:mm:ss")); wed4->timeEdit->setTime(QTime::fromString(settings->value("Wednesday/time_4","22:00:00").toString(), "hh:mm:ss")); wed5->timeEdit->setTime(QTime::fromString(settings->value("Wednesday/time_5","22:00:00").toString(), "hh:mm:ss")); wed1->comboBox->setCurrentIndex(settings->value("Wednesday/method_1",0).toInt()); wed2->comboBox->setCurrentIndex(settings->value("Wednesday/method_2",0).toInt()); wed3->comboBox->setCurrentIndex(settings->value("Wednesday/method_3",0).toInt()); wed4->comboBox->setCurrentIndex(settings->value("Wednesday/method_4",0).toInt()); wed5->comboBox->setCurrentIndex(settings->value("Wednesday/method_5",0).toInt()); thu->spin->setValue(settings->value("Thursday/number_of_times",0).toInt()); thu1->timeEdit->setTime(QTime::fromString(settings->value("Thursday/time_1","22:00:00").toString(), "hh:mm:ss")); thu2->timeEdit->setTime(QTime::fromString(settings->value("Thursday/time_2","22:00:00").toString(), "hh:mm:ss")); thu3->timeEdit->setTime(QTime::fromString(settings->value("Thursday/time_3","22:00:00").toString(), "hh:mm:ss")); thu4->timeEdit->setTime(QTime::fromString(settings->value("Thursday/time_4","22:00:00").toString(), "hh:mm:ss")); thu5->timeEdit->setTime(QTime::fromString(settings->value("Thursday/time_5","22:00:00").toString(), "hh:mm:ss")); thu1->comboBox->setCurrentIndex(settings->value("Thursday/method_1",0).toInt()); thu2->comboBox->setCurrentIndex(settings->value("Thursday/method_2",0).toInt()); thu3->comboBox->setCurrentIndex(settings->value("Thursday/method_3",0).toInt()); thu4->comboBox->setCurrentIndex(settings->value("Thursday/method_4",0).toInt()); thu5->comboBox->setCurrentIndex(settings->value("Thursday/method_5",0).toInt()); fri->spin->setValue(settings->value("Friday/number_of_times",0).toInt()); fri1->timeEdit->setTime(QTime::fromString(settings->value("Friday/time_1","22:00:00").toString(), "hh:mm:ss")); fri2->timeEdit->setTime(QTime::fromString(settings->value("Friday/time_2","22:00:00").toString(), "hh:mm:ss")); fri3->timeEdit->setTime(QTime::fromString(settings->value("Friday/time_3","22:00:00").toString(), "hh:mm:ss")); fri4->timeEdit->setTime(QTime::fromString(settings->value("Friday/time_4","22:00:00").toString(), "hh:mm:ss")); fri5->timeEdit->setTime(QTime::fromString(settings->value("Friday/time_5","22:00:00").toString(), "hh:mm:ss")); fri1->comboBox->setCurrentIndex(settings->value("Friday/method_1",0).toInt()); fri2->comboBox->setCurrentIndex(settings->value("Friday/method_2",0).toInt()); fri3->comboBox->setCurrentIndex(settings->value("Friday/method_3",0).toInt()); fri4->comboBox->setCurrentIndex(settings->value("Friday/method_4",0).toInt()); fri5->comboBox->setCurrentIndex(settings->value("Friday/method_5",0).toInt()); sat->spin->setValue(settings->value("Saturday/number_of_times",0).toInt()); sat1->timeEdit->setTime(QTime::fromString(settings->value("Saturday/time_1","22:00:00").toString(), "hh:mm:ss")); sat2->timeEdit->setTime(QTime::fromString(settings->value("Saturday/time_2","22:00:00").toString(), "hh:mm:ss")); sat3->timeEdit->setTime(QTime::fromString(settings->value("Saturday/time_3","22:00:00").toString(), "hh:mm:ss")); sat4->timeEdit->setTime(QTime::fromString(settings->value("Saturday/time_4","22:00:00").toString(), "hh:mm:ss")); sat5->timeEdit->setTime(QTime::fromString(settings->value("Saturday/time_5","22:00:00").toString(), "hh:mm:ss")); sat1->comboBox->setCurrentIndex(settings->value("Saturday/method_1",0).toInt()); sat2->comboBox->setCurrentIndex(settings->value("Saturday/method_2",0).toInt()); sat3->comboBox->setCurrentIndex(settings->value("Saturday/method_3",0).toInt()); sat4->comboBox->setCurrentIndex(settings->value("Saturday/method_4",0).toInt()); sat5->comboBox->setCurrentIndex(settings->value("Saturday/method_5",0).toInt()); sun->spin->setValue(settings->value("Sunday/number_of_times",0).toInt()); sun1->timeEdit->setTime(QTime::fromString(settings->value("Sunday/time_1","22:00:00").toString(), "hh:mm:ss")); sun2->timeEdit->setTime(QTime::fromString(settings->value("Sunday/time_2","22:00:00").toString(), "hh:mm:ss")); sun3->timeEdit->setTime(QTime::fromString(settings->value("Sunday/time_3","22:00:00").toString(), "hh:mm:ss")); sun4->timeEdit->setTime(QTime::fromString(settings->value("Sunday/time_4","22:00:00").toString(), "hh:mm:ss")); sun5->timeEdit->setTime(QTime::fromString(settings->value("Sunday/time_5","22:00:00").toString(), "hh:mm:ss")); sun1->comboBox->setCurrentIndex(settings->value("Sunday/method_1",0).toInt()); sun2->comboBox->setCurrentIndex(settings->value("Sunday/method_2",0).toInt()); sun3->comboBox->setCurrentIndex(settings->value("Sunday/method_3",0).toInt()); sun4->comboBox->setCurrentIndex(settings->value("Sunday/method_4",0).toInt()); sun5->comboBox->setCurrentIndex(settings->value("Sunday/method_5",0).toInt()); } shutdown-qapps-1.7.4/qshutdown/src/editor.h0000664000175000017500000000271213477727537020036 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef EDITOR_H #define EDITOR_H #include "ui_editor.h" #include #include class Editor : public QDialog, public Ui::Editor { Q_OBJECT public: Editor(QWidget *parent = 0); ~Editor(); bool getClosed(); signals: void saved(); void starting(); void finishing(); private: QFile *confFile; QSettings *settings; bool isClosed; private slots: void saveChanges(); public slots: bool getLockAll(); protected: virtual void showEvent(QShowEvent* show_editor); virtual void closeEvent(QCloseEvent* close_editor); void keyPressEvent(QKeyEvent* kEvent); }; #endif //EDITOR_H shutdown-qapps-1.7.4/qshutdown/src/weekdayitem.h0000666000175000017500000000225713477743275021063 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef WEEKDAYITEM_H #define WEEKDAYITEM_H #include #include #include #include #include class WeekDayItem : public QWidget{ Q_OBJECT public: WeekDayItem(QWidget *parent = 0); ~WeekDayItem(); QTimeEdit *timeEdit; QComboBox *comboBox; private: QSpacerItem *h2; QHBoxLayout *itemL; }; #endif //WEEKDAYITEM_H shutdown-qapps-1.7.4/qshutdown/src/ch_passwd.cpp0000664000175000017500000000613213477727520021046 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "ch_passwd.h" #include #include #include ChangePassword::ChangePassword(QWidget *parent): QDialog(parent){ setupUi(this); setWindowFlags(Qt::Window); //always in front #ifdef Q_OS_WIN32 file = QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"; #else //!Q_OS_WIN32 file = QDir::homePath() + "/.qshutdown/qshutdown.conf"; #endif //Q_OS_WIN32 settings = new QSettings(file, QSettings::IniFormat); if(settings->contains("Password")){ oldPasswd->setEnabled(true); oldL->setEnabled(true); } msgBox1 = new QMessageBox(this); msgBox1->setWindowTitle("Error"); msgBox1->setIcon(QMessageBox::Warning); msgBox1->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Window); msgBox1->setInformativeText(tr("The current password is not correct!")); msgBox2 = new QMessageBox(this); msgBox2->setWindowTitle("Error"); msgBox2->setIcon(QMessageBox::Warning); msgBox2->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Window); msgBox2->setInformativeText(tr("The retyped password doesn't match!")); connect(buttonBox, SIGNAL(accepted()), this, SLOT(checkOldPW())); } ChangePassword::~ChangePassword(){ delete settings; } void ChangePassword::checkOldPW(){ if(settings->contains("Password")){ if(settings->value("Password").toByteArray() == QCryptographicHash::hash(oldPasswd->text().toUtf8(), QCryptographicHash::Sha1)) checkNewPW(); else msgBox1->exec(); } else checkNewPW(); } void ChangePassword::checkNewPW(){ if(newPasswd->text() == retypedNewPasswd->text()){ savePW(); accept(); } else msgBox2->exec(); } void ChangePassword::savePW(){ settings->setValue("Password", QCryptographicHash::hash(retypedNewPasswd->text().toUtf8(), QCryptographicHash::Sha1)); updatePasswordGui(); if(settings->contains("Password")){ oldPasswd->setEnabled(true); oldL->setEnabled(true); } oldPasswd->clear(); newPasswd->clear(); retypedNewPasswd->clear(); } void ChangePassword::closeEvent(QCloseEvent* close_ch_pw){ oldPasswd->clear(); newPasswd->clear(); retypedNewPasswd->clear(); QDialog::closeEvent(close_ch_pw); } shutdown-qapps-1.7.4/qshutdown/src/preferences.cpp0000664000175000017500000003660713477727605021412 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "preferences.h" #include #include #include #include #include Preferences::Preferences(QWidget *parent): QDialog(parent){ setupUi(this); isClosed = true; setWindowFlags(Qt::Window); //Seconds won't be recognized, thus removing them (just in case). QString timeEditFormat; timeEditFormat = timeEdit->displayFormat(); if(timeEditFormat.contains(":ss")) timeEditFormat.replace(QString(":ss"), QString("")); if(timeEditFormat.contains(":s")) timeEditFormat.replace(QString(":s"), QString("")); timeEdit->setDisplayFormat(timeEditFormat); /***************** load settings from the conf file *****************/ #ifdef Q_OS_WIN32 lockS->setDisabled(true); //if there is a command for locking the display in Windows, remove this line //and add the command to power.h file = QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qshutdown/qshutdown.conf"; #else //!Q_OS_WIN32 file = QDir::homePath() + "/.qshutdown/qshutdown.conf"; #endif //Q_OS_WIN32 settings = new QSettings(file, QSettings::IniFormat); #ifdef Q_OS_WIN32 fonts = "Times New Roman"; fontS1 = 13; fontS2 = 18; fontS3 = 11; #else fonts = "DejaVu Sans"; fontS1 = 11; fontS2 = 15; fontS3 = 9; #endif userDef1S = tr("Please input an user specified command for shutdown here"); userDef2S = tr("Please input an user specified command for reboot here"); userDef3S = tr("Please input an user specified command for suspend here"); userDef4S = tr("Please input an user specified command for hibernate here"); msgBox = new QMessageBox(this); msgBox->setWindowTitle(tr("Error")); msgBox->setIcon(QMessageBox::Warning); msgBox->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Window); msgBox->setInformativeText(tr("The File \"%1\" is not writable!\n" "Maybe you just don't have the permissions to do so.").arg(file)); if(QSettings().value("first_start", true).toBool()) { infoBox = new QMessageBox(this); infoBox->setWindowTitle(tr("Please read this carefully!")); infoBox->setIcon(QMessageBox::Information); infoBox->setInformativeText(tr("Welcome to qshutdown!\n" "If you want qshutdown e.g. to shutdown the system " "and you are using the Gnome Shell, then you are likely to get a " "shutdown dialog from there. If you want a direct shutdown, then " "please consider going into the preferences and setting the shutdown " "method to ConsoleKit or something else.\n\nPlease feel free to visit " "https://launchpad.net/~hakaishi to report bugs or for anyting " "concerning translations.")); infoBox->setStandardButtons(QMessageBox::Ok); infoBox->show(); QSettings().setValue("first_start", false); } connect(this, SIGNAL(accepted()), this, SLOT(saveToConfFile())); connect(reset, SIGNAL(clicked(bool)), this, SLOT(resetSettings())); connect(font1Spin, SIGNAL(valueChanged(int)), this, SLOT(fontSize1Changed(int))); connect(font2Spin, SIGNAL(valueChanged(int)), this, SLOT(fontSize2Changed(int))); connect(font3Spin, SIGNAL(valueChanged(int)), this, SLOT(fontSize3Changed(int))); connect(fontComboBox, SIGNAL(currentIndexChanged(QString)), this, SLOT(fontChanged(QString))); connect(confEditButton, SIGNAL(clicked(bool)), this, SIGNAL(editConf())); connect(shutdownM, SIGNAL(currentIndexChanged(int)), this, SLOT(enableUserDef1())); connect(rebootM, SIGNAL(currentIndexChanged(int)), this, SLOT(enableUserDef2())); connect(suspendM, SIGNAL(currentIndexChanged(int)), this, SLOT(enableUserDef3())); connect(hibernateM, SIGNAL(currentIndexChanged(int)), this, SLOT(enableUserDef4())); connect(disableTray, SIGNAL(toggled(bool)), this, SIGNAL(removeTrayIcon(bool))); loadSettings(); if(!QFile::exists(file)) saveToConfFile(); if(userDef1->isEnabled()) myShutdown = userDef1->toPlainText(); if(userDef2->isEnabled()) myReboot = userDef2->toPlainText(); if(userDef3->isEnabled()) mySuspend = userDef3->toPlainText(); if(userDef4->isEnabled()) myHibernate = userDef4->toPlainText(); } Preferences::~Preferences(){ delete settings; } void Preferences::showEvent(QShowEvent* show_pref){ isClosed = false; starting(); //sends SIGNAL starting() if(!settings->isWritable()){ QTimer::singleShot(15000, msgBox, SLOT(close())); msgBox->show(); } loadSettings(); QDialog::showEvent(show_pref); } void Preferences::setFocusToUserDef(){ if(userDef4->isEnabled()) userDef4->setFocus(); if(userDef3->isEnabled()) userDef3->setFocus(); if(userDef2->isEnabled()) userDef2->setFocus(); if(userDef1->isEnabled()) userDef1->setFocus(); } void Preferences::enableUserDef1(){ if(shutdownM->currentIndex() == (shutdownM->count()-1)){ userDef1->setEnabled(true); userDef1->setFocus(); if(userDef1->toPlainText() == userDef1S) userDef1->clear(); } else{ userDef1->setEnabled(false); if(userDef1->toPlainText() == "") userDef1->setPlainText(userDef1S); setFocusToUserDef(); } } void Preferences::enableUserDef2(){ if(rebootM->currentIndex() == (rebootM->count()-1)){ userDef2->setEnabled(true); userDef2->setFocus(); if(userDef2->toPlainText() == userDef2S) userDef2->clear(); } else{ userDef2->setEnabled(false); if(userDef2->toPlainText() == "") userDef2->setPlainText(userDef2S); setFocusToUserDef(); } } void Preferences::enableUserDef3(){ if(suspendM->currentIndex() == (suspendM->count()-1)){ userDef3->setEnabled(true); userDef3->setFocus(); if(userDef3->toPlainText() == userDef3S) userDef3->clear(); } else{ userDef3->setEnabled(false); if(userDef3->toPlainText() == "") userDef3->setPlainText(userDef3S); setFocusToUserDef(); } } void Preferences::enableUserDef4(){ if(hibernateM->currentIndex() == (hibernateM->count()-1)){ userDef4->setEnabled(true); userDef4->setFocus(); if(userDef4->toPlainText() == userDef4S) userDef4->clear(); } else{ userDef4->setEnabled(false); if(userDef4->toPlainText() == "") userDef4->setPlainText(userDef4S); setFocusToUserDef(); } } void Preferences::loadSettings(){ if(settings->contains("PrefWindowSize/size")) resize(settings->value("PrefWindowSize/size").toSize()); comboBox->setCurrentIndex(settings->value("Power/comboBox",0).toInt()); timeEdit->setTime(QTime(settings->value("Time/time_hour",22).toInt(),settings->value("Time/time_minute",00).toInt())); spin->setValue(settings->value("Time/countdown_minutes",60).toInt()); quitOnCloseMain->setChecked(settings->value("Quit_on_close",false).toBool()); countdown->setChecked(settings->value("Time/countdown_at_startup",false).toBool()); hideMe->setChecked(settings->value("Hide_at_startup",false).toBool()); fontComboBox->setCurrentFont(settings->value("Fonts/font_type",fonts).toString()); font1Spin->setValue(settings->value("Fonts/font1",fontS1).toInt()); font2Spin->setValue(settings->value("Fonts/font2",fontS2).toInt()); font3Spin->setValue(settings->value("Fonts/font3",fontS3).toInt()); spinBox->setValue(settings->value("Logfile/size",1.5).toDouble()); disableTray->setChecked(settings->value("CheckBoxes/Disable_tray_icon", false).toBool()); radio1->setChecked(settings->value("CheckBoxes/target_time",false).toBool()); radio2->setChecked(settings->value("CheckBoxes/countdown",true).toBool()); lock->setChecked(settings->value("CheckBoxes/lock",true).toBool()); warn->setChecked(settings->value("CheckBoxes/warnings",true).toBool()); log->setChecked(settings->value("Logfile/logging",false).toBool()); lockS->setChecked(settings->value("Lock_screen",true).toBool()); autostart->setChecked(settings->value("Autostart").toBool()); shutdownM->setCurrentIndex(settings->value("Methods/shutdown",0).toInt()); userDef1->setPlainText(settings->value("Methods/myShutdown",userDef1S).toString()); rebootM->setCurrentIndex(settings->value("Methods/reboot",0).toInt()); userDef2->setPlainText(settings->value("Methods/myReboot",userDef2S).toString()); suspendM->setCurrentIndex(settings->value("Methods/suspend",0).toInt()); userDef3->setPlainText(settings->value("Methods/mySuspend",userDef3S).toString()); hibernateM->setCurrentIndex(settings->value("Methods/hibernate",0).toInt()); userDef4->setPlainText(settings->value("Methods/myHibernate",userDef4S).toString()); lockMyScreen = settings->value("Lock_screen").toBool(); quitAfterCountdown->setChecked(settings->value("Quit_after_countdown_ended",false).toBool()); } void Preferences::saveToConfFile(){ if(settings->isWritable()){ settings->setValue("Power/comboBox",comboBox->currentIndex()); settings->setValue("Time/time_hour",timeEdit->time().hour()); settings->setValue("Time/time_minute",timeEdit->time().minute()); settings->setValue("Quit_on_close",quitOnCloseMain->isChecked()); settings->setValue("Time/countdown_at_startup",countdown->isChecked()); settings->setValue("Hide_at_startup",hideMe->isChecked()); settings->setValue("Time/countdown_minutes",spin->value()); settings->setValue("Fonts/font_type",fontComboBox->currentText()); settings->setValue("Fonts/font1",font1Spin->value()); settings->setValue("Fonts/font2",font2Spin->value()); settings->setValue("Fonts/font3",font3Spin->value()); settings->setValue("Logfile/size",spinBox->value()); settings->setValue("CheckBoxes/Disable_tray_icon",disableTray->isChecked()); settings->setValue("CheckBoxes/target_time",radio1->isChecked()); settings->setValue("CheckBoxes/countdown",radio2->isChecked()); settings->setValue("CheckBoxes/lock",lock->isChecked()); settings->setValue("CheckBoxes/warnings",warn->isChecked()); settings->setValue("Logfile/logging",log->isChecked()); settings->setValue("Lock_screen",lockS->isChecked()); settings->setValue("Autostart",autostart->isChecked()); settings->setValue("Methods/shutdown",shutdownM->currentIndex()); settings->setValue("Methods/myShutdown",userDef1->toPlainText()); settings->setValue("Methods/reboot",rebootM->currentIndex()); settings->setValue("Methods/myReboot",userDef2->toPlainText()); settings->setValue("Methods/suspend",suspendM->currentIndex()); settings->setValue("Methods/mySuspend",userDef3->toPlainText()); settings->setValue("Methods/hibernate",hibernateM->currentIndex()); settings->setValue("Methods/myHibernate",userDef4->toPlainText()); settings->setValue("Quit_after_countdown_ended",quitAfterCountdown->isChecked()); } autostartFile(); //to create or to delete the autostart file lockScreen(); //set lockMyScreen to true or false according to lockS if(userDef1->isEnabled()) myShutdown = userDef1->toPlainText(); else myShutdown = ""; if(userDef2->isEnabled()) myReboot = userDef2->toPlainText(); else myReboot = ""; if(userDef3->isEnabled()) mySuspend = userDef3->toPlainText(); else mySuspend = ""; if(userDef4->isEnabled()) myHibernate = userDef4->toPlainText(); else mySuspend = ""; this->close(); } void Preferences::resetSettings(){ if(settings->isWritable()){ comboBox->setCurrentIndex(0); timeEdit->setTime(QTime(22,00)); countdown->setChecked(false); disableTray->setChecked(false); quitOnCloseMain->setChecked(false); hideMe->setChecked(false); spin->setValue(60); fontComboBox->setCurrentFont(QFont(fonts)); font1Spin->setValue(fontS1); font2Spin->setValue(fontS2); font3Spin->setValue(fontS3); spinBox->setValue(1.5); radio1->setChecked(false); radio2->setChecked(true); lock->setChecked(true); warn->setChecked(true); log->setChecked(false); lockS->setChecked(true); shutdownM->setCurrentIndex(0); rebootM->setCurrentIndex(0); suspendM->setCurrentIndex(0); hibernateM->setCurrentIndex(0); userDef1->setPlainText(userDef1S); userDef2->setPlainText(userDef2S); userDef3->setPlainText(userDef3S); userDef4->setPlainText(userDef4S); quitAfterCountdown->setChecked(false); } } void Preferences::closeEvent(QCloseEvent* close_pref){ isClosed = true; finishing(); //sends SIGNAL finishing() if(settings->isWritable()) settings->setValue("PrefWindowSize/size",size()); resetFont(); QDialog::closeEvent(close_pref); } bool Preferences::getClosed(){ return isClosed; } void Preferences::fontChanged(QString font){ fonts = font; changeFont(); } void Preferences::fontSize1Changed(int f1){ fontS1 = f1; changeFont(); } void Preferences::fontSize2Changed(int f2){ fontS2 = f2; changeFont(); } void Preferences::fontSize3Changed(int f3){ fontS3 = f3; changeFont(); } void Preferences::resetFont(){ fonts = settings->value("Fonts/font_type","Times New Roman").toString(); fontS1 = settings->value("Fonts/font1",13).toInt(); fontS2 = settings->value("Fonts/font2",18).toInt(); fontS3 = settings->value("Fonts/font3",11).toInt(); changeFont(); } void Preferences::autostartFile(){ #ifndef Q_OS_WIN32 QFile autostartFile(QDir::homePath() + "/.config/autostart/qshutdown.desktop"); if(settings->value("Autostart").toBool() && !autostartFile.exists()){ if(!QDir(QDir::homePath() + "/.config/autostart").exists()){ QDir dir(QDir::homePath() + "/.config/autostart"); dir.mkdir(QDir::homePath() + "/.config/autostart"); } if(!autostartFile.open(QIODevice::ReadWrite | QIODevice::Text)){ QTextStream myOutput(stdout); myOutput << "E: Can not open qshutdown.conf!" << endl; return; } QString autostartContent("[Desktop Entry]\nName=qshutdown\n" "Name[de_DE]=qshutdown\nExec=qshutdown\nTerminal=false\n" "Type=Application\nIcon=red_glasses\nCategories=Utility"); QTextStream out(&autostartFile); out << autostartContent; autostartFile.close(); } if(autostartFile.exists() && !settings->value("Autostart").toBool()) autostartFile.remove(); #endif } void Preferences::lockScreen(){ lockMyScreen = lockS->isChecked(); } shutdown-qapps-1.7.4/qshutdown/src/passwd.h0000664000175000017500000000274313477727574020056 0ustar chrischris/* qshutdown, a program to shutdown/reboot/suspend/hibernate the system * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef PASSWD_H #define PASSWD_H #include "ui_passwd.h" #include #include class ChangePassword; class PassWord : public QDialog, public Ui::PassWord { Q_OBJECT public: PassWord(QWidget *parent = 0); ~PassWord(); bool getClosed(); signals: void success(); void starting(); void finishing(); private: QSettings *settings; QString file; QMessageBox *msgBox; ChangePassword *chPW; bool isClosed; private slots: void checkPW(); void update(); protected: virtual void showEvent(QShowEvent* show_pw); virtual void closeEvent(QCloseEvent* close_pw); }; #endif //PASSWD_H shutdown-qapps-1.7.4/qshutdown/autostart/0000775000175000017500000000000013513631003017601 5ustar chrischrisshutdown-qapps-1.7.4/qshutdown/autostart/qshutdown.desktop0000776000175000017500000000021113401523311023224 0ustar chrischris[Desktop Entry] Name=qshutdown Name[de_DE]=qshutdown Exec=qshutdown Terminal=false Type=Application Icon=red_glasses Categories=Utility; shutdown-qapps-1.7.4/qshutdown/autostart/99qshutdown0000776000175000017500000000003613401523311021743 0ustar chrischris#!/bin/sh sudo -H qshutdown & shutdown-qapps-1.7.4/qshutdown/COPYING0000666000175000017500000010437413401523311016617 0ustar chrischris GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . shutdown-qapps-1.7.4/qshutdown/NEWS0000666000175000017500000002133713401523311016260 0ustar chrischrisChanges in Release 1.7.3 ========================= - fixed bug for shutdown/reboot/suspend/hibernate settings caused by previous update. Changes in Release 1.7.2 ========================= - code optimations - fixed small bugs in calendar and "weekly" - added DBus Interface method for starting qshutdown from scripts or other programs. (Looking for a way to restart countdown after sleep...) Changes in Release 1.7.1 ========================= - fixed: "Weekly" not disabled eventhough the countdown is running. - fixed: From time to time strage behaviour causing countdown to abbort (issue with two different time types). Changes in Release 1.7.0 ========================= - time is now displayed immediately when OK is pressed - added new shutdown/reboot/suspend/hibernate command (possibly working on most debian based systems, if supported/activated) - code cleanup - added weekly to the calendar - fixed resizing problems in config menu - fixed issues after manual/automatic standby mode (not caused by qshutdown) - added option to hide the system tray icon - updated Galician, Ukrainian, Asturian, Malay - added Russian Changes in Release 1.6.8 ========================= - added systemctl command in "automatic" and "sudo" - complete Turkish translation - added Indonesian - added Czech Changes in Release 1.6.7 ========================= - updated Japanese translations - fixed sudo shutdown command - fixed bug relating to environment (#716194) Changes in Release 1.6.6 ========================= - revisited power.h - added welcome dialog with informations Changes in Release 1.6.5 ========================= - minor fix for the preferences, the password and the about dialog - reviewed shutdown commands - new translations for: English (Australian), Galician, Croatian, Burmese, Romanian Changes in Release 1.6.4 ========================= - new (and bigger) qshutdown symbol - many new translations - fix for intern reset: now independent from QTimer - fix for not keeping proportions at startup - fix for discarding changes and passwords when escaping preferences and password dialogs - removed version text label from the main window - added version text message to the statusbar - simplified the creation of the config file Changes in Release 1.6.3 ========================= - added advanced settings for specifying or choosing a shutdown/reboot/ suspend/hibernate command. - added checkBox for qshutdown to quit after countdown ended - added gnome-session-quit command - changed config file format - fix for enabling "hide qshudown at startup" - save and ok of the editor now updates the preferences window's settings Changes in Release 1.6.2 ========================= - replaced all qDebug(), qWarning() and qCritical() - added "About Qt" - reworked QSettings - added hideEvent and showEvent because of minimize/restore Action of the System Tray Icon Changes in Release 1.6.1 ========================= - for first start fonts weren't correctly initialized -> fixed. Changes in Release 1.6.0 ========================= - tool tips updated and new ones - new design with more features - added: "About" - new warning method: System tray icon message. - removed spacers and LCD from the source code since it's more convenient to leave this to the ui. - more precise display of the time displayed with the LCD - removed most global variables and thus restructured many functions and classes - removed qApp-quit() from Gui::finished_() -> shutdown works again under Ubuntu Natty and so on. Added Gui::saveLog() instead to resolve the problem from version 1.5.2 (instead of the solution from version 1.5.3) Changes in Release 1.5.6 ========================= - bugfix: minimize and restore button didn't work correctly on all systems. - added: more information about hotkeys (removed old ones) Changes in Release 1.5.5 ========================= - bugfix: autostart entry is written or deleted when confirming with OK. (the function was called at the wrong place) Changes in Release 1.5.4 ========================= - added: restore and minimize Button to the system tray icon (also because the left click will not work with Unity on Ubuntu). Changes in Release 1.5.3 ========================= - fixed: No log entry for shutdown events (gui.cpp -> before_quit()) - fixed: When pressing Enter in the password prompt line Edit the message box reappeared twice (passwd.cpp) Changes in Release 1.5.2 ========================= - fixed timer problem (minor). Changes in Release 1.5.1 ========================= - saving the edited configuration file will now also update the preferences window. - the editor got an additional button and won't quit after saving, if Ok hasn't been clicked. - the main window won't rise into the foreground if the calendar, the password promt or the editor is open. - removed line for minimizing Window after OK has been clicked. Changes in Release 1.5.0 ========================= - added a password gui and editor to access qshutdown.conf, removing a possible security vulnerability (in "admin mode" only). - added a button in preferences to edit qshutdown.conf - revised the way of how the autostart works and added an option to the preferences. Changes in Release 1.4.9 ========================= - fixed translation (de) for info box: qshutdown_script.sh -> qshutdown_script Changes in Release 1.4.8 ========================= Changes in Release 1.4.7 ========================= - fixed: missing line in power.cpp at hibernate() - integrated dbus command for locking screen Changes in Release 1.4.6 ========================= - simplified some calculations (gui.cpp) - removed redundant funktion starter() - added lock screen for suspend and hibernate - added option to hide qshutdown at startup if "Start countdown" is enabled. Changes in Release 1.4.5 ========================= - new path for .qm translation files - implemented UPower (for suspend and hibernate) - implemented shortcut Shift + E to edit ~/.qshutdown/qshutdown.conf with gksu(do)/kdesu(do) - revised "admin mode" (Lock_all) - made some code cleanups Changes in Release 1.4.4 ========================= - fixed: if no date was set and the clock turned 12:00 AM qshutdown stopped working because the date was intern set to the current day. - .ui files had wrong .qrc path (fixed) Changes in Release 1.4.3 ========================= - new version control - and some minor changes Changes in Release 1.3.6 ========================= - fix for timeEdit Changes in Release 1.3.4 ========================= - fix for toolButton - bugfix for spinBox Changes in Release 1.3.3 ========================= - new layout for preferences Changes in Release 1.3.2 ========================= - fixed and modified many things Changes in Release 1.3.1 ========================= - adjusted some things in the calendar widget - corrected quite a lot things - made some code cleanups Changes in Release 1.3.0 ========================= - new features: added a calendar and the changes of the font settings take immediantly effect in the main window Changes in Release 1.2.5 ========================= - bugfix: Programwindow didn't reappear when starting twice Changes in Release 1.2.4 ========================= - new feature: start countdown at startup - scrollable area for preferences Changes in Release 1.2.3 ========================= - bugfix for "Lock_all": timeEdit was not disabled at startup. - other minor changes related to Lock_all - the size of the log file is now adjustable Changes in Release 1.2.2 ========================= - "Reset settings" won't save changes directly anymore. The settings will be loaded by each showEvent. Changes in Release 1.2.1 ========================= - bug fixed: window shifted down by each show and hide event Changes in Release 1.2.0 ========================= - improved tray-icon-contextmenu - fixed shutdown/reboot/suspend/hibernate functions - replaced info message box with a QPlainTextEdit Object - added a combo box and shortcuts - qshutdown now accepts arguments - added a preferences dialog Changes in Release 1.1.0 ========================= - added tray-icon-contextmenus for shutdown/reboot/standby/hibernate - pixmap now in .xpm format - added DeviceKit in the shutdown option Changes in Release 1.0.2 ========================= - bugfix: if local time is not continual and skips certain seconds, qshutdown might have not shutdown the system or shown it self 3 times even if there were less than 70 seconds left. *now fixed* Changes in Release 1.0.1 ========================= - Initial Release shutdown-qapps-1.7.4/qprogram-starter/0000775000175000017500000000000013513631003017031 5ustar chrischrisshutdown-qapps-1.7.4/qprogram-starter/README0000666000175000017500000000131413401523310017707 0ustar chrischrisqprogram-starter Dependencies: qtbase5-dev, qttools5-dev-tools, build-essential If you want to install from source, open a terminal and change into this folder. To install type: qmake sudo make install distclean To uninstall type: qmake (if the Makefile has been removed) sudo make deinstall (note that ~/.qprogram-starter/qprogram-starter.conf and the log files won't be removed) KNOWN ISSUE: ============= For most systems using the Gnome Shell a certain DBus method has been removed, thus a shutdown dialog will be likely to appear if qshutdown's methods have been set to automatic or to Gnome session. If you do not want this shutdown dialog to appear, please use ConsoleKit or something else. shutdown-qapps-1.7.4/qprogram-starter/src/0000775000175000017500000000000013513631003017620 5ustar chrischrisshutdown-qapps-1.7.4/qprogram-starter/src/gui.cpp0000664000175000017500000005331613501167020021120 0ustar chrischris/* qprogram-starter, a program to start programs or commands, with the option to log output and errors and to shutdown the system. * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "gui.h" #include "preferences.h" #include #include #include #ifndef Q_OS_WIN32 #include #endif Gui::Gui(){ setupUi(this); pref = new Preferences(this); myOutput = new QTextStream(stdout); if(!QProcessEnvironment().isEmpty()) shell = QProcess::systemEnvironment().filter("SHELL").first().remove("SHELL="); if(shell.isEmpty() && QFile("/bin/bash").exists()) shell = "/bin/bash"; else *myOutput << "E: No shells found! qprogram-starter might not work as expected..."; //Versioning QFile versionFile(":version"); versionFile.open(QIODevice::ReadOnly | QIODevice::Text); QTextStream in(&versionFile); statusBar()->showMessage(tr("Version ") + in.readLine(),15000); versionFile.close(); aborted = false; process2Started = false; dateEdit->setMinimumDate(QDate::currentDate()); dateTimeTimer = new QTimer(this); dateTimeTimer->start(1000); timer = new QTimer(this); process1 = new QProcess(this); process2 = new QProcess(this); logBox1 = new QTextEdit; logBox1->setReadOnly(true); logBox1->resize(520,450); logBox1->setWindowTitle("error log 1"); logBox1->setWindowModality(Qt::NonModal); logBox2 = new QTextEdit; logBox2->setReadOnly(true); logBox2->resize(520,450); logBox2->setWindowTitle("error log 2"); logBox2->setWindowModality(Qt::NonModal); hintMsgBox = new QTextEdit; hintMsgBox->setReadOnly(true); hintMsgBox->resize(520,450); hintMsgBox->setWindowTitle("Info"); hintMsgBox->setWindowModality(Qt::NonModal); hintMsgBox->setHtml(tr("The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.
To start a program just type i.e. \"firefox\" or \"firefox www.google.com\" and then click on Start. Commands etc. can be linked by \"&&\" etc.

If the process is \"finished\" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.

When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).

make examples:
 make -C /path/to/project
 make clean -C /path/to/project

About Errors:
Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at ~/.qprogram-starter/.

If the shutdown won't work, it means that \"sudo shutdown -P now\" is used. This needs root permissions. You can do the this:

Post the following in a terminal:
EDITOR=nano sudo -E visudo
and add this line:
* ALL = NOPASSWD:/sbin/shutdown
whereas * replaces the username or %groupname.

The configuration-file can be found at ~/.qprogram-starter/.")); connect(action_Configure, SIGNAL(triggered(bool)), pref, SLOT(show())); connect(dateTimeTimer, SIGNAL(timeout()), this, SLOT(currentDateAndTime())); connect(startB, SIGNAL(clicked(bool)), this, SLOT(run())); connect(abortB, SIGNAL(clicked(bool)), this, SLOT(abortProcesses())); connect(saveButton, SIGNAL(clicked(bool)), this, SLOT(saveData())); connect(timer, SIGNAL(timeout()), this, SLOT(check())); connect(browse1, SIGNAL(clicked(bool)), this, SLOT(getProgram1())); connect(browse2, SIGNAL(clicked(bool)), this, SLOT(getProgram2())); connect(process1, SIGNAL(readyReadStandardOutput()), this, SLOT(output1())); connect(process1, SIGNAL(readyReadStandardError()), this, SLOT(errorOutput1())); connect(process1, SIGNAL(finished(int)), this, SLOT(checkForProcess2())); connect(process1, SIGNAL(error(QProcess::ProcessError)), this, SLOT(message())); connect(process2, SIGNAL(readyReadStandardOutput()), this, SLOT(output2())); connect(process2, SIGNAL(readyReadStandardError()), this, SLOT(errorOutput2())); connect(process2, SIGNAL(finished(int)), this, SLOT(shutdown_or_message())); connect(process2, SIGNAL(error(QProcess::ProcessError)), this, SLOT(message())); connect(this, SIGNAL(finished()), this, SLOT(shutdown_or_message())); connect(action_Hints, SIGNAL(triggered(bool)), this, SLOT(info_hint())); connect(showLogsButton, SIGNAL(clicked(bool)), this, SLOT(showLogs())); } Gui::~Gui(){ delete hintMsgBox; } void Gui::closeEvent(QCloseEvent* window_close){ if(!pref->settings->isWritable()) *myOutput << "W: qprogram-starter.conf is not writable!" << endl; else saveSettings(); //qApp->quit(); QMainWindow::closeEvent(window_close); } void Gui::currentDateAndTime(){ if(dateEdit->date() == QDate::currentDate()) timeEdit->setMinimumTime(QTime::currentTime()); else timeEdit->setMinimumTime(QTime(00,00)); } void Gui::info_hint(){ hintMsgBox->show(); } void Gui::check(){ //To check if start time is reached secondsToTimeInTheFuture = QDateTime::currentDateTime().secsTo(timeInTheFuture); if(secondsToTimeInTheFuture <= 0){ processArgs1 << "-c" << plainTextEdit->toPlainText(); process1->start(shell, processArgs1); timer->stop(); } } void Gui::getProgram1(){ program1 = QFileDialog::getOpenFileName(this, tr("Select a program"), "/usr/bin"); plainTextEdit->insertPlainText(program1); plainTextEdit->setFocus(); } void Gui::getProgram2(){ program2 = QFileDialog::getOpenFileName(this, tr("Select a program"), "/usr/bin"); plainTextEdit2->insertPlainText(program2); plainTextEdit2->setFocus(); } void Gui::run(){ //To start either the timer or start the process if(!plainTextEdit->toPlainText().isEmpty()){ nextDate = dateEdit->dateTime(); timeInTheFuture = nextDate.addSecs(timeEdit->time().hour()*3600 + timeEdit->time().minute()*60 + timeEdit->time().second()); plainTextEdit->setDisabled(true); atDateCheckBox->setDisabled(true); dateEdit->setDisabled(true); timeEdit->setDisabled(true); if(atDateCheckBox->isChecked()) timer->start(1000); else{ processArgs1 << "-c" << plainTextEdit->toPlainText(); process1->start(shell, processArgs1); } } else{ QMessageBox msgBox; msgBox.setWindowTitle("Error"); msgBox.setIcon(QMessageBox::Warning); msgBox.setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Window); msgBox.setInformativeText(tr("The first text edit is empty!")); QTimer::singleShot(6000, &msgBox, SLOT(close())); msgBox.exec(); } outputProcess1 = ""; outputProcess2 = ""; errProcess1 = ""; errProcess2 = ""; } void Gui::abortProcesses(){ timer->stop(); aborted = true; process1->close(); process2->close(); processArgs1.clear(); processArgs2.clear(); QMessageBox msgBox; msgBox.setWindowTitle(tr("Information")); msgBox.setIcon(QMessageBox::Information); msgBox.setInformativeText(tr("Processes aborted")); msgBox.setWindowModality(Qt::NonModal); msgBox.setWindowFlags(Qt::WindowStaysOnTopHint); QTimer::singleShot(10000, &msgBox, SLOT(close())); msgBox.exec(); atDateCheckBox->setEnabled(true); if(atDateCheckBox->isChecked()){ dateEdit->setEnabled(true); timeEdit->setEnabled(true); } plainTextEdit->setEnabled(true); plainTextEdit2->setEnabled(true); aborted = false; } void Gui::checkForProcess2(){ //check if there is a second command if(process1->exitCode()==0 && process1->exitStatus()==0 && process1->error()==5 && !plainTextEdit2->toPlainText().isEmpty() && !aborted){ processArgs2 << "-c" << plainTextEdit2->toPlainText(); process2->start(shell, processArgs2); process2Started = true; plainTextEdit2->setDisabled(true); } else finished(); } void Gui::output1(){ //write output into a file if loggingCheckBox is checked QString string = QString::fromLocal8Bit(process1->readAllStandardOutput()); outputProcess1 += string; if(loggingCheckBox->isChecked()){ QFile outputLog1(QDir::homePath() + "/.qprogram-starter/outputLog1.txt"); if(!outputLog1.open(QIODevice::Append)) return; QTextStream str(&outputLog1); str << string; outputLog1.close(); } } void Gui::output2(){ //write output into a file if loggingCheckBox is checked QString string = QString::fromLocal8Bit(process2->readAllStandardOutput()); outputProcess2 += string; if(loggingCheckBox->isChecked()){ QFile outputLog2(QDir::homePath() + "/.qprogram-starter/outputLog2.txt"); if(!outputLog2.open(QIODevice::Append)) return; QTextStream str(&outputLog2); str << string; outputLog2.close(); } } void Gui::errorOutput1(){ //write error output into a file if loggingCheckBox is checked QString string = QString::fromLocal8Bit(process1->readAllStandardError()); errProcess1 += string; if(loggingCheckBox->isChecked()){ QFile errorLog1(QDir::homePath() + "/.qprogram-starter/errorLog1.txt"); if(!errorLog1.open(QIODevice::Append)) return; QTextStream str(&errorLog1); str << string; errorLog1.close(); } } void Gui::errorOutput2(){ //write error output into a file if loggingCheckBox is checked QString string = QString::fromLocal8Bit(process2->readAllStandardError()); errProcess2 += string; if(loggingCheckBox->isChecked()){ QFile errorLog2(QDir::homePath() + "/.qprogram-starter/errorLog2.txt"); if(!errorLog2.open(QIODevice::Append)) return; QTextStream str(&errorLog2); str << string; errorLog2.close(); } } void Gui::showLogs(){ if(!outputProcess1.isEmpty() || !errProcess1.isEmpty() || !outputProcess2.isEmpty() || !errProcess2.isEmpty()){ if(!outputProcess1.isEmpty()) logBox1->append(outputProcess1); if(!errProcess1.isEmpty()) logBox1->append(errProcess1); logBox1->show(); if(process1->exitCode()==0 && process1->exitStatus()==0 && process1->error()==5 && !plainTextEdit2->toPlainText().isEmpty() && !aborted){ if(!outputProcess2.isEmpty()) logBox2->append(outputProcess2); if(!errProcess2.isEmpty()) logBox2->append(errProcess2); logBox2->show(); } } } void Gui::shutdown_or_message(){ if(!shutdownCheckBox->isChecked() || aborted) { message(); return; } else { saveSettings(); #ifndef Q_OS_WIN32 bool l = false; bool g = false; //gnome bool k = false; //kde bool g_pwr1 = false; bool g_pwr2 = false; bool hal = false; QDBusMessage response; QDBusInterface freedesktopLogin1("org.freedesktop.login1", "/org/freedesktop/login1", "org.freedesktop.login1.Manager", QDBusConnection::systemBus()); QDBusInterface gnomeSessionManager("org.gnome.SessionManager", "/org/gnome/SessionManager", "org.gnome.SessionManager", QDBusConnection::sessionBus()); QDBusInterface kdeSessionManager("org.kde.ksmserver", "/KSMServer", "org.kde.KSMServerInterface", QDBusConnection::sessionBus()); QDBusInterface freedesktopHal("org.freedesktop.Hal", "/org/freedesktop/Hal/devices/computer", "org.freedesktop.Hal.Device.SystemPowerManagement", QDBusConnection::systemBus()); QDBusInterface freedesktopConsoleKit("org.freedesktop.ConsoleKit", "/org/freedesktop/ConsoleKit/Manager", "org.freedesktop.ConsoleKit.Manager", QDBusConnection::systemBus()); #else QProcess::startDetached("shutdown -r -f -t 00"); // Windows command to reboot immediately } #endif if(pref->comboBox->currentIndex() == 0){ //automatic if(QProcess::startDetached("/usr/bin/systemctl poweroff")) return; g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh shutdown"); g_pwr2 = QProcess::startDetached("gnome-power-cmd shutdown"); if(!g_pwr1 && !g_pwr2){ *myOutput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; response = gnomeSessionManager.call("RequestShutdown"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; else g = true; if(!g){ response = gnomeSessionManager.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; else g = true; } } else g = true; if(!g){ response = freedesktopLogin1.call("PowerOff", true); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; else l = true; } if(!g &&!l){ response = kdeSessionManager.call("logout", 0, 2, 2); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; else k = true; } if(!g && !l && !k){ response = freedesktopHal.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; else hal = true; } if(!g && !l && !k && !hal){ response = freedesktopConsoleKit.call("Stop"); if(response.type() == QDBusMessage::ErrorMessage){ *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; QProcess::startDetached("sudo shutdown -P now"); } } } //end of automatic if(pref->comboBox->currentIndex() == 1){ response = freedesktopLogin1.call("PowerOff", true); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } if(pref->comboBox->currentIndex() == 2){ //gnome g_pwr1 = QProcess::startDetached("gnome-power-cmd.sh shutdown"); g_pwr2 = QProcess::startDetached("gnome-power-cmd shutdown"); if(!g_pwr1 && !g_pwr2){ *myOutput << "W: gnome-power-cmd and gnome-power-cmd.sh didn't work" << endl; response = gnomeSessionManager.call("RequestShutdown"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; else g = true; if(!g){ response = gnomeSessionManager.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } } } if(pref->comboBox->currentIndex() == 3){ //kde response = kdeSessionManager.call("logout", 0, 2, 2); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } if(pref->comboBox->currentIndex() == 4){ //hal response = freedesktopHal.call("Shutdown"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } if(pref->comboBox->currentIndex() == 5){ //consoleKit response = freedesktopConsoleKit.call("Stop"); if(response.type() == QDBusMessage::ErrorMessage) *myOutput << "W: " << response.errorName() << ": " << response.errorMessage() << endl; } if(pref->comboBox->currentIndex() == 6){ //sudo if(QProcess::startDetached("sudo /usr/bin/systemctl poweroff")) return; QProcess::startDetached("sudo shutdown -P now"); QProcess::startDetached("sudo shutdown -h -P now"); } } processArgs1.clear(); processArgs2.clear(); qApp->quit(); //otherwise some systems might prompt to quit the program } void Gui::message(){ if(!aborted){ QMessageBox msgBox; if(process1->exitCode()==0 && process1->exitStatus()==0 && process1->error()==5){ if(plainTextEdit2->toPlainText().isEmpty()){ msgBox.setWindowTitle(tr("Information")); msgBox.setIcon(QMessageBox::Information); msgBox.setInformativeText(tr("process 1 finished!")); } } if(process2Started && process2->exitCode()==0 && process2->exitStatus()==0 && process2->error()==5){ msgBox.setWindowTitle(tr("Information")); msgBox.setIcon(QMessageBox::Information); msgBox.setInformativeText(tr("process 1 & 2 finished!")); } if((process1->exitCode()!=0 || process1->error()!=5) || (process2->exitCode()!=0 || process2->error()!=5)){ msgBox.setWindowTitle(tr("Error")); msgBox.setIcon(QMessageBox::Critical); if(process1->error()==0 || process2->error()==0){ msgBox.setInformativeText(tr("Failed to start!
" "No such program or command.")); if(loggingCheckBox->isChecked()){ if(process1->error()==0){ QFile errorLog1(QDir::homePath() + "/.qprogram-starter/errorLog1.txt"); if(!errorLog1.open(QIODevice::Append)) return; QTextStream err1(&errorLog1); err1 << tr("\"%1\": Failed to start! No such program or " "command.\n").arg(plainTextEdit->toPlainText()); errorLog1.close(); } if(process2->error()==0){ QFile errorLog2(QDir::homePath() + "/.qprogram-starter/errorLog2.txt"); if(!errorLog2.open(QIODevice::Append)) return; QTextStream err2(&errorLog2); err2 << tr("\"%1\": Failed to start! No such program or " "command.\n").arg(plainTextEdit2->toPlainText()); errorLog2.close(); } } } else if(process1->error()==1 || process1->exitCode()==1) msgBox.setInformativeText(tr("process 1 crashed!
" "This could be caused by invalid parameters or options.")); else if(process2->error()==1 || process2->exitCode()==1) msgBox.setInformativeText(tr("process 2 crashed!
" "This could be caused by invalid parameters or options.")); else msgBox.setInformativeText(tr("Unknown error!
" "This could be caused by invalid parameters or options.")); } msgBox.setWindowModality(Qt::NonModal); msgBox.setWindowFlags(Qt::WindowStaysOnTopHint); QTimer::singleShot(10000, &msgBox, SLOT(close())); msgBox.exec(); } atDateCheckBox->setEnabled(true); if(atDateCheckBox->isChecked()){ dateEdit->setEnabled(true); timeEdit->setEnabled(true); } plainTextEdit->setEnabled(true); plainTextEdit2->setEnabled(true); if(quitCheckBox->isChecked() && !aborted) close(); processArgs1.clear(); processArgs2.clear(); } void Gui::saveData(){ pref->settings->setValue("Text/text1", plainTextEdit->toPlainText()); pref->settings->setValue("Text/text2", plainTextEdit2->toPlainText()); } void Gui::saveSettings(){ pref->settings->setValue("CheckBoxes/atDate", atDateCheckBox->isChecked()); pref->settings->setValue("CheckBoxes/logging", loggingCheckBox->isChecked()); pref->settings->setValue("CheckBoxes/shutdown", shutdownCheckBox->isChecked()); pref->settings->setValue("CheckBoxes/quitWithLastProcess", quitCheckBox->isChecked()); } void Gui::loadSettings(){ atDateCheckBox->setChecked(pref->settings->value("CheckBoxes/atDate").toBool()); loggingCheckBox->setChecked(pref->settings->value("CheckBoxes/logging").toBool()); shutdownCheckBox->setChecked(pref->settings->value("CheckBoxes/shutdown").toBool()); quitCheckBox->setChecked(pref->settings->value("CheckBoxes/quitWithLastProcess").toBool()); plainTextEdit->setPlainText(pref->settings->value("Text/text1").toString()); plainTextEdit2->setPlainText(pref->settings->value("Text/text2").toString()); } shutdown-qapps-1.7.4/qprogram-starter/src/main.cpp0000664000175000017500000000302313501167056021257 0ustar chrischris/* qprogram-starter, a program to start programs or commands, with the option to log output and errors and to shutdown the system. * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "gui.h" #include #include #include int main (int argc, char *argv[]){ QApplication app(argc, argv); //Qt translations QTranslator qtTranslator; qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath)); app.installTranslator(&qtTranslator); //My translations QTranslator translator; QString trDir = "/usr/share/qprogram-starter/translations/"; translator.load(trDir + "qprogram-starter-" + QLocale::system().name()); app.installTranslator(&translator); Gui window; window.loadSettings(); window.show(); return app.exec(); } shutdown-qapps-1.7.4/qprogram-starter/src/ui/0000775000175000017500000000000013513631003020235 5ustar chrischrisshutdown-qapps-1.7.4/qprogram-starter/src/ui/preferences.ui0000666000175000017500000000527313401523310023103 0ustar chrischris Preferences 0 0 335 78 Preferences :/pix:/pix automatic login1 Gnome session KDE session HAL ConsoleKit sudo shutdown -P now Shutdown Method: Qt::Horizontal QDialogButtonBox::Cancel|QDialogButtonBox::Ok buttonBox accepted() Preferences accept() 248 254 157 274 buttonBox rejected() Preferences reject() 316 260 286 274 shutdown-qapps-1.7.4/qprogram-starter/src/ui/gui.ui0000666000175000017500000002221113401523310021355 0ustar chrischris Gui 0 0 554 415 qprogram-starter :/pix:/pix Start the commands to this time and date A&t date and time: Qt::Horizontal 40 15 75 true &Start true 75 true &Abort true Sho&w Logs false dddd dd.MM.yyyy true The contents will be restored on every start of qprogram-starter Save text editors &contents 0 0 Browse... false HH:mm:ss &Logging Quits qprogram-starter when the last command finished &Quit with last command Shutdown the computer after all commands finished S&hutdown 0 0 Browse... true true 0 0 554 23 &File &Settings &Help &Quit Ctrl+Q &Configure Ctrl+P &Hints Ctrl+H atDateCheckBox dateEdit timeEdit browse1 plainTextEdit browse2 plainTextEdit2 loggingCheckBox quitCheckBox shutdownCheckBox saveButton startB abortB showLogsButton shutdownCheckBox toggled(bool) quitCheckBox setDisabled(bool) 543 281 368 281 quitCheckBox toggled(bool) shutdownCheckBox setDisabled(bool) 368 281 543 281 atDateCheckBox toggled(bool) dateEdit setEnabled(bool) 81 46 247 47 atDateCheckBox toggled(bool) timeEdit setEnabled(bool) 81 46 387 47 action_Quit triggered(bool) Gui close() -1 -1 271 210 shutdown-qapps-1.7.4/qprogram-starter/src/gui.h0000664000175000017500000000543513501167042020570 0ustar chrischris/* qprogram-starter, a program to start programs or commands, with the option to log output and errors and to shutdown the system. * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef GUI_H #define GUI_H #include "ui_gui.h" #include #include #include #include class Preferences; class Gui : public QMainWindow, public Ui::Gui { Q_OBJECT // important for creating own singals and slots public: Gui(); ~Gui(); void loadSettings(); private: Preferences *pref; QTimer *dateTimeTimer, *timer; QProcess *process1, *process2; QDateTime nextDate, timeInTheFuture; double secondsToTimeInTheFuture; QTextEdit *hintMsgBox, *logBox1, *logBox2; QString shell, file, errProcess1, errProcess2, outputProcess1, outputProcess2; QStringList processArgs1, processArgs2; QString program1, program2; bool process2Started; bool aborted; QTextStream *myOutput; private slots: void currentDateAndTime(); //for the current minimum date and time void check(); //checks if the time that was set is reached void getProgram1(); void getProgram2(); void run(); //runs the process void abortProcesses(); //aborts all running processes void output1(); //prints output into a file if loggingCheckBox is checked void output2(); void errorOutput1(); //prints errorOutput into a file if loggingCheckBox is checked void errorOutput2(); void message(); //shows a messageBox if the process is finished, or if errors occured void checkForProcess2(); //if textEdit2 !=0 a second process will be started void shutdown_or_message(); //either shuts down the system or shows if the process is finished void info_hint(); //shows a InfoMessageBox void saveData(); void saveSettings(); void showLogs(); signals: void finished(); protected: virtual void closeEvent(QCloseEvent* window_close); }; #endif shutdown-qapps-1.7.4/qprogram-starter/src/preferences.h0000664000175000017500000000254513501167324022307 0ustar chrischris/* qprogram-starter, a program to start programs or commands, with the option to log output and errors and to shutdown the system. * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef PREFERENCES_H #define PREFERENCES_H #include "ui_preferences.h" #include #include class Preferences : public QDialog, public Ui::Preferences { Q_OBJECT public: Preferences(QWidget *parent = 0); QSettings *settings; private: QMessageBox *msgBox; QMessageBox *infoBox; private slots: void setupMsgBoxes(); void loadSettings(); void saveToConfFile(); protected: virtual void showEvent(QShowEvent* show_pref); }; #endif //PREFERENCES_H shutdown-qapps-1.7.4/qprogram-starter/src/pixmap/0000775000175000017500000000000013513631003021116 5ustar chrischrisshutdown-qapps-1.7.4/qprogram-starter/src/pixmap/qprogram-starter.xpm0000666000175000017500000000461513401523310025163 0ustar chrischris/* XPM */ static char * qprogram_starter_xpm[] = { "32 32 82 1", " c None", ". c #1A0000", "+ c #FF0000", "@ c #BA0000", "# c #260000", "$ c #150000", "% c #FE0000", "& c #1D0000", "* c #B30000", "= c #F80000", "- c #B90000", "; c #000000", "> c #1F0000", ", c #970000", "' c #F10000", ") c #360000", "! c #9B0000", "~ c #190000", "{ c #A20000", "] c #220000", "^ c #AA0000", "/ c #FB0000", "( c #020000", "_ c #A30000", ": c #410000", "< c #010000", "[ c #FC0000", "} c #FD0000", "| c #460000", "1 c #070000", "2 c #AD0000", "3 c #F40000", "4 c #380000", "5 c #A10000", "6 c #D10000", "7 c #6F0000", "8 c #500000", "9 c #EB0000", "0 c #230000", "a c #990000", "b c #C90000", "c c #080000", "d c #880000", "e c #FA0000", "f c #DF0000", "g c #3A0000", "h c #B50000", "i c #C10000", "j c #C60000", "k c #B80000", "l c #130000", "m c #840000", "n c #450000", "o c #820000", "p c #B40000", "q c #BD0000", "r c #C00000", "s c #C30000", "t c #140000", "u c #BE0000", "v c #890000", "w c #F50000", "x c #100000", "y c #0B0000", "z c #E60000", "A c #C20000", "B c #AC0000", "C c #0A0000", "D c #950000", "E c #CA0000", "F c #600000", "G c #390000", "H c #B10000", "I c #F30000", "J c #3F0000", "K c #750000", "L c #5B0000", "M c #A00000", "N c #160000", "O c #180000", "P c #910000", "Q c #170000", " ", " .+++++++++++++++++++++++++@# ", " $+%+++++++++++++++++++++++%%+& ", " *+%++++++++++++++++++++++++=+- ", " +++;;;;;;;;;;;;>;;;;;;;;;;;+%+ ", " +++;;;;;;;;;;;,');;;;;;;;;;+++ ", " +++;;;;;;;;;;!+%+~;;;;;;;;;+++ ", " +++;;;;;;;;;{+%%%+];;;;;;;;+++ ", " +++;;;;;;;;^++%%%/+](;;;;;;+++ ", " +++;;;;;;;_+%+++%+%/:<;;;;;+++ ", " +++;;;;;;,+[%}+%%%%%+|1;;;;+++ ", " +++;;;;;2+%++++3+}%+%+4;;;;+++ ", " +++;;;;5+%%%+67;89+}+}+0;<;+++ ", " +++;;;a+}%}+bc;;;;;;;; Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Pok&aż dziennik S&hutdown W&yłącz &Hints &Podpowiedzi Quits qprogram-starter when the last command finished Zamyka qprogram-starter po wykonaniu ostatniego polecenia &Quit with last command &Zakończ z ostatnim poleceniem &Logging &Dziennik Shutdown the computer after all commands finished Wyłącz komputer po wykonaniu wszystkich poleceń The contents will be restored on every start of qprogram-starter Zawartość zostanie odtworzona przy każdym uruchomieniu qprogram-starter &Start &Start &Abort &Przerwij Browse... Przeglądaj... Save text editors &contents Zapisz &zawartość edytora tekstu Start the commands to this time and date Wykonaj polecenie o danej godzinie danego dnia A&t date and time: &O czasie: Select a program Wybierz program The first text edit is empty! Pierwsze pole tekstowe jest puste! Information Informacja Processes aborted Procesy przerwane <b>process 1 finished!</b> <b>proces 1 zakończony!</b> <b>process 1 & 2 finished!</b> <b>procesy 1 i 2 zakończone!</b> Error Błąd <b>Failed to start!</b><br/>No such program or command. <b>Uruchomienie nie powiodło się!</b><br/>Brak takiego programu bądź polecenia. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proces 1 został niespodziewanie zakończony!</b><br/>Może to być spowodowane niewłaściwymi parametrami lub opcjami. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proces 2 został niespodziewanie zakończony!</b><br/>Może to być spowodowane niewłaściwymi parametrami lub opcjami. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Nieznany błąd!</b><br/>Może być spowodowany niewłaściwymi parametrami lub opcjami. "%1": Failed to start! No such program or command. "%1": Uruchomienie nie powiodło się! Brak takiego programu bądź polecenia. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Polecenie z drugiego pola tekstowego (jeśli pole jest wypełnione) zostanie wykonane po pierwszym. Powiadomienia zamkną się po 10 sekundach.<br/>By uruchomić program wpisz np. "firefox" lub "firefox www.google.com" i kliknij Start. Polecenia mogą być łączone znakiem "&&".<br/><br/>Jeśli proces został "zakończony" miomo, że wciąż działa, wypróbuj opcję --nofork (np. kopete --nofork). Zauważ, że taka sytuacja będzie miała miejsce dla niektórych programów takich jak gedit, firefox, czy gnome-terminal jeśli są już uruchomione.<br/><br/>Jeśli chcesz uruchomić program z uprawnieniami administratora (sudo), używaj gksu(do) lub kdesu(do).<br/><br/>Przykład dla make:<br/>&nbsp;make -C /ścieżka/do/projektu<br/>&nbsp;make clean -C /ścieżka/do/projektu<br/><br/>O błedach:<br/>Ponieważ prawie każdy program zwraca inny kod błędu niemożliwe jest określenie co się stało. Zapisz wyjście programu i zobacz jaki rodzaj błedu się pojawił. Pliki z wyjściami można znaleźć w katalogu <i>~/.qprogram-starter/</i>.<br/><br/>Jeśli wyłączanie komputera nie działa oznacza to, że używane jest "sudo shutdown -P now". To polecenie wymaga uprawnień administratora. Można to rozwiązać w następujący sposób:<br/><br/>Wykonaj następujące polecenie w terminalu:<pre>EDITOR=nano sudo -E visudo</pre> i dodaj tą linijkę: <pre>* ALL = NOPASSWD:/sbin/shutdown</pre> gdzie * zastępuję nazwę użytkownika lub %grupy.<br/><br/>Plik konfiguracyjny można znaleźć w katalogu <i>~/.qprogram-starter/</i>. &File &Plik &Settings &Ustawienia &Help &Pomoc &Quit &Wyjdź &Configure &Konfiguruj Version Wersja Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Preferencje automatic automatyczna Gnome session Sesja Gnome KDE session Sesja KDE Shutdown Method: Metoda zamknięcia: The File "%1" is not writable! Maybe you just don't have the permissions to do so. Plik "%1" jest niezapisywalny! Być może nie masz po prostu uprawnień do wykonania tej akcji. Error Błąd Please read this carefully! Proszę przeczytać to uważnie! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Witaj w qprogram-starter! Jeśli chcesz by qprogram-starter automatycznie zamykał system i używasz Gnome Shell, prawdopodobnie uzyskasz stąd dialog zamknięcia. Jeśli chcesz bezpośredniego zamknięcia, rozważ ustawienie metody zamknięcia w preferencjach na ConsoleKit lub coś innego. Odwiedź https://launchpad.net/~hakaishi w celu zgłoszenia błędów lub w sprawach dotyczących tłumaczeń. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-ms.ts0000666000175000017500000002560113401523310026643 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Papa&r Log S&hutdown &Matikan &Hints Pem&bayang Quits qprogram-starter when the last command finished Keluar qprogram-starter bila perintah terakhir selesai &Quit with last command &Keluar dengan perintah terakhir &Logging Pen&gelogan Shutdown the computer after all commands finished Matikan komputer selepas semua perintah selesai The contents will be restored on every start of qprogram-starter Kandungan yang akan dipulih setiap kali mulakan qprogram-starter &Start &Mula &Abort Henti P&aksa Browse... Layar... Save text editors &contents Simpan kan&dungan penyunting teks Start the commands to this time and date Mula perintah pada masa dan tarikh ini A&t date and time: &Pada tarikh dan masa: Select a program Pilih satu program The first text edit is empty! Suntingan teks pertama adalah kosong! Information Maklumat Processes aborted Proses dihenti paksa <b>process 1 finished!</b> <b>proses 1 selesai!</b> <b>process 1 & 2 finished!</b> <b>proses 1 & 2 selesai!</b> Error Ralat <b>Failed to start!</b><br/>No such program or command. <b>Gagal dimulakan!</b><br/>Tiada program atau perintah sebegitu. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proses 1 mengalami kerosakan!</b><br/>Ia disebabkan oleh parameter atau pilihan tidak sah. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proses 2 mengalami kerosakan!</b><br/>Ia disebabkan oleh parameter atau pilihan tidak sah. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Ralat tidak diketahui!</b><br/>Ia disebabkan oleh parameter atau pilihan tidak sah. "%1": Failed to start! No such program or command. "%1": Gagal dimulakan! Tiada program atau perintah sebegitu. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Perintah dalam penyunting teks kedua (jika ada) akan dilakukan selepas yang pertama. Kotak mesej akan ditutup sendiri selepas 10 saat.<br/>Untuk mulakan program hanya taip, cth. "firefox" atau "firefox www.google.com" dan kemudian klik pada Mula. Perintah dll. boleh dipaut dengan tanda "&&" dll. <br/><br/>Jika proses telah "selesai" walaupun ia masih lagi berjalan, maka cuba pilihan --nofork (cth. kopete --nofork). Pethatian ia juga berlaku pada beberapa program seperti gedit, firefox atau gnome-terminal jika ia sedang berjalan.<br/><br/>Bila anda mahu mulakan program atau perintah dengan sudo, sila guna gksu(do) atau kdesu(do).<br/><br/>contoh make:<br/>&nbsp;make -C /laluan/ke/projek<br/>&nbsp;make clean -C /laluan/ke/projek<br/><br/>Perihal Ralat:<br/>Oleh kerana setiap program menghasilkan kod ralat yang berbeza, adalah mustahil dapat menerangkan apa yang telah berlaku. Oleh itu hanya logkan output dan lihat apakah jenis ralat yang berlaku. Fail output boleh ditemui di <i>~/.qprogram-starter/</i>.<br/><br/>Jika shutdown tidak berfungsi, ia bermaksud "sudo shutdown -P now" digunakan. Ia memerlukan keizinan root. Anda boleh membuatnya:<br/><br/>Poskan yang berikut kedalam terminal:<pre>EDITOR=nano sudo -E visudo</pre> dan tambah baris ini:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> yang mana * gantikan nama pengguna atau %groupname.<br/><br/>Fail-konfigurasi boleh ditemui di <i>~/.qprogram-starter/</i>. &File &Fail &Settings &Tetapan &Help &Bantuan &Quit &Keluar &Configure Konfi&gur Version Versi Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Keutamaan automatic automatik Gnome session Sesi Gnome KDE session Sesi KDE Shutdown Method: Kaedah Matikan: The File "%1" is not writable! Maybe you just don't have the permissions to do so. Fail "%1" tidak boleh ditulis! Mungkin anda tidak mempunyai keizinan membuatnya. Error Ralat Please read this carefully! Sila baca dengan teliti! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Selamat datang ke qprogram-starter! Jika anda mahu qprogram-starter matikan sistem secara automatik dan anda menggunakan Shell Gnome, maka anda perlu dapatkan dialog matikan disana. Jika anda mahu matikan secara terus, maka peergi ke keutamaan dan tetapkan kaedah matikan ke ConsoleKit atau yang lain. Sila lawati https://launchpad.net/~hakaishi untuk laporkan pepijat atau lain-lain berkenaan terjemahan. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-gl.ts0000666000175000017500000002601713401523310026630 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Amosar &rexistros S&hutdown Apa&gado &Hints &Consellos Quits qprogram-starter when the last command finished Saír de qprogram-starter cando remate a última orde &Quit with last command &Saír coa última orde &Logging &Acceso Shutdown the computer after all commands finished Apagar o computador despois de que remate a última orde The contents will be restored on every start of qprogram-starter Os contidos restauranse en cada inicio de qprogram-starter &Start &Iniciar &Abort &Interromper Browse... Examinar... Save text editors &contents Gardar os &contidos dos editores de texto Start the commands to this time and date Iniciar as ordes nesta hora e data A&t date and time: &Nesta hora e data Select a program Seleccione un programa The first text edit is empty! O primeir texto de edición está baleiro! Information Información Processes aborted Proceso interrompido <b>process 1 finished!</b> <b>o proceso 1 rematou!</b> <b>process 1 & 2 finished!</b> <b>os procesos 1 e 2 remataron!</b> Error Erro <b>Failed to start!</b><br/>No such program or command. <b>Produciuse un fallo no inicio!</b><br/>Non hai tal programa ou orde. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>o proceso 1 quebrou!</b><br/>Isto pode ser por mor de parámetros ou opcións incorrectas. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>o proceso 2 quebrou!</b><br/>Isto pode ser por mor de parámetros ou opcións incorrectas. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Produciuse un erro descoñecido!</b><br/>Isto pode ser por mor de parámetros ou opcións incorrectas. "%1": Failed to start! No such program or command. «%1»: Produciuse un fallo ao inicialo! Non hai tal programa ou orde. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. A orde no segundo editor de texto (se hai algunha) executarase despois da primeira. As caixas de mensaxe pecharanse despois de 10 segundos.<br/>Para iniciar un programa só ten que escribir p.ex. «firefox» ou «firefox www.google.com» a de seguido premer en Inicio. As ordes, etc. pódense encadear con «&&» etc. <br/><br/>Se o proceso está «rematado», a pesares de estar aínda en execución, tente usar a opción «--nofork» (p.ex. kopete --nofork). Teña en conta que isto tamén pode ocorrer con algúns outros programas como gedit, firefox ou gnome-terminal se xa estean en execución.<br/><br/>Se quere iniciar un programa ou orde con sudo, empregue por por exemplo gksu(do) o kdesu(do).<br/><br/>exemplos con «make»:<br/>&nbsp;make -C /ruta/ao/proxecto<br/>&nbsp;make clean -C /ruta/ao/proxecto<br/><br/>Sobre os erros:<br/>Xa que case todos os programas dan un código de erro diferente, é imposíbel dicir que foi o que pasou. Só ten que ver a saída e ver que tipo de erro se produciu. Os ficheiros de saída pódense atopar en <i>~/.qprogram-starter/</i>.<br/><br/>Se o peche non funciona, é porque «sudo shutdown-P now» aínda está en uso. Isto precisa permisos de administrador (root). Neste caso pode facer o seguinte:<br/><br/>Pegue o seguinte nun terminal:<pre>EDITOR=nano sudo -E visudo</pre> e engada esta liña:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> onde * substitúe o nome de usuario ou o nome do grupo %group.<br/><br/>O ficheiro de configuración atopase en <i>~/.qprogram-starter/</i>. &File &Ficheiro &Settings &Configuracións &Help &Axuda &Quit &Saír &Configure &Configurar Version Versión Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Preferencias automatic automático Gnome session Sesión de Gnome KDE session Sesión de KDE Shutdown Method: Método de apagado: The File "%1" is not writable! Maybe you just don't have the permissions to do so. O ficheiro «%1» non é escribíbel. E probábel que non teña permisos para facelo. Error Erro Please read this carefully! Por favor, lea isto detidamente! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Benvido a qprogram-starter! Se quere que qprogram-starter apague automaticamente o sistema e emprega o Gnome Shell, entón é probábel que obteña un diálogo de apagado. Se quere dspor dun apagado directo, vaia ás preferencias e estableza o método de apagado para ConsoleKit ou outro. Non dubide en visitar https://launchpad.net/~hakaishi para informar de erros, ou calquera outra cousa sobre as traducións. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-ro.ts0000666000175000017500000002650613401523310026651 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Arată &jurnale S&hutdown Înc&hidere &Hints &Sugestii Quits qprogram-starter when the last command finished Închide qprogram-starter, atunci când ultima comandă s-a încheiat &Quit with last command În&chide cu ultima comandă &Logging &Jurnalizare Shutdown the computer after all commands finished Închide calculator după ce toate comenzile s-au încheiat The contents will be restored on every start of qprogram-starter Conținutul va fi restaurat la fiecare pornire a qprogram-starter &Start &Pornește &Abort &Renunță Browse... Răsfoieşte... Save text editors &contents Salvează &conținutul editoarelor text Start the commands to this time and date Începeți comenzile la această dată și oră A&t date and time: &La data și ora: Select a program Selectează un program The first text edit is empty! Prima editare de text este goală! Information Informații Processes aborted Procese întrerupte <b>process 1 finished!</b> <b>procesul1 s-a încheiat!</b> <b>process 1 & 2 finished!</b> <b>procesele 1 & 2 s-au încheiat!</b> Error Eroare <b>Failed to start!</b><br/>No such program or command. <b>nu a reușit să porneasca!</b><br/>Nu există un astfel de program sau comanda. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>procesul 1 s-a încheiat neasteptat!</b><br/>Acest lucru ar putea fi cauzat de parametri sau opțiuni invalide. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>procesul 2 s-a încheiat neasteptat!</b><br/>Acest lucru ar putea fi cauzat de parametri sau opțiuni invalide. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Eroare necunosctă!</b><br/>Acest lucru ar putea fi cauzat de parametri sau opțiuni invalide. "%1": Failed to start! No such program or command. "%1": Nu a reușit să înceapă! Nu există un astfel de program sau de comandă. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Comandă în al doilea editor de text (dacă există) va fi executată dupa prima. Casete de mesaj se vor închide după 10 secunde.<br/>Pentru a porni un program, doar tastați i.e. "firefox" ori "firefox www.google.com" și apoi click pe Start. Comenzile etc. pot fi legate prin by "&&" etc. <br/><br/>Dacă procesul este "încheiat" deși acesta este încă în desfășurare, atunci încercați opțiunea --nofork (i.e. kopete --nofork). Rețineți că acest lucru va avea loc, de asemenea, pentru unele programe, cum ar fi gedit, firefox sau gnome-terminal în cazul în care acestea sunt deja în funcționare.<br/><br/>Când doriți să porniți un program sau comandă cu sudo, folosiți de exemplu gksu(do) sau kdesu(do).<br/><br/>Exemple make:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>Despre erori:<br/>Pentru că aproape fiecare program oferă un cod de eroare diferit, este imposibil de spus ce sa intamplat. Deci, conectați doar ieșirea și a se vedea ce fel de eroare s-a produs. Fișierele de ieșire pot fi găsite la <i>~/.qprogram-starter/</i>.<br/><br/>În cazul în care închiderea nu va funcționa, înseamnă că "sudo shutdown -P now" este utilizată. Acest lucru are nevoie de permisiuni de root. Puteți să faceți asta:<br/><br/>Inserați următoarele într-un terminal:<pre>EDITOR=nano sudo -E visudo</pre> și adăugați această linie:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> unde * înlocuiește numele de utilizator sau numele de grup.<br/><br/>Fișierul de configurare poate fi găsit la <i>~/.qprogram-starter/</i>. &File &Fișier &Settings &Setări &Help &Ajutor &Quit &Ieșire &Configure &Configurare Version Versiunea Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Preferințe automatic automat Gnome session Sesiune Gnome KDE session Sesiune KDE Shutdown Method: Metodă de închidere The File "%1" is not writable! Maybe you just don't have the permissions to do so. Fișierul „%1” nu poate fi scris! Poate nu aveți permisiune de scriere. Error Eroare Please read this carefully! Citiți aceasta cu atenție! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Bun venit la qprogram-starter! Dacă doriți qprogram-starter să oprească automat sistemul și utilizați Gnome Shell, atunci vă sunt susceptibile de a primi un dialog de oprire de acolo. Dacă doriți o închidere directă, atunci vă rugăm să luați în considerare de a merge în preferințele și stabilirea metodei de închidere pentru ConsoleKit sau altceva. Vă rugăm să nu ezitați să vizitați https://launchpad.net/~hakaishi pentr a raporta buguri sau pentru orice cu privire la traduceri. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-de.ts0000666000175000017500000002640113401523310026613 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs &zeige Protokolle S&hutdown S&hutdown &Hints &Hinweise Quits qprogram-starter when the last command finished Beendet qprogram-starter wenn der letzte Befehl fertig ist &Quit with last command Mit dem letzten &Befehl beenden &Logging &Protokollieren Shutdown the computer after all commands finished Schalte den Computer ab nachdem alle Befehle fertig sind The contents will be restored on every start of qprogram-starter Die Inhalte werden bei jedem Start von qprogram-starter wiederhergestellt &Start &Start &Abort &Abbrechen Browse... Durchsuchen... Save text editors &contents Speichere &Inhalte der Texteditoren Start the commands to this time and date Starte die Befehle zu diesem Termin A&t date and time: &Zu Datum und Uhrzeit: Select a program Wähle ein Programm The first text edit is empty! Der erste Texteditor ist leer! Information Information Processes aborted Prozesse abgebrochen <b>process 1 finished!</b> <b>Prozess 1 fertig!</br> <b>process 1 & 2 finished!</b> <b>Prozess 1 & 2 fertig!</b> Error Fehler <b>Failed to start!</b><br/>No such program or command. <b>Start fehlgeschlagen!</b><br/>Unbekannter Befehl oder unbekanntes Programm. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Prozess 1 abgestürzt!</b><br/>Dies könnte durch unzulässige Parameter oder Optionen verursacht worden sein. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Prozess 2 abgestürzt!</b><br/>Dies könnte durch unzulässige Parameter oder Optionen verursacht worden sein. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Unbekannter Fehler!</b><br/>Dies könnte durch unzulässige Parameter oder Optionen verursacht worden sein. "%1": Failed to start! No such program or command. "%1": Start fehlgeschlagen! Unbekannter Befehl oder unbekanntes Programm. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Der Befehl im zweiten Texteditor (falls einer eingegeben wurde) wird nach dem Ersten ausgeführt. Die Hinweisfenster werden sich nach 10 Sekunden selbst beenden.<br/>Um ein Programm zu starten, gib einfach z.B. "firefox" oder "firefox www.google.de" ein und klicke dann auf Start. Befehle etc. können mit "&&" etc. verkettet werden.<br/><br/>Wenn der Prozess "beendet" ist, obwohl er noch läuft, probiere die --nofork Option (z.B. kopete --nofork). Beachte, dass dies auch bei einigen Programmen wie gedit, firefox oder gnome-terminal auftritt, wenn sie bereits laufen.<br/><br/>Wenn man ein Programm oder ein Kommando mit sudo starten möchte, benutze bitte z.B. gksu(do) oder kdesu(do).<br/><br/>make Beispiele:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>Über die Fehler:<br/>Weil fast jedes Programm unterschiedliche Fehlerkodes ausgeben, ist es unmöglich zu sagen was passiert ist. Protokolliere also einfach die Ausgaben und sieh was für eine Art Fehler aufgetreten ist. Die Ausgabedateien kann man unter <i>~/.qprogram-starter/</i> finden.<br/><br/>Falls der Shutdown nich funktioniert, bedeutet das, dass "sudo shutdown -P now" benutzt wird. Dies benötigt Root-Rechte. Dies kann man machen:<br/><br/>Füge das Folgende in ein Terminal ein:<pre>EDITOR=nano sudo -E visudo</pre>und füge diese Zeile hinzu:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>wobei * den Benutzernamen oder %Gruppennamen ersetzt.<br/><br/>Die Konfigurations-Datei kann man unter <i>~/.qprogram-starter/</i> finden. &File &Datei &Settings &Einstellungen &Help &Hilfe &Quit &Beenden &Configure Einri&chten Version Version Ctrl+Q Strg+Q Ctrl+P Strg+P Ctrl+H Strg+H Preferences Preferences Einstellungen automatic automatisch Gnome session Gnome Sitzung KDE session KDE Sitzung Shutdown Method: Methode zum Herunterfahren: The File "%1" is not writable! Maybe you just don't have the permissions to do so. Die Datei "%1" ist nicht beschreibbar! Vielleicht haben Sie dazu einfach keine Rechte. Error Fehler Please read this carefully! Bitte lesen Sie dieses sorgfältig! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Willkommen bei qprogram-starter! Wenn Sie möchten, das qprogram-starter das System herunterfährt und Sie die Gnome Shell benuten, dann ist es wahrscheinlich, dass ein Shutdown-Dialog erscheint. Wenn Sie einen direkten Shutdown möchten, dann ziehen Sie bitte in Betracht in die Einstellungen zu gehen und die Shutdown-Methode auf ConsoleKit oder ähnliches zu stellen. Sie können gerne jederzeit https://launchpad.net/~hakaishi besuchen um Bugs oder alles was die Übersetzungen betrifft besuchen. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-hr.ts0000666000175000017500000002515613401523310026642 0ustar chrischris Gui HH:mm:ss SS:mm:ss dddd dd.MM.yyyy dddd dd.MM.gggg Sho&w Logs Prikaž&i Dnevnike S&hutdown I&sključi &Hints &Savjeti Quits qprogram-starter when the last command finished Prekida qprogram-starter kad završi provođenje zadnje naredbe &Quit with last command &Prekida sa zanjom naredbom &Logging &Prijavljivanje Shutdown the computer after all commands finished Isključuje računalo nakon što završi provođenje svih naredbi The contents will be restored on every start of qprogram-starter Sadržaj će biti vraćen na svakom početku programa qprogram-starter &Start &Start &Abort &Prekid Browse... Pregled... Save text editors &contents Spremi tekstualne editore i sadržaje Start the commands to this time and date Pokrenite naredbe na ovaj datum i u ovo vrijeme A&t date and time: N&a datum i vrijeme: Select a program Odaberite program The first text edit is empty! Prva izmjena teksta je prazna! Information Informacija Processes aborted Prekinuti su procesi <b>process 1 finished!</b> <b>proces 1 je dovršen!</b> <b>process 1 & 2 finished!</b> <b>proces 1 i 2 su dovršeni!</b> Error Greška <b>Failed to start!</b><br/>No such program or command. <b>Neuspjelo pokretanje!</b><br/>Nema takvog programa ili naredbe. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proces 1 se srušio!</b><br/>To bi moglo biti uzrokovano nevažećim parametrima ili opcijama. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proces 2 se srušio!</b><br/>To bi moglo biti uzrokovano nevažećim parametrima ili opcijama. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Nepoznata greška!</b><br/>To bi moglo biti uzrokovano nevažećim parametrima ili opcijama. "%1": Failed to start! No such program or command. "%1": Neuspjelo pokretanje! Nema takvog programa ili naredbe. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Naredba u drugom uređivaču teksta (postoji li) će se izvršiti nakon izvršavanja u prvom. Okviri poruka će se zatvoriti nakon 10 sekundi.<br/>Za pokretanje programa samo upišite tj. "firefox" ili "firefox www.google.com", a zatim kliknite na Start. Naredbe i sl. mogu biti povezani s "&&" itd. <br/><br/>Ako je proces "završio", iako je još uvijek radi, onda pokušajte sa --nofork ocijom (tj. kopete --nofork). Imajte na umu da se ovo također događa sa nekim programima kao što su gedit, Firefox ili gnome-terminal, ako su već pokrenuti.<br/><br/>Kada želite pokrenuti program ili naredbu sa sudo, molimo koristite na primjer gksu(do) ili kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>O Greškama:<br/>Budući da gotovo svaki program daje drugačiji kod pogreške, je nemoguće reći što se je dogodilo. Dakle, samo zabilježite izlazni podatak i pogledajte o kakvoj se grešci radi. Izlazne datoteke se mogu naći u <i>~/.qprogram-starter/</i>.<br/><br/>Ako isključivanja neće raditi, to znači da se koristi "sudo shutdown-P now". Za ovo ćete trebati root ovlasti. Možete napraviti ovo:<br/><br/>U terminalu utipkajte sljedeće:<pre>EDITOR=nano sudo -E visudo</pre> i dodajte ovu liniju:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> gdje * zamjenjuje korisničko ime ili %groupname.<br/><br/>Konfiguracijsku datoteku možete pronaći u <i>~/.qprogram-starter/</i>. &File &Datoteka &Settings &Postavke &Help &Pomoć &Quit &Prestanak &Configure &Podešavanje Version Inačica Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Postavke automatic automatski Gnome session Gnome sesija KDE session KDE sesija Shutdown Method: Metoda Gašenja: The File "%1" is not writable! Maybe you just don't have the permissions to do so. U Datoteku "%1" nije dopušteno pisanje! Možda naprosto nemate dopuštenja za to. Error Greška Please read this carefully! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-en_GB.ts0000666000175000017500000002551413401523310027201 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Sho&w Logs S&hutdown S&hutdown &Hints &Hints Quits qprogram-starter when the last command finished Quits qprogram-starter when the last command finished &Quit with last command &Quit with last command &Logging &Logging Shutdown the computer after all commands finished Shutdown the computer after all commands finished The contents will be restored on every start of qprogram-starter The contents will be restored on every start of qprogram-starter &Start &Start &Abort &Abort Browse... Browse… Save text editors &contents Save text editors &contents Start the commands to this time and date Start the commands to this time and date A&t date and time: A&t date and time: Select a program Select a program The first text edit is empty! The first text edit is empty! Information Information Processes aborted Processes aborted <b>process 1 finished!</b> <b>process 1 finished!</b> <b>process 1 & 2 finished!</b> <b>process 1 & 2 finished!</b> Error Error <b>Failed to start!</b><br/>No such program or command. <b>Failed to start!</b><br/>No such program or command. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. "%1": Failed to start! No such program or command. "%1": Failed to start! No such program or command. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occur for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happened. So just log the output and see what kind of error occurred. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. &File &File &Settings &Settings &Help &Help &Quit &Quit &Configure &Configure Version Version Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Preferences automatic automatic Gnome session Gnome session KDE session KDE session Shutdown Method: Shutdown Method: The File "%1" is not writable! Maybe you just don't have the permissions to do so. The File "%1" is not writable! Maybe you just don't have the permissions to do so. Error Error Please read this carefully! Please read this carefully! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialogue from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anything concerning translations. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-ast.ts0000666000175000017500000002612613401523310027016 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd-MMM-yyyy Sho&w Logs Amosar re&xistros S&hutdown Apa&gar &Hints &Gabitos Quits qprogram-starter when the last command finished Colar de qprogram-starter en acabando l'últimu comandu &Quit with last command &Colar col últimu comandu &Logging &Rexistrar Shutdown the computer after all commands finished Apagar l'ordenador en acabando l'últimu comandu The contents will be restored on every start of qprogram-starter El conteníu restauraráse con cada arranque de qprogram-starter &Start &Aniciar &Abort &Encaboxar Browse... Esaminar… Save text editors &contents Guardar el &conteníu de los editores de testu Start the commands to this time and date Llanzar los comandos esta hora y data A&t date and time: A &hora y data Select a program Escoyer un programa The first text edit is empty! ¡La primera edición de testu ta balera! Information Información Processes aborted Procesos encaboxaos <b>process 1 finished!</b> <b>¡finó'l procesu 1!</b> <b>process 1 & 2 finished!</b> <b>¡finaron los procesos 1 y 2!</b> Error Error <b>Failed to start!</b><br/>No such program or command. <b>¡Nun pudo llanzase!</b><br/>Nun esiste esi programa o comandu. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>¡el procesu 1 frañó!</b><br/>Esto pue debese a parámetros o opciones inválides. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>¡el procesu 2 frañó!</b><br/>Esto pue debese a parámetros o opciones inválides. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>¡Error desconocíu!</b><br/>Esto pue debese a parámetros o opciones inválidos. "%1": Failed to start! No such program or command. "%1": ¡Nun pudo arrancar! Nun esiste esi programa o comandu. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. El comandu del segundu editor de testu (si lu hai) executaráse dempués del primeru. Los cuadros de mensaxe zarraránse dempués de 10 segundos.<br/>P'aniciar un programa sólo tien que escribir p.ex. «firefox» o «firefox www.google.com» y, darréu, calcar Llanzar. Los comandos, etc. puen encadenase con «&&» etc. <br/><br/>Si'l procesu ta «fináu», anque inda tea executandose, pruebe la opción «--nofork» (p.ex. kopete --nofork). Tenga en cuenta qu'esto tamién asocederá con dellos programes como gedit, firefox o gnome-terminal si tá tan executandose.<br/><br/>Cuando quiera aniciar un programa o comandu con sudo, use por exemplu gksu(do) o kdesu(do).<br/><br/>Exemplos con «make»:<br/>&nbsp;make -C /camín/al/proyeutu<br/>&nbsp;make clean -C /camín/al/proyeutu<br/><br/>Tocante a los errores:<br/>Como casi cada programa devuelve un códigu d'error diferente, ye imposible dicir qué ye lo que pasó. Poro, namái tien que ver el rexistru de salida pa ver que tipu d'error asocedió. Los ficheros de salida puen alcontrase'n <i>~/.qprogram-starter/</i>.<br/><br/>Si l'apagáu nun funciona, quier dicir que ta usando «sudo shutdown-P now». Esto necesita permisu de root. Pue facer lo siguiente:<br/><br/>Apegue lo siguiente nun terminal:<pre>EDITOR=nano sudo -E visudo</pre> y amieste esta llinia:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> onde * sustituye al nome d'usuariu o al nome de grupu.<br/><br/>El ficheru de configuración pue alcontrase'n <i>~/.qprogram-starter/</i>. &File &Ficheru &Settings Preferencie&s &Help A&yuda &Quit Co&lar &Configure &Configurar Version Versión Ctrl+Q Ctrl+L Ctrl+P Ctrl+P Ctrl+H Ctrl+Y Preferences Preferences Preferencies automatic automáticu Gnome session Sesión de Gnome KDE session Sesión de KDE Shutdown Method: Métodu d'apagáu: The File "%1" is not writable! Maybe you just don't have the permissions to do so. ¡El ficheru "%1" nun pue escribise! Seique nun tenga permisos pa facelo. Error Error Please read this carefully! ¡Por favor, llea esto con atención! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. ¡Bienveníu a qprogram-starter! Si quier que qprogram-starter apague'l sistema de mou automáticu y ta usando Gnome Shell, posiblemente recibirá un diálogu d'apagáu de la mesma. Si quier un apagáu direutu, por favor, considere entrar nes preferencies y configurar el métodu d'apagáu a ConsoleKit o daqué distinto. Visite con total llibertá https://launchpad.net/~hakaishi si quier informar de fallos o de cualquier cosa tocante a les traducciones. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-bs.ts0000666000175000017500000002263213401523310026631 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Pri&kaži izvještaje S&hutdown U&gasi &Hints &Savjeti Quits qprogram-starter when the last command finished Zatvara qprogram-starter nakon izvršavanja posljednje komande &Quit with last command &Zatvori nakon posljednje komande &Logging &Bilježenje Shutdown the computer after all commands finished Ugasi računar nakon što se izvrše sve komande The contents will be restored on every start of qprogram-starter Sadržaj će biti povraćen nakon svakog pokretanja qprogram-startera &Start &Pokreni &Abort &Prekini Browse... Pretraži... Save text editors &contents Sačuvaj s&adržaj uređivača teksta Start the commands to this time and date Pokreni komande u ovo vrijeme A&t date and time: Da&tum i vrijeme: Select a program Odaberite program The first text edit is empty! Prvo uređivanje teksta je prazno! Information Informacije Processes aborted Proces je prekinut <b>process 1 finished!</b> <b>proces 1 završen!</b> <b>process 1 & 2 finished!</b> <b>procesi 1 i 2 završeni!</b> Error Greška <b>Failed to start!</b><br/>No such program or command. <b>Neuspjelo pokretanje!</b><br/>Ne postoji takav program ili komanda. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proces 1 je krahirao!</b><br/>Moguće je da je ovo prouzrokovano netačnim parametrima ili opcijama. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>proces 2 je krahirao!</b><br/>Moguće je da je ovo prouzrokovano netačnim parametrima ili opcijama. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Nepoznata greška!</b><br/>Moguće je da je ovo prouzrokovano netačnim parametrima ili opcijama. "%1": Failed to start! No such program or command. "%1": Nije moguće pokrenuti! Ne postoji takav program ili komanda. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. &File &Datoteka &Settings &Postavke &Help &Pomoć &Quit &Izađi &Configure &Podesi Version Verzija Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Postavke automatic automatski Gnome session Gnome sesija KDE session KDE sesija Shutdown Method: Metoda gašenja: The File "%1" is not writable! Maybe you just don't have the permissions to do so. U datoteku "%1" se ne može zapisivati! Možda nemate potrebnu dozvolu za zapisivanje. Error Greška Please read this carefully! Molimo vas da ovo pažljivo pročitate! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Dobro došli u qprogram-starter! Ako želite da qprogram-starter vrši automatsko gašenje vašeg sistema a koristite Gnome Shell, onda je vrlo vjerovatno da će vam se tamo prikazati dijaloški okvir. Ako želite izvršiti direktno gašenje, onda vas molimo da otvorite opcije i podesite metodu gašenja na ConsoleKit ili nešto drugo. Prijave i primjedbe za greške i prijevode možete izvršiti na https://launchpad.net/~hakaishi shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-uk.ts0000666000175000017500000003271713401523310026651 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd, dd.MM.yyyy Sho&w Logs &Показати журнал S&hutdown З&авершити роботу &Hints П&ідказки Quits qprogram-starter when the last command finished Завершує роботу qprogram-starter, щойно буде виконано останню команду &Quit with last command Ви&йти після останньої команди &Logging &Журнал Shutdown the computer after all commands finished Завершити роботу комп’ютера, щойно буде виконано всі команди The contents will be restored on every start of qprogram-starter Дані відновлюватимуться після кожного запуску qprogram-starter &Start &Запустити &Abort П&ерервати Browse... Вибрати... Save text editors &contents Зберегти &дані у текстових редакторах Start the commands to this time and date Запустити команду у вказаний час вказаної дати A&t date and time: Да&та і час запуску: Select a program Виберіть програму The first text edit is empty! Перше текстове поле порожнє! Information Відомості Processes aborted Роботу процесів перервано <b>process 1 finished!</b> <b>роботу процесу 1 завершено!</b> <b>process 1 & 2 finished!</b> <b>роботу процесів 1 і 2 завершено!</b> Error Помилка <b>Failed to start!</b><br/>No such program or command. <b>Не вдалося запустити!</b><br/>Немає такої програми або команди. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Процес 1 аварійно завершив роботу!</b><br/>Це може бути спричинено некоректними параметрами або аргументами. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Процес 2 аварійно завершив роботу!</b><br/>Це може бути спричинено некоректними параметрами або аргументами. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Невідома помилка!</b><br/>Це може бути спричинено некоректними параметрами або аргументами. "%1": Failed to start! No such program or command. «%1»: не вдалося запустити команду! Немає такої програми або команди. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Команду у другому вікні редагування тексту (якщо таке показано) буде виконано після команди у першому. Панелі повідомлень буде закрито автоматично за 10 секунд.<br/>Для запуску програми просто вкажіть, наприклад, «firefox» або «firefox www.google.com», а потім натисніть кнопку «Запустити». Команди можна об’єднувати у кортежі за допомогою «&&» тощо. <br/><br/>Якщо процес «завершує» роботу, хоча її робота все ще продовжується, спробуйте скористатися параметром --nofork (тобто kopete --nofork). Зауважте, що таке трапляється і для деяких інших програм, зокрема gedit, firefox або gnome-terminal, якщо їх вже запущено.<br/><br/>Якщо ви хочете запустити команду або програму за допомогою sudo, будь ласка, скористайтеся, наприклад, gksu(do) або kdesu(do).<br/><br/>Приклади для make:<br/>&nbsp;make -C /шлях/до/проекту<br/>&nbsp;make clean -C /шлях/до/проекту<br/><br/>Про помилки:<br/>оскільки майже всі програми повідомляють про помилки різними кодами, неможливо визначити причину помилки. Отже просто запишіть виведені дані до журналу і ознайомтеся з повідомленням про помилку. Файли виведених даних можна знайти у <i>~/.qprogram-starter/</i>.<br/><br/>Якщо вимикання комп’ютера не працює, значить використовується «sudo shutdown -P now». Для виконання цієї команди потрібні права доступу адміністратора (root). Ви можете усунути помилку так:<br/><br/>Введіть таку команду у терміналі:<pre>EDITOR=nano sudo -E visudo</pre> і додайте такий рядок:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre>, де * замінює ім’я користувача або %groupname.<br/><br/>Файл налаштувань зберігається у <i>~/.qprogram-starter/</i>. &File &Файл &Settings П&араметри &Help &Довідка &Quit Ви&йти &Configure &Налаштувати Version Версія Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Налаштування automatic автоматичне Gnome session Сеанс GNOME KDE session Сеанс KDE Shutdown Method: Спосіб вимикання: The File "%1" is not writable! Maybe you just don't have the permissions to do so. Файл «%1» є непридатним до запису! Ймовірно, ви не маєте належних прав доступу до цього файла. Error Помилка Please read this carefully! Будь ласка, ознайомтеся з цією інформацією! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. Вітаємо у qprogram-starter! Якщо ви хочете скористатися qprogram-starter для автоматичного вимикання системи і використовуєте Gnome Shell, ймовірно, діалогове вікно вимикання буде показано прямо зараз. Якщо ви хочете вимикати систему безпосередньо, будь ласка, відкрийте вікно налаштувань і встановіть у пункті способу вимикання ConsoleKit або щось інше. Щоб повідомити про ваду у програмі або перекладі, скористайтеся сторінкою https://launchpad.net/~hakaishi shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-es.ts0000666000175000017500000002111313401523310026625 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy dddd dd.MM.yyyy Sho&w Logs Mos&trar registros S&hutdown A&pagar &Hints Quits qprogram-starter when the last command finished Salir de qprogram-starter después de ejecutar la última orden &Quit with last command &Salir con la última orden &Logging &Registro Shutdown the computer after all commands finished The contents will be restored on every start of qprogram-starter El contenido será restaurado en cada inicio de qprogram-starter &Start &Iniciar &Abort &Interrumpir Browse... Examinar… Save text editors &contents Guardar el &contenido de los editores de texto Start the commands to this time and date A&t date and time: A esta hora y fecha: Select a program Seleccionar un programa The first text edit is empty! Information Información Processes aborted Procesos interrumpidos <b>process 1 finished!</b> <b>el proceso 1 ha finalizado</b> <b>process 1 & 2 finished!</b> <b>los procesos 1 y 2 han finalizado</b> Error Error <b>Failed to start!</b><br/>No such program or command. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. "%1": Failed to start! No such program or command. «%1»: Falló al iniciarse. No existe ese programa u orden. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. &File &Archivo &Settings &Configuración &Help Ay&uda &Quit &Salir &Configure &Configurar Version Versión Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Preferencias automatic automático Gnome session Sesión de Gnome KDE session Sesión de KDE Shutdown Method: Método de apagado: The File "%1" is not writable! Maybe you just don't have the permissions to do so. El archivo «%1» no es escribible. Quizá no tiene los permisos para hacerlo. Error Error Please read this carefully! Lea esto cuidadosamente. Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. shutdown-qapps-1.7.4/qprogram-starter/src/translations/qprogram-starter-it.ts0000666000175000017500000002541513401523310026643 0ustar chrischris Gui HH:mm:ss HH:mm:ss dddd dd.MM.yyyy ddd d MMM yyyy Sho&w Logs Most&ra registri S&hutdown &Arrestare &Hints S&uggerimenti Quits qprogram-starter when the last command finished Esce da qprogram-starter al termine dell'ultimo comando &Quit with last command &Uscire dopo l'ultimo comando &Logging Re&gistrazione Shutdown the computer after all commands finished Arresta il computer al termine dell'ultimo comando The contents will be restored on every start of qprogram-starter I contenuti verranno ripristinati ad ogni avvio di qprogram-starter &Start A&vvia &Abort &Interrompi Browse... Esplora... Save text editors &contents Salva campi e contenuti Start the commands to this time and date Lancia i comandi alla data e ora stabiliti A&t date and time: Avvia in data e ora: Select a program Seleziona programma The first text edit is empty! Il primo campo è vuoto Information Informazioni Processes aborted Elaborazione interrotta <b>process 1 finished!</b> <b>Processo 1 completato.</b> <b>process 1 & 2 finished!</b> <b>Processi 1 e 2 completati.</b> Error Errore <b>Failed to start!</b><br/>No such program or command. <b>Impossibile avviare.</b><br/>Nessun programma o comando specificati. <b>process 1 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Processo 1 bloccato.</b><br/>Questo può dipendere da opzioni o parametri non validi. <b>process 2 crashed!</b><br/>This could be caused by invalid parameters or options. <b>Processo 2 bloccato.</b><br/>Questo può dipendere da opzioni o parametri non validi. <b>Unknown error!</b><br/>This could be caused by invalid parameters or options. <b>Errore sconosciuto.</b><br/>Questo può dipendere da opzioni o parametri non validi. "%1": Failed to start! No such program or command. «%1»: impossibile avviare. Nessun programma o comando specificati. The command in the second text editor (if there is any) will be executed after the first one. The message boxes will close themselves after 10 seconds.<br/>To start a program just type i.e. "firefox" or "firefox www.google.com" and then click on Start. Commands etc. can be linked by "&&" etc. <br/><br/>If the process is "finished" although it is still running, then try the --nofork option (i.e. kopete --nofork). Note that this will also occure for some programs like gedit, firefox or gnome-terminal if they are already running.<br/><br/>When you want to start a program or command with sudo, please use for example gksu(do) or kdesu(do).<br/><br/>make examples:<br/>&nbsp;make -C /path/to/project<br/>&nbsp;make clean -C /path/to/project<br/><br/>About Errors:<br/>Because almost every program gives a different error code, it is impossible to say what happend. So just log the output and see what kind of error occured. The output files can be found at <i>~/.qprogram-starter/</i>.<br/><br/>If the shutdown won't work, it means that "sudo shutdown -P now" is used. This needs root permissions. You can do the this:<br/><br/>Post the following in a terminal:<pre>EDITOR=nano sudo -E visudo</pre> and add this line:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> whereas * replaces the username or %groupname.<br/><br/>The configuration-file can be found at <i>~/.qprogram-starter/</i>. Il comando nel secondo campo (se presente) verrà eseguito dopo il primo. Le finestre dei messaggi verranno chiuse automaticamente dopo 10 secondi.<br/>Per lanciare un programma scrivere semplicemente, per esempio, «firefox» o «firefox www.google.com» e fare clic su «Avvia». I vari comandi possono essere eseguiti in sequenza usando «&&».<br/><br/>Se l'elaborazione viene indicata come conclusa nonostante sia ancora in esecuzione, provare l'opzione «--nofork» (per esempio kopete --nofork). Notare che questo potrebbe essere necessario per alcuni programmi come gedit, firefox o gnome-terminal quando sono già in esecuzione.<br/><br/>Per eseguire un programma o un comando usando «sudo», usare «gksu(do)» o «kdesu(do)».<br/><br/>Alcuni esempi:<br/>&nbsp;make -C /percorso/del/progetto/<br/>&nbsp;make clean -C /percorso/del/progetto<br/><br/>Informazioni sugli errori:<br/>A causa dei diversi codici di errore restituiti dai vari programmi, non è possibile stabilire cosa accade. Controllare quindi l'output dei comandi per vedere quale errore si è verificato. I fiel di output possono essere trovati in <i>~/.qprogram-starter/</i>.<br/><br/>Se non è possibile eseguire lo spegnimento della macchina, significa che è stato usato il comando «sudo shutdown -P now». Questa operazione richiede i privilegi di root. È possibile provare le seguenti operazioni:<br/><br/>Eseguire in un terminale il seguente comando:<pre>EDITOR=nano sudo -E visudo</pre> e aggiungere al file appena aperto la seguente riga:<pre>* ALL = NOPASSWD:/sbin/shutdown</pre> sostituendo «*» con «username» o «%groupname». .<br/><br/>Il file di configurazione si trova in <i>~/.qprogram-starter/</i>. &File &File &Settings Impo&stazioni &Help A&iuto &Quit &Esci &Configure &Configura Version Versione Ctrl+Q Ctrl+Q Ctrl+P Ctrl+P Ctrl+H Ctrl+H Preferences Preferences Preferenze automatic automatico Gnome session Sessione GNOIME KDE session Sessione KDE Shutdown Method: Metodo di arresto: The File "%1" is not writable! Maybe you just don't have the permissions to do so. Il file «%1» non è scrivibile. Forse non si hanno i permessi per eseguire l'operazione. Error Errore Please read this carefully! Welcome to qprogram-starter! If you want qprogram-starter to automatically shutdown the system and you are using the Gnome Shell, then you are likely to get a shutdown dialog from there. If you want a direct shutdown, then please consider going into the preferences and setting the shutdown method to ConsoleKit or something else. Please feel free to visit https://launchpad.net/~hakaishi to report bugs or for anyting concerning translations. shutdown-qapps-1.7.4/qprogram-starter/src/preferences.cpp0000664000175000017500000000777713501167071022655 0ustar chrischris/* qprogram-starter, a program to start programs or commands, with the option to log output and errors and to shutdown the system. * Copyright (C) 2010-2019 Christian Metscher * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "preferences.h" #include #include #include #include Preferences::Preferences(QWidget *parent): QDialog(parent){ setupUi(this); QString file; #ifdef Q_OS_WIN32 file = QDesktopServices::storageLocation(QDesktopServices::DataLocation) + "/qprogram-starter/qprogram-starter.conf"; #else //!Q_OS_WIN32 file = QDir::homePath() + "/.qprogram-starter/qprogram-starter.conf"; #endif settings = new QSettings(file, QSettings::IniFormat); setupMsgBoxes(); loadSettings(); connect(buttonBox, SIGNAL(accepted()), this, SLOT(saveToConfFile())); } void Preferences::setupMsgBoxes(){ msgBox = new QMessageBox(this); msgBox->setWindowTitle(tr("Error")); msgBox->setIcon(QMessageBox::Warning); msgBox->setWindowFlags(Qt::WindowStaysOnTopHint | Qt::Window); msgBox->setInformativeText(tr("The File \"%1\" is not writable!\n" "Maybe you just don't have the permissions to do so.").arg(settings->fileName())); if(settings->value("first_start", true).toBool()) { infoBox = new QMessageBox(this); infoBox->setWindowTitle(tr("Please read this carefully!")); infoBox->setIcon(QMessageBox::Information); infoBox->setInformativeText(tr("Welcome to qprogram-starter!\n" "If you want qprogram-starter to automatically shutdown the system " "and you are using the Gnome Shell, then you are likely to get a " "shutdown dialog from there. If you want a direct shutdown, then " "please consider going into the preferences and setting the shutdown " "method to ConsoleKit or something else.\n\nPlease feel free to visit " "https://launchpad.net/~hakaishi to report bugs or for anyting " "concerning translations.")); infoBox->setStandardButtons(QMessageBox::Ok); } } void Preferences::showEvent(QShowEvent* show_pref){ if(!settings->isWritable()) { QTimer::singleShot(15000, msgBox, SLOT(close())); msgBox->show(); } loadSettings(); QDialog::showEvent(show_pref); } void Preferences::loadSettings(){ if(settings->value("first_start", true).toBool()) { infoBox->show(); settings->setValue("first_start", false); } if(!settings->contains("shutdown_method")) settings->setValue("shutdown_method", 0); if(!settings->contains("CheckBoxes/atDate")) settings->setValue("CheckBoxes/atDate", false); if(!settings->contains("CheckBoxes/logging")) settings->setValue("CheckBoxes/logging", false); if(!settings->contains("CheckBoxes/shutdown")) settings->setValue("CheckBoxes/shutdown", false); if(!settings->contains("CheckBoxes/quitWithLastProcess")) settings->setValue("CheckBoxes/quitWithLastProcess", false); if(!settings->contains("Text/text1")) settings->setValue("Text/text1", QString()); if(!settings->contains("Text/text2")) settings->setValue("Text/text2", QString()); //read settings comboBox->setCurrentIndex(settings->value("shutdown_method", 0).toInt()); } void Preferences::saveToConfFile(){ settings->setValue("shutdown_method",comboBox->currentIndex()); } shutdown-qapps-1.7.4/qprogram-starter/autostart/0000775000175000017500000000000013513631003021057 5ustar chrischrisshutdown-qapps-1.7.4/qprogram-starter/autostart/qprogram-starter.desktop0000776000175000017500000000030013502446464025776 0ustar chrischris[Desktop Entry] Name=qprogram-starter Name[de_DE]=qprogram-starter Exec=qprogram-starter Terminal=false Type=Application Icon=qprogram-starter Categories=Utility; Name[en_US]=qprogram-starter shutdown-qapps-1.7.4/qprogram-starter/COPYING0000666000175000017500000010437413401523310020074 0ustar chrischris GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . shutdown-qapps-1.7.4/qprogram-starter/qprogram-starter.pro0000666000175000017500000000312513477744211023107 0ustar chrischris!win32{ QT += dbus } TEMPLATE = app TARGET = bin/qprogram-starter DEPENDPATH = . src src/translations INCLUDEPATH = . src OBJECTS_DIR = build MOC_DIR = build UI_DIR = build RCC_DIR = build QT += widgets gui system(lrelease qprogram-starter.pro) QMAKE_DISTCLEAN = src/translations/*.qm # Input HEADERS = src/gui.h src/preferences.h FORMS = src/ui/gui.ui src/ui/preferences.ui SOURCES = src/main.cpp src/gui.cpp src/preferences.cpp RESOURCES = ../qprogram-starter.qrc TRANSLATIONS = src/translations/qprogram-starter-ast.ts\ src/translations/qprogram-starter-bs.ts\ src/translations/qprogram-starter-de.ts\ src/translations/qprogram-starter-en_GB.ts\ src/translations/qprogram-starter-es.ts\ src/translations/qprogram-starter-gl.ts\ src/translations/qprogram-starter-hr.ts\ src/translations/qprogram-starter-it.ts\ src/translations/qprogram-starter-ms.ts\ src/translations/qprogram-starter-pl.ts\ src/translations/qprogram-starter-ro.ts\ src/translations/qprogram-starter-uk.ts # install target.path = /usr/bin translation.files = src/translations/*.qm translation.path = /usr/share/qprogram-starter/translations autostart.files = autostart/qprogram-starter.desktop autostart.path = /usr/share/applications icon.files = src/pixmap/qprogram-starter.xpm icon.path = /usr/share/pixmaps INSTALLS = target translation autostart icon deinstall.depends = uninstall FORCE deinstall.commands = rmdir /usr/share/qprogram-starter QMAKE_EXTRA_TARGETS = deinstall shutdown-qapps-1.7.4/qprogram-starter/NEWS0000666000175000017500000000535413401523310017536 0ustar chrischrisChanges in Release 1.7.0 ========================= - added new shutdown/reboot/suspend/hibernate command (possibly working on most debian based systems) Changes in Release 1.6.8 ========================= added systemctl command in "automatic" and "sudo" Changes in Release 1.6.7 ========================= - fixed not beeing able to start commands after first one failed - fixed not saving text editors contents - fixed not saving states of checkboxes - fixed bug relating to environment (#716194) Changes in Release 1.6.6 ========================= - new design and new options - added welcome dialog - update on translations Changes in Release 1.6.5 ========================= - fixed bug: Settings are not saved if shutdown was set - reviewed shutdown commands - added translations for: (German), Asturian, Bosnian, Croatian, English (Australia / United Kingdom), Galician, Italian, Malay, Polish, Russian, Turkish, Ukrainian Changes in Release 1.6.4 ========================= - Commands etc. can now be linked/connected with "&&" etc. Changes in Release 1.6.2 ========================= - replaced all qDebug(), qWarning() and qCritical() Changes in Release 1.6.1 ========================= - now also compile-able for Windows Changes in Release 1.6.0 ========================= - rearranged design - new function for showing the logs Changes in Release 1.4.8 ========================= - added start & abort buttons - fixed date and time problems (timer) Changes in Release 1.4.5 ========================= - added "delete settings" in destructor - new path for .qm translation files Changes in Release 1.4.3 ========================= - corrected a spelling mistake - some minor changes Changes in Release 1.4.2 ========================= - a little modification for the file browser Changes in Release 1.4.1 ========================= - bug in time calculation fixed Changes in Release 1.4.0 ========================= - the dateTimeEdit was replaced trough a date and a time edit - the date and time are now at minimum the current date and time - there are now browse buttons to choose a program binary - one can now save the command he/she wants to - the output is now devided into four files: two output and two error output files, because there are two processes Changes in Release 1.2.0 ========================= - fixed shutdown function - replaced hints message box with a QPlainTextEdit Object Changes in Release 1.1.0 ========================= - pixmap now in .xpm format - added DeviceKit in the shutdown option Changes in Release 1.0.2 ========================= - nothing source relevant Changes in Release 1.0.1 ========================= - Initial Release shutdown-qapps-1.7.4/version.txt0000666000175000017500000000000513503161676015757 0ustar chrischris1.7.4shutdown-qapps-1.7.4/shutdown-qapps.pro0000666000175000017500000000011613401523312017235 0ustar chrischrisTEMPLATE = subdirs CONFIG += ordered SUBDIRS = qprogram-starter qshutdown