Qtopia Home - Classes - Hierachy - Annotated - Functions - Qt Embedded

contextbar.h

This is the verbatim text of the contextbar.h include file. It is provided only for illustration; the copyright remains with Trolltech.


/**********************************************************************
** Copyright (C) 2000-2003 Trolltech AS.  All rights reserved.
**
** This file is part of the Qtopia Environment.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/gpl/ for GPL licensing information.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/
#ifndef CONTEXT_BAR_H 
#define CONTEXT_BAR_H 

#ifdef QTOPIA_PHONE

#include <qstring.h>

class QWidget;

class ContextBar
{
public:
    enum EditingState {
	Modal=1, NonModal=2, ModalAndNonModal=3
    };

    enum StandardLabel {
	NoLabel, Options, Ok, Edit, Select, View, Cancel, Back, BackSpace, Next, Previous
    };

    static void setLabel(QWidget *, int key, const QString &, const QString &, EditingState state=ModalAndNonModal);
    static void setLabel(QWidget *, int key, StandardLabel, EditingState state=ModalAndNonModal);
    static void clearLabel(QWidget *, int key, EditingState state=ModalAndNonModal);

    static const QArray<int> &keys();

private:
    ContextBar();
};

#endif

#endif


Copyright © 2005 Trolltech Trademarks
Qtopia version 2.1.2