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

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

#include "tableeditor.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtable.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqlistbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_data[] = { 
"16 16 45 1",
". c None",
"P c #1034ee",
"D c #1038ee",
"O c #183cf6",
"G c #1840ff",
"v c #295dff",
"p c #315dff",
"s c #3165ff",
"I c #3955d5",
"C c #3965ff",
"N c #396dff",
"F c #416dee",
"f c #4175ff",
"E c #4a65cd",
"K c #4a79ff",
"Q c #526dcd",
"L c #5271cd",
"M c #5285ff",
"g c #5a71c5",
"B c #5a89f6",
"q c #6279c5",
"J c #628dff",
"A c #6295ff",
"z c #6299ff",
"l c #6a79bd",
"w c #6a89d5",
"H c #6a99f6",
"o c #6a9dff",
"# c #7385bd",
"n c #73a5ff",
"y c #73aaff",
"b c #7ba1f6",
"k c #7baeff",
"j c #8bbeff",
"m c #94c6ff",
"u c #94ceff",
"i c #9ccaff",
"e c #9cd2ff",
"a c #b4c6f6",
"x c #bde6ff",
"t c #d5e2ff",
"d c #defaff",
"c c #e6eaff",
"h c #e6ffff",
"r c #ffffff",
"......#ab#......",
".....#cdefg.....",
"....#chijkfl....",
"...#chmknnopq...",
"..#rhjnnoooosl..",
".#thunnoooooovl.",
".wxiynoooozABCD.",
".#.#.#fooCE.b##.",
"......FyzG#.....",
"......BkAv#.....",
".....#Hkopg.....",
".....#kyACI.....",
".....#jnAfD.....",
".....wkAJKD.....",
".....LMNssO#....",
".....#DDDPQ....."};

static const char* const image1_data[] = { 
"16 16 48 1",
". c None",
"N c #002cff",
"Q c #082cff",
"T c #183cf6",
"S c #2050ff",
"r c #2950e6",
"O c #2959ff",
"k c #3155e6",
"E c #315df6",
"w c #394cbd",
"K c #3965ee",
"B c #3965ff",
"J c #4159c5",
"z c #4175ff",
"R c #4a61c5",
"v c #4a7dff",
"A c #526dcd",
"I c #527dee",
"q c #6295ff",
"C c #6a85bd",
"s c #6a85c5",
"m c #6a91e6",
"P c #6a9dff",
"L c #6aa1ff",
"H c #73a5ff",
"f c #7ba1ee",
"D c #7baeff",
"d c #83aaee",
"y c #83b6ff",
"M c #83baff",
"e c #8b99b4",
"x c #8b9dc5",
"u c #8bbeff",
"p c #94caff",
"# c #9ca1b4",
"t c #9cceff",
"o c #9cd2ff",
"l c #a4b6cd",
"a c #a4baee",
"F c #a4cef6",
"j c #a4d2ff",
"c c #b4caee",
"n c #b4eaff",
"b c #bdcaee",
"G c #bdd6ff",
"i c #defaff",
"h c #e6faff",
"g c #f6ffff",
".....#abcde.....",
".....fghijk#....",
"....lmnopqr.....",
".....sptuvwl....",
".....xypyzA.....",
".....eypyBC.....",
".....lfpDE#.....",
".....ldtDE#.....",
".l...eFtyvCl..l.",
".sFGayuyyyHffIJ.",
".CKLMMyyDyDHBNA.",
"..COPyyyDDHzQR#.",
"...COPDDHHvNwl..",
"....CSqHqzNw#...",
".....CSvvQwl....",
"......srTA#....."};

static const char* const image2_data[] = { 
"16 16 3 1",
". c None",
"# c #000000",
"a c #000083",
"................",
".....#...#......",
".....#...#......",
".....#...#......",
".....##.##......",
"......#.#.......",
"......###.......",
".......#........",
"......a#a.......",
"......a.aaa.....",
"....aaa.a..a....",
"...a..a.a..a....",
"...a..a.a..a....",
"...a..a..aa.....",
"....aa..........",
"................"};


/*
 *  Constructs a TableEditorBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
TableEditorBase::TableEditorBase( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl ),
      image0( (const char **) image0_data ),
      image1( (const char **) image1_data ),
      image2( (const char **) image2_data )
{
    if ( !name )
	setName( "TableEditorBase" );
    setSizeGripEnabled( true );
    TableEditorBaseLayout = new TQGridLayout( this, 1, 1, 11, 6, "TableEditorBaseLayout"); 

    table = new TQTable( this, "table" );
    table->setNumCols( table->numCols() + 1 );
    table->horizontalHeader()->setLabel( table->numCols() - 1, tr2i18n( "1" ) );
    table->setNumRows( table->numRows() + 1 );
    table->verticalHeader()->setLabel( table->numRows() - 1, tr2i18n( "1" ) );
    table->setNumRows( 1 );
    table->setNumCols( 1 );
    table->setReadOnly( true );

    TableEditorBaseLayout->addWidget( table, 0, 0 );

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

    buttonHelp = new TQPushButton( this, "buttonHelp" );
    buttonHelp->setAutoDefault( true );
    Layout11->addWidget( buttonHelp );
    Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    Layout11->addItem( Horizontal_Spacing2 );

    buttonOk = new TQPushButton( this, "buttonOk" );
    buttonOk->setAutoDefault( true );
    buttonOk->setDefault( true );
    Layout11->addWidget( buttonOk );

    buttonApply = new TQPushButton( this, "buttonApply" );
    buttonApply->setAutoDefault( true );
    Layout11->addWidget( buttonApply );

    buttonCancel = new TQPushButton( this, "buttonCancel" );
    buttonCancel->setAutoDefault( true );
    Layout11->addWidget( buttonCancel );

    TableEditorBaseLayout->addMultiCellLayout( Layout11, 1, 1, 0, 1 );

    TabWidget = new TQTabWidget( this, "TabWidget" );

    columns_tab = new TQWidget( TabWidget, "columns_tab" );
    columns_tabLayout = new TQGridLayout( columns_tab, 1, 1, 11, 6, "columns_tabLayout"); 
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    columns_tabLayout->addItem( Spacer3, 4, 2 );

    listColumns = new TQListBox( columns_tab, "listColumns" );

    columns_tabLayout->addMultiCellWidget( listColumns, 0, 5, 0, 0 );
    Spacer2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    columns_tabLayout->addItem( Spacer2, 3, 1 );

    buttonColumnUp = new TQPushButton( columns_tab, "buttonColumnUp" );
    buttonColumnUp->setPixmap( image0 );

    columns_tabLayout->addWidget( buttonColumnUp, 4, 1 );

    buttonColumnDown = new TQPushButton( columns_tab, "buttonColumnDown" );
    buttonColumnDown->setPixmap( image1 );

    columns_tabLayout->addWidget( buttonColumnDown, 5, 1 );

    buttonDeleteColumn = new TQPushButton( columns_tab, "buttonDeleteColumn" );

    columns_tabLayout->addWidget( buttonDeleteColumn, 1, 1 );

    buttonNewColumn = new TQPushButton( columns_tab, "buttonNewColumn" );

    columns_tabLayout->addWidget( buttonNewColumn, 0, 1 );

    Layout6 = new TQGridLayout( 0, 1, 1, 0, 6, "Layout6"); 

    labelTable = new TQLabel( columns_tab, "labelTable" );

    Layout6->addWidget( labelTable, 0, 0 );

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

    labelColumnPixmap = new TQLabel( columns_tab, "labelColumnPixmap" );
    Layout2->addWidget( labelColumnPixmap );

    buttonDeleteColPixmap = new TQPushButton( columns_tab, "buttonDeleteColPixmap" );
    buttonDeleteColPixmap->setMaximumSize( TQSize( 30, 22 ) );
    buttonDeleteColPixmap->setPixmap( image2 );
    Layout2->addWidget( buttonDeleteColPixmap );

    buttonChooseColPixmap = new TQPushButton( columns_tab, "buttonChooseColPixmap" );
    buttonChooseColPixmap->setMaximumSize( TQSize( 30, 22 ) );
    Layout2->addWidget( buttonChooseColPixmap );

    Layout6->addLayout( Layout2, 3, 1 );

    TextLabel2 = new TQLabel( columns_tab, "TextLabel2" );

    Layout6->addWidget( TextLabel2, 2, 0 );

    Label2 = new TQLabel( columns_tab, "Label2" );

    Layout6->addWidget( Label2, 3, 0 );

    labelFields = new TQLabel( columns_tab, "labelFields" );

    Layout6->addWidget( labelFields, 1, 0 );

    editColumnText = new TQLineEdit( columns_tab, "editColumnText" );

    Layout6->addWidget( editColumnText, 2, 1 );

    comboFields = new TQComboBox( false, columns_tab, "comboFields" );
    comboFields->setEditable( true );

    Layout6->addWidget( comboFields, 1, 1 );

    labelTableValue = new TQLabel( columns_tab, "labelTableValue" );

    Layout6->addWidget( labelTableValue, 0, 1 );

    columns_tabLayout->addMultiCellLayout( Layout6, 2, 2, 1, 2 );
    TabWidget->insertTab( columns_tab, TQString::fromLatin1("") );

    rows_tab = new TQWidget( TabWidget, "rows_tab" );
    rows_tabLayout = new TQGridLayout( rows_tab, 1, 1, 11, 6, "rows_tabLayout"); 
    Spacer3_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    rows_tabLayout->addItem( Spacer3_2, 4, 2 );

    buttonRowUp = new TQPushButton( rows_tab, "buttonRowUp" );
    buttonRowUp->setPixmap( image0 );

    rows_tabLayout->addWidget( buttonRowUp, 4, 1 );

    listRows = new TQListBox( rows_tab, "listRows" );

    rows_tabLayout->addMultiCellWidget( listRows, 0, 5, 0, 0 );

    buttonRowDown = new TQPushButton( rows_tab, "buttonRowDown" );
    buttonRowDown->setPixmap( image1 );

    rows_tabLayout->addWidget( buttonRowDown, 5, 1 );
    Spacer2_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    rows_tabLayout->addItem( Spacer2_2, 3, 1 );

    buttonNewRow = new TQPushButton( rows_tab, "buttonNewRow" );

    rows_tabLayout->addWidget( buttonNewRow, 0, 1 );

    buttonDeleteRow = new TQPushButton( rows_tab, "buttonDeleteRow" );

    rows_tabLayout->addWidget( buttonDeleteRow, 1, 1 );

    Layout7_2 = new TQGridLayout( 0, 1, 1, 0, 6, "Layout7_2"); 

    TextLabel2_3 = new TQLabel( rows_tab, "TextLabel2_3" );

    Layout7_2->addWidget( TextLabel2_3, 0, 0 );

    Label2_2 = new TQLabel( rows_tab, "Label2_2" );

    Layout7_2->addWidget( Label2_2, 1, 0 );

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

    labelRowPixmap = new TQLabel( rows_tab, "labelRowPixmap" );
    Layout2_2->addWidget( labelRowPixmap );

    buttonDeleteRowPixmap = new TQPushButton( rows_tab, "buttonDeleteRowPixmap" );
    buttonDeleteRowPixmap->setMaximumSize( TQSize( 30, 22 ) );
    buttonDeleteRowPixmap->setPixmap( image2 );
    Layout2_2->addWidget( buttonDeleteRowPixmap );

    buttonChooseRowPixmap = new TQPushButton( rows_tab, "buttonChooseRowPixmap" );
    buttonChooseRowPixmap->setMaximumSize( TQSize( 30, 22 ) );
    Layout2_2->addWidget( buttonChooseRowPixmap );

    Layout7_2->addLayout( Layout2_2, 1, 1 );

    editRowText = new TQLineEdit( rows_tab, "editRowText" );

    Layout7_2->addWidget( editRowText, 0, 1 );

    rows_tabLayout->addMultiCellLayout( Layout7_2, 2, 2, 1, 2 );
    TabWidget->insertTab( rows_tab, TQString::fromLatin1("") );

    TableEditorBaseLayout->addWidget( TabWidget, 0, 1 );
    languageChange();
    resize( TQSize(538, 369).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( buttonApply, TQ_SIGNAL( clicked() ), this, TQ_SLOT( applyClicked() ) );
    connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( okClicked() ) );
    connect( listColumns, TQ_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQ_SLOT( currentColumnChanged(TQListBoxItem*) ) );
    connect( listColumns, TQ_SIGNAL( selectionChanged(TQListBoxItem*) ), this, TQ_SLOT( currentColumnChanged(TQListBoxItem*) ) );
    connect( editColumnText, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( columnTextChanged(const TQString&) ) );
    connect( buttonNewColumn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( newColumnClicked() ) );
    connect( buttonDeleteColumn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( deleteColumnClicked() ) );
    connect( buttonColumnUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( columnUpClicked() ) );
    connect( buttonColumnDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( columnDownClicked() ) );
    connect( comboFields, TQ_SIGNAL( activated(const TQString&) ), this, TQ_SLOT( currentFieldChanged(const TQString&) ) );
    connect( listRows, TQ_SIGNAL( selectionChanged(TQListBoxItem*) ), this, TQ_SLOT( currentRowChanged(TQListBoxItem*) ) );
    connect( listRows, TQ_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQ_SLOT( currentRowChanged(TQListBoxItem*) ) );
    connect( buttonNewRow, TQ_SIGNAL( clicked() ), this, TQ_SLOT( newRowClicked() ) );
    connect( buttonDeleteRow, TQ_SIGNAL( clicked() ), this, TQ_SLOT( deleteRowClicked() ) );
    connect( buttonRowUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( rowUpClicked() ) );
    connect( buttonRowDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( rowDownClicked() ) );
    connect( buttonDeleteRowPixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( deleteRowPixmapClicked() ) );
    connect( buttonChooseRowPixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( chooseRowPixmapClicked() ) );
    connect( buttonDeleteColPixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( deleteColPixmapClicked() ) );
    connect( editRowText, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( rowTextChanged(const TQString&) ) );
    connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( buttonChooseColPixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( chooseColPixmapClicked() ) );

    // tab order
    setTabOrder( buttonOk, buttonCancel );
    setTabOrder( buttonCancel, table );
    setTabOrder( table, TabWidget );
    setTabOrder( TabWidget, listColumns );
    setTabOrder( listColumns, buttonNewColumn );
    setTabOrder( buttonNewColumn, buttonDeleteColumn );
    setTabOrder( buttonDeleteColumn, comboFields );
    setTabOrder( comboFields, editColumnText );
    setTabOrder( editColumnText, buttonDeleteColPixmap );
    setTabOrder( buttonDeleteColPixmap, buttonChooseColPixmap );
    setTabOrder( buttonChooseColPixmap, buttonColumnUp );
    setTabOrder( buttonColumnUp, buttonColumnDown );
    setTabOrder( buttonColumnDown, buttonApply );
    setTabOrder( buttonApply, listRows );
    setTabOrder( listRows, buttonNewRow );
    setTabOrder( buttonNewRow, buttonDeleteRow );
    setTabOrder( buttonDeleteRow, editRowText );
    setTabOrder( editRowText, buttonDeleteRowPixmap );
    setTabOrder( buttonDeleteRowPixmap, buttonChooseRowPixmap );
    setTabOrder( buttonChooseRowPixmap, buttonRowUp );
    setTabOrder( buttonRowUp, buttonRowDown );
    setTabOrder( buttonRowDown, buttonHelp );

    // buddies
    TextLabel2->setBuddy( editColumnText );
    labelFields->setBuddy( comboFields );
    TextLabel2_3->setBuddy( editRowText );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void TableEditorBase::languageChange()
{
    setCaption( tr2i18n( "Edit Table" ) );
    table->horizontalHeader()->setLabel( 0, tr2i18n( "1" ) );
    table->verticalHeader()->setLabel( 0, tr2i18n( "1" ) );
    buttonHelp->setText( tr2i18n( "&Help" ) );
    buttonOk->setText( tr2i18n( "&OK" ) );
    TQWhatsThis::add( buttonOk, tr2i18n( "Close the dialog and apply all the changes." ) );
    buttonApply->setText( tr2i18n( "&Apply" ) );
    TQWhatsThis::add( buttonApply, tr2i18n( "Apply all changes." ) );
    buttonCancel->setText( tr2i18n( "&Cancel" ) );
    TQWhatsThis::add( buttonCancel, tr2i18n( "Close the dialog and discard any changes." ) );
    buttonColumnUp->setText( TQString::null );
    TQToolTip::add( buttonColumnUp, tr2i18n( "Move up" ) );
    TQWhatsThis::add( buttonColumnUp, tr2i18n( "<b>Move the selected item up.</b><p>The top-most column will be the first column of the list.</p>" ) );
    buttonColumnDown->setText( TQString::null );
    TQToolTip::add( buttonColumnDown, tr2i18n( "Move down" ) );
    TQWhatsThis::add( buttonColumnDown, tr2i18n( "<b>Move the selected item down.</b><p>The top-most column will be the first column of the list.</p>" ) );
    buttonDeleteColumn->setText( tr2i18n( "&Delete Column" ) );
    buttonNewColumn->setText( tr2i18n( "&New Column" ) );
    labelTable->setText( tr2i18n( "Table:" ) );
    labelColumnPixmap->setText( tr2i18n( "Label4" ) );
    buttonDeleteColPixmap->setText( TQString::null );
    TQToolTip::add( buttonDeleteColPixmap, tr2i18n( "Delete Pixmap" ) );
    TQWhatsThis::add( buttonDeleteColPixmap, tr2i18n( "<b>Delete the selected item's pixmap.</b><p>The pixmap in the current column of the selected item will be deleted.</p>" ) );
    buttonChooseColPixmap->setText( tr2i18n( "..." ) );
    TQToolTip::add( buttonChooseColPixmap, tr2i18n( "Select a Pixmap" ) );
    TQWhatsThis::add( buttonChooseColPixmap, tr2i18n( "<b>Select a pixmap file for the item.</b><p>The pixmap will be changed in the current column of the selected item.</p>" ) );
    TextLabel2->setText( tr2i18n( "&Label:" ) );
    Label2->setText( tr2i18n( "Pixmap:" ) );
    labelFields->setText( tr2i18n( "&Field:" ) );
    labelTableValue->setText( tr2i18n( "<no table>" ) );
    TabWidget->changeTab( columns_tab, tr2i18n( "Co&lumns" ) );
    buttonRowUp->setText( TQString::null );
    TQToolTip::add( buttonRowUp, tr2i18n( "Move up" ) );
    TQWhatsThis::add( buttonRowUp, tr2i18n( "<b>Move the selected item up.</b><p>The top-most column will be the first column of the list.</p>" ) );
    buttonRowDown->setText( TQString::null );
    TQToolTip::add( buttonRowDown, tr2i18n( "Move down" ) );
    TQWhatsThis::add( buttonRowDown, tr2i18n( "<b>Move the selected item down.</b><p>The top-most column will be the first column of the list.</p>" ) );
    buttonNewRow->setText( tr2i18n( "&New Row" ) );
    buttonDeleteRow->setText( tr2i18n( "&Delete Row" ) );
    TextLabel2_3->setText( tr2i18n( "&Label:" ) );
    Label2_2->setText( tr2i18n( "Pixmap:" ) );
    labelRowPixmap->setText( tr2i18n( "Label4" ) );
    buttonDeleteRowPixmap->setText( TQString::null );
    TQToolTip::add( buttonDeleteRowPixmap, tr2i18n( "Delete Pixmap" ) );
    TQWhatsThis::add( buttonDeleteRowPixmap, tr2i18n( "<b>Delete the selected item's pixmap.</b><p>The pixmap in the current column of the selected item will be deleted.</p>" ) );
    buttonChooseRowPixmap->setText( tr2i18n( "..." ) );
    TQToolTip::add( buttonChooseRowPixmap, tr2i18n( "Select a Pixmap" ) );
    TQWhatsThis::add( buttonChooseRowPixmap, tr2i18n( "<b>Select a pixmap file for the item.</b><p>The pixmap will be changed in the current column of the selected item.</p>" ) );
    TabWidget->changeTab( rows_tab, tr2i18n( "&Rows" ) );
}

void TableEditorBase::init()
{
}

void TableEditorBase::destroy()
{
}

void TableEditorBase::applyClicked()
{
    tqWarning( "TableEditorBase::applyClicked(): Not implemented yet" );
}

void TableEditorBase::chooseRowPixmapClicked()
{
    tqWarning( "TableEditorBase::chooseRowPixmapClicked(): Not implemented yet" );
}

void TableEditorBase::columnTextChanged(const TQString&)
{
    tqWarning( "TableEditorBase::columnTextChanged(const TQString&): Not implemented yet" );
}

void TableEditorBase::columnUpClicked()
{
    tqWarning( "TableEditorBase::columnUpClicked(): Not implemented yet" );
}

void TableEditorBase::currentColumnChanged(TQListBoxItem*)
{
    tqWarning( "TableEditorBase::currentColumnChanged(TQListBoxItem*): Not implemented yet" );
}

void TableEditorBase::currentFieldChanged(const TQString&)
{
    tqWarning( "TableEditorBase::currentFieldChanged(const TQString&): Not implemented yet" );
}

void TableEditorBase::currentRowChanged(TQListBoxItem*)
{
    tqWarning( "TableEditorBase::currentRowChanged(TQListBoxItem*): Not implemented yet" );
}

void TableEditorBase::deleteColPixmapClicked()
{
    tqWarning( "TableEditorBase::deleteColPixmapClicked(): Not implemented yet" );
}

void TableEditorBase::deleteColumnClicked()
{
    tqWarning( "TableEditorBase::deleteColumnClicked(): Not implemented yet" );
}

void TableEditorBase::deleteRowClicked()
{
    tqWarning( "TableEditorBase::deleteRowClicked(): Not implemented yet" );
}

void TableEditorBase::deleteRowPixmapClicked()
{
    tqWarning( "TableEditorBase::deleteRowPixmapClicked(): Not implemented yet" );
}

void TableEditorBase::newColumnClicked()
{
    tqWarning( "TableEditorBase::newColumnClicked(): Not implemented yet" );
}

void TableEditorBase::newRowClicked()
{
    tqWarning( "TableEditorBase::newRowClicked(): Not implemented yet" );
}

void TableEditorBase::chooseColPixmapClicked()
{
    tqWarning( "TableEditorBase::chooseColPixmapClicked(): Not implemented yet" );
}

void TableEditorBase::okClicked()
{
    tqWarning( "TableEditorBase::okClicked(): Not implemented yet" );
}

void TableEditorBase::rowDownClicked()
{
    tqWarning( "TableEditorBase::rowDownClicked(): Not implemented yet" );
}

void TableEditorBase::rowTextChanged(const TQString&)
{
    tqWarning( "TableEditorBase::rowTextChanged(const TQString&): Not implemented yet" );
}

void TableEditorBase::rowUpClicked()
{
    tqWarning( "TableEditorBase::rowUpClicked(): Not implemented yet" );
}

void TableEditorBase::columnDownClicked()
{
    tqWarning( "TableEditorBase::columnDownClicked(): Not implemented yet" );
}

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

TQMetaObject *TableEditorBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_TableEditorBase( "TableEditorBase", &TableEditorBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* TableEditorBase::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 = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQUMethod slot_1 = {"init", 0, 0 };
    static const TQUMethod slot_2 = {"destroy", 0, 0 };
    static const TQUMethod slot_3 = {"applyClicked", 0, 0 };
    static const TQUMethod slot_4 = {"chooseRowPixmapClicked", 0, 0 };
    static const TQUParameter param_slot_5[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_5 = {"columnTextChanged", 1, param_slot_5 };
    static const TQUMethod slot_6 = {"columnUpClicked", 0, 0 };
    static const TQUParameter param_slot_7[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_7 = {"currentColumnChanged", 1, param_slot_7 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"currentFieldChanged", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"currentRowChanged", 1, param_slot_9 };
    static const TQUMethod slot_10 = {"deleteColPixmapClicked", 0, 0 };
    static const TQUMethod slot_11 = {"deleteColumnClicked", 0, 0 };
    static const TQUMethod slot_12 = {"deleteRowClicked", 0, 0 };
    static const TQUMethod slot_13 = {"deleteRowPixmapClicked", 0, 0 };
    static const TQUMethod slot_14 = {"newColumnClicked", 0, 0 };
    static const TQUMethod slot_15 = {"newRowClicked", 0, 0 };
    static const TQUMethod slot_16 = {"chooseColPixmapClicked", 0, 0 };
    static const TQUMethod slot_17 = {"okClicked", 0, 0 };
    static const TQUMethod slot_18 = {"rowDownClicked", 0, 0 };
    static const TQUParameter param_slot_19[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_19 = {"rowTextChanged", 1, param_slot_19 };
    static const TQUMethod slot_20 = {"rowUpClicked", 0, 0 };
    static const TQUMethod slot_21 = {"columnDownClicked", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "init()", &slot_1, TQMetaData::Protected },
	{ "destroy()", &slot_2, TQMetaData::Protected },
	{ "applyClicked()", &slot_3, TQMetaData::Protected },
	{ "chooseRowPixmapClicked()", &slot_4, TQMetaData::Protected },
	{ "columnTextChanged(const TQString&)", &slot_5, TQMetaData::Protected },
	{ "columnUpClicked()", &slot_6, TQMetaData::Protected },
	{ "currentColumnChanged(TQListBoxItem*)", &slot_7, TQMetaData::Protected },
	{ "currentFieldChanged(const TQString&)", &slot_8, TQMetaData::Protected },
	{ "currentRowChanged(TQListBoxItem*)", &slot_9, TQMetaData::Protected },
	{ "deleteColPixmapClicked()", &slot_10, TQMetaData::Protected },
	{ "deleteColumnClicked()", &slot_11, TQMetaData::Protected },
	{ "deleteRowClicked()", &slot_12, TQMetaData::Protected },
	{ "deleteRowPixmapClicked()", &slot_13, TQMetaData::Protected },
	{ "newColumnClicked()", &slot_14, TQMetaData::Protected },
	{ "newRowClicked()", &slot_15, TQMetaData::Protected },
	{ "chooseColPixmapClicked()", &slot_16, TQMetaData::Protected },
	{ "okClicked()", &slot_17, TQMetaData::Protected },
	{ "rowDownClicked()", &slot_18, TQMetaData::Protected },
	{ "rowTextChanged(const TQString&)", &slot_19, TQMetaData::Protected },
	{ "rowUpClicked()", &slot_20, TQMetaData::Protected },
	{ "columnDownClicked()", &slot_21, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"TableEditorBase", parentObject,
	slot_tbl, 22,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_TableEditorBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool TableEditorBase::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    case 1: init(); break;
    case 2: destroy(); break;
    case 3: applyClicked(); break;
    case 4: chooseRowPixmapClicked(); break;
    case 5: columnTextChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 6: columnUpClicked(); break;
    case 7: currentColumnChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 8: currentFieldChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 9: currentRowChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 10: deleteColPixmapClicked(); break;
    case 11: deleteColumnClicked(); break;
    case 12: deleteRowClicked(); break;
    case 13: deleteRowPixmapClicked(); break;
    case 14: newColumnClicked(); break;
    case 15: newRowClicked(); break;
    case 16: chooseColPixmapClicked(); break;
    case 17: okClicked(); break;
    case 18: rowDownClicked(); break;
    case 19: rowTextChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 20: rowUpClicked(); break;
    case 21: columnDownClicked(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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