I have attached (i hope) a snapshot of the user interface I want to use for a "DiscGear" disc storage device. I am experimenting with a modified "command line " type interface to eliminate the "learning curve" The pushbuttons are all similar
/// Pb5-------------------------------------------------------------------------------------/// Pb5
void BaseForm::slotPb5() // call "help" function
{
if (Pb5->text() == "~") return; /// the button is blank, no action
leCName->clear();
leCName->setEnabled(true);
leCName->setFocus();
emit setupFunction("CName");
return;
}
/// Pb5-------------------------------------------------------------------------------------/// Pb5
void BaseForm::slotPb5() // call "help" function
{
if (Pb5->text() == "~") return; /// the button is blank, no action
leCName->clear();
leCName->setEnabled(true);
leCName->setFocus();
emit setupFunction("CName");
return;
}
To copy to clipboard, switch view to plain text mode
and
/// Pb7-------------------------------------------------------------------------------------/// Pb7
void BaseForm::slotPb7() // call "help" function
{
if (Pb7->text() == "~") return; /// the button is blank, no action
leGName->clear();
leGName->setEnabled(true);
leGName->setFocus();
emit setupFunction("GName");
return;
}
/// Pb7-------------------------------------------------------------------------------------/// Pb7
void BaseForm::slotPb7() // call "help" function
{
if (Pb7->text() == "~") return; /// the button is blank, no action
leGName->clear();
leGName->setEnabled(true);
leGName->setFocus();
emit setupFunction("GName");
return;
}
To copy to clipboard, switch view to plain text mode
both access
void BaseForm
::slotSetupFunction(QString item
) {
emit setMessageBox("base 564 we is here from " + item);
emit getUserInput(item);
}
void BaseForm::slotSetupFunction(QString item)
{
emit setMessageBox("base 564 we is here from " + item);
emit getUserInput(item);
}
To copy to clipboard, switch view to plain text mode
Pb5 activates the "key press event" but Pb7 does not.
Nuts, the attachment didn't work. Apparently I have used up my allotment of attachments and I don't know how to get rid of the old ones. I need help here also.
thanks.
Bookmarks