OSStatus SearchField::create(WindowRef windowRef)
{
  //  kHISearchFieldNoAttributes = 0,
  //kHISearchFieldAttributesCancel = (1 << 0),
  //kHISearchFieldAttributesSearchIcon = (1 << 1)

  OSStatus result = HISearchFieldCreate(&_bounds,
					kHISearchFieldNoAttributes,
					NULL,
					_label,
					&getControlRef());

  initialise();
  applyActivity();
  applyVisibility();
  return result;
}
Exemple #2
0
void MPPageStack::removePage()
{
    _pages.removeLast();

    if(_pages.empty())
        return;

    qDebug() << "Page removed";

    switch (_pages.last().type)
    {
    case MPEnums::Activity:
        emit applyActivity(_pages.last().id);
        break;
    case MPEnums::Person:
        emit applyPerson(_pages.last().id);
        break;
    case MPEnums::Generic:
    default:
        break;
    }

    emit remove();
}