Subversion Repositories tpanel

Rev

Rev 264 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 264 Rev 368
Line 66... Line 66...
66
    ui->label_Prompt->setText(prompt.c_str());
66
    ui->label_Prompt->setText(prompt.c_str());
67
 
67
 
68
    if (!mPrivate)
68
    if (!mPrivate)
69
        ui->label_TextLine->setText(init.c_str());
69
        ui->label_TextLine->setText(init.c_str());
70
    else
70
    else
71
        ui->label_TextLine->setText(fillString('*', mText.length()).c_str());
71
        ui->label_TextLine->setText(fillString('*', (int)mText.length()).c_str());
72
 
72
 
73
    MSG_DEBUG("Dialog was initialized.");
73
    MSG_DEBUG("Dialog was initialized.");
74
}
74
}
75
 
75
 
76
TQKeypad::~TQKeypad()
76
TQKeypad::~TQKeypad()
Line 160... Line 160...
160
        mText = mText.substr(0, mMaxLen);
160
        mText = mText.substr(0, mMaxLen);
161
 
161
 
162
    if (!mPrivate)
162
    if (!mPrivate)
163
        ui->label_TextLine->setText(mText.c_str());
163
        ui->label_TextLine->setText(mText.c_str());
164
    else
164
    else
165
        ui->label_TextLine->setText(fillString('*', mText.length()).c_str());
165
        ui->label_TextLine->setText(fillString('*', (int)mText.length()).c_str());
166
 
166
 
167
    if (getSystemSoundState())
167
    if (getSystemSoundState())
168
    {
168
    {
169
        std::string snd = getTouchFeedbackSound();
169
        std::string snd = getTouchFeedbackSound();
170
        MSG_DEBUG("Playing sound: " << snd);
170
        MSG_DEBUG("Playing sound: " << snd);
Line 199... Line 199...
199
        mText = mText.substr(0, mMaxLen);
199
        mText = mText.substr(0, mMaxLen);
200
 
200
 
201
    if (!mPrivate)
201
    if (!mPrivate)
202
        ui->label_TextLine->setText(mText.c_str());
202
        ui->label_TextLine->setText(mText.c_str());
203
    else
203
    else
204
        ui->label_TextLine->setText(fillString('*', mText.length()).c_str());
204
        ui->label_TextLine->setText(fillString('*', (int)mText.length()).c_str());
205
}
205
}
206
 
206
 
207
int TQKeypad::scale(int value)
207
int TQKeypad::scale(int value)
208
{
208
{
209
    if (value <= 0 || mScaleFactor == 1.0)
209
    if (value <= 0 || mScaleFactor == 1.0)