KDEUI
kaboutapplicationdialog.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2007 Urs Wolfer <uwolfer at kde.org> 00003 00004 Parts of this class have been take from the KAboutApplication class, which was 00005 Copyright (C) 2000 Waldo Bastian (bastian@kde.org) and Espen Sand (espen@kde.org) 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License version 2 as published by the Free Software Foundation. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef KABOUT_APPLICATION_DIALOG_H 00023 #define KABOUT_APPLICATION_DIALOG_H 00024 00025 #include "kdialog.h" 00026 00027 #include <QtCore/QFlags> 00028 00029 class KAboutData; 00030 00048 class KDEUI_EXPORT KAboutApplicationDialog : public KDialog 00049 { 00050 Q_OBJECT 00051 Q_FLAGS( Options ) 00052 public: 00053 00059 enum Option { 00060 NoOptions = 0x0, 00061 HideTranslators = 0x1, 00062 HideKdeVersion = 0x2 00063 }; 00064 Q_DECLARE_FLAGS( Options, Option ) 00065 00066 00078 explicit KAboutApplicationDialog(const KAboutData *aboutData, Options opts, QWidget *parent = 0); 00079 00088 explicit KAboutApplicationDialog(const KAboutData *aboutData, QWidget *parent = 0); 00089 00090 virtual ~KAboutApplicationDialog(); 00091 00092 private: 00093 class Private; 00094 Private* const d; 00095 00096 Q_PRIVATE_SLOT( d, void _k_showLicense(const QString&) ) 00097 00098 Q_DISABLE_COPY( KAboutApplicationDialog ) 00099 }; 00100 00101 Q_DECLARE_OPERATORS_FOR_FLAGS( KAboutApplicationDialog::Options ) 00102 00103 #endif
KDE 4.6 API Reference