• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

knode

knfilterconfigwidget.cpp

Go to the documentation of this file.
00001 /*
00002     KNode, the KDE newsreader
00003     Copyright (c) 1999-2005 the KNode authors.
00004     See file AUTHORS for details
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010     You should have received a copy of the GNU General Public License
00011     along with this program; if not, write to the Free Software Foundation,
00012     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
00013 */
00014 
00015 #include <QLabel>
00016 //Added by qt3to4:
00017 #include <QVBoxLayout>
00018 
00019 #include <klocale.h>
00020 
00021 #include "knstringfilter.h"
00022 #include "knstatusfilter.h"
00023 #include "knrangefilter.h"
00024 #include "knfilterconfigwidget.h"
00025 
00026 using namespace KNode;
00027 
00028 KNFilterConfigWidget::KNFilterConfigWidget( QWidget *parent ) :
00029   QTabWidget( parent )
00030 {
00031   QWidget *sf, *idW, *add;
00032   sf=new QWidget(this);
00033   QVBoxLayout *sfL=new QVBoxLayout(sf);
00034   sfL->setSpacing(5);
00035   sfL->setMargin(8);
00036   subject = new StringFilterWidget( i18n("Subject"), sf );
00037   sfL->addWidget(subject);
00038   from = new StringFilterWidget( i18n("From"), sf );
00039   sfL->addWidget(from);
00040   QLabel *l = new QLabel(i18n("The following placeholders are supported:\n%MYNAME=own name, %MYEMAIL=own email address"),sf);
00041   sfL->addWidget(l);
00042   sfL->addStretch(1);
00043   addTab(sf, i18n("Subject && &From"));
00044 
00045   idW=new QWidget(this);
00046   QVBoxLayout *idL=new QVBoxLayout(idW);
00047   idL->setSpacing(5);
00048   idL->setMargin(8);
00049   messageId = new StringFilterWidget( i18n("Message-ID"), idW );
00050   idL->addWidget(messageId);
00051   references = new StringFilterWidget( i18n("References"), idW );
00052   idL->addWidget(references);
00053   idL->addStretch(1);
00054   addTab(idW, i18n("M&essage-IDs"));
00055 
00056   status = new StatusFilterWidget( this );
00057   addTab(status, i18n("&Status"));
00058 
00059   add=new QWidget(this);
00060   QVBoxLayout *addL=new QVBoxLayout(add);
00061   addL->setSpacing(5);
00062   addL->setMargin(8);
00063   score = new RangeFilterWidget( i18n("Score"), -99999, 99999, add );
00064   addL->addWidget(score);
00065   age = new RangeFilterWidget( i18n("Age"), 0, 999, add, i18n(" days") );
00066   addL->addWidget(age);
00067   lines = new RangeFilterWidget( i18n("Lines"), 0, 99999, add );
00068   addL->addWidget(lines);
00069   addL->addStretch(1);
00070   addTab(add, i18n("&Additional"));
00071 }
00072 
00073 
00074 KNFilterConfigWidget::~KNFilterConfigWidget()
00075 {
00076 }
00077 
00078 
00079 void KNFilterConfigWidget::reset()
00080 {
00081   from->clear();
00082   subject->clear();
00083   messageId->clear();
00084   references->clear();
00085   age->clear();
00086   lines->clear();
00087   score->clear();
00088   status->clear();
00089 }
00090 
00091 
00092 void KNFilterConfigWidget::setStartFocus()
00093 {
00094   subject->setStartFocus();
00095 }
00096 
00097 // -----------------------------------------------------------------------------
00098 
00099 #include "knfilterconfigwidget.moc"

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal