knode
knconfigwidgets.cpp
Go to the documentation of this file.
49 KNode::NntpAccountListWidget::NntpAccountListWidget( const KComponentData &inst, QWidget *parent ) :
55 connect( mAccountList, SIGNAL(itemDoubleClicked(QListWidgetItem*)), SLOT(slotEditBtnClicked()) );
70 connect( am, SIGNAL(accountRemoved(KNNntpAccount::Ptr)), SLOT(slotRemoveItem(KNNntpAccount::Ptr)) );
71 connect( am, SIGNAL(accountModified(KNNntpAccount::Ptr)), SLOT(slotUpdateItem(KNNntpAccount::Ptr)) );
291 KMessageBox::sorry(this, i18n("Please enter an arbitrary name for the account and the\nhostname of the news server."));
335 if ( checked ) { // All 3 buttons are connected to this slot, so only the checked one is taken into account.
349 KNode::AppearanceWidget::ColorListItem::ColorListItem( const QString &text, const QColor &color, QListWidget *parent ) :
374 KNode::AppearanceWidget::FontListItem::FontListItem( const QString &text, const QFont &font, QListWidget *parent ) :
402 connect( mColorList, SIGNAL(itemActivated(QListWidgetItem*)), SLOT(slotColItemActivated(QListWidgetItem*)) );
410 c_olChngBtn = new QPushButton( i18nc( "@action:button Run a color selection dialog", "Cha&nge..." ), this );
417 connect( mFontList, SIGNAL(itemActivated(QListWidgetItem*)), SLOT(slotFontItemActivated(QListWidgetItem*)) );
425 f_ntChngBtn = new QPushButton( i18nc( "@action:button Run a font selection dialog", "Chang&e..."), this);
593 KNode::ReadNewsGeneralWidget::ReadNewsGeneralWidget( const KComponentData &inst, QWidget *parent ) :
632 KNode::ReadNewsNavigationWidget::ReadNewsNavigationWidget( const KComponentData &inst, QWidget *parent ) :
645 KNode::ReadNewsViewerWidget::ReadNewsViewerWidget( const KComponentData &inst, QWidget *parent ) :
658 KNode::DisplayedHeadersWidget::DisplayedHeadersWidget( DisplayedHeaders *d, const KComponentData &inst, QWidget *parent ) :
674 a_ddBtn = new QPushButton( i18nc( "@action:button Add a new message header field (open dialog)", "&Add..." ), this );
678 d_elBtn = new QPushButton( i18nc( "@action:button Delete a message header field", "&Delete" ), this);
686 u_pBtn = new QPushButton( i18nc( "@action:button Move an element of a list up", "&Up" ), this );
690 d_ownBtn = new QPushButton( i18nc( "@action:button Move an element of a list down", "Do&wn" ), this );
723 KNode::DisplayedHeadersWidget::HdrItem* KNode::DisplayedHeadersWidget::generateItem(KNDisplayedHeader *h)
771 if(KMessageBox::warningContinueCancel(this, i18n("Really delete this header?"),"",KGuiItem(i18n("&Delete"),"edit-delete"))==KMessageBox::Continue) {
838 KNode::DisplayedHeaderConfDialog::DisplayedHeaderConfDialog( KNDisplayedHeader *h, QWidget *parent )
858 QLabel *label = new QLabel( i18nc( "@label:textbox Edition of a message header name", "H&eader:" ), nameW );
866 label = new QLabel( i18nc( "@label:textbox Edition of the displayed name in the UI of a message header", "Displayed na&me:" ), nameW );
953 n_ameE->setText(i18n(h_drC->itemText(pos).toLocal8Bit())); // I think it's save here, the combobox has only english defaults
1051 d_ownBtn = new QPushButton( i18nc( "@action:button move something down in a list", "Do&wn"), this );
1194 f_ilManager->deleteFilter( static_cast<FilterListItem*>( mFilterList->currentItem() )->filter() );
1201 f_ilManager->editFilter( static_cast<FilterListItem*>( mFilterList->currentItem() )->filter() );
1208 f_ilManager->copyFilter( static_cast<FilterListItem*>( mFilterList->currentItem() )->filter() );
1268 s_epRemBtn->setEnabled( current >= 0 && ( static_cast<FilterListItem*>( mMenuList->item( current ) )->filter() == 0 ) );
1272 //=============================================================================================
1275 KNode::PostNewsTechnicalWidget::PostNewsTechnicalWidget( const KComponentData &inst, QWidget *parent ) :
1302 QString charsetDesc = KGlobal::charsets()->descriptionForEncoding( knGlobals.settings()->charset() );
1376 //===================================================================================================
1421 //===================================================================================================
1424 KNode::PostNewsComposerWidget::PostNewsComposerWidget( const KComponentData &inst, QWidget *parent ) :
1434 //===================================================================================================
1437 KNode::PostNewsSpellingWidget::PostNewsSpellingWidget( const KComponentData &inst, QWidget *parent ) :
1462 //==============================================================================================================
1491 //==============================================================================================================
1546 mExpUnavailable = new QCheckBox( i18n("&Remove articles that are not available on the server"), mExpGroup );
1564 mExpEnabled->setChecked( !mData->d_oExpire ); // make sure the toggled(bool) signal is emitted at least once
void slotServerTextEdited()
Definition: knconfigwidgets.cpp:271
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Definition: knserverinfo.h:34
void slotSelectionChanged()
Definition: knconfigwidgets.cpp:739
void fillRect(const QRectF &rectangle, const QBrush &brush)
static void saveWindowSize(const QString &name, const QSize &s)
Definition: utilities.cpp:205
static QStringList encodings()
Returns a list of encodings along with a description.
Definition: locale.cpp:120
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
void removeMenuItem(KNArticleFilter *f)
Definition: knconfigwidgets.cpp:1150
ReadNewsViewerWidget(const KComponentData &inst, QWidget *parent=0)
Create a new article viewer configuration page.
Definition: knconfigwidgets.cpp:645
virtual QByteArray text(quint32 serialNumber) const =0
void slotFolderCBtoggled(bool b)
Definition: knconfigwidgets.cpp:1659
void slotRemoveItem(KNNntpAccount::Ptr a)
Remove the list view item of the given account.
Definition: knconfigwidgets.cpp:97
void slotDownBtnClicked()
Definition: knconfigwidgets.cpp:1223
DisplayedHeaderConfDialog(KNDisplayedHeader *h, QWidget *parent=0)
Definition: knconfigwidgets.cpp:838
static void restoreWindowSize(const QString &name, QWidget *d, const QSize &defaultSize)
Definition: utilities.cpp:212
void slotAddItem(KNNntpAccount::Ptr a)
Add an list view item for the given account.
Definition: knconfigwidgets.cpp:86
PostNewsComposerWidget(const KComponentData &inst, QWidget *parent=0)
Create a new composer configuration widget.
Definition: knconfigwidgets.cpp:1424
QString & remove(int position, int n)
void addSpacing(int size)
~NntpAccountConfDialog()
Definition: knconfigwidgets.cpp:266
~DisplayedHeaderConfDialog()
Definition: knconfigwidgets.cpp:929
Expirery/cleaup settings (globally or per account/group/folder).
Definition: knconfig.h:132
boost::shared_ptr< KNNntpAccount > Ptr
Shared pointer to a KNNntpAccount.
Definition: knnntpaccount.h:62
KNNntpAccount::Ptr account() const
Returns the account assiciated with this item.
Definition: knconfigwidgets.h:80
FontListItem(const QString &text, const QFont &font, QListWidget *parent=0)
Create a new font list view item.
Definition: knconfigwidgets.cpp:374
void updateItem(KNArticleFilter *f)
Definition: knconfigwidgets.cpp:1118
void setSpacing(int spacing)
void changed()
void slotNameChanged(const QString &)
Definition: knconfigwidgets.cpp:958
Definition: knserverinfo.h:34
void slotUpdateItem(KNNntpAccount::Ptr a)
Update the item of the given account.
Definition: knconfigwidgets.cpp:112
void slotActivated(int)
Definition: knconfigwidgets.cpp:951
void clear()
void setBuddy(QWidget *buddy)
void drawRect(const QRectF &rectangle)
~PostNewsSpellingWidget()
Definition: knconfigwidgets.cpp:1451
AppearanceWidget(const KComponentData &inst, QWidget *parent=0)
Create a new appearance configuration widget.
Definition: knconfigwidgets.cpp:394
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
void slotEditingFinished()
Definition: knconfigwidgets.cpp:282
void append(const T &value)
void setRowStretch(int row, int stretch)
ColorListItem(const QString &text, const QColor &color=Qt::black, QListWidget *parent=0)
Create a new color list view item.
Definition: knconfigwidgets.cpp:349
void slotDownBtnClicked()
Definition: knconfigwidgets.cpp:819
GroupCleanupWidget(Cleanup *data, QWidget *parent=0)
Definition: knconfigwidgets.cpp:1497
void addItem(KNArticleFilter *f)
Definition: knconfigwidgets.cpp:1095
void setPen(const QColor &color)
void slotColCheckBoxToggled(bool b)
Definition: knconfigwidgets.cpp:516
void slotSepAddBtnClicked()
Definition: knconfigwidgets.cpp:1234
void setObjectName(const QString &name)
bool isEmpty() const
void slotColChangeBtnClicked()
Definition: knconfigwidgets.cpp:540
DisplayedHeadersWidget(DisplayedHeaders *d, const KComponentData &inst, QWidget *parent=0)
Definition: knconfigwidgets.cpp:658
void slotAddBtnClicked()
Definition: knconfigwidgets.cpp:750
Definition: kscoringeditor.h:313
Account list widget item.
Definition: knconfigwidgets.h:71
typedef Iterator
ReadNewsGeneralWidget(const KComponentData &inst, QWidget *parent=0)
Create a new general configuration page.
Definition: knconfigwidgets.cpp:593
PrivacyWidget(const KComponentData &inst, QWidget *parent=0)
Definition: knconfigwidgets.cpp:1464
void hide()
QListWidgetItem * item(int row) const
count
Definition: knserverinfo.h:34
void setMargin(int margin)
void slotSelectionChangedFilter()
Definition: knconfigwidgets.cpp:1252
void slotEditBtnClicked()
Definition: knconfigwidgets.cpp:1198
void slotFontCheckBoxToggled(bool b)
Definition: knconfigwidgets.cpp:553
Configuration widget for group expireration.
Definition: knconfigwidgets.h:540
QString right(int n) const
int findItem(QListWidget *l, KNArticleFilter *f)
Returns the index of the list view item associated with the given filter.
Definition: knconfigwidgets.cpp:1176
iterator end()
CleanupWidget(const KComponentData &inst, QWidget *parent=0)
Definition: knconfigwidgets.cpp:1593
void slotDelBtnClicked()
Definition: knconfigwidgets.cpp:766
void removeItem(KNArticleFilter *f)
Definition: knconfigwidgets.cpp:1108
void setIcon(const QIcon &icon)
void setChecked(bool)
void slotColItemActivated(QListWidgetItem *item)
Show color selection dialog for the given item.
Definition: knconfigwidgets.cpp:525
QString & replace(int position, int n, QChar after)
PostNewsSpellingWidget(const KComponentData &inst, QWidget *parent=0)
Definition: knconfigwidgets.cpp:1437
void slotUpBtnClicked()
Definition: knconfigwidgets.cpp:1212
void slotUpBtnClicked()
Definition: knconfigwidgets.cpp:802
FilterListWidget(const KComponentData &inst, QWidget *parent=0)
Definition: knconfigwidgets.cpp:1002
void slotEditBtnClicked()
Definition: knconfigwidgets.cpp:782
void addStretch(int stretch)
Configuration dialog for a single header displayed in the article viewer.
Definition: knconfigwidgets.h:339
void setColumnStretch(int column, int stretch)
void addItem(QLayoutItem *item, int row, int column, int rowSpan, int columnSpan, QFlags< Qt::AlignmentFlag > alignment)
HdrItem * generateItem(KNDisplayedHeader *)
Definition: knconfigwidgets.cpp:723
virtual void slotButtonClicked(int button)
Definition: knconfigwidgets.cpp:287
QListWidget * mHeaderList
Definition: knconfigwidgets.h:317
void slotFontItemActivated(QListWidgetItem *item)
Show font selection dialog for the given item.
Definition: knconfigwidgets.cpp:562
int height() const
int length() const
void addMenuItem(KNArticleFilter *f)
Definition: knconfigwidgets.cpp:1138
QString left(int n) const
void slotSelectionChangedMenu()
Definition: knconfigwidgets.cpp:1262
void slotFontSelectionChanged()
Definition: knconfigwidgets.cpp:584
void slotColSelectionChanged()
Definition: knconfigwidgets.cpp:547
ScoringWidget(const KComponentData &inst, QWidget *parent=0)
Create a new scoring configuration widget.
Definition: knconfigwidgets.cpp:967
NntpAccountConfDialog(KNNntpAccount *a, QWidget *parent=0)
Definition: knconfigwidgets.cpp:186
void setRowMinimumHeight(int row, int minSize)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void slotAddBtnClicked()
Definition: knconfigwidgets.cpp:1185
void slotSepRemBtnClicked()
Definition: knconfigwidgets.cpp:1242
NntpAccountListWidget(const KComponentData &inst, QWidget *parent=0)
Create a new NNTP account list widget.
Definition: knconfigwidgets.cpp:49
iterator begin()
PostNewsTechnicalWidget(const KComponentData &inst, QWidget *parent=0)
Create a new configuration widget for technical posting settings.
Definition: knconfigwidgets.cpp:1275
XHeaderConfDialog(const QString &h=QString(), QWidget *parent=0)
Create a new dialog to edit an additional header.
Definition: knconfigwidgets.cpp:1379
QString text() const
void setSpacing(int spacing)
void slotFontChangeBtnClicked()
Definition: knconfigwidgets.cpp:577
void setText(const QString &text)
void slotCopyBtnClicked()
Definition: knconfigwidgets.cpp:1205
void slotDelBtnClicked()
Definition: knconfigwidgets.cpp:1191
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.