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

kontact

  • sources
  • kde-4.14
  • kdepim
  • kontact
  • plugins
  • knotes
knoteseditdialog.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef KNOTESEDITDIALOG_H
19 #define KNOTESEDITDIALOG_H
20 
21 #include <KDialog>
22 #include <KXMLGUIClient>
23 
24 class KNoteEdit;
25 class KToolBar;
26 class KLineEdit;
27 
28 class KNoteEditDialog : public KDialog, virtual public KXMLGUIClient
29 {
30  Q_OBJECT
31 public:
32  explicit KNoteEditDialog( bool readOnly, QWidget *parent = 0 );
33  ~KNoteEditDialog();
34 
35  void setAcceptRichText(bool b);
36  QString text() const;
37 
38  void setText( const QString &text );
39 
40  QString title() const;
41 
42  void setTitle( const QString &text );
43 
44  KNoteEdit *noteEdit() const;
45 
46  void setReadOnly(bool b);
47 
48  void setTabSize(int size);
49 
50  void setAutoIndentMode(bool newmode);
51 
52  void setTextFont(const QFont &font);
53 
54  void setColor(const QColor &fg, const QColor &bg);
55 
56  void setCursorPositionFromStart(int pos);
57 
58  int cursorPositionFromStart() const;
59 private slots:
60  void slotTextChanged(const QString &text);
61 
62 private:
63  void init(bool readOnly);
64  void readConfig();
65  void writeConfig();
66  KLineEdit *mTitleEdit;
67  KNoteEdit *mNoteEdit;
68  KToolBar *mTool;
69 };
70 
71 #endif // KNOTESEDITDIALOG_H
KNoteEditDialog::setCursorPositionFromStart
void setCursorPositionFromStart(int pos)
Definition: knoteseditdialog.cpp:180
QWidget
KNoteEditDialog::cursorPositionFromStart
int cursorPositionFromStart() const
Definition: knoteseditdialog.cpp:185
KNoteEditDialog::setTabSize
void setTabSize(int size)
Definition: knoteseditdialog.cpp:165
KXMLGUIClient
KNoteEditDialog::setReadOnly
void setReadOnly(bool b)
Definition: knoteseditdialog.cpp:110
QFont
KNoteEditDialog::title
QString title() const
Definition: knoteseditdialog.cpp:143
KDialog
KNoteEditDialog::text
QString text() const
Definition: knoteseditdialog.cpp:133
KNoteEditDialog::setColor
void setColor(const QColor &fg, const QColor &bg)
Definition: knoteseditdialog.cpp:99
KNoteEditDialog::setAutoIndentMode
void setAutoIndentMode(bool newmode)
Definition: knoteseditdialog.cpp:170
KNoteEditDialog::setTitle
void setTitle(const QString &text)
Definition: knoteseditdialog.cpp:148
QString
QColor
KNoteEditDialog::~KNoteEditDialog
~KNoteEditDialog()
Definition: knoteseditdialog.cpp:94
KNoteEditDialog::setText
void setText(const QString &text)
Definition: knoteseditdialog.cpp:138
KLineEdit
KNoteEditDialog
Definition: knoteseditdialog.h:28
KNoteEditDialog::setTextFont
void setTextFont(const QFont &font)
Definition: knoteseditdialog.cpp:175
KNoteEditDialog::KNoteEditDialog
KNoteEditDialog(bool readOnly, QWidget *parent=0)
Definition: knoteseditdialog.cpp:38
KNoteEditDialog::noteEdit
KNoteEdit * noteEdit() const
Definition: knoteseditdialog.cpp:155
KNoteEditDialog::setAcceptRichText
void setAcceptRichText(bool b)
Definition: knoteseditdialog.cpp:104
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kontact

Skip menu "kontact"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

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
  • pimprint

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