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

kalarm

Classes | Public Types | Signals | Static Public Member Functions | Static Protected Member Functions | List of all members
Undo Class Reference

#include <undo.h>

Inheritance diagram for Undo:
Inheritance graph
[legend]

Classes

struct  Event
 
class  EventList
 

Public Types

typedef AutoDeleteList< UndoItem > List
 
enum  Type { NONE, UNDO, REDO }
 

Signals

void changed (const QString &undo, const QString &redo)
 

Static Public Member Functions

static QString actionText (Type)
 
static QString actionText (Type, int id)
 
static void clear ()
 
static QString description (Type, int id)
 
static void emitChanged ()
 
static bool haveRedo ()
 
static bool haveUndo ()
 
static QList< int > ids (Type)
 
static Undo * instance ()
 
static bool redo (QWidget *parent, const QString &action)
 
static bool redo (int id, QWidget *parent, const QString &action)
 
static void saveAdd (const KAEvent &, AlarmResource *, const QString &name=QString())
 
static void saveAdds (const EventList &, const QString &name=QString())
 
static void saveDelete (const Event &, const QString &name=QString())
 
static void saveDeletes (const EventList &, const QString &name=QString())
 
static void saveEdit (const Event &oldEvent, const KAEvent &newEvent)
 
static void saveReactivate (const KAEvent &, AlarmResource *, const QString &name=QString())
 
static void saveReactivates (const EventList &, const QString &name=QString())
 
static bool undo (QWidget *parent, const QString &action)
 
static bool undo (int id, QWidget *parent, const QString &action)
 

Static Protected Member Functions

static void add (UndoItem *, bool undo)
 
static void remove (UndoItem *, bool undo)
 
static void replace (UndoItem *old, UndoItem *New)
 

Detailed Description

Definition at line 43 of file undo.h.

Member Typedef Documentation

typedef AutoDeleteList<UndoItem> Undo::List

Definition at line 111 of file undo.h.

Member Enumeration Documentation

enum Undo::Type
Enumerator
NONE 
UNDO 
REDO 

Definition at line 47 of file undo.h.

Member Function Documentation

QString Undo::actionText ( Undo::Type  type)
static

Definition at line 506 of file undo.cpp.

QString Undo::actionText ( Undo::Type  type,
int  id 
)
static

Definition at line 515 of file undo.cpp.

void Undo::add ( UndoItem *  item,
bool  undo 
)
staticprotected

Definition at line 454 of file undo.cpp.

void Undo::changed ( const QString &  undo,
const QString &  redo 
)
signal
void Undo::clear ( )
static

Definition at line 293 of file undo.cpp.

QString Undo::description ( Undo::Type  type,
int  id 
)
static

Definition at line 524 of file undo.cpp.

void Undo::emitChanged ( )
static

Definition at line 590 of file undo.cpp.

static bool Undo::haveRedo ( )
inlinestatic

Definition at line 103 of file undo.h.

static bool Undo::haveUndo ( )
inlinestatic

Definition at line 102 of file undo.h.

QList< int > Undo::ids ( Undo::Type  type)
static

Definition at line 536 of file undo.cpp.

Undo * Undo::instance ( )
static

Definition at line 283 of file undo.cpp.

static bool Undo::redo ( QWidget *  parent,
const QString &  action 
)
inlinestatic

Definition at line 97 of file undo.h.

static bool Undo::redo ( int  id,
QWidget *  parent,
const QString &  action 
)
inlinestatic

Definition at line 99 of file undo.h.

void Undo::remove ( UndoItem *  item,
bool  undo 
)
staticprotected

Definition at line 478 of file undo.cpp.

void Undo::replace ( UndoItem *  old,
UndoItem *  New 
)
staticprotected

Definition at line 488 of file undo.cpp.

void Undo::saveAdd ( const KAEvent &  ,
AlarmResource *  ,
const QString &  name = QString() 
)
static

Definition at line 311 of file undo.cpp.

void Undo::saveAdds ( const EventList &  events,
const QString &  name = QString() 
)
static

Definition at line 317 of file undo.cpp.

void Undo::saveDelete ( const Event &  event,
const QString &  name = QString() 
)
static

Definition at line 336 of file undo.cpp.

void Undo::saveDeletes ( const EventList &  events,
const QString &  name = QString() 
)
static

Definition at line 343 of file undo.cpp.

void Undo::saveEdit ( const Event &  oldEvent,
const KAEvent &  newEvent 
)
static

Definition at line 329 of file undo.cpp.

void Undo::saveReactivate ( const KAEvent &  ,
AlarmResource *  ,
const QString &  name = QString() 
)
static

Definition at line 357 of file undo.cpp.

void Undo::saveReactivates ( const EventList &  events,
const QString &  name = QString() 
)
static

Definition at line 363 of file undo.cpp.

static bool Undo::undo ( QWidget *  parent,
const QString &  action 
)
inlinestatic

Definition at line 93 of file undo.h.

static bool Undo::undo ( int  id,
QWidget *  parent,
const QString &  action 
)
inlinestatic

Definition at line 95 of file undo.h.


The documentation for this class was generated from the following files:
  • undo.h
  • undo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:59:11 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

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