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

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

#include "CWidgetSnippetsBase.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqsplitter.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqtoolbutton.h>
#include <ntqtextedit.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

#include "CWidgetSnippetsBase.ui.h"
static const char* const image0_data[] = { 
"18 18 72 2",
"Qt c None",
".# c #000000",
".C c #08696a",
".O c #106d6a",
".H c #106d73",
"#f c #29594a",
".e c #312820",
".l c #312c20",
".T c #318183",
".8 c #318583",
".m c #393029",
".n c #393429",
".P c #39898b",
".K c #41898b",
".f c #4a4031",
".a c #4a4431",
".D c #4a9194",
".b c #524439",
".z c #52999c",
".u c #5a999c",
".p c #62a1a4",
".h c #6a5d4a",
".i c #6aa1a4",
".c c #6aa5a4",
".v c #736152",
".o c #736952",
".d c #73695a",
".t c #736d52",
".j c #7b6d62",
".y c #837562",
".B c #837962",
".0 c #83796a",
"#e c #837d62",
".F c #8b796a",
".I c #8b7d6a",
".3 c #8b8162",
".G c #8b816a",
".J c #8b856a",
"#. c #94816a",
".R c #94856a",
".X c #948573",
".M c #948973",
".N c #9c8d7b",
".S c #9c917b",
".5 c #b4a17b",
"## c #b4a183",
".Z c #b4a594",
".6 c #b4aa94",
".4 c #c5b69c",
".Y c #cdbaa4",
".9 c #d5ba94",
".7 c #d5c6ac",
"#a c #d5c6b4",
".q c #dec29c",
".A c #dec69c",
".1 c #deceac",
"#c c #e6d6cd",
"#b c #e6dacd",
".U c #eed6bd",
".2 c #eedab4",
".W c #eedec5",
".r c #f6dec5",
".V c #f6e2cd",
".Q c #f6e6d5",
".g c #f6eade",
"#d c #f6eae6",
".w c #ffe2cd",
".L c #fff2e6",
".x c #fff2ee",
".s c #fff6ee",
".E c #fffaf6",
".k c #ffffff",
"Qt.#.#.#.#QtQtQtQtQtQt.a.b.#.#QtQtQt",
".#.c.d.e.#.#QtQtQt.b.f.g.h.#.#QtQtQt",
".#.i.j.k.l.#.#.m.n.g.k.k.o.#.#QtQtQt",
".#.p.d.k.k.e.m.q.r.s.k.k.t.#.#QtQtQt",
".#.u.j.k.k.k.v.q.w.x.k.k.y.#.#.#.#.#",
".#.z.d.k.k.k.t.A.r.s.k.k.B.g.C.#.#.#",
".#.D.j.k.k.E.F.q.w.x.k.k.G.g.H.#.#.#",
".#.D.d.E.s.x.I.A.r.s.k.k.J.g.C.#.#.#",
".#.K.j.L.L.g.M.q.w.x.k.k.N.g.O.#.#.#",
".#.P.d.g.Q.Q.R.A.r.s.k.k.S.g.C.#.#.#",
".#.T.j.U.V.W.X.q.w.x.Y.B.Z.g.H.#.#.#",
".#.#.T.0.1.2.3.A.4.B.5.6.7.g.C.#.#.#",
".#.#.#.8.F.9#.##.F#a#b#c#d.g.O.#.#.#",
"Qt.#.#.#.T.0#e.B.T.8.T.8.T.8.C.#.#.#",
"QtQt.#.#.#.8#f.8.#.#.#.#.#.#.#.#.#.#",
"QtQtQt.#.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"QtQtQtQt.#.#.#.#.#.#.#.#.#.#.#.#.#.#",
"QtQtQtQtQt.#.#.#.#.#QtQtQtQtQtQtQtQt"};

static const char* const image1_data[] = { 
"16 16 46 1",
". c None",
"m c #7b859c",
"z c #7b85a4",
"b c #7b89a4",
"w c #acbacd",
"r c #b4bacd",
"c c #b4becd",
"a c #b4bed5",
"# c #bdc2d5",
"q c #bdc6d5",
"v c #c5cade",
"F c #c5cede",
"L c #cdcede",
"M c #cdcee6",
"P c #cdd2de",
"E c #cdd6e6",
"D c #d5d6e6",
"h c #d5dae6",
"Q c #d5daee",
"R c #dedae6",
"p c #dedee6",
"i c #dedeee",
"k c #dee2ee",
"o c #e6e6ee",
"y c #e6e6f6",
"g c #e6eaf6",
"f c #eeeaf6",
"j c #eeeef6",
"u c #f6eef6",
"n c #f6f2ff",
"t c #f6f6f6",
"e c #f6f6ff",
"s c #ff9500",
"x c #ff9900",
"B c #ffc600",
"C c #ffca00",
"d c #fffaff",
"A c #ffff18",
"K c #ffff5a",
"G c #ffff62",
"H c #ffff8b",
"J c #ffff94",
"I c #ffffbd",
"N c #ffffcd",
"O c #ffffd5",
"l c #ffffff",
"....#a#a#a#ab...",
"....cdeefghicb..",
"....#ddejgki##b.",
"....cleejjiimbmb",
"....#ddenjophqrm",
"....sstejukkvawb",
".sx.xsdsxjyiv##z",
"sABsAAsCAsDEFFqb",
".sGHIIJKxihEDLMm",
"..sCNOBskihhDDPb",
".sGHIIJGxkihhEDz",
"sABsAAsCAspiEDPb",
".sx.xsfsxkkhQDDm",
"....ssookkpRDDPb",
"....#jfookkhhEDz",
"....mbmbmbmbmbmb"};

static const char* const image2_data[] = { 
"16 17 64 1",
". c None",
"F c #000000",
"8 c #080810",
"E c #101418",
"2 c #181418",
"Q c #181818",
"S c #201c31",
"K c #292829",
"v c #313039",
"0 c #413c52",
"W c #4a4862",
"4 c #4a488b",
"e c #4a5562",
"6 c #525073",
"7 c #525573",
"a c #5a5962",
"c c #5a596a",
"5 c #5a599c",
"3 c #5a5d9c",
"# c #625d6a",
"i c #62616a",
"N c #62619c",
"L c #6a65a4",
"9 c #6a698b",
"U c #6a69a4",
"R c #7371ac",
"M c #7b75ac",
"V c #7b79b4",
"C c #7b7db4",
"w c #837db4",
"P c #8381bd",
"D c #8b85bd",
"I c #8b89bd",
"H c #9491c5",
"z c #9495c5",
"Y c #9c95c5",
"1 c #a4a5cd",
"Z c #acaacd",
"O c #acaad5",
"x c #b4aed5",
"r c #b4b6d5",
"y c #bdbade",
"l c #c5bede",
"m c #c5c2e6",
"j c #c5c6e6",
"s c #cdc6e6",
"q c #cdcee6",
"t c #d5cae6",
"h c #d5d2ee",
"u c #d5d6ee",
"n c #ded6ee",
"p c #dedaee",
"o c #dedaf6",
"g c #dedeee",
"A c #e6dae6",
"X c #e6def6",
"T c #e6e2ee",
"G c #e6e2f6",
"b c #e6e6f6",
"J c #e6eef6",
"d c #eee6f6",
"B c #eeeaf6",
"k c #fffaff",
"f c #ffffff",
"........#.......",
".......abc......",
"......#def#.....",
".....agefffc....",
"....#hifffff#...",
"...ajcfkfffffc..",
"..#lmj#fknonpq#.",
".arlasjcqtuppvwc",
"#xyadahz#bABvCDE",
"FmaGGbaHIcJKLMED",
"NFdGOGdaPCQRRED.",
".SFpTOGOaRUVEWF.",
"..FFXGYZQNVE0FFF",
"...FFO123VEFFFFF",
"....FFQ45E6FFFFF",
".....FFIE7FFFFFF",
"......F89FFFF..."};

static const char* const image3_data[] = { 
"16 16 40 1",
". c None",
"r c #73819c",
"w c #7b819c",
"c c #7b859c",
"A c #acb6cd",
"v c #b4b6cd",
"a c #b4becd",
"b c #b4bed5",
"# c #bdbed5",
"o c #bdc2d5",
"u c #bdc6d5",
"z c #c5cad5",
"C c #c5cade",
"E c #c5cede",
"F c #cdcede",
"J c #cdd2de",
"D c #cdd2e6",
"I c #cdd6de",
"L c #cdd6e6",
"h c #d5d6e6",
"H c #d5dae6",
"n c #d5dee6",
"q c #dedee6",
"i c #dedeee",
"m c #dee2ee",
"y c #e6e2ee",
"K c #e6e6ee",
"t c #e6e6f6",
"g c #e6eaf6",
"f c #eeeaee",
"l c #eeeaf6",
"p c #eeeef6",
"x c #eef2f6",
"k c #f6eeff",
"G c #f6f2f6",
"s c #f6f2ff",
"e c #f6f6ff",
"B c #ff0000",
"j c #fffaff",
"d c #ffffff",
"..#a#b#a#bc.....",
"..adeefghiac....",
"..#djeklmn#oc...",
"..adeeppqircrc..",
"..#djesptqhuvw..",
"..adeexxymzaAc..",
"..#BBeeptBB##r..",
"..ajBBllBBCCuc..",
"..#esBBBBhDEFw..",
"..aeGpBBHHIDFc..",
"..#esBBBiHhDDr..",
"..aelBBBBqhhJc..",
"..#GBBKmBBHLhw..",
"..aBBtmmqBBhJc..",
"..#ptKKmiHHhDr..",
"..rcrcrcrcrcrc.."};


/*
 *  Constructs a CWidgetSnippetsBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
CWidgetSnippetsBase::CWidgetSnippetsBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl ),
      image0( (const char **) image0_data ),
      image1( (const char **) image1_data ),
      image2( (const char **) image2_data ),
      image3( (const char **) image3_data )
{
    if ( !name )
	setName( "CWidgetSnippetsBase" );
    setEnabled( true );
    setIcon( image0 );
    CWidgetSnippetsBaseLayout = new TQVBoxLayout( this, 0, 6, "CWidgetSnippetsBaseLayout"); 

    splitter13 = new TQSplitter( this, "splitter13" );
    splitter13->setOrientation( TQSplitter::Vertical );

    lvSnippets = new TQListView( splitter13, "lvSnippets" );
    lvSnippets->addColumn( tr2i18n( "Snippet" ) );
    lvSnippets->header()->setResizeEnabled( false, lvSnippets->header()->count() - 1 );
    lvSnippets->setCursor( TQCursor( 13 ) );
    lvSnippets->setAcceptDrops( false );
    lvSnippets->setLineWidth( 2 );
    lvSnippets->setMidLineWidth( 0 );
    lvSnippets->setResizePolicy( TQScrollView::Manual );
    lvSnippets->setAllColumnsShowFocus( true );
    lvSnippets->setShowSortIndicator( true );
    lvSnippets->setShowToolTips( true );
    lvSnippets->setResizeMode( TQListView::AllColumns );
    lvSnippets->setTreeStepSize( 20 );
    lvSnippets->setDefaultRenameAction( TQListView::Accept );

    TQWidget* privateLayoutWidget = new TQWidget( splitter13, "layout24" );
    layout24 = new TQVBoxLayout( privateLayoutWidget, 0, 6, "layout24"); 

    layout11 = new TQHBoxLayout( 0, 0, 6, "layout11"); 

    btnNew = new TQToolButton( privateLayoutWidget, "btnNew" );
    btnNew->setIconSet( TQIconSet( image1 ) );
    layout11->addWidget( btnNew );

    btnSave = new TQToolButton( privateLayoutWidget, "btnSave" );
    btnSave->setIconSet( TQIconSet( image2 ) );
    layout11->addWidget( btnSave );

    btnDelete = new TQToolButton( privateLayoutWidget, "btnDelete" );
    btnDelete->setIconSet( TQIconSet( image3 ) );
    layout11->addWidget( btnDelete );
    spacer1_2 = new TQSpacerItem( 200, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout11->addItem( spacer1_2 );
    layout24->addLayout( layout11 );

    teSnippetText = new TQTextEdit( privateLayoutWidget, "teSnippetText" );
    teSnippetText->setEnabled( true );
    teSnippetText->setTextFormat( TQTextEdit::PlainText );
    teSnippetText->setTabChangesFocus( false );
    layout24->addWidget( teSnippetText );
    CWidgetSnippetsBaseLayout->addWidget( splitter13 );
    languageChange();
    resize( TQSize(531, 740).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void CWidgetSnippetsBase::languageChange()
{
    setCaption( tr2i18n( "Snippets", "Snippets for Kate" ) );
    lvSnippets->header()->setLabel( 0, tr2i18n( "Snippet" ) );
    TQToolTip::add( lvSnippets, tr2i18n( "A list of Snippets" ) );
    TQWhatsThis::add( lvSnippets, tr2i18n( "A list of Snippets, what else" ) );
    btnNew->setText( TQString::null );
    btnSave->setText( TQString::null );
    btnDelete->setText( TQString::null );
}

/****************************************************************************
** CWidgetSnippetsBase meta object code from reading C++ file 'CWidgetSnippetsBase.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 "CWidgetSnippetsBase.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 *CWidgetSnippetsBase::className() const
{
    return "CWidgetSnippetsBase";
}

TQMetaObject *CWidgetSnippetsBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_CWidgetSnippetsBase( "CWidgetSnippetsBase", &CWidgetSnippetsBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* CWidgetSnippetsBase::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 = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"init", 0, 0 };
    static const TQUMethod slot_1 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "init()", &slot_0, TQMetaData::Public },
	{ "languageChange()", &slot_1, TQMetaData::Protected }
    };
    static const TQUMethod signal_0 = {"lalala", 0, 0 };
    static const TQMetaData signal_tbl[] = {
	{ "lalala()", &signal_0, TQMetaData::Public }
    };
    metaObj = TQMetaObject::new_metaobject(
	"CWidgetSnippetsBase", parentObject,
	slot_tbl, 2,
	signal_tbl, 1,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_CWidgetSnippetsBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

// TQ_SIGNAL lalala
void CWidgetSnippetsBase::lalala()
{
    activate_signal( staticMetaObject()->signalOffset() + 0 );
}

bool CWidgetSnippetsBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: init(); break;
    case 1: languageChange(); break;
    default:
	return TQWidget::tqt_invoke( _id, _o );
    }
    return true;
}

bool CWidgetSnippetsBase::tqt_emit( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->signalOffset() ) {
    case 0: lalala(); break;
    default:
	return TQWidget::tqt_emit(_id,_o);
    }
    return true;
}
#ifndef TQT_NO_PROPERTIES

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

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