umbrello API Documentation

exportallviewsdialogbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file '/home/kellogg/kdesdk-3.5-branch/umbrello/umbrello/dialogs/exportallviewsdialogbase.ui'
00005 **
00006 ** Created: Mi Mai 9 20:21:39 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   edited Nov 24 2003 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "exportallviewsdialogbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qlabel.h>
00017 #include <kurlrequester.h>
00018 #include <qcheckbox.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 
00023 /*
00024  *  Constructs a ExportAllViewsDialogBase as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  *
00027  *  The dialog will by default be modeless, unless you set 'modal' to
00028  *  TRUE to construct a modal dialog.
00029  */
00030 ExportAllViewsDialogBase::ExportAllViewsDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00031     : QDialog( parent, name, modal, fl )
00032 {
00033     if ( !name )
00034     setName( "ExportAllViewsDialogBase" );
00035     setSizeGripEnabled( TRUE );
00036     ExportAllViewsDialogBaseLayout = new QVBoxLayout( this, 11, 6, "ExportAllViewsDialogBaseLayout"); 
00037 
00038     mainLayout = new QVBoxLayout( 0, 0, 15, "mainLayout"); 
00039 
00040     kURLRequesterLayout = new QVBoxLayout( 0, 0, 6, "kURLRequesterLayout"); 
00041 
00042     kURLRequesterLabel = new QLabel( this, "kURLRequesterLabel" );
00043     kURLRequesterLayout->addWidget( kURLRequesterLabel );
00044 
00045     m_kURL = new KURLRequester( this, "m_kURL" );
00046     m_kURL->setMode( 2 );
00047     kURLRequesterLayout->addWidget( m_kURL );
00048     mainLayout->addLayout( kURLRequesterLayout );
00049 
00050     imageTypeLayout = new QVBoxLayout( 0, 0, 6, "imageTypeLayout"); 
00051 
00052     imageTypeLabel = new QLabel( this, "imageTypeLabel" );
00053     imageTypeLayout->addWidget( imageTypeLabel );
00054     mainLayout->addLayout( imageTypeLayout );
00055 
00056     m_useFolders = new QCheckBox( this, "m_useFolders" );
00057     mainLayout->addWidget( m_useFolders );
00058     ExportAllViewsDialogBaseLayout->addLayout( mainLayout );
00059     spacer2 = new QSpacerItem( 20, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
00060     ExportAllViewsDialogBaseLayout->addItem( spacer2 );
00061 
00062     buttonsLayout = new QHBoxLayout( 0, 0, 6, "buttonsLayout"); 
00063     Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00064     buttonsLayout->addItem( Horizontal_Spacing2 );
00065 
00066     buttonOk = new QPushButton( this, "buttonOk" );
00067     buttonOk->setAutoDefault( TRUE );
00068     buttonOk->setDefault( TRUE );
00069     buttonsLayout->addWidget( buttonOk );
00070 
00071     buttonCancel = new QPushButton( this, "buttonCancel" );
00072     buttonCancel->setAutoDefault( TRUE );
00073     buttonsLayout->addWidget( buttonCancel );
00074     ExportAllViewsDialogBaseLayout->addLayout( buttonsLayout );
00075     languageChange();
00076     resize( QSize(366, 197).expandedTo(minimumSizeHint()) );
00077     clearWState( WState_Polished );
00078 
00079     // signals and slots connections
00080     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00081     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00082 
00083     // buddies
00084     kURLRequesterLabel->setBuddy( m_kURL );
00085 }
00086 
00087 /*
00088  *  Destroys the object and frees any allocated resources
00089  */
00090 ExportAllViewsDialogBase::~ExportAllViewsDialogBase()
00091 {
00092     // no need to delete child widgets, Qt does it all for us
00093 }
00094 
00095 /*
00096  *  Sets the strings of the subwidgets using the current
00097  *  language.
00098  */
00099 void ExportAllViewsDialogBase::languageChange()
00100 {
00101     setCaption( tr2i18n( "Export all views" ) );
00102     kURLRequesterLabel->setText( tr2i18n( "&Directory to save the diagrams in:" ) );
00103     QToolTip::add( kURLRequesterLabel, tr2i18n( "The base directory used to save the images" ) );
00104     QToolTip::add( m_kURL, tr2i18n( "The base directory used to save the images" ) );
00105     imageTypeLabel->setText( tr2i18n( "&Image type:" ) );
00106     QToolTip::add( imageTypeLabel, tr2i18n( "The format that the images will be exported to" ) );
00107     m_useFolders->setText( tr2i18n( "Use &folders" ) );
00108     QToolTip::add( m_useFolders, tr2i18n( "Create in the target directory the same tree structure used\n"
00109 "in the document to store the views" ) );
00110     QWhatsThis::add( m_useFolders, tr2i18n( "The views are stored in folders in the document. The same tree structure used in the document to store the views can be created in the selected base directory with this option.\n"
00111 "Only the folders made by the user are created in the base directory (Logical view, use case view and so on aren't created)." ) );
00112     buttonOk->setText( tr2i18n( "&OK" ) );
00113     buttonOk->setAccel( QKeySequence( QString::null ) );
00114     buttonCancel->setText( tr2i18n( "&Cancel" ) );
00115     buttonCancel->setAccel( QKeySequence( QString::null ) );
00116 }
00117 
00118 #include "exportallviewsdialogbase.moc"
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:57 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003