umbrello API Documentation

exportallviewsdialog.cpp

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2006-2007                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 // own header
00013 #include "exportallviewsdialog.h"
00014 
00015 // include files for Qt
00016 #include <qlayout.h>
00017 #include <qlabel.h>
00018 #include <qtooltip.h>
00019 
00020 // kde include files
00021 #include <kfilefiltercombo.h>
00022 #include <klocale.h>
00023 
00024 // application specific includes
00025 #include "../umlviewimageexportermodel.h"
00026 
00027 ExportAllViewsDialog::ExportAllViewsDialog(
00028         QWidget* parent /* = 0 */,
00029         const char* name /* = 0 */,
00030         bool modal /* = false */,
00031         WFlags fl /* = 0*/,
00032         const QString &defaultMimeType /*= "image/png"*/)
00033   : ExportAllViewsDialogBase(parent,name, modal,fl) {
00034     // create and initialize m_imageType
00035     m_imageType = new KFileFilterCombo(this, "m_imageType");
00036     m_imageType->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed, 0, 0, m_imageType->sizePolicy().hasHeightForWidth()));
00037     m_imageType->setEditable(false);
00038 
00039     m_imageType->setMimeFilter(UMLViewImageExporterModel::supportedMimeTypes(), defaultMimeType);
00040 
00041     imageTypeLayout->addWidget(m_imageType);
00042 
00043     imageTypeLabel->setBuddy(m_imageType);
00044 
00045     // reload the strings so the m_imageType tooltip is added
00046     languageChange();
00047 }
00048 
00049 void ExportAllViewsDialog::languageChange() {
00050     ExportAllViewsDialogBase::languageChange();
00051     QToolTip::add(m_imageType, tr2i18n("The format that the images will be exported to"));
00052 }
00053 
00054 #include "exportallviewsdialog.moc"
00055 
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