Logo Search packages:      
Sourcecode: qterm version File versions  Download package

articledialogui.cpp

/****************************************************************************
** Form implementation generated from reading ui file 'articledialog.ui'
**
** Created: Thu Jun 19 17:35:24 2003
**      by: The User Interface Compiler ($Id: articledialogui.cpp 278 2006-02-12 11:13:50Z hephooey $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "articledialogui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qtextbrowser.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/* 
 *  Constructs a articleDialogUI as a child of 'parent', with the 
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
articleDialogUI::articleDialogUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )

{
    if ( !name )
      setName( "articleDialogUI" );
    articleDialogUILayout = new QGridLayout( this, 1, 1, 11, 6, "articleDialogUILayout"); 

    copyButton = new QPushButton( this, "copyButton" );

    articleDialogUILayout->addWidget( copyButton, 1, 3 );
    QSpacerItem* spacer = new QSpacerItem( 50, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    articleDialogUILayout->addItem( spacer, 1, 4 );

    saveButton = new QPushButton( this, "saveButton" );

    articleDialogUILayout->addMultiCellWidget( saveButton, 1, 1, 5, 6 );
    QSpacerItem* spacer_2 = new QSpacerItem( 60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    articleDialogUILayout->addItem( spacer_2, 1, 7 );
    QSpacerItem* spacer_3 = new QSpacerItem( 60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    articleDialogUILayout->addItem( spacer_3, 1, 0 );
    QSpacerItem* spacer_4 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    articleDialogUILayout->addItem( spacer_4, 1, 2 );

    selectButton = new QPushButton( this, "selectButton" );

    articleDialogUILayout->addWidget( selectButton, 1, 1 );

    closeButton = new QPushButton( this, "closeButton" );

    articleDialogUILayout->addMultiCellWidget( closeButton, 2, 2, 6, 7 );
    QSpacerItem* spacer_5 = new QSpacerItem( 410, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    articleDialogUILayout->addMultiCell( spacer_5, 2, 2, 0, 5 );

    textBrowser2 = new QTextBrowser( this, "textBrowser2" );

    articleDialogUILayout->addMultiCellWidget( textBrowser2, 0, 0, 0, 7 );
    languageChange();
    resize( QSize(542, 487).expandedTo(minimumSizeHint()) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void articleDialogUI::languageChange()
{
    setCaption( tr( "Article Viewer" ) );
    copyButton->setText( tr( "Copy" ) );
    saveButton->setText( tr( "Save..." ) );
    selectButton->setText( tr( "Select All" ) );
    closeButton->setText( tr( "Close" ) );
    textBrowser2->setText( QString::null );
}

#include <articledialogui.moc>

Generated by  Doxygen 1.6.0   Back to index