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

#include "multilineeditor.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>
#include <ntqaction.h>
#include <ntqmenubar.h>
#include <ntqpopupmenu.h>
#include <ntqtoolbar.h>

/*
 *  Constructs a MultiLineEditorBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 */
MultiLineEditorBase::MultiLineEditorBase( TQWidget* parent, const char* name, WFlags fl )
    : TQMainWindow( parent, name, fl )
{
    (void)statusBar();
    if ( !name )
	setName( "MultiLineEditorBase" );
    setCentralWidget( new TQWidget( this, "qt_central_widget" ) );
    MultiLineEditorBaseLayout = new TQHBoxLayout( centralWidget(), 11, 6, "MultiLineEditorBaseLayout"); 

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

    Layout3 = new TQVBoxLayout( 0, 0, 6, "Layout3"); 

    OkButton = new TQPushButton( centralWidget(), "OkButton" );
    OkButton->setOn( false );
    OkButton->setAutoDefault( true );
    OkButton->setDefault( true );
    Layout3->addWidget( OkButton );

    applyButton = new TQPushButton( centralWidget(), "applyButton" );
    Layout3->addWidget( applyButton );

    cancelButton = new TQPushButton( centralWidget(), "cancelButton" );
    Layout3->addWidget( cancelButton );
    Spacer3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    Layout3->addItem( Spacer3 );

    helpButton = new TQPushButton( centralWidget(), "helpButton" );
    Layout3->addWidget( helpButton );
    Layout4->addLayout( Layout3 );
    MultiLineEditorBaseLayout->addLayout( Layout4 );

    // toolbars


    // menubar
    menuBar = new TQMenuBar( this, "menuBar" );


    languageChange();
    resize( TQSize(598, 307).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( OkButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( okClicked() ) );
    connect( applyButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( applyClicked() ) );
    connect( cancelButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( cancelClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void MultiLineEditorBase::languageChange()
{
    setCaption( tr( "Edit Text" ) );
    TQWhatsThis::add( this, tr( "<b>Multiline Edit</b><p>This is a simple richtext editor. For an easier working, it provides the most common html tags in form of toolbar items respectively shortcuts. By clicking on such an icon, the regarding tag will be written to the editor and you can insert your text. If you have already written a text and want to format it, just mark it and click on the wished tag button. For a better visualization this editor supports also a simple html syntax highlighting." ) );
    OkButton->setText( tr( "&OK" ) );
    applyButton->setText( tr( "&Apply" ) );
    cancelButton->setText( tr( "&Cancel" ) );
    helpButton->setText( tr( "&Help" ) );
}

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

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

void MultiLineEditorBase::cancelClicked()
{
    tqWarning( "MultiLineEditorBase::cancelClicked(): Not implemented yet" );
}

