You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
900 B
55 lines
900 B
/**********************************************************************
|
|
|
|
--- Qt Architect generated file ---
|
|
|
|
File: ssfeprompt.cpp
|
|
Last generated: Thu Jan 15 20:49:56 1998
|
|
|
|
*********************************************************************/
|
|
|
|
#include "ssfeprompt.h"
|
|
#include <klocale.h>
|
|
|
|
#undef Inherited
|
|
#define Inherited ssfepromptdata
|
|
|
|
ssfePrompt::ssfePrompt
|
|
(
|
|
TQString prompttext,
|
|
TQWidget* parent,
|
|
const char* name
|
|
)
|
|
:
|
|
Inherited( parent, name )
|
|
{
|
|
setCaption( i18n("Prompt") );
|
|
prompt->setText(prompttext);
|
|
SLine->setFocus();
|
|
}
|
|
|
|
|
|
ssfePrompt::~ssfePrompt()
|
|
{
|
|
}
|
|
|
|
void ssfePrompt::terminate()
|
|
{
|
|
done(0);
|
|
}
|
|
|
|
TQString ssfePrompt::text()
|
|
{
|
|
TQString text;
|
|
text = SLine->text();
|
|
return text;
|
|
}
|
|
|
|
void ssfePrompt::setPassword(bool pass)
|
|
{
|
|
if(pass == TRUE)
|
|
SLine->setEchoMode(TQLineEdit::Password);
|
|
else
|
|
SLine->setEchoMode(TQLineEdit::Normal);
|
|
}
|
|
#include "ssfeprompt.moc"
|