• 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
resourceconfigdialog.h
Go to the documentation of this file.
1 /*
2  * resourceconfigdialog.h - KAlarm resource configuration dialog
3  * Program: kalarm
4  * Copyright © 2006 by David Jarvie <djarvie@kde.org>
5  * Based on configdialog.cpp in kdelibs/kresources,
6  * Copyright (c) 2002 Tobias Koenig <tokoe@kde.org>
7  * Copyright (c) 2002 Jan-Pascal van Best <janpascal@vanbest.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License along
20  * with this program; if not, write to the Free Software Foundation, Inc.,
21  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22  */
23 
24 #ifndef RESOURCECONFIGDIALOG_H
25 #define RESOURCECONFIGDIALOG_H
26 
27 #include <kdialog.h>
28 
29 class KLineEdit;
30 class QCheckBox;
31 
32 namespace KRES {
33  class ConfigWidget;
34 }
35 class AlarmResource;
36 
37 class ResourceConfigDialog : public KDialog
38 {
39  Q_OBJECT
40  public:
41  // Resource=0: create new resource
42  ResourceConfigDialog(QWidget* parent, AlarmResource* resource);
43 
44  void setInEditMode(bool value);
45 
46  protected Q_SLOTS:
47  void accept();
48  void setReadOnly(bool value);
49  void slotNameChanged(const QString& text);
50 
51  private:
52  KRES::ConfigWidget* mConfigWidget;
53  AlarmResource* mResource;
54  KLineEdit* mName;
55  QCheckBox* mReadOnly;
56 };
57 
58 #endif
59 
60 // vim: et sw=4:
ResourceConfigDialog::setReadOnly
void setReadOnly(bool value)
Definition: resourceconfigdialog.cpp:115
QWidget
text
virtual QByteArray text(quint32 serialNumber) const =0
KDialog
ResourceConfigDialog
Definition: resourceconfigdialog.h:37
ResourceConfigDialog::ResourceConfigDialog
ResourceConfigDialog(QWidget *parent, AlarmResource *resource)
Definition: resourceconfigdialog.cpp:42
QCheckBox
QString
KLineEdit
ResourceConfigDialog::setInEditMode
void setInEditMode(bool value)
Definition: resourceconfigdialog.cpp:104
ResourceConfigDialog::accept
void accept()
Definition: resourceconfigdialog.cpp:120
ResourceConfigDialog::slotNameChanged
void slotNameChanged(const QString &text)
Definition: resourceconfigdialog.cpp:110
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