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

okteta

  • Okteta
  • KValueEditor
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Okteta::KValueEditor Class Reference

#include <kvalueeditor.h>

Inheritance diagram for Okteta::KValueEditor:
Inheritance graph
[legend]

Public Member Functions

 KValueEditor (ByteArrayTableCursor *cursor, AbstractByteArrayView *view, KController *parent)
 
virtual ~KValueEditor ()
 
void adaptToValueCodecChange ()
 
void cancelEdit (bool undoChanges=true)
 
void finishEdit ()
 
virtual bool handleKeyPress (QKeyEvent *keyEvent)
 
bool isInEditMode () const
 
void reset ()
 
Byte value () const
 
QString valueAsString () const
 
- Public Member Functions inherited from Okteta::KEditor
virtual ~KEditor ()
 
- Public Member Functions inherited from Okteta::KController
virtual ~KController ()
 

Protected Types

enum  KValueEditAction {
  EnterValue, IncValue, DecValue, ValueAppend,
  ValueEdit, LeaveValue, ValueBackspace
}
 
- Protected Types inherited from Okteta::KEditor
enum  KEditAction { CharDelete, WordDelete, CharBackspace, WordBackspace }
 

Protected Member Functions

void doValueEditAction (KValueEditAction action, int input=-1)
 
void startEdit (const QString &description)
 
- Protected Member Functions inherited from Okteta::KEditor
 KEditor (ByteArrayTableCursor *cursor, AbstractByteArrayView *view, KController *parent)
 
void doEditAction (KEditAction Action)
 
- Protected Member Functions inherited from Okteta::KController
 KController (KController *parent)
 

Protected Attributes

bool mEditModeByInsert:1
 
Byte mEditValue
 
bool mInEditMode:1
 
unsigned int mInsertedDigitsCount
 
Byte mOldValue
 
QString mValueString
 
- Protected Attributes inherited from Okteta::KEditor
ByteArrayTableCursor * mCursor
 
AbstractByteArrayView * mView
 
- Protected Attributes inherited from Okteta::KController
KController * mParent
 

Detailed Description

Definition at line 40 of file kvalueeditor.h.

Member Enumeration Documentation

enum Okteta::KValueEditor::KValueEditAction
protected
Enumerator
EnterValue 
IncValue 
DecValue 
ValueAppend 
ValueEdit 
LeaveValue 
ValueBackspace 

Definition at line 43 of file kvalueeditor.h.

Constructor & Destructor Documentation

Okteta::KValueEditor::KValueEditor ( ByteArrayTableCursor *  cursor,
AbstractByteArrayView *  view,
KController *  parent 
)

Definition at line 41 of file kvalueeditor.cpp.

Okteta::KValueEditor::~KValueEditor ( )
virtual

Definition at line 304 of file kvalueeditor.cpp.

Member Function Documentation

void Okteta::KValueEditor::adaptToValueCodecChange ( )

Definition at line 48 of file kvalueeditor.cpp.

void Okteta::KValueEditor::cancelEdit ( bool  undoChanges = true)

Definition at line 68 of file kvalueeditor.cpp.

void Okteta::KValueEditor::doValueEditAction ( KValueEditAction  action,
int  input = -1 
)
protected

executes keyboard Action Action.

This is normally called by a key event handler.

Parameters
actionaction to be done
inputdata to be used for the action

Definition at line 203 of file kvalueeditor.cpp.

void Okteta::KValueEditor::finishEdit ( )

Definition at line 88 of file kvalueeditor.cpp.

bool Okteta::KValueEditor::handleKeyPress ( QKeyEvent *  keyEvent)
virtual

Reimplemented from Okteta::KEditor.

Definition at line 104 of file kvalueeditor.cpp.

bool Okteta::KValueEditor::isInEditMode ( ) const
inline

Definition at line 89 of file kvalueeditor.h.

void Okteta::KValueEditor::reset ( )
inline

Definition at line 90 of file kvalueeditor.h.

void Okteta::KValueEditor::startEdit ( const QString &  description)
protected

Definition at line 54 of file kvalueeditor.cpp.

Byte Okteta::KValueEditor::value ( ) const
inline

Definition at line 91 of file kvalueeditor.h.

QString Okteta::KValueEditor::valueAsString ( ) const
inline

Definition at line 92 of file kvalueeditor.h.

Member Data Documentation

bool Okteta::KValueEditor::mEditModeByInsert
protected

flag whether byte edit mode was reached by inserting

Definition at line 78 of file kvalueeditor.h.

Byte Okteta::KValueEditor::mEditValue
protected

Definition at line 80 of file kvalueeditor.h.

bool Okteta::KValueEditor::mInEditMode
protected

flag whether we are in editing mode

Definition at line 76 of file kvalueeditor.h.

unsigned int Okteta::KValueEditor::mInsertedDigitsCount
protected

Definition at line 84 of file kvalueeditor.h.

Byte Okteta::KValueEditor::mOldValue
protected

stores the old byte value

Definition at line 82 of file kvalueeditor.h.

QString Okteta::KValueEditor::mValueString
protected

buffer with the

Definition at line 86 of file kvalueeditor.h.


The documentation for this class was generated from the following files:
  • kvalueeditor.h
  • kvalueeditor.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okteta

Skip menu "okteta"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

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