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

kalarm

Undo Class Reference

#include <undo.h>

Inheritance diagram for Undo:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 35 of file undo.h.


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, int id)
static QString actionText (Type)
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 (int id, QWidget *parent, const QString &action)
static bool redo (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 (int id, QWidget *parent, const QString &action)
static bool undo (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)

Classes

struct  Event
class  EventList

Member Typedef Documentation

typedef AutoDeleteList<UndoItem> Undo::List

Definition at line 83 of file undo.h.


Member Enumeration Documentation

enum Undo::Type

Enumerator:
NONE 
UNDO 
REDO 

Definition at line 39 of file undo.h.


Member Function Documentation

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

Definition at line 472 of file undo.cpp.

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

Definition at line 463 of file undo.cpp.

void Undo::add ( UndoItem *  item,
bool  undo 
) [static, protected]

Definition at line 411 of file undo.cpp.

void Undo::changed ( const QString &  undo,
const QString &  redo 
) [signal]

void Undo::clear (  )  [static]

Definition at line 250 of file undo.cpp.

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

Definition at line 481 of file undo.cpp.

void Undo::emitChanged (  )  [static]

Definition at line 547 of file undo.cpp.

static bool Undo::haveRedo (  )  [inline, static]

Definition at line 75 of file undo.h.

static bool Undo::haveUndo (  )  [inline, static]

Definition at line 74 of file undo.h.

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

Definition at line 493 of file undo.cpp.

Undo * Undo::instance (  )  [static]

Definition at line 240 of file undo.cpp.

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

Definition at line 71 of file undo.h.

static bool Undo::redo ( QWidget *  parent,
const QString &  action 
) [inline, static]

Definition at line 69 of file undo.h.

void Undo::remove ( UndoItem *  item,
bool  undo 
) [static, protected]

Definition at line 435 of file undo.cpp.

void Undo::replace ( UndoItem *  old,
UndoItem *  New 
) [static, protected]

Definition at line 445 of file undo.cpp.

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

Definition at line 268 of file undo.cpp.

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

Definition at line 274 of file undo.cpp.

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

Definition at line 293 of file undo.cpp.

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

Definition at line 300 of file undo.cpp.

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

Definition at line 286 of file undo.cpp.

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

Definition at line 314 of file undo.cpp.

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

Definition at line 320 of file undo.cpp.

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

Definition at line 67 of file undo.h.

static bool Undo::undo ( QWidget *  parent,
const QString &  action 
) [inline, static]

Definition at line 65 of file undo.h.


The documentation for this class was generated from the following files:
  • undo.h
  • undo.cpp

kalarm

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

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal