GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
enter_shortcut Class Reference

#include "shortcut-manager.h"

Inheritance diagram for enter_shortcut:
Collaboration diagram for enter_shortcut:

Public Slots

void handle_direct_shortcut (int)
 
void handle_shift_modifier (int)
 

Public Member Functions

 enter_shortcut (QWidget *p=nullptr)
 
 ~enter_shortcut (void)=default
 
virtual void keyPressEvent (QKeyEvent *e)
 

Private Attributes

bool m_direct_shortcut
 
bool m_shift_modifier
 

Detailed Description

Definition at line 40 of file shortcut-manager.h.

Constructor & Destructor Documentation

◆ enter_shortcut()

enter_shortcut::enter_shortcut ( QWidget p = nullptr)

Definition at line 56 of file shortcut-manager.cc.

◆ ~enter_shortcut()

enter_shortcut::~enter_shortcut ( void  )
default

Member Function Documentation

◆ handle_direct_shortcut

void enter_shortcut::handle_direct_shortcut ( int  state)
slot

Definition at line 94 of file shortcut-manager.cc.

References m_direct_shortcut, and state.

Referenced by shortcut_manager::shortcut_dialog().

◆ handle_shift_modifier

void enter_shortcut::handle_shift_modifier ( int  state)
slot

Definition at line 103 of file shortcut-manager.cc.

References m_shift_modifier, and state.

Referenced by shortcut_manager::shortcut_dialog().

◆ keyPressEvent()

void enter_shortcut::keyPressEvent ( QKeyEvent *  e)
virtual

Definition at line 63 of file shortcut-manager.cc.

References CTRL, m_direct_shortcut, and m_shift_modifier.

Member Data Documentation

◆ m_direct_shortcut

bool enter_shortcut::m_direct_shortcut
private

Definition at line 59 of file shortcut-manager.h.

Referenced by handle_direct_shortcut(), and keyPressEvent().

◆ m_shift_modifier

bool enter_shortcut::m_shift_modifier
private

Definition at line 60 of file shortcut-manager.h.

Referenced by handle_shift_modifier(), and keyPressEvent().


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