OSDN Git Service

add reverseInsert at scursor.h
authorsuma <suma@users.sourceforge.jp>
Thu, 21 May 2009 02:22:06 +0000 (11:22 +0900)
committersuma <suma@users.sourceforge.jp>
Thu, 21 May 2009 02:22:06 +0000 (11:22 +0900)
src/control/standard/hexview.cpp
src/control/standard/scursor.h

index eaf07f9..17772bb 100644 (file)
@@ -563,7 +563,7 @@ void HexView::keyPressEvent(QKeyEvent *ev)
                break;
        case Qt::Key_Insert:
                qDebug("key insert");
-               cursor_->Insert = !cursor_->Insert;
+               cursor_->reverseInsert();
                break;
        case Qt::Key_Delete:
                qDebug("key delete");
index bbc087e..72120ae 100644 (file)
@@ -68,6 +68,10 @@ namespace Standard {
 
                bool hasSelection();
                void setSelection(bool);
+
+               void reverseHighNibble();
+               void reverseInsert();
+
                void setHexCaretVisible(bool t);
                void turnHexCaretVisible();
                void setTextCaretVisible(bool t);
@@ -93,6 +97,11 @@ namespace Standard {
                return Position != PositionAnchor;
        }
 
+       inline void Cursor::reverseInsert()
+       {
+               Insert = !Insert;
+       }
+
        inline void Cursor::setHexCaretVisible(bool t)
        {
                HexCaretVisible = t;