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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • snippets
snippetdialog_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * snippet feature from kdevelop/plugins/snippet/ *
3  * *
4  * Copyright (C) 2007 by Robert Gruber *
5  * rgruber@users.sourceforge.net *
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #ifndef MAILCOMMON_SNIPPETDIALOG_P_H
15 #define MAILCOMMON_SNIPPETDIALOG_P_H
16 
17 #include <kdialog.h>
18 
19 namespace Ui {
20 class SnippetDialog;
21 }
22 
23 class KActionCollection;
24 
25 class QAbstractItemModel;
26 class QModelIndex;
27 
28 class SnippetDialog : public KDialog
29 {
30  Q_OBJECT
31 
32 public:
33  explicit SnippetDialog( KActionCollection *actionCollection, bool inGroupMode, QWidget *parent = 0 );
34  ~SnippetDialog();
35 
36  void setName( const QString &name );
37  QString name() const;
38 
39  void setText( const QString &text );
40  QString text() const;
41 
42  void setKeySequence( const QKeySequence &sequence );
43  QKeySequence keySequence() const;
44 
45  void setGroupModel( QAbstractItemModel *model );
46 
47  void setGroupIndex( const QModelIndex &index );
48  QModelIndex groupIndex() const;
49 
50 private Q_SLOTS:
51  void slotTextChanged();
52  void slotGroupChanged();
53  void slotReturnPressed();
54 
55 private:
56  bool snippetIsValid() const;
57 
58  KActionCollection *mActionCollection;
59  Ui::SnippetDialog *mUi;
60 };
61 
62 #endif
QWidget
KDialog
SnippetDialog::setName
void setName(const QString &name)
Definition: snippetdialog.cpp:54
SnippetDialog::~SnippetDialog
~SnippetDialog()
Definition: snippetdialog.cpp:44
SnippetDialog::setKeySequence
void setKeySequence(const QKeySequence &sequence)
Definition: snippetdialog.cpp:74
SnippetDialog::name
QString name() const
Definition: snippetdialog.cpp:59
QAbstractItemModel
SnippetDialog::setText
void setText(const QString &text)
Definition: snippetdialog.cpp:64
SnippetDialog::text
QString text() const
Definition: snippetdialog.cpp:69
SnippetDialog::keySequence
QKeySequence keySequence() const
Definition: snippetdialog.cpp:79
SnippetDialog::SnippetDialog
SnippetDialog(KActionCollection *actionCollection, bool inGroupMode, QWidget *parent=0)
Definition: snippetdialog.cpp:22
SnippetDialog::groupIndex
QModelIndex groupIndex() const
Definition: snippetdialog.cpp:94
SnippetDialog
Definition: snippetdialog_p.h:28
SnippetDialog::setGroupIndex
void setGroupIndex(const QModelIndex &index)
Definition: snippetdialog.cpp:89
SnippetDialog::setGroupModel
void setGroupModel(QAbstractItemModel *model)
Definition: snippetdialog.cpp:84
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal