本文整理汇总了C++中KAboutData::addAuthor方法的典型用法代码示例。如果您正苦于以下问题:C++ KAboutData::addAuthor方法的具体用法?C++ KAboutData::addAuthor怎么用?C++ KAboutData::addAuthor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KAboutData
的用法示例。
在下文中一共展示了KAboutData::addAuthor方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: KCModule
KclockModule::KclockModule(QWidget *parent, const char *name, const QStringList &) : KCModule(KlockModuleFactory::instance(), parent, name)
{
KAboutData *about = new KAboutData(I18N_NOOP("kcmclock"), I18N_NOOP("KDE Clock Control Module"), 0, 0, KAboutData::License_GPL,
"(c) 1996 - 2001 Luca Montecchiani");
about->addAuthor("Luca Montecchiani", I18N_NOOP("Original author"), "[email protected]");
about->addAuthor("Paul Campbell", I18N_NOOP("Current Maintainer"), "[email protected]");
about->addAuthor("Benjamin Meyer", I18N_NOOP("Added NTP support"), "[email protected]");
setAboutData(about);
setQuickHelp(
i18n("<h1>Date & Time</h1> This control module can be used to set the system date and"
" time. As these settings do not only affect you as a user, but rather the whole system, you"
" can only change these settings when you start the Control Center as root. If you do not have"
" the root password, but feel the system time should be corrected, please contact your system"
" administrator."));
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translations
QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint());
dtime = new Dtime(this);
layout->addWidget(dtime);
connect(dtime, SIGNAL(timeChanged(bool)), this, SIGNAL(changed(bool)));
tzone = new Tzone(this);
layout->addWidget(tzone);
connect(tzone, SIGNAL(zoneChanged(bool)), this, SIGNAL(changed(bool)));
layout->addStretch();
if(getuid() == 0)
setButtons(Help | Apply);
else
setButtons(Help);
}
示例2: KAboutData
KAboutData *KopeteRichTextEditPart::createAboutData()
{
KAboutData *aboutData = new KAboutData("kopeterichtexteditpart", I18N_NOOP("KopeteRichTextEditPart"), "0.1",
I18N_NOOP("A simple rich text editor part for Kopete"),
KAboutData::License_LGPL );
aboutData->addAuthor("Richard J. Moore", 0, "[email protected]", "http://xmelegance.org/" );
aboutData->addAuthor("Jason Keirstead", 0, "[email protected]", "http://www.keirstead.org/" );
return aboutData;
}
示例3: KCModule
Module::Module(QWidget *parent, const QVariantList &args)
: KCModule(parent, args)
, ui(new Ui::Module)
, m_manager(new DriverManager(this))
{
KAboutData *aboutData = new KAboutData("kcm-driver-manager",
i18n("Driver Manager"),
global_s_versionStringFull,
QStringLiteral(""),
KAboutLicense::LicenseKey::GPL_V3,
i18n("Copyright 2013 Rohan Garg"));
aboutData->addAuthor(i18n("Rohan Garg"), i18n("Author"), QStringLiteral("[email protected]"));
aboutData->addAuthor(i18n("Harald Sitter"), i18n("Qt 5 port"), QStringLiteral("[email protected]"));
setAboutData(aboutData);
// We have no help so remove the button from the buttons.
setButtons(buttons() ^ KCModule::Help);
ui->setupUi(this);
ui->progressBar->setVisible(false);
connect(ui->reloadButton, SIGNAL(clicked(bool)), SLOT(load()));
m_overlay = new KPixmapSequenceOverlayPainter(this);
m_overlay->setWidget(this);
#warning variable name
QString label = xi18nc("@title/rich", "<title>Your computer requires no proprietary drivers</title>");
m_label = new QLabel(label, this);
m_label->hide();
ui->driverOptionsVLayout->addWidget(m_label);
//Debconf handling
QString uuid = QUuid::createUuid().toString();
uuid.remove('{').remove('}').remove('-');
m_pipe = QDir::tempPath() % QLatin1String("/qapt-sock-") % uuid;
m_debconfGui = new DebconfKde::DebconfGui(m_pipe, this);
m_debconfGui->connect(m_debconfGui, SIGNAL(activated()), this, SLOT(showDebconf()));
m_debconfGui->connect(m_debconfGui, SIGNAL(deactivated()), this, SLOT(hideDebconf()));
m_debconfGui->hide();
connect(m_manager, SIGNAL(refreshFailed()),
this, SLOT(onRefreshFailed()));
connect(m_manager, SIGNAL(devicesReady(DeviceList)),
this, SLOT(onDevicesReady(DeviceList)));
connect(m_manager, SIGNAL(changeProgressChanged(int)),
this, SLOT(progressChanged(int)));
connect(m_manager, SIGNAL(changeFinished()),
this, SLOT(finished()));
connect(m_manager, SIGNAL(changeFailed(QString)),
this, SLOT(failed(QString)));
}
示例4: aboutData
const KAboutData* KcmKontact::aboutData() const
{
KAboutData *about = new KAboutData( I18N_NOOP( "kontactconfig" ),
I18N_NOOP( "KDE Kontact" ),
0, 0, KAboutData::License_GPL,
I18N_NOOP( "(c), 2003 Cornelius Schumacher" ) );
about->addAuthor( "Cornelius Schumacher", 0, "[email protected]" );
about->addAuthor( "Tobias Koenig", 0, "[email protected]" );
return about;
}
示例5:
KAboutData *NoteeditFactory::aboutData() {
KAboutData *about = new KAboutData
("noteedit", I18N_NOOP("NoteEdit"), VERSION,
"a KDE3/Qt3 based note editor.\nFor help subscribe to one of the\nmailing lists, or post a message\nin one of the public forums. See",
KAboutData::License_GPL, 0, 0,
//"http://rnvs.informatik.tu-chemnitz.de/~jan/noteedit/noteedit.html",
"http://developer.berlios.de/projects/noteedit",
ADDRESS);
about->addAuthor
("Joerg Anders", I18N_NOOP("Main author"), ADDRESS);
about->addAuthor
("Christian Fasshauer", I18N_NOOP("programmer"), "[email protected]");
#ifdef WITH_TSE3
about->addAuthor
("Pete Goodliffe", I18N_NOOP("TSE3 sequencer library"),
"[email protected]");
#endif
about->addAuthor("Erik Sigra", I18N_NOOP("developer"), "[email protected]");
about->addAuthor
("David Faure", I18N_NOOP("KDE User Interface"), "[email protected]");
about->addAuthor("Matt Gerassimoff", 0, "[email protected]");
about->addAuthor
("Leon Vinken", I18N_NOOP("MusicXML interface"),
"[email protected]");
about->addAuthor("Georg Rudolph", I18N_NOOP("lilypond interface"), "[email protected]");
return about;
}
示例6: KAboutData
const KAboutData *KCMTodoSummary::aboutData() const
{
KAboutData *about = new KAboutData(
I18N_NOOP( "kcmtodosummary" ), 0,
ki18n( "Pending To-dos Configuration Dialog" ),
0, KLocalizedString(), KAboutData::License_GPL,
ki18n( "(c) 2003 - 2004 Tobias Koenig" ) );
about->addAuthor( ki18n( "Tobias Koenig" ),
KLocalizedString(), "[email protected]" );
about->addAuthor( ki18n( "Allen Winter" ),
KLocalizedString(), "[email protected]" );
return about;
}
示例7: createAboutData
KAboutData* createAboutData(const QByteArray& appName, const QByteArray& catalogName, const KLocalizedString& programName)
{
KAboutData* data = new KAboutData(appName, catalogName, programName, KDE_VERSION_STRING);
data->setLicense(KAboutData::License_GPL);
data->setCopyrightStatement(ki18n("Copyright 2000-2013 Gwenview authors"));
data->addAuthor(
ki18n("Aurélien Gâteau"),
ki18n("Main developer"),
"[email protected]");
data->addAuthor(
ki18n("Benjamin Löwe"),
ki18n("Developer"),
"[email protected]");
return data;
}
示例8: KCModule
KCMKOrgSummary::KCMKOrgSummary(QWidget *parent, const char *name)
: KCModule(parent, name)
{
initGUI();
customDaysChanged(1);
connect(mCalendarGroup, SIGNAL(clicked(int)), SLOT(modified()));
connect(mCalendarGroup, SIGNAL(clicked(int)), SLOT(buttonClicked(int)));
connect(mTodoGroup, SIGNAL(clicked(int)), SLOT(modified()));
connect(mCustomDays, SIGNAL(valueChanged(int)), SLOT(modified()));
connect(mCustomDays, SIGNAL(valueChanged(int)), SLOT(customDaysChanged(int)));
KAcceleratorManager::manage(this);
load();
KAboutData *about = new KAboutData(I18N_NOOP("kcmkorgsummary"),
I18N_NOOP("Schedule Configuration Dialog"),
0, 0, KAboutData::License_GPL,
I18N_NOOP("(c) 2003 - 2004 Tobias Koenig"));
about->addAuthor("Tobias Koenig", 0, "[email protected]");
setAboutData(about);
}
示例9: KCModule
KcmKRfb::KcmKRfb(QWidget *p, const char *name, const QStringList &) :
KCModule(KcmKRfbFactory::instance(), p, name),
m_configuration(KRFB_CONFIGURATION_MODE) {
m_confWidget = new ConfigurationWidget(this);
QVBoxLayout *l = new QVBoxLayout(this, 0, KDialog::spacingHint());
l->add(m_confWidget);
setButtons(Default|Apply|Reset);
KAboutData* about = new KAboutData( "kcm_krfb", I18N_NOOP("Desktop Sharing Control Module"),
VERSION,
I18N_NOOP("Configure desktop sharing"), KAboutData::License_GPL,
"(c) 2002, Tim Jansen\n",
0, "http://www.tjansen.de/krfb", "[email protected]");
about->addAuthor("Tim Jansen", 0, "[email protected]");
setAboutData( about );
load();
connect(m_confWidget->passwordInput, SIGNAL(textChanged(const QString&)), SLOT(configChanged()) );
connect(m_confWidget->allowUninvitedCB, SIGNAL(clicked()), SLOT(configChanged()) );
connect(m_confWidget->enableSLPCB, SIGNAL(clicked()), SLOT(configChanged()) );
connect(m_confWidget->confirmConnectionsCB, SIGNAL(clicked()), SLOT(configChanged()) );
connect(m_confWidget->allowDesktopControlCB, SIGNAL(clicked()), SLOT(configChanged()) );
connect(m_confWidget->autoPortCB, SIGNAL(clicked()), SLOT(configChanged()) );
connect(m_confWidget->portInput, SIGNAL(valueChanged(int)), SLOT(configChanged()) );
connect((QObject*)m_confWidget->manageInvitations, SIGNAL(clicked()),
&m_configuration, SLOT(showManageInvitationsDialog()) );
connect(&m_configuration, SIGNAL(invitationNumChanged(int)),
this, SLOT(setInvitationNum(int)));
setInvitationNum(m_configuration.invitations().size());
connect(m_confWidget->disableBackgroundCB, SIGNAL(clicked()), SLOT(configChanged()) );
}
示例10: KCModule
KCMNic::KCMNic(QWidget *parent, const char *name, const QStringList &) : KCModule(KCMNicFactory::instance(), parent, name)
{
QVBoxLayout *box = new QVBoxLayout(this, 0, KDialog::spacingHint());
m_list = new QListView(this);
box->addWidget(m_list);
m_list->addColumn(i18n("Name"));
m_list->addColumn(i18n("IP Address"));
m_list->addColumn(i18n("Network Mask"));
m_list->addColumn(i18n("Type"));
m_list->addColumn(i18n("State"));
m_list->addColumn(i18n("HWaddr"));
m_list->setAllColumnsShowFocus(true);
QHBoxLayout *hbox = new QHBoxLayout(box);
m_updateButton = new QPushButton(i18n("&Update"), this);
hbox->addWidget(m_updateButton);
hbox->addStretch(1);
QTimer *timer = new QTimer(this);
timer->start(60000);
connect(m_updateButton, SIGNAL(clicked()), this, SLOT(update()));
connect(timer, SIGNAL(timeout()), this, SLOT(update()));
update();
KAboutData *about = new KAboutData(I18N_NOOP("kcminfo"), I18N_NOOP("KDE Panel System Information Control Module"), 0, 0, KAboutData::License_GPL,
I18N_NOOP("(c) 2001 - 2002 Alexander Neundorf"));
about->addAuthor("Alexander Neundorf", 0, "[email protected]");
setAboutData(about);
}
示例11: KCModule
TaskbarConfig::TaskbarConfig(QWidget *parent, const char *name, const QStringList &) : KCModule(TaskBarFactory::instance(), parent, name)
{
QVBoxLayout *layout = new QVBoxLayout(this, 0, KDialog::spacingHint());
m_widget = new TaskbarConfigUI(this);
layout->addWidget(m_widget);
// TODO: Load these from .desktop files?
m_appearances.append(TaskbarAppearance(i18n("Elegant"), false, false, true));
m_appearances.append(TaskbarAppearance(i18n("Classic"), true, false, true));
m_appearances.append(TaskbarAppearance(i18n("For Transparency"), false, true, true));
for(TaskbarAppearance::List::const_iterator it = m_appearances.constBegin(); it != m_appearances.constEnd(); ++it)
{
m_widget->appearance->insertItem((*it).name());
}
connect(m_widget->appearance, SIGNAL(activated(int)), this, SLOT(appearanceChanged(int)));
addConfig(TaskBarSettings::self(), m_widget);
setQuickHelp(
i18n("<h1>Taskbar</h1> You can configure the taskbar here."
" This includes options such as whether or not the taskbar should show all"
" windows at once or only those on the current desktop."
" You can also configure whether or not the Window List button will be displayed."));
QStringList list = i18nActionList();
m_widget->kcfg_LeftButtonAction->insertStringList(list);
m_widget->kcfg_MiddleButtonAction->insertStringList(list);
m_widget->kcfg_RightButtonAction->insertStringList(list);
m_widget->kcfg_GroupTasks->insertStringList(i18nGroupModeList());
connect(m_widget->kcfg_GroupTasks, SIGNAL(activated(int)), this, SLOT(slotUpdateComboBox()));
connect(m_widget->kcfg_UseCustomColors, SIGNAL(stateChanged(int)), this, SLOT(slotUpdateCustomColors()));
slotUpdateCustomColors();
updateAppearanceCombo();
if(KWin::numberOfDesktops() < 2)
{
m_widget->kcfg_ShowAllWindows->hide();
m_widget->kcfg_SortByDesktop->hide();
m_widget->spacer2->changeSize(0, 0);
}
if(!QApplication::desktop()->isVirtualDesktop() || QApplication::desktop()->numScreens() == 1) // No Ximerama
{
m_widget->showAllScreens->hide();
}
connect(m_widget->showAllScreens, SIGNAL(stateChanged(int)), SLOT(changed()));
KAboutData *about = new KAboutData(I18N_NOOP("kcmtaskbar"), I18N_NOOP("KDE Taskbar Control Module"), 0, 0, KAboutData::License_GPL,
I18N_NOOP("(c) 2000 - 2001 Matthias Elter"));
about->addAuthor("Matthias Elter", 0, "[email protected]");
about->addCredit("Stefan Nikolaus", I18N_NOOP("KConfigXT conversion"), "[email protected]");
setAboutData(about);
load();
QTimer::singleShot(0, this, SLOT(notChanged()));
}
示例12: QLabel
KCMKontactSummary::KCMKontactSummary( const KComponentData &inst, QWidget *parent )
: KCModule( inst, parent )
{
setButtons( NoAdditionalButton );
QVBoxLayout *layout = new QVBoxLayout( this );
layout->setSpacing( KDialog::spacingHint() );
layout->setMargin( 0 );
QLabel *label =
new QLabel( i18n( "Select the plugin summaries to show on the summary page." ), this );
layout->addWidget( label );
mPluginView = new PluginView( this );
layout->addWidget( mPluginView );
layout->setStretchFactor( mPluginView, 1 );
load();
connect( mPluginView, SIGNAL(itemChanged(QTreeWidgetItem*,int)),
this, SLOT(changed()) );
KAboutData *about = new KAboutData( I18N_NOOP( "kontactsummary" ), 0,
ki18n( "KDE Kontact Summary" ),
0, KLocalizedString(), KAboutData::License_GPL,
ki18n( "(c), 2004 Tobias Koenig" ) );
about->addAuthor( ki18n( "Tobias Koenig" ), KLocalizedString(), "[email protected]" );
setAboutData( about );
}
示例13: KAboutData
KCMCgi::KCMCgi(QWidget *parent, const char *name)
: KCModule(parent, name)
{
setButtons(Default|Apply);
QVBoxLayout *topLayout = new QVBoxLayout(this, 0, KDialog::spacingHint());
QGroupBox *topBox = new QGroupBox( 1, Horizontal, i18n("Paths to Local CGI Programs"), this );
topLayout->addWidget( topBox );
mListBox = new QListBox( topBox );
QHBox *buttonBox = new QHBox( topBox );
buttonBox->setSpacing( KDialog::spacingHint() );
mAddButton = new QPushButton( i18n("Add..."), buttonBox );
connect( mAddButton, SIGNAL( clicked() ), SLOT( addPath() ) );
mRemoveButton = new QPushButton( i18n("Remove"), buttonBox );
connect( mRemoveButton, SIGNAL( clicked() ), SLOT( removePath() ) );
connect( mListBox, SIGNAL( clicked ( QListBoxItem * )),this, SLOT( slotItemSelected( QListBoxItem *)));
mConfig = new KConfig("kcmcgirc");
load();
updateButton();
KAboutData *about =
new KAboutData( I18N_NOOP("kcmcgi"),
I18N_NOOP("CGI KIO Slave Control Module"),
0, 0, KAboutData::License_GPL,
I18N_NOOP("(c) 2002 Cornelius Schumacher") );
about->addAuthor( "Cornelius Schumacher", 0, "[email protected]" );
setAboutData(about);
}
示例14: KCModule
KWinOptions::KWinOptions(QWidget *parent, const char *name) : KCModule(parent, name)
{
mConfig = new KConfig("kwinrc", false, true);
QVBoxLayout *layout = new QVBoxLayout(this);
tab = new QTabWidget(this);
layout->addWidget(tab);
mFocus = new KFocusConfig(false, mConfig, this, "KWin Focus Config");
mFocus->layout()->setMargin(KDialog::marginHint());
tab->addTab(mFocus, i18n("&Focus"));
connect(mFocus, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mTitleBarActions = new KTitleBarActionsConfig(false, mConfig, this, "KWin TitleBar Actions");
mTitleBarActions->layout()->setMargin(KDialog::marginHint());
tab->addTab(mTitleBarActions, i18n("&Titlebar Actions"));
connect(mTitleBarActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mWindowActions = new KWindowActionsConfig(false, mConfig, this, "KWin Window Actions");
mWindowActions->layout()->setMargin(KDialog::marginHint());
tab->addTab(mWindowActions, i18n("Window Actio&ns"));
connect(mWindowActions, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mMoving = new KMovingConfig(false, mConfig, this, "KWin Moving");
mMoving->layout()->setMargin(KDialog::marginHint());
tab->addTab(mMoving, i18n("&Moving"));
connect(mMoving, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mAdvanced = new KAdvancedConfig(false, mConfig, this, "KWin Advanced");
mAdvanced->layout()->setMargin(KDialog::marginHint());
tab->addTab(mAdvanced, i18n("Ad&vanced"));
connect(mAdvanced, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
mTranslucency = new KTranslucencyConfig(false, mConfig, this, "KWin Translucency");
mTranslucency->layout()->setMargin(KDialog::marginHint());
tab->addTab(mTranslucency, i18n("&Translucency"));
connect(mTranslucency, SIGNAL(changed(bool)), this, SLOT(moduleChanged(bool)));
KAboutData *about = new KAboutData(I18N_NOOP("kcmkwinoptions"), I18N_NOOP("Window Behavior Configuration Module"), 0, 0, KAboutData::License_GPL,
I18N_NOOP("(c) 1997 - 2002 KWin and KControl Authors"));
about->addAuthor("Matthias Ettrich", 0, "[email protected]");
about->addAuthor("Waldo Bastian", 0, "[email protected]");
about->addAuthor("Cristian Tibirna", 0, "[email protected]");
about->addAuthor("Matthias Kalle Dalheimer", 0, "[email protected]");
about->addAuthor("Daniel Molkentin", 0, "[email protected]");
about->addAuthor("Wynn Wilkes", 0, "[email protected]");
about->addAuthor("Pat Dowler", 0, "[email protected]");
about->addAuthor("Bernd Wuebben", 0, "[email protected]");
about->addAuthor("Matthias Hoelzer-Kluepfel", 0, "[email protected]");
setAboutData(about);
}
示例15: plasmaNetbookAutoStart
KCMDesktopTheme::KCMDesktopTheme( QWidget* parent, const QVariantList& )
: KCModule( parent )
, m_dialog(0)
, m_installProcess(0)
, m_defaultTheme(new Plasma::Theme(this))
{
setQuickHelp( i18n("<h1>Desktop Theme</h1>"
"This module allows you to modify the visual appearance "
"of the desktop."));
setupUi(this);
m_bDesktopThemeDirty = false;
m_bDetailsDirty = false;
KAutostart plasmaNetbookAutoStart("plasma-netbook");
m_isNetbook = plasmaNetbookAutoStart.autostarts();
KGlobal::dirs()->addResourceType("themes", "data", "kstyle/themes");
KAboutData *about =
new KAboutData( I18N_NOOP("KCMDesktopTheme"), 0,
i18n("KDE Desktop Theme Module"),
0, QString(), KAboutData::License_GPL,
i18n("(c) 2002 Karol Szwed, Daniel Molkentin"));
about->addAuthor(i18n("Karol Szwed"), QString(), QStringLiteral("[email protected]"));
about->addAuthor(i18n("Daniel Molkentin"), QString(), QStringLiteral("[email protected]"));
about->addAuthor(i18n("Ralf Nolden"), QString(), QStringLiteral("[email protected]"));
setAboutData( about );
m_newThemeButton->setIcon(QIcon::fromTheme("get-hot-new-stuff"));
m_themeModel = new ThemeModel(this);
m_theme->setModel(m_themeModel);
m_theme->setItemDelegate(new ThemeDelegate(m_theme));
m_theme->setVerticalScrollMode(QAbstractItemView::ScrollPerItem);
connect(m_detailsWidget, SIGNAL(changed()), this, SLOT(detailChanged()));
connect(m_theme->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)),
this, SLOT(setDesktopThemeDirty()));
connect(m_newThemeButton, SIGNAL(clicked()), this, SLOT(getNewThemes()));
connect(m_fileInstallButton, &QPushButton::clicked, this, &KCMDesktopTheme::showFileDialog);
}