Blokkal
an Extendable KDE Blogging Client
SourceForge.net Logo

Blokkal::Ui::StdAction Class Reference

Provides standard actions. More...

#include <stdaction.h>

List of all members.


Public Types

enum  StdActions {
  Bold, Italic, Underline, Strike,
  Link, Image, Post
}

Static Public Member Functions

static KAction * bold (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="edit_bold")
static KAction * create (Blokkal::Ui::StdAction::StdActions id, const char *name, const QObject *receiver, const char *slot, KActionCollection *parent=0)
static KAction * image (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="edit_insertimage")
static KAction * italic (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="edit_italic")
static KAction * link (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="edit_insertlink")
static KAction * post (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="file_postentry")
static KAction * preferences (KActionCollection *parent=0, const char *name=KStandardAction::name(KStandardAction::Preferences))
static KAction * strike (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="edit_strike")
static KAction * underline (const QObject *receiver, const char *slot, KActionCollection *parent=0, const char *name="edit_underline")

Detailed Description

Provides standard actions.

Provides standard actions

Author:
Martin Mueller <orvio@orvio.de>

Definition at line 44 of file stdaction.h.


Member Enumeration Documentation

Enumeration for standard actions.

Enumerator:
Bold  For actions that make a text bold.
Italic  For actions that make a text italic.
Underline  For actions that make a text underlined.
Strike  For actions that make a striked out.
Link  For actions that create links.
Image  For actions that insert images.
Post  For actions that post an entry to the server.

Definition at line 49 of file stdaction.h.


Member Function Documentation

KAction * Blokkal::Ui::StdAction::bold ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "edit_bold" 
) [static]

Creates a new "Bold"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 96 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::create ( Blokkal::Ui::StdAction::StdActions  id,
const char *  name,
const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0 
) [static]

Creates a new Action.

Parameters:
id the standard action to create
name the action name
receiver the receiver of the signal
slot the slot to call
parent the parent collection
Returns:
the standard action

Definition at line 37 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::image ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "edit_insertimage" 
) [static]

Creates a new "Insert Image"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 121 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::italic ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "edit_italic" 
) [static]

Creates a new "Italic"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 101 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::link ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "edit_insertlink" 
) [static]

Creates a new "Insert Link"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 116 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::post ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "file_postentry" 
) [static]

Creates a new "Post Entry"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 126 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::preferences ( KActionCollection *  parent = 0,
const char *  name = KStandardAction::name( KStandardAction::Preferences ) 
) [static]

Returns an action to show the Blokkal preferences dialog.

Parameters:
parent the parent collection
name the action name, if 0 the standard name from KStdAction is used
Returns:
an action to show the Blokkal preferences dialog

Definition at line 131 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::strike ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "edit_strike" 
) [static]

Creates a new "Strike out"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 111 of file stdaction.cpp.

KAction * Blokkal::Ui::StdAction::underline ( const QObject *  receiver,
const char *  slot,
KActionCollection *  parent = 0,
const char *  name = "edit_underline" 
) [static]

Creates a new "Underline"-Action

Parameters:
receiver the receiver of the signal
slot the slot to call
parent the parent collection
name the action name
Returns:
the action

Definition at line 106 of file stdaction.cpp.


The documentation for this class was generated from the following files: