You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
2.1 KiB
56 lines
2.1 KiB
15 years ago
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
* copyright (C) 2006-2007 *
|
||
|
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
|
||
|
***************************************************************************/
|
||
|
|
||
|
// own header
|
||
|
#include "exportallviewsdialog.h"
|
||
|
|
||
|
// include files for Qt
|
||
|
#include <qlayout.h>
|
||
|
#include <qlabel.h>
|
||
|
#include <qtooltip.h>
|
||
|
|
||
|
// kde include files
|
||
|
#include <kfilefiltercombo.h>
|
||
|
#include <klocale.h>
|
||
|
|
||
|
// application specific includes
|
||
|
#include "../umlviewimageexportermodel.h"
|
||
|
|
||
|
ExportAllViewsDialog::ExportAllViewsDialog(
|
||
|
QWidget* parent /* = 0 */,
|
||
|
const char* name /* = 0 */,
|
||
|
bool modal /* = false */,
|
||
|
WFlags fl /* = 0*/,
|
||
|
const QString &defaultMimeType /*= "image/png"*/)
|
||
|
: ExportAllViewsDialogBase(parent,name, modal,fl) {
|
||
|
// create and initialize m_imageType
|
||
|
m_imageType = new KFileFilterCombo(this, "m_imageType");
|
||
|
m_imageType->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Fixed, 0, 0, m_imageType->sizePolicy().hasHeightForWidth()));
|
||
|
m_imageType->setEditable(false);
|
||
|
|
||
|
m_imageType->setMimeFilter(UMLViewImageExporterModel::supportedMimeTypes(), defaultMimeType);
|
||
|
|
||
|
imageTypeLayout->addWidget(m_imageType);
|
||
|
|
||
|
imageTypeLabel->setBuddy(m_imageType);
|
||
|
|
||
|
// reload the strings so the m_imageType tooltip is added
|
||
|
languageChange();
|
||
|
}
|
||
|
|
||
|
void ExportAllViewsDialog::languageChange() {
|
||
|
ExportAllViewsDialogBase::languageChange();
|
||
|
QToolTip::add(m_imageType, tr2i18n("The format that the images will be exported to"));
|
||
|
}
|
||
|
|
||
|
#include "exportallviewsdialog.moc"
|
||
|
|