kalarm
find.cpp
Go to the documentation of this file.
59 static long FIND_KALARM_OPTIONS = FIND_LIVE | FIND_ARCHIVED | FIND_MESSAGE | FIND_FILE | FIND_COMMAND | FIND_EMAIL | FIND_AUDIO;
65 FindDlg(QWidget* parent, long options = 0, const QStringList& findStrings = QStringList(), bool hasSelection = false)
86 connect(mListView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), SLOT(slotSelectionChanged()));
109 mOptions = FIND_LIVE | FIND_ARCHIVED | FIND_MESSAGE | FIND_FILE | FIND_COMMAND | FIND_EMAIL | FIND_AUDIO;
115 && (static_cast<AlarmListFilterModel*>(mListView->model())->statusFilter() & CalEvent::ARCHIVED);
128 mDialog = new FindDlg(mListView, mOptions, mHistory, (mListView->selectionModel()->selectedRows().count() > 1));
153 mArchived->setWhatsThis(i18nc("@info:whatsthis", "Check to include archived alarms in the search. "
161 mMessageType = new QCheckBox(i18nc("@option:check Alarm action = text display", "Text"), group);
163 mMessageType->setWhatsThis(i18nc("@info:whatsthis", "Check to include text message alarms in the search."));
168 mFileType->setWhatsThis(i18nc("@info:whatsthis", "Check to include file alarms in the search."));
173 mCommandType->setWhatsThis(i18nc("@info:whatsthis", "Check to include command alarms in the search."));
178 mEmailType->setWhatsThis(i18nc("@info:whatsthis", "Check to include email alarms in the search."));
183 mAudioType->setWhatsThis(i18nc("@info:whatsthis", "Check to include audio alarms in the search."));
289 long options = mOptions & (KFind::WholeWordsOnly | KFind::CaseSensitive | KFind::RegularExpression);
440 QString msg = forward ? i18nc("@info", "<para>End of alarm list reached.</para><para>Continue from the beginning?</para>")
441 : i18nc("@info", "<para>Beginning of alarm list reached.</para><para>Continue from the end?</para>");
442 if (KAMessageBox::questionYesNo(mListView, msg, QString(), KStandardGuiItem::cont(), KStandardGuiItem::cancel()) == KMessageBox::Yes)
451 mNoCurrentItem = false; // restart from the currently highlighted alarm if Find Next etc selected
virtual int rowCount(const QModelIndex &parent) const =0
Definition: find.cpp:52
Definition: alarmlistfiltermodel.h:31
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
QModelIndex currentIndex() const
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
QItemSelectionModel * selectionModel() const
virtual QByteArray text(quint32 serialNumber) const =0
Definition: eventlistview.h:37
virtual QSize sizeHint() const
Definition: alarmlistview.h:31
Definition: find.cpp:54
QModelIndex indexBelow(const QModelIndex &index) const
Definition: find.cpp:53
void setSpacing(int spacing)
bool isNull() const
virtual bool event(QEvent *e)
void clear()
bool isValid() const
Definition: find.cpp:55
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
virtual void select(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
QModelIndexList selectedRows(int column) const
void hide()
void setMargin(int margin)
void setFixedSize(const QSize &s)
virtual void scrollTo(const QModelIndex &index, ScrollHint hint)
void setChecked(bool)
void setWhatsThis(const QString &)
static void sorry(QWidget *parent, const QString &text, const QString &caption=QString(), Options options=Options(Notify|WindowModal))
void setColumnStretch(int column, int stretch)
void active(bool)
Definition: find.cpp:51
Definition: find.cpp:57
void setCurrentIndex(const QModelIndex &index, QFlags< QItemSelectionModel::SelectionFlag > command)
void show()
QAbstractItemModel * model() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QModelIndex indexAbove(const QModelIndex &index) const
void destroyed(QObject *obj)
void setSpacing(int spacing)
Definition: find.cpp:56
static int questionYesNo(QWidget *parent, const QString &text, const QString &caption=QString(), const KGuiItem &buttonYes=KStandardGuiItem::yes(), const KGuiItem &buttonNo=KStandardGuiItem::no(), const QString &dontAskAgainName=QString(), Options options=Options(Notify|WindowModal))
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 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:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.