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

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

#include "listvieweditor.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqtabwidget.h>
#include <ntqwidget.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqspinbox.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqcheckbox.h>
#include <ntqlistbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqimage.h>
#include <ntqpixmap.h>

static const char* const image0_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..........",
"................"};

static const char* const image1_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 image2_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 image3_data[] = { 
"16 16 46 1",
". c None",
"R c #083cff",
"N c #1038ee",
"O c #1044ff",
"F c #183cff",
"H c #1840f6",
"J c #184cff",
"A c #203cd5",
"C c #2044ff",
"y c #2955ff",
"s c #3155de",
"E c #3161ff",
"I c #3950d5",
"G c #3969ff",
"x c #4175ff",
"M c #4a61c5",
"P c #4a65cd",
"Q c #4a7dff",
"L c #526dcd",
"K c #5285ff",
"D c #5a89ff",
"B c #6275bd",
"o c #6295ff",
"z c #6a99f6",
"v c #6a9dff",
"# c #7389c5",
"n c #73a5ff",
"h c #73aaff",
"d c #7b8dbd",
"l c #7ba1ee",
"k c #7baeff",
"j c #7bb2ff",
"w c #83b2f6",
"r c #83b6ff",
"a c #8ba5ee",
"i c #94c6ff",
"u c #94caff",
"f c #9cc6f6",
"g c #9cd6ff",
"p c #bde6ff",
"q c #c5e6ff",
"m c #cddeff",
"b c #dee2ff",
"c c #e6eaff",
"t c #e6faff",
"e c #eeffff",
"................",
".....#a.........",
"....abca........",
"...dcef.........",
"..deeghd........",
".#eeijk#.ada#al#",
"dmeinknolfppqprs",
"ftuknnvkiiwrhnxy",
"zrjnnvvvoovvooxA",
"BCDnvvnEFCyEGxEH",
".IJKovvLddMIANHM",
"..LOxovd......d.",
"...PFQK.........",
"....BRJ#........",
".....BN#........",
"................"};

static const char* const image4_data[] = { 
"16 16 54 1",
". c None",
"U c #0024ff",
"Q c #0028ff",
"I c #183ce6",
"R c #2034d5",
"O c #2048ee",
"N c #294cee",
"Y c #3159f6",
"M c #3159ff",
"L c #3165ff",
"S c #3950cd",
"P c #3965ff",
"H c #3969ff",
"Z c #415dcd",
"V c #4a5dbd",
"T c #4a61c5",
"C c #4a75ee",
"J c #5271de",
"K c #5285ff",
"X c #5a79ee",
"w c #5a8dff",
"n c #6275bd",
"g c #6295ff",
"x c #6a7dbd",
"d c #6a85c5",
"D c #6a99f6",
"B c #6a99ff",
"G c #6aa1ff",
"i c #73a5ff",
"a c #7b89ac",
"W c #7b99ee",
"# c #7ba1e6",
"y c #7baaf6",
"c c #7baeff",
"k c #83b6ff",
"j c #8ba1f6",
"F c #8bb6ff",
"o c #8bbaf6",
"l c #8bbeff",
"m c #94c6ff",
"h c #94caff",
"e c #9cceff",
"E c #9cd2ff",
"t c #a4d2f6",
"A c #a4d2ff",
"f c #acdeff",
"z c #ace2ff",
"u c #b4d6f6",
"s c #bddaf6",
"v c #bddaff",
"r c #bde6ff",
"b c #cdf2f6",
"q c #cdf6ff",
"p c #e6ffff",
"................",
".........#a.....",
".........bcd....",
".........efgd...",
".........#heid..",
"aj##d#..akllmgn.",
"opqrsstuvkckklwx",
"yzmmhmeAmcccccBC",
"DEFkciiGccccigHI",
"JGKHLMNOPcciBLQx",
"aIRSTxaanBiBLUV.",
".........WgMUT..",
".........XLQT...",
".........YUT....",
".........Zn.....",
"................"};


/*
 *  Constructs a ListViewEditorBase 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.
 */
ListViewEditorBase::ListViewEditorBase( 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 ),
      image3( (const char **) image3_data ),
      image4( (const char **) image4_data )
{
    if ( !name )
	setName( "ListViewEditorBase" );
    setSizeGripEnabled( true );
    ListViewEditorBaseLayout = new TQVBoxLayout( this, 11, 6, "ListViewEditorBaseLayout"); 

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

    Widget10 = new TQWidget( tabWidget, "Widget10" );
    Widget10Layout = new TQGridLayout( Widget10, 1, 1, 11, 6, "Widget10Layout"); 

    itemDelete = new TQPushButton( Widget10, "itemDelete" );

    Widget10Layout->addWidget( itemDelete, 2, 1 );

    GroupBox1 = new TQGroupBox( Widget10, "GroupBox1" );
    GroupBox1->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)5, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
    GroupBox1->setColumnLayout(0, TQt::Vertical );
    GroupBox1->layout()->setSpacing( 6 );
    GroupBox1->layout()->setMargin( 11 );
    GroupBox1Layout = new TQGridLayout( GroupBox1->layout() );
    GroupBox1Layout->setAlignment( TQt::AlignTop );

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

    GroupBox1Layout->addWidget( Label2, 2, 0 );

    Label1 = new TQLabel( GroupBox1, "Label1" );

    GroupBox1Layout->addWidget( Label1, 1, 0 );

    itemText = new TQLineEdit( GroupBox1, "itemText" );
    itemText->setMinimumSize( TQSize( 0, 0 ) );

    GroupBox1Layout->addWidget( itemText, 1, 1 );

    itemColumn = new TQSpinBox( GroupBox1, "itemColumn" );

    GroupBox1Layout->addWidget( itemColumn, 0, 1 );

    Label4 = new TQLabel( GroupBox1, "Label4" );

    GroupBox1Layout->addWidget( Label4, 0, 0 );

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

    itemPixmap = new TQLabel( GroupBox1, "itemPixmap" );
    Layout2->addWidget( itemPixmap );

    itemDeletePixmap = new TQPushButton( GroupBox1, "itemDeletePixmap" );
    itemDeletePixmap->setMaximumSize( TQSize( 30, 22 ) );
    itemDeletePixmap->setPixmap( image0 );
    Layout2->addWidget( itemDeletePixmap );

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

    GroupBox1Layout->addLayout( Layout2, 2, 1 );

    Widget10Layout->addMultiCellWidget( GroupBox1, 0, 7, 2, 2 );

    itemNew = new TQPushButton( Widget10, "itemNew" );

    Widget10Layout->addWidget( itemNew, 0, 1 );

    itemsPreview = new TQListView( Widget10, "itemsPreview" );

    Widget10Layout->addMultiCellWidget( itemsPreview, 0, 7, 0, 0 );

    itemNewSub = new TQPushButton( Widget10, "itemNewSub" );

    Widget10Layout->addWidget( itemNewSub, 1, 1 );
    Vertical_Spacing1 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Widget10Layout->addItem( Vertical_Spacing1, 3, 1 );

    itemUp = new TQPushButton( Widget10, "itemUp" );
    itemUp->setPixmap( image1 );

    Widget10Layout->addWidget( itemUp, 4, 1 );

    itemDown = new TQPushButton( Widget10, "itemDown" );
    itemDown->setPixmap( image2 );

    Widget10Layout->addWidget( itemDown, 5, 1 );

    itemLeft = new TQPushButton( Widget10, "itemLeft" );
    itemLeft->setPixmap( image3 );

    Widget10Layout->addWidget( itemLeft, 6, 1 );

    itemRight = new TQPushButton( Widget10, "itemRight" );
    itemRight->setPixmap( image4 );

    Widget10Layout->addWidget( itemRight, 7, 1 );
    tabWidget->insertTab( Widget10, TQString::fromLatin1("") );

    Widget11 = new TQWidget( tabWidget, "Widget11" );
    Widget11Layout = new TQGridLayout( Widget11, 1, 1, 11, 6, "Widget11Layout"); 

    GroupBox1_2 = new TQGroupBox( Widget11, "GroupBox1_2" );
    GroupBox1_2->setColumnLayout(0, TQt::Vertical );
    GroupBox1_2->layout()->setSpacing( 6 );
    GroupBox1_2->layout()->setMargin( 11 );
    GroupBox1Layout_2 = new TQGridLayout( GroupBox1_2->layout() );
    GroupBox1Layout_2->setAlignment( TQt::AlignTop );

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

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

    colPixmap = new TQLabel( GroupBox1_2, "colPixmap" );

    GroupBox1Layout_2->addWidget( colPixmap, 1, 1 );

    colDeletePixmap = new TQPushButton( GroupBox1_2, "colDeletePixmap" );
    colDeletePixmap->setMaximumSize( TQSize( 30, 22 ) );
    colDeletePixmap->setPixmap( image0 );

    GroupBox1Layout_2->addWidget( colDeletePixmap, 1, 2 );

    colChoosePixmap = new TQPushButton( GroupBox1_2, "colChoosePixmap" );
    colChoosePixmap->setMaximumSize( TQSize( 30, 22 ) );

    GroupBox1Layout_2->addWidget( colChoosePixmap, 1, 3 );

    Label1_2 = new TQLabel( GroupBox1_2, "Label1_2" );

    GroupBox1Layout_2->addWidget( Label1_2, 0, 0 );

    colText = new TQLineEdit( GroupBox1_2, "colText" );
    colText->setMinimumSize( TQSize( 0, 0 ) );

    GroupBox1Layout_2->addMultiCellWidget( colText, 0, 0, 1, 3 );

    colClickable = new TQCheckBox( GroupBox1_2, "colClickable" );

    GroupBox1Layout_2->addMultiCellWidget( colClickable, 2, 2, 0, 1 );

    colResizeable = new TQCheckBox( GroupBox1_2, "colResizeable" );

    GroupBox1Layout_2->addMultiCellWidget( colResizeable, 3, 3, 0, 1 );

    Widget11Layout->addMultiCellWidget( GroupBox1_2, 0, 4, 2, 2 );

    colDelete = new TQPushButton( Widget11, "colDelete" );

    Widget11Layout->addWidget( colDelete, 1, 1 );

    colDown = new TQPushButton( Widget11, "colDown" );
    colDown->setPixmap( image2 );

    Widget11Layout->addWidget( colDown, 4, 1 );

    colNew = new TQPushButton( Widget11, "colNew" );

    Widget11Layout->addWidget( colNew, 0, 1 );

    colUp = new TQPushButton( Widget11, "colUp" );
    colUp->setPixmap( image1 );

    Widget11Layout->addWidget( colUp, 3, 1 );

    colPreview = new TQListBox( Widget11, "colPreview" );

    Widget11Layout->addMultiCellWidget( colPreview, 0, 4, 0, 0 );
    Vertical_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Widget11Layout->addItem( Vertical_Spacing2, 2, 1 );
    tabWidget->insertTab( Widget11, TQString::fromLatin1("") );
    ListViewEditorBaseLayout->addWidget( tabWidget );

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

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

    okButton = new TQPushButton( this, "okButton" );
    okButton->setAutoDefault( true );
    okButton->setDefault( true );
    Layout1->addWidget( okButton );

    applyButton = new TQPushButton( this, "applyButton" );
    applyButton->setAutoDefault( true );
    Layout1->addWidget( applyButton );

    cancelButton = new TQPushButton( this, "cancelButton" );
    cancelButton->setAutoDefault( true );
    Layout1->addWidget( cancelButton );
    ListViewEditorBaseLayout->addLayout( Layout1 );
    languageChange();
    resize( TQSize(599, 351).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( cancelButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) );
    connect( itemNew, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemNewClicked() ) );
    connect( itemDelete, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemDeleteClicked() ) );
    connect( itemUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemUpClicked() ) );
    connect( itemDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemDownClicked() ) );
    connect( itemColumn, TQ_SIGNAL( valueChanged(int) ), this, TQ_SLOT( itemColChanged(int) ) );
    connect( itemText, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( itemTextChanged(const TQString&) ) );
    connect( itemDeletePixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemPixmapDeleted() ) );
    connect( itemChoosePixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemPixmapChoosen() ) );
    connect( colNew, TQ_SIGNAL( clicked() ), this, TQ_SLOT( newColumnClicked() ) );
    connect( colDelete, TQ_SIGNAL( clicked() ), this, TQ_SLOT( deleteColumnClicked() ) );
    connect( colUp, TQ_SIGNAL( clicked() ), this, TQ_SLOT( columnUpClicked() ) );
    connect( colDown, TQ_SIGNAL( clicked() ), this, TQ_SLOT( columnDownClicked() ) );
    connect( colText, TQ_SIGNAL( textChanged(const TQString&) ), this, TQ_SLOT( columnTextChanged(const TQString&) ) );
    connect( colDeletePixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( columnPixmapDeleted() ) );
    connect( colChoosePixmap, TQ_SIGNAL( clicked() ), this, TQ_SLOT( columnPixmapChosen() ) );
    connect( colResizeable, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( columnResizable(bool) ) );
    connect( colClickable, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( columnClickable(bool) ) );
    connect( tabWidget, TQ_SIGNAL( selected(const TQString&) ), this, TQ_SLOT( initTabPage(const TQString&) ) );
    connect( okButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( okClicked() ) );
    connect( applyButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( applyClicked() ) );
    connect( colPreview, TQ_SIGNAL( currentChanged(TQListBoxItem*) ), this, TQ_SLOT( currentColumnChanged(TQListBoxItem*) ) );
    connect( colPreview, TQ_SIGNAL( selectionChanged(TQListBoxItem*) ), this, TQ_SLOT( currentColumnChanged(TQListBoxItem*) ) );
    connect( itemsPreview, TQ_SIGNAL( currentChanged(TQListViewItem*) ), this, TQ_SLOT( currentItemChanged(TQListViewItem*) ) );
    connect( itemsPreview, TQ_SIGNAL( selectionChanged(TQListViewItem*) ), this, TQ_SLOT( currentItemChanged(TQListViewItem*) ) );
    connect( itemNewSub, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemNewSubClicked() ) );
    connect( itemLeft, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemLeftClicked() ) );
    connect( itemRight, TQ_SIGNAL( clicked() ), this, TQ_SLOT( itemRightClicked() ) );

    // tab order
    setTabOrder( okButton, cancelButton );
    setTabOrder( cancelButton, tabWidget );
    setTabOrder( tabWidget, itemsPreview );
    setTabOrder( itemsPreview, itemNew );
    setTabOrder( itemNew, itemNewSub );
    setTabOrder( itemNewSub, itemDelete );
    setTabOrder( itemDelete, itemUp );
    setTabOrder( itemUp, itemDown );
    setTabOrder( itemDown, itemLeft );
    setTabOrder( itemLeft, itemRight );
    setTabOrder( itemRight, itemColumn );
    setTabOrder( itemColumn, itemText );
    setTabOrder( itemText, itemDeletePixmap );
    setTabOrder( itemDeletePixmap, itemChoosePixmap );
    setTabOrder( itemChoosePixmap, helpButton );
    setTabOrder( helpButton, applyButton );
    setTabOrder( applyButton, colPreview );
    setTabOrder( colPreview, colNew );
    setTabOrder( colNew, colDelete );
    setTabOrder( colDelete, colUp );
    setTabOrder( colUp, colDown );
    setTabOrder( colDown, colText );
    setTabOrder( colText, colDeletePixmap );
    setTabOrder( colDeletePixmap, colChoosePixmap );
    setTabOrder( colChoosePixmap, colClickable );
    setTabOrder( colClickable, colResizeable );

    // buddies
    Label2->setBuddy( itemChoosePixmap );
    Label1->setBuddy( itemText );
    Label4->setBuddy( itemColumn );
    Label2_2->setBuddy( colChoosePixmap );
    Label1_2->setBuddy( colText );
    init();
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ListViewEditorBase::languageChange()
{
    setCaption( tr2i18n( "Edit Listview" ) );
    TQWhatsThis::add( this, tr2i18n( "<b>Edit Listview</b><p>Use the controls on the <b>Items</b>-tab to add, edit or delete items in the listview. Change the column configuration of the listview using the controls on the <b>Columns</b>-tab.</p>Click the <b>New Item</b>-button to create a new item, then enter text and add a pixmap.</p><p>Select an item from the list and click the <b>Delete Item</b>-button to remove the item from the list.</p>" ) );
    itemDelete->setText( tr2i18n( "&Delete Item" ) );
    TQToolTip::add( itemDelete, tr2i18n( "Delete item" ) );
    TQWhatsThis::add( itemDelete, tr2i18n( "<b>Deletes the selected item.</b><p>Any sub-items are also deleted.</p>" ) );
    GroupBox1->setTitle( tr2i18n( "Item &Properties" ) );
    Label2->setText( tr2i18n( "Pi&xmap:" ) );
    Label1->setText( tr2i18n( "&Text:" ) );
    TQToolTip::add( itemText, tr2i18n( "Change text" ) );
    TQWhatsThis::add( itemText, tr2i18n( "<b>Change the text of the item.</b><p>The text will be changed in the current column of the selected item.</p>" ) );
    TQToolTip::add( itemColumn, tr2i18n( "Change column" ) );
    TQWhatsThis::add( itemColumn, tr2i18n( "<b>Select the current column.</b><p>The item's text and pixmap will be changed for the current column</p>" ) );
    Label4->setText( tr2i18n( "Colu&mn:" ) );
    itemPixmap->setText( tr2i18n( "Label4" ) );
    itemDeletePixmap->setText( TQString::null );
    TQToolTip::add( itemDeletePixmap, tr2i18n( "Delete Pixmap" ) );
    TQWhatsThis::add( itemDeletePixmap, tr2i18n( "<b>Delete the selected item's pixmap.</b><p>The pixmap in the current column of the selected item will be deleted.</p>" ) );
    itemChoosePixmap->setText( tr2i18n( "..." ) );
    TQToolTip::add( itemChoosePixmap, tr2i18n( "Select a Pixmap" ) );
    TQWhatsThis::add( itemChoosePixmap, 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>" ) );
    itemNew->setText( tr2i18n( "&New Item" ) );
    TQToolTip::add( itemNew, tr2i18n( "Add an item" ) );
    TQWhatsThis::add( itemNew, tr2i18n( "<b>Adds a new item to the list.</b><p>The item will be inserted at the top of the list and can be moved using the up- and down-buttons.</p>" ) );
    TQWhatsThis::add( itemsPreview, tr2i18n( "The list of items." ) );
    itemNewSub->setText( tr2i18n( "New &Subitem" ) );
    TQToolTip::add( itemNewSub, tr2i18n( "Add a subitem" ) );
    TQWhatsThis::add( itemNewSub, tr2i18n( "<b>Create a new sub-item for the selected item.</b><p>New sub-items are inserted at the top of the list of sub-items, and new levels are created automatically.</p>" ) );
    itemUp->setText( TQString::null );
    TQToolTip::add( itemUp, tr2i18n( "Move up" ) );
    TQWhatsThis::add( itemUp, tr2i18n( "<b>Move the selected item up.</b><p>The item will be moved within its level in the hierarchy.</p>" ) );
    itemDown->setText( TQString::null );
    TQToolTip::add( itemDown, tr2i18n( "Move down" ) );
    TQWhatsThis::add( itemDown, tr2i18n( "<b>Move the selected item down.</b><p>The item will be moved within its level in the hierarchy.</p>" ) );
    itemLeft->setText( TQString::null );
    TQToolTip::add( itemLeft, tr2i18n( "Move left" ) );
    TQWhatsThis::add( itemLeft, tr2i18n( "<b>Move the selected item one level up.</b><p>This will also change the level of the item's sub-items.</p>" ) );
    itemRight->setText( TQString::null );
    TQToolTip::add( itemRight, tr2i18n( "Move right" ) );
    TQWhatsThis::add( itemRight, tr2i18n( "<b>Move the selected item one level down.</b><p>This will also change the level of the item's sub-items.</p>" ) );
    tabWidget->changeTab( Widget10, tr2i18n( "&Items" ) );
    GroupBox1_2->setTitle( tr2i18n( "Column Properties" ) );
    Label2_2->setText( tr2i18n( "&Pixmap:" ) );
    colPixmap->setText( tr2i18n( "Label4" ) );
    colDeletePixmap->setText( TQString::null );
    TQToolTip::add( colDeletePixmap, tr2i18n( "Delete Pixmap" ) );
    TQWhatsThis::add( colDeletePixmap, tr2i18n( "Delete the pixmap of the selected column." ) );
    colChoosePixmap->setText( tr2i18n( "..." ) );
    TQToolTip::add( colChoosePixmap, tr2i18n( "Select a Pixmap" ) );
    TQWhatsThis::add( colChoosePixmap, tr2i18n( "<b>Select a pixmap file for the selected column.</b><p>The pixmap will be displayed in the header of the listview.</p>" ) );
    Label1_2->setText( tr2i18n( "&Text:" ) );
    TQToolTip::add( colText, tr2i18n( "Enter column text" ) );
    TQWhatsThis::add( colText, tr2i18n( "<b>Enter the text for the selected column.</b><p>The text will be displayed in the header of the listview.</p>" ) );
    colClickable->setText( tr2i18n( "Clicka&ble" ) );
    TQWhatsThis::add( colClickable, tr2i18n( "If this option is checked, the selected column will react to mouse clicks on the header." ) );
    colResizeable->setText( tr2i18n( "Re&sizable" ) );
    TQWhatsThis::add( colResizeable, tr2i18n( "The column's width will be resizeable if this option is checked." ) );
    colDelete->setText( tr2i18n( "&Delete Column" ) );
    TQToolTip::add( colDelete, tr2i18n( "Delete column" ) );
    TQWhatsThis::add( colDelete, tr2i18n( "Deletes the selected Column." ) );
    colDown->setText( TQString::null );
    TQToolTip::add( colDown, tr2i18n( "Move down" ) );
    TQWhatsThis::add( colDown, tr2i18n( "<b>Move the selected item down.</b><p>The top-most column will be the first column in the list.</p>" ) );
    colNew->setText( tr2i18n( "&New Column" ) );
    TQToolTip::add( colNew, tr2i18n( "Add a Column" ) );
    TQWhatsThis::add( colNew, tr2i18n( "<b>Create a new column.</b><p>New columns are appended at the end of (right of) the list and may be moved using the up- and down-buttons.</p>" ) );
    colUp->setText( TQString::null );
    TQToolTip::add( colUp, tr2i18n( "Move up" ) );
    TQWhatsThis::add( colUp, tr2i18n( "<b>Move the selected item up.</b><p>The top-most column will be the first column in the list.</p>" ) );
    TQWhatsThis::add( colPreview, tr2i18n( "The list of columns." ) );
    tabWidget->changeTab( Widget11, tr2i18n( "Co&lumns" ) );
    helpButton->setText( tr2i18n( "&Help" ) );
    okButton->setText( tr2i18n( "&OK" ) );
    TQWhatsThis::add( okButton, tr2i18n( "Close the dialog and apply all the changes." ) );
    applyButton->setText( tr2i18n( "&Apply" ) );
    TQWhatsThis::add( applyButton, tr2i18n( "Apply all changes." ) );
    cancelButton->setText( tr2i18n( "&Cancel" ) );
    TQWhatsThis::add( cancelButton, tr2i18n( "Close the dialog and discard any changes." ) );
}

void ListViewEditorBase::init()
{
}

void ListViewEditorBase::destroy()
{
}

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

void ListViewEditorBase::columnClickable(bool)
{
    tqWarning( "ListViewEditorBase::columnClickable(bool): Not implemented yet" );
}

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

void ListViewEditorBase::columnPixmapChosen()
{
    tqWarning( "ListViewEditorBase::columnPixmapChosen(): Not implemented yet" );
}

void ListViewEditorBase::columnPixmapDeleted()
{
    tqWarning( "ListViewEditorBase::columnPixmapDeleted(): Not implemented yet" );
}

void ListViewEditorBase::columnResizable(bool)
{
    tqWarning( "ListViewEditorBase::columnResizable(bool): Not implemented yet" );
}

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

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

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

void ListViewEditorBase::currentItemChanged(TQListViewItem*)
{
    tqWarning( "ListViewEditorBase::currentItemChanged(TQListViewItem*): Not implemented yet" );
}

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

void ListViewEditorBase::initTabPage(const TQString&)
{
    tqWarning( "ListViewEditorBase::initTabPage(const TQString&): Not implemented yet" );
}

void ListViewEditorBase::itemColChanged(int)
{
    tqWarning( "ListViewEditorBase::itemColChanged(int): Not implemented yet" );
}

void ListViewEditorBase::itemDeleteClicked()
{
    tqWarning( "ListViewEditorBase::itemDeleteClicked(): Not implemented yet" );
}

void ListViewEditorBase::itemDownClicked()
{
    tqWarning( "ListViewEditorBase::itemDownClicked(): Not implemented yet" );
}

void ListViewEditorBase::itemLeftClicked()
{
    tqWarning( "ListViewEditorBase::itemLeftClicked(): Not implemented yet" );
}

void ListViewEditorBase::itemNewClicked()
{
    tqWarning( "ListViewEditorBase::itemNewClicked(): Not implemented yet" );
}

void ListViewEditorBase::itemNewSubClicked()
{
    tqWarning( "ListViewEditorBase::itemNewSubClicked(): Not implemented yet" );
}

void ListViewEditorBase::itemPixmapChoosen()
{
    tqWarning( "ListViewEditorBase::itemPixmapChoosen(): Not implemented yet" );
}

void ListViewEditorBase::itemPixmapDeleted()
{
    tqWarning( "ListViewEditorBase::itemPixmapDeleted(): Not implemented yet" );
}

void ListViewEditorBase::itemTextChanged(const TQString&)
{
    tqWarning( "ListViewEditorBase::itemTextChanged(const TQString&): Not implemented yet" );
}

void ListViewEditorBase::itemUpClicked()
{
    tqWarning( "ListViewEditorBase::itemUpClicked(): Not implemented yet" );
}

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

void ListViewEditorBase::itemRightClicked()
{
    tqWarning( "ListViewEditorBase::itemRightClicked(): Not implemented yet" );
}

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

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

TQMetaObject *ListViewEditorBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ListViewEditorBase( "ListViewEditorBase", &ListViewEditorBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* ListViewEditorBase::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 TQUParameter param_slot_4[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_4 = {"columnClickable", 1, param_slot_4 };
    static const TQUMethod slot_5 = {"columnDownClicked", 0, 0 };
    static const TQUMethod slot_6 = {"columnPixmapChosen", 0, 0 };
    static const TQUMethod slot_7 = {"columnPixmapDeleted", 0, 0 };
    static const TQUParameter param_slot_8[] = {
	{ 0, &static_QUType_bool, 0, TQUParameter::In }
    };
    static const TQUMethod slot_8 = {"columnResizable", 1, param_slot_8 };
    static const TQUParameter param_slot_9[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_9 = {"columnTextChanged", 1, param_slot_9 };
    static const TQUMethod slot_10 = {"columnUpClicked", 0, 0 };
    static const TQUParameter param_slot_11[] = {
	{ 0, &static_QUType_ptr, "TQListBoxItem", TQUParameter::In }
    };
    static const TQUMethod slot_11 = {"currentColumnChanged", 1, param_slot_11 };
    static const TQUParameter param_slot_12[] = {
	{ 0, &static_QUType_ptr, "TQListViewItem", TQUParameter::In }
    };
    static const TQUMethod slot_12 = {"currentItemChanged", 1, param_slot_12 };
    static const TQUMethod slot_13 = {"deleteColumnClicked", 0, 0 };
    static const TQUParameter param_slot_14[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_14 = {"initTabPage", 1, param_slot_14 };
    static const TQUParameter param_slot_15[] = {
	{ 0, &static_QUType_int, 0, TQUParameter::In }
    };
    static const TQUMethod slot_15 = {"itemColChanged", 1, param_slot_15 };
    static const TQUMethod slot_16 = {"itemDeleteClicked", 0, 0 };
    static const TQUMethod slot_17 = {"itemDownClicked", 0, 0 };
    static const TQUMethod slot_18 = {"itemLeftClicked", 0, 0 };
    static const TQUMethod slot_19 = {"itemNewClicked", 0, 0 };
    static const TQUMethod slot_20 = {"itemNewSubClicked", 0, 0 };
    static const TQUMethod slot_21 = {"itemPixmapChoosen", 0, 0 };
    static const TQUMethod slot_22 = {"itemPixmapDeleted", 0, 0 };
    static const TQUParameter param_slot_23[] = {
	{ 0, &static_QUType_TQString, 0, TQUParameter::In }
    };
    static const TQUMethod slot_23 = {"itemTextChanged", 1, param_slot_23 };
    static const TQUMethod slot_24 = {"itemUpClicked", 0, 0 };
    static const TQUMethod slot_25 = {"newColumnClicked", 0, 0 };
    static const TQUMethod slot_26 = {"itemRightClicked", 0, 0 };
    static const TQUMethod slot_27 = {"okClicked", 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 },
	{ "columnClickable(bool)", &slot_4, TQMetaData::Protected },
	{ "columnDownClicked()", &slot_5, TQMetaData::Protected },
	{ "columnPixmapChosen()", &slot_6, TQMetaData::Protected },
	{ "columnPixmapDeleted()", &slot_7, TQMetaData::Protected },
	{ "columnResizable(bool)", &slot_8, TQMetaData::Protected },
	{ "columnTextChanged(const TQString&)", &slot_9, TQMetaData::Protected },
	{ "columnUpClicked()", &slot_10, TQMetaData::Protected },
	{ "currentColumnChanged(TQListBoxItem*)", &slot_11, TQMetaData::Protected },
	{ "currentItemChanged(TQListViewItem*)", &slot_12, TQMetaData::Protected },
	{ "deleteColumnClicked()", &slot_13, TQMetaData::Protected },
	{ "initTabPage(const TQString&)", &slot_14, TQMetaData::Protected },
	{ "itemColChanged(int)", &slot_15, TQMetaData::Protected },
	{ "itemDeleteClicked()", &slot_16, TQMetaData::Protected },
	{ "itemDownClicked()", &slot_17, TQMetaData::Protected },
	{ "itemLeftClicked()", &slot_18, TQMetaData::Protected },
	{ "itemNewClicked()", &slot_19, TQMetaData::Protected },
	{ "itemNewSubClicked()", &slot_20, TQMetaData::Protected },
	{ "itemPixmapChoosen()", &slot_21, TQMetaData::Protected },
	{ "itemPixmapDeleted()", &slot_22, TQMetaData::Protected },
	{ "itemTextChanged(const TQString&)", &slot_23, TQMetaData::Protected },
	{ "itemUpClicked()", &slot_24, TQMetaData::Protected },
	{ "newColumnClicked()", &slot_25, TQMetaData::Protected },
	{ "itemRightClicked()", &slot_26, TQMetaData::Protected },
	{ "okClicked()", &slot_27, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ListViewEditorBase", parentObject,
	slot_tbl, 28,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ListViewEditorBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

bool ListViewEditorBase::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: columnClickable((bool)static_QUType_bool.get(_o+1)); break;
    case 5: columnDownClicked(); break;
    case 6: columnPixmapChosen(); break;
    case 7: columnPixmapDeleted(); break;
    case 8: columnResizable((bool)static_QUType_bool.get(_o+1)); break;
    case 9: columnTextChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 10: columnUpClicked(); break;
    case 11: currentColumnChanged((TQListBoxItem*)static_QUType_ptr.get(_o+1)); break;
    case 12: currentItemChanged((TQListViewItem*)static_QUType_ptr.get(_o+1)); break;
    case 13: deleteColumnClicked(); break;
    case 14: initTabPage((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 15: itemColChanged((int)static_QUType_int.get(_o+1)); break;
    case 16: itemDeleteClicked(); break;
    case 17: itemDownClicked(); break;
    case 18: itemLeftClicked(); break;
    case 19: itemNewClicked(); break;
    case 20: itemNewSubClicked(); break;
    case 21: itemPixmapChoosen(); break;
    case 22: itemPixmapDeleted(); break;
    case 23: itemTextChanged((const TQString&)static_QUType_TQString.get(_o+1)); break;
    case 24: itemUpClicked(); break;
    case 25: newColumnClicked(); break;
    case 26: itemRightClicked(); break;
    case 27: okClicked(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

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

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

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