~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/setup_joystick.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
Setup_Joystick::Setup_Joystick(const Widget2 *const widget) :
44
44
    SetupTab(widget),
45
45
    mCalibrateLabel(new Label(this,
 
46
        // TRANSLATORS: joystick settings tab label
46
47
        _("Press the button to start calibration"))),
 
48
    // TRANSLATORS: joystick settings tab button
47
49
    mCalibrateButton(new Button(this, _("Calibrate"), "calibrate", this)),
 
50
    // TRANSLATORS: joystick settings tab button
48
51
    mDetectButton(new Button(this, _("Detect joysticks"), "detect", this)),
49
52
    mOriginalJoystickEnabled(config.getBoolValue("joystickEnabled")),
 
53
    // TRANSLATORS: joystick settings tab checkbox
50
54
    mJoystickEnabled(new CheckBox(this, _("Enable joystick"))),
51
55
    mNamesModel(new NamesModel),
52
56
    mNamesDropDown(new DropDown(this, mNamesModel)),
 
57
    // TRANSLATORS: joystick settings tab checkbox
53
58
    mUseInactiveCheckBox(new CheckBox(this, _("Use joystick if client "
54
59
        "window inactive"), config.getBoolValue("useInactiveJoystick")))
55
60
{
 
61
    // TRANSLATORS: joystick settings tab name
56
62
    setName(_("Joystick"));
57
63
 
58
64
    Joystick::getNames(mNamesModel->getNames());
125
131
 
126
132
        if (joystick->isCalibrating())
127
133
        {
 
134
            // TRANSLATORS: joystick settings tab button
128
135
            mCalibrateButton->setCaption(_("Calibrate"));
129
136
            mCalibrateLabel->setCaption
 
137
                // TRANSLATORS: joystick settings tab label
130
138
                (_("Press the button to start calibration"));
131
139
            joystick->finishCalibration();
132
140
        }
133
141
        else
134
142
        {
 
143
            // TRANSLATORS: joystick settings tab button
135
144
            mCalibrateButton->setCaption(_("Stop"));
136
145
            mCalibrateLabel->setCaption(
 
146
                // TRANSLATORS: joystick settings tab label
137
147
                _("Rotate the stick and don't press buttons"));
138
148
            joystick->startCalibration();
139
149
        }