knode
knmainwidget.cpp
Go to the documentation of this file.
117 mArticleViewer = new ArticleWidget( mPrimarySplitter, client, actionCollection(), true/*main viewer*/ );
204 QDBusConnection::sessionBus().registerObject( "/", this, QDBusConnection::ExportScriptableSlots );
895 articles.\nDo you want to quit anyway?"), QString(), KStandardGuiItem::quit(), KStandardGuiItem::cancel())
1066 a_ctArtOpenNewWindow->setEnabled( selectedArticle && (f_olManager->currentFolder()!=f_olManager->outbox())
1207 enabled=( selectedFolder!=0 && !selectedFolder->isRootFolder() && !selectedFolder->isStandardFolder() );
1231 if ( static_cast<KNCollectionViewItem*>( i )->collection()->type() == KNCollection::CTnntpAccount ) {
1232 a_ccManager->accountRenamed( boost::static_pointer_cast<KNNntpAccount>( static_cast<KNCollectionViewItem*>( i )->collection() ) );
1267 } else if ( static_cast<KNCollectionViewItem*>( i )->collection()->type() == KNCollection::CTfolder ) {
1268 if ( boost::static_pointer_cast<KNFolder>( static_cast<KNCollectionViewItem*>( i )->collection() )->isRootFolder() ) {
1291 if ((art->type()==KNArticle::ATlocal) && ((f_olManager->currentFolder()==f_olManager->outbox())||
1462 i18n("Do you really want to unsubscribe from %1?", g_rpManager->currentGroup()->groupname()), QString(), KGuiItem(i18n("Unsubscribe")), KStandardGuiItem::cancel()))
1493 i18n( "Enter how many articles should be marked unread:" ), groupLength, 1, groupLength, 1, &ok, this );
1537 i18n("Do you really want to delete this folder and all its children?"),"",KGuiItem(i18n("&Delete"),"edit-delete")) ) {
1584 i18n("This folder cannot be emptied at the moment\nbecause some of its articles are currently in use.") );
1588 this, i18n("Do you really want to delete all articles in %1?", f_olManager->currentFolder()->name()),"",KGuiItem(i18n("&Delete"),"edit-delete")) )
1623 int newCol = KNHelper::selectDialog(this, i18n("Select Sort Column"), a_ctArtSortHeaders->items(), a_ctArtSortHeaders->currentItem());
1764 KNRemoteArticle::Ptr ra = boost::static_pointer_cast<KNRemoteArticle>( mArticleViewer->article() );
1777 KNRemoteArticle::Ptr ra = boost::static_pointer_cast<KNRemoteArticle>( mArticleViewer->article() );
1897 if ( id.indexOf( QRegExp("<*>", Qt::CaseInsensitive, QRegExp::Wildcard) ) == -1 ) // add "<>" when necessary
KDEPIM_EXPORT void saveState(QWidget *widget, KConfigGroup &config)
KToggleAction * a_ctArtToggleShowThreads
Definition: knmainwidget.h:279
void expireGroupNow(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:520
void slotArticleSelected(Q3ListViewItem *)
Definition: knmainwidget.cpp:1039
Header view, displays the article listing of the currently selected news group or folder...
Definition: headerview.h:130
void writeConfig()
write config settings (call only for the main viewer)
Definition: articlewidget.cpp:362
Definition: knarticle.h:45
static void saveWindowSize(const QString &name, const QSize &s)
Definition: utilities.cpp:205
bool jobsPending() const
Returns true if we are waiting for at least one job to be completed.
Definition: knjobdata.h:58
KAction * a_ctNavNextUnreadThread
Definition: knmainwidget.h:229
void showGroupDialog(KNNntpAccount::Ptr a, QWidget *parent=0)
Definition: kngroupmanager.cpp:401
void reorganizeGroup(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:545
Definition: kngroup.h:50
void slotCollectionRenamed(QTreeWidgetItem *i)
Called when a collection is renamed.
Definition: knmainwidget.cpp:1223
void checkAll(KNNntpAccount::Ptr a, bool silent=false)
Definition: kngroupmanager.cpp:573
bool removeAccount(KNNntpAccount::Ptr a=KNNntpAccount::Ptr())
Remove an existing account.
Definition: knaccountmanager.cpp:132
virtual QByteArray text(quint32 serialNumber) const =0
KNGroup::Ptr group(const QString &gName, const KNServerInfo::Ptr s)
Returns a group named gName in the server s, or null if none is found.
Definition: kngroupmanager.cpp:338
void setAllNotNew()
mark all articles in the current group as not new
Definition: knarticlemanager.cpp:735
void slotHdrViewSortingChanged(int i)
Definition: knmainwidget.cpp:1304
void getSelectedThreads(KNRemoteArticle::List &l)
Definition: knmainwidget.cpp:1003
Q_SCRIPTABLE void expireArticlesInCurrentGroup()
Expire the articles in the current group.
Definition: knmainwidget.cpp:2035
static void restoreWindowSize(const QString &name, QWidget *d, const QSize &defaultSize)
Definition: utilities.cpp:212
void setRead(KNRemoteArticle::List &l, bool r=true, bool handleXPosts=true)
Definition: knarticlemanager.cpp:650
bool unsubscribeGroup(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:454
virtual void paletteChange(const QPalette &)
Definition: knmainwidget.cpp:963
void createPosting(KNNntpAccount::Ptr a)
Definition: knarticlefactory.cpp:67
Expirery/cleaup settings (globally or per account/group/folder).
Definition: knconfig.h:132
void setCurrentFolder(KNFolder::Ptr f)
Definition: knfoldermanager.cpp:77
boost::shared_ptr< KNNntpAccount > Ptr
Shared pointer to a KNNntpAccount.
Definition: knnntpaccount.h:62
KNNntpAccount::Ptr currentAccount() const
Returns the current account.
Definition: knaccountmanager.h:73
void slotArticleSelectionChanged()
Definition: knmainwidget.cpp:1077
Q_SCRIPTABLE void postArticle()
Open the editor to post a new article in the selected group.
Definition: knmainwidget.cpp:2023
void slotArtToggleShowThreads()
Definition: knmainwidget.cpp:1674
void setView(KNHeaderView *v)
Allow to delay the setup of UI elements, since the knode part may not be available when the config di...
Definition: knarticlemanager.cpp:1100
KToggleAction * a_ctToggleQuickSearch
Definition: knmainwidget.h:308
void subscribeGroup(const KNGroupInfo *gi, KNNntpAccount::Ptr a)
Definition: kngroupmanager.cpp:442
Q_SCRIPTABLE void markAsUnread()
Mark the current article as unread.
Definition: knmainwidget.cpp:2059
bool toggleWatched(KNRemoteArticle::List &l)
Definition: knarticlemanager.cpp:753
Q_SCRIPTABLE bool handleCommandLine()
Process command-line options.
Definition: knmainwidget.cpp:2100
bool deleteArticles(KNLocalArticle::List &l, bool ask=true)
Definition: knarticlemanager.cpp:570
bool atBottom() const
checks whether the readers is scrolled down to the bottom
Definition: articlewidget.cpp:1145
Definition: knarticle.h:46
Q_SCRIPTABLE void nextUnreadArticle()
Move to the next unread article.
Definition: knmainwidget.cpp:1988
void checkGroupForNewHeaders(KNGroup::Ptr g=KNGroup::Ptr())
Definition: kngroupmanager.cpp:506
void compactFolder(KNFolder::Ptr f)
Definition: knfoldermanager.cpp:264
KNMainWidget(KXMLGUIClient *client, QWidget *parent)
Definition: knmainwidget.cpp:85
QMenu * popupMenu(const QString &name) const
Returns the menu from knodeui.rc whose name is name.
Definition: knmainwidget.cpp:1933
Q_SCRIPTABLE void markThreadAsUnread()
Mark the current thread as unread.
Definition: knmainwidget.cpp:2071
void setStatusMsg(const QString &=QString(), int id=SB_MAIN)
Definition: knmainwidget.cpp:261
void setActive(QTreeWidgetItem *item)
Selects item and set it the current item.
Definition: kncollectionview.cpp:276
bool firstStart()
checks if run for the first time, sets some global defaults (email configuration) ...
Definition: knmainwidget.cpp:837
Q_SCRIPTABLE void markThreadAsRead()
Mark the current thread as read.
Definition: knmainwidget.cpp:2065
KNFolder::Ptr newFolder(KNFolder::Ptr p)
Definition: knfoldermanager.cpp:139
KDEPIM_EXPORT void restoreState(QWidget *widget, const KConfigGroup &config)
void slotTextChanged(const QString &)
Definition: knmainwidget.cpp:1967
KNNntpAccount::Ptr first() const
Returns the first account (used as fallback sometimes).
Definition: knaccountmanager.cpp:199
void setCurrentGroup(KNGroup::Ptr g)
Definition: kngroupmanager.cpp:555
void sendArticles(KNLocalArticle::List &l, bool now=true)
Definition: knarticlefactory.cpp:590
void editProperties(KNNntpAccount::Ptr a=KNNntpAccount::Ptr())
Show the properties dialog for the given account.
Definition: knaccountmanager.cpp:180
Definition: kncollection.h:33
void slotArticleRMB(K3ListView *, Q3ListViewItem *i, const QPoint &p)
Definition: knmainwidget.cpp:1239
void setStatusHelpMsg(const QString &text)
Definition: knmainwidget.cpp:283
void showGroupProperties(KNGroup::Ptr g=KNGroup::Ptr())
Shows the property dialog of g or if null, the properties of the currentGroup().
Definition: kngroupmanager.cpp:498
virtual void setSorting(int column, bool ascending=true)
Definition: headerview.cpp:206
void setAllThreadsOpen(bool b=true)
Definition: knarticlemanager.cpp:367
boost::shared_ptr< KNRemoteArticle > Ptr
Shared pointer to a KNRemoteArticle. To be used instead of raw KNRemoteArticle*.
Definition: knarticle.h:107
boost::shared_ptr< KNCollection > Ptr
Shared pointer to a KNCollection.
Definition: kncollection.h:40
void setAllRead(bool read=true, int lastcount=-1)
Definition: knarticlemanager.cpp:604
boost::shared_ptr< KNArticle > Ptr
Shared pointer to a KNArticle. To be used instead of raw KNArticle*.
Definition: knarticle.h:39
void setCurrentAccount(KNNntpAccount::Ptr a)
Sets the current account.
Definition: knaccountmanager.cpp:95
bool toggleIgnored(KNRemoteArticle::List &l)
Definition: knarticlemanager.cpp:807
void importFromMBox(KNFolder::Ptr f)
Definition: knfoldermanager.cpp:293
FetchArticleIdDlg(QWidget *parent)
Definition: knmainwidget.cpp:1943
Definition: kncollection.h:34
KNNntpAccount::List accounts() const
Returns the list of all accounts.
Definition: knaccountmanager.h:77
void slotNavNextUnreadThread()
Definition: knmainwidget.cpp:1326
Q_SCRIPTABLE void fetchHeaders()
Fetch all the new article headers.
Definition: knmainwidget.cpp:2011
void accountRenamed(KNNntpAccount::Ptr a=KNNntpAccount::Ptr())
Definition: knaccountmanager.cpp:190
static int selectDialog(QWidget *parent, const QString &caption, const QStringList &options, int initialValue)
list selection dialog, used instead of a popup menu when a select action is called via the keyboard...
Definition: utilities.cpp:163
void getSelectedArticles(KNArticle::List &l)
Definition: knmainwidget.cpp:982
KNRemoteArticle represents an article, whos body has to be retrieved from a remote host or from the l...
Definition: knarticle.h:103
KNGroup::Ptr firstGroupOfAccount(const KNServerInfo::Ptr s)
Returns the first group in the server s, or null if it is empty.
Definition: kngroupmanager.cpp:348
void openURL(const KUrl &url)
handle URL given as command-line argument
Definition: knmainwidget.cpp:367
void rescoreArticles(KNRemoteArticle::List &l)
Definition: knarticlemanager.cpp:873
Q_SCRIPTABLE void fetchHeadersInCurrentGroup()
Fetch the new headers in the selected groups.
Definition: knmainwidget.cpp:2029
KActionCollection * actionCollection() const
Definition: knmainwidget.cpp:1928
QTreeWidgetItem * firstItem() const
Convenience function that returns the first item in the view.
Definition: treewidget.cpp:311
Definition: kncollection.h:33
void slotOpenArticle(Q3ListViewItem *item)
Open selected article in own composer/reader window.
Definition: knmainwidget.cpp:1283
int labelColumnIndex() const
Returns the logical index of the "Label" column or -1 if such a column has not been added (yet)...
Definition: foldertreewidget.h:108
Helper classes for the group selection dialog, contains info about a newsgroup (name, description)
Definition: kngroupmanager.h:34
Q_SCRIPTABLE void markAllAsUnread()
Mark all the articles in the current group as unread.
Definition: knmainwidget.cpp:2047
Q_SCRIPTABLE void nextUnreadThread()
Move to the next unread thread.
Definition: knmainwidget.cpp:1994
void slotCollectionSelected()
Called when the selection collection changed.
Definition: knmainwidget.cpp:1101
void slotCollectionRMB(QTreeWidgetItem *i, const QPoint &pos)
Display a menu on items of the collections view.
Definition: knmainwidget.cpp:1258
Q_SCRIPTABLE void markAllAsRead()
Mark all the articles in the current group as read.
Definition: knmainwidget.cpp:2041
void signalCaptionChangeRequest(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.