Commit 7a637350 authored by Marco Parillo's avatar Marco Parillo Committed by Nicolas Fella

Replace Anonymous with Custom

parent 8ded4d35
2021-01-14: Marco Parillo <maparillo@gmail.com>
- Changed Anonomous to Custom for custom-timed steeping (like
requested in #431663
2007-09-29 Stefan Böhmann <kde@hilefoks.org>
- added/improved command-line arguments to start a tea (like requested in #144708).
......
......@@ -81,7 +81,7 @@
<sect1 id="select-your-tea">
<title>Select Your Tea</title>
<para>Clicking on the icon with the &RMB; will bring up a menu. At the top of the menu there are four menu items. Here, you can select what kind of tea you are preparing to drink. There are: <guimenuitem>Black Tea</guimenuitem>, <guimenuitem>Earl Grey</guimenuitem>, <guimenuitem>Fruit Tea</guimenuitem>, and <guimenuitem>Green Tea</guimenuitem>. These teas are preconfigured with a default time. Many people have complained that the times are not correct. Please be aware that the amount of time it takes to steep a cup of tea is based on personal preference. The times chosen are approximations. If you read on, you will learn how to change or delete these predefined times and to set your own time. A quick-and-easy way to set a custom time is to choose <guimenuitem>Anonymous...</guimenuitem> from the menu.</para>
<para>Clicking on the icon with the &RMB; will bring up a menu. At the top of the menu there are four menu items. Here, you can select what kind of tea you are preparing to drink. There are: <guimenuitem>Black Tea</guimenuitem>, <guimenuitem>Earl Grey</guimenuitem>, <guimenuitem>Fruit Tea</guimenuitem>, and <guimenuitem>Green Tea</guimenuitem>. These teas are preconfigured with a default time. Many people have complained that the times are not correct. Please be aware that the amount of time it takes to steep a cup of tea is based on personal preference. The times chosen are approximations. If you read on, you will learn how to change or delete these predefined times and to set your own time. A quick-and-easy way to set a custom time is to choose <guimenuitem>Custom...</guimenuitem> from the menu.</para>
<para>Clicking <guimenuitem>Configure Notifications...</guimenuitem> brings up the &kde; Notification Settings for &kteatime;.</para>
......
......@@ -95,7 +95,7 @@ int main (int argc, char *argv[])
const int time=parser.value(timeOption).toInt();
if( time > 0 ) {
const QString name = parser.value(nameOption);
const Tea tea( name.isEmpty() ? i18n( "Anonymous Tea" ) : name, time );
const Tea tea( name.isEmpty() ? i18n( "Custom Tea" ) : name, time );
toplevel->runTea( tea );
}
......
......@@ -36,7 +36,7 @@ QString Tea::name() const
void Tea::setName(const QString &name)
{
if( name.isEmpty() ) {
m_name = i18n( "Anonymous Tea" );
m_name = i18n( "Custom Tea" );
}
else {
m_name = name;
......
......@@ -45,10 +45,10 @@ TimeEditDialog::TimeEditDialog(TopLevel *toplevel)
: QDialog(),
m_toplevel( toplevel )
{
setWindowTitle( i18n( "Anonymous Tea" ) );
setWindowTitle( i18n( "Custom Tea" ) );
buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
buttonBox->button(QDialogButtonBox::Ok)->setWhatsThis(i18n( "Start a new anonymous tea with the time configured in this dialog." ));
buttonBox->button(QDialogButtonBox::Ok)->setWhatsThis(i18n( "Start a new custom tea with the time configured in this dialog." ));
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
buttonBox->button(QDialogButtonBox::Ok)->setShortcut(Qt::CTRL | Qt::Key_Return);
buttonBox->button(QDialogButtonBox::Cancel)->setWhatsThis(i18n( "Close this dialog without starting a new tea." ));
......@@ -117,7 +117,7 @@ void TimeEditDialog::accept()
group.writeEntry( "AnonymousTeaDialogXPos", x() );
group.writeEntry( "AnonymousTeaDialogYPos", y() );
m_toplevel->runTea( Tea( i18n( "Anonymous Tea" ), time ) );
m_toplevel->runTea( Tea( i18n( "Custom Tea" ), time ) );
}
......
......@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle" >
<string>Anonymous Tea</string>
<string>Custom Tea</string>
</property>
<layout class="QGridLayout" >
<property name="leftMargin" >
......
......@@ -105,8 +105,8 @@ TopLevel::TopLevel(const KAboutData *aboutData, const QString &icon, QWidget *pa
action = KStandardAction::quit(qApp, &QCoreApplication::quit, m_actionCollection);
action->setShortcut(0);
action = m_actionCollection->addAction( QStringLiteral( "anonymous" ));
action->setText(i18n( "&Anonymous..." ) );
action = m_actionCollection->addAction( QStringLiteral( "custom" ));
action->setText(i18n( "&Custom..." ) );
connect(action, &QAction::triggered, this, &TopLevel::showTimeEditDialog);
m_helpMenu = new KHelpMenu( nullptr, *aboutData, false );
......@@ -119,7 +119,7 @@ TopLevel::TopLevel(const KAboutData *aboutData, const QString &icon, QWidget *pa
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("pause")) );
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("stop")) );
contextMenu()->addSeparator();
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("anonymous")) );
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("custom")) );
contextMenu()->addSeparator();
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("configure")) );
contextMenu()->addAction( m_actionCollection->action(QLatin1String(KStandardAction::name(KStandardAction::ConfigureNotifications))) );
......@@ -152,7 +152,7 @@ void TopLevel::checkState() {
m_teaActionGroup->setEnabled( !state );
m_actionCollection->action(QStringLiteral("stop"))->setEnabled( state );
m_actionCollection->action(QStringLiteral("anonymous"))->setEnabled( !state );
m_actionCollection->action(QStringLiteral("custom"))->setEnabled( !state );
m_actionCollection->action(QStringLiteral("resume"))->setEnabled( false );
m_actionCollection->action(QStringLiteral("pause"))->setEnabled( state && m_runningTeaTime > 0 );
......@@ -196,7 +196,7 @@ void TopLevel::setTeaList(const QList<Tea> &tealist) {
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("resume")) );
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("pause")) );
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("stop")) );
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("anonymous")) );
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("custom")) );
contextMenu()->addSeparator();
contextMenu()->addAction( m_actionCollection->action(QStringLiteral("configure")) );
contextMenu()->addAction( m_actionCollection->action(QLatin1String(KStandardAction::name(KStandardAction::ConfigureNotifications))) );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment