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

kalarm

  • sources
  • kde-4.14
  • kdepim
  • kalarm
editdlg_p.h
Go to the documentation of this file.
1 /*
2  * editdlg_p.h - private classes for editdlg.cpp
3  * Program: kalarm
4  * Copyright © 2003-2005,2007-2009 by David Jarvie <djarvie@kde.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef EDITDLG_P_H
22 #define EDITDLG_P_H
23 
24 #include <ktextedit.h>
25 #include <ktabwidget.h>
26 #include <QFrame>
27 class QDragEnterEvent;
28 class QShowEvent;
29 class CheckBox;
30 class LineEdit;
31 
32 
33 class PageFrame : public QFrame
34 {
35  Q_OBJECT
36  public:
37  explicit PageFrame(QWidget* parent = 0) : QFrame(parent) { }
38 
39  protected:
40  virtual void showEvent(QShowEvent*) { emit shown(); }
41 
42  signals:
43  void shown();
44 };
45 
46 class TextEdit : public KTextEdit
47 {
48  Q_OBJECT
49  public:
50  explicit TextEdit(QWidget* parent);
51  virtual QSize sizeHint() const { return minimumSizeHint(); }
52  virtual QSize minimumSizeHint() const { return minimumSize(); }
53 
54  protected:
55  virtual void dragEnterEvent(QDragEnterEvent*);
56 };
57 
58 class CommandEdit : public QWidget
59 {
60  Q_OBJECT
61  public:
62  explicit CommandEdit(QWidget* parent);
63  bool isScript() const;
64  void setScript(bool);
65  QString text() const;
66  QString text(EditAlarmDlg*, bool showErrorMessage) const;
67  void setText(const AlarmText&);
68  void setReadOnly(bool);
69  virtual QSize minimumSizeHint() const;
70  virtual QSize sizeHint() const { return minimumSizeHint(); }
71 
72  signals:
73  void scriptToggled(bool);
74  void changed(); // emitted when any changes occur
75 
76  private slots:
77  void slotCmdScriptToggled(bool);
78 
79  private:
80  CheckBox* mTypeScript; // entering a script
81  LineEdit* mCommandEdit; // command line edit box
82  TextEdit* mScriptEdit; // script edit box
83 };
84 
85 #endif // EDITDLG_P_H
86 
87 // vim: et sw=4:
QWidget
CommandEdit::isScript
bool isScript() const
Definition: editdlgtypes.cpp:1757
CommandEdit::minimumSizeHint
virtual QSize minimumSizeHint() const
Definition: editdlgtypes.cpp:1836
PageFrame::showEvent
virtual void showEvent(QShowEvent *)
Definition: editdlg_p.h:40
CommandEdit::changed
void changed()
TextEdit::TextEdit
TextEdit(QWidget *parent)
Definition: editdlgtypes.cpp:1852
PageFrame
Definition: editdlg_p.h:33
CommandEdit::sizeHint
virtual QSize sizeHint() const
Definition: editdlg_p.h:70
CommandEdit::setText
void setText(const AlarmText &)
Definition: editdlgtypes.cpp:1765
LineEdit
CheckBox
CommandEdit::text
QString text() const
Definition: editdlgtypes.cpp:1779
QShowEvent
TextEdit::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *)
Definition: editdlgtypes.cpp:1860
TextEdit::minimumSizeHint
virtual QSize minimumSizeHint() const
Definition: editdlg_p.h:52
QString
PageFrame::shown
void shown()
QSize
QFrame
CommandEdit::CommandEdit
CommandEdit(QWidget *parent)
Definition: editdlgtypes.cpp:1723
QDragEnterEvent
EditAlarmDlg
Definition: editdlg.h:60
CommandEdit::setScript
void setScript(bool)
Definition: editdlgtypes.cpp:1752
CommandEdit
Definition: editdlg_p.h:58
TextEdit::sizeHint
virtual QSize sizeHint() const
Definition: editdlg_p.h:51
CommandEdit::scriptToggled
void scriptToggled(bool)
CommandEdit::setReadOnly
void setReadOnly(bool)
Definition: editdlgtypes.cpp:1805
PageFrame::PageFrame
PageFrame(QWidget *parent=0)
Definition: editdlg_p.h:37
QObject::parent
QObject * parent() const
TextEdit
Definition: editdlg_p.h:46
KTextEdit
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

KDE's Doxygen guidelines are available online.

kalarm

Skip menu "kalarm"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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