#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'page_shortcutsbase.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "page_shortcutsbase.h"

#include <ntqvariant.h>
#include <ntqgroupbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a PageShortcutsBase which is a child of 'parent', with the
 *  name 'name'.' 
 */
PageShortcutsBase::PageShortcutsBase( TQWidget* parent,  const char* name )
    : TQFrame( parent, name )
{
    if ( !name )
	setName( "PageShortcutslBase" );
    setMinimumSize( TQSize( 425, 450 ) );
    setFrameShape( TQFrame::NoFrame );
    setFrameShadow( TQFrame::Plain );
    PageShortcutslBaseLayout = new TQVBoxLayout( this, 0, 6, "PageShortcutslBaseLayout"); 

    globalGB = new TQGroupBox( this, "globalGB" );
    PageShortcutslBaseLayout->addWidget( globalGB );
    languageChange();
    resize( TQSize(425, 452).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections

    // tab order
}

/*
 *  Destroys the object and frees any allocated resources
 */
PageShortcutsBase::~PageShortcutsBase()
{
    // no need to delete child widgets, TQt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void PageShortcutsBase::languageChange()
{
    setCaption( tr2i18n( "Shortcuts" ) );
    globalGB->setTitle( tr2i18n( "Global Shortcuts" ) );
}

void PageShortcutsBase::setPreviewPixmap(bool)
{
    tqWarning( "PageShortcutsBase::setPreviewPixmap(bool): Not implemented yet" );
}

void PageShortcutsBase::showWallpaperPixmap(const TQString&)
{
    tqWarning( "PageShortcutsBase::showWallpaperPixmap(const TQString&): Not implemented yet" );
}

void PageShortcutsBase::changed()
{
    tqWarning( "PageShortcutsBase::changed(): Not implemented yet" );
}

/****************************************************************************
** PageShortcutsBase meta object code from reading C++ file 'page_shortcutsbase.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "page_shortcutsbase.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *PageShortcutsBase::className() const
{
    return "PageShortcutsBase";
}

TQMetaObject *PageShortcutsBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_PageShortcutsBase( "PageShortcutsBase", &PageShortcutsBase::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString PageShortcutsBase::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "PageShortcutsBase", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString PageShortcutsBase::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "PageShortcutsBase", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* PageShortcutsBase::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQFrame::staticMetaObject();
    static const TQUMethod slot_0 = {"changed", 0, 0 };
    static const TQUMethod slot_1 = {"languageChange", 0, 0 };
    static const TQUParameter param_slot_2[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_2 = {"setPreviewPixmap", 1, param_slot_2 };
    static const TQUParameter param_slot_3[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_3 = {"showWallpaperPixmap", 1, param_slot_3 };
    static const TQMetaData slot_tbl[] = {
	{ "changed()", &slot_0, TQMetaData::Public },
	{ "languageChange()", &slot_1, TQMetaData::Protected },
	{ "setPreviewPixmap(bool)", &slot_2, TQMetaData::Protected },
	{ "showWallpaperPixmap(const TQString&)", &slot_3, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"PageShortcutsBase", parentObject,
	slot_tbl, 4,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_PageShortcutsBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* PageShortcutsBase::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "PageShortcutsBase" ) )
	return this;
    return TQFrame::tqt_cast( clname );
}

bool PageShortcutsBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: changed(); break;
    case 1: languageChange(); break;
    case 2: setPreviewPixmap((bool)static_QUType_bool.get(_o+1)); break;
    case 3: showWallpaperPixmap((const TQString&)static_QUType_TQString.get(_o+1)); break;
    default:
	return TQFrame::tqt_invoke( _id, _o );
    }
    return true;
}

bool PageShortcutsBase::tqt_emit( int _id, TQUObject* _o )
{
    return TQFrame::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool PageShortcutsBase::tqt_property( int id, int f, TQVariant* v)
{
    return TQFrame::tqt_property( id, f, v);
}

bool PageShortcutsBase::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
