Ignore:
Timestamp:
Nov 3, 2026, 10:53:35 AM (8 days ago)
Author:
stuerze
Message:

deprecated functions exchanged libs updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/qwt/qwt_picker_machine.cpp

    r9383 r11158  
    1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
     1/******************************************************************************
    22 * Qwt Widget Library
    33 * Copyright (C) 1997   Josef Wilgen
    … …  
    1010#include "qwt_picker_machine.h"
    1111#include "qwt_event_pattern.h"
     12
    1213#include <qevent.h>
    1314
    1415//! Constructor
    15 QwtPickerMachine::QwtPickerMachine( SelectionType type ):
    16     d_selectionType( type ),
    17     d_state( 0 )
     16QwtPickerMachine::QwtPickerMachine( SelectionType type )
     17    : m_selectionType( type )
     18    , m_state( 0 )
    1819{
    1920}
    … …  
    2728QwtPickerMachine::SelectionType QwtPickerMachine::selectionType() const
    2829{
    29     return d_selectionType;
     30    return m_selectionType;
    3031}
    3132
    … …  
    3334int QwtPickerMachine::state() const
    3435{
    35     return d_state;
     36    return m_state;
    3637}
    3738
    … …  
    3940void QwtPickerMachine::setState( int state )
    4041{
    41     d_state = state;
     42    m_state = state;
    4243}
    4344
    … …  
    5556
    5657//! Transition
    57 QList<QwtPickerMachine::Command> QwtPickerTrackerMachine::transition(
    58     const QwtEventPattern &, const QEvent *e )
    59 {
    60     QList<QwtPickerMachine::Command> cmdList;
     58QList< QwtPickerMachine::Command > QwtPickerTrackerMachine::transition(
     59    const QwtEventPattern&, const QEvent* e )
     60{
     61    QList< QwtPickerMachine::Command > cmdList;
    6162
    6263    switch ( e->type() )
    … …  
    9798
    9899//! Transition
    99 QList<QwtPickerMachine::Command> QwtPickerClickPointMachine::transition(
    100     const QwtEventPattern &eventPattern, const QEvent *event )
    101 {
    102     QList<QwtPickerMachine::Command> cmdList;
     100QList< QwtPickerMachine::Command > QwtPickerClickPointMachine::transition(
     101    const QwtEventPattern& eventPattern, const QEvent* event )
     102{
     103    QList< QwtPickerMachine::Command > cmdList;
    103104
    104105    switch ( event->type() )
    … …  
    107108        {
    108109            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    109                 static_cast<const QMouseEvent *>( event ) ) )
     110                static_cast< const QMouseEvent* >( event ) ) )
    110111            {
    111112                cmdList += Begin;
    … …  
    117118        case QEvent::KeyPress:
    118119        {
    119             const QKeyEvent *keyEvent = static_cast<const QKeyEvent *> ( event );
     120            const QKeyEvent* keyEvent = static_cast< const QKeyEvent* > ( event );
    120121            if ( eventPattern.keyMatch( QwtEventPattern::KeySelect1, keyEvent ) )
    121122            {
    … …  
    143144
    144145//! Transition
    145 QList<QwtPickerMachine::Command> QwtPickerDragPointMachine::transition(
    146     const QwtEventPattern &eventPattern, const QEvent *event )
    147 {
    148     QList<QwtPickerMachine::Command> cmdList;
     146QList< QwtPickerMachine::Command > QwtPickerDragPointMachine::transition(
     147    const QwtEventPattern& eventPattern, const QEvent* event )
     148{
     149    QList< QwtPickerMachine::Command > cmdList;
    149150
    150151    switch ( event->type() )
    … …  
    153154        {
    154155            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    155                 static_cast<const QMouseEvent *>( event ) ) )
     156                static_cast< const QMouseEvent* >( event ) ) )
    156157            {
    157158                if ( state() == 0 )
    … …  
    182183        case QEvent::KeyPress:
    183184        {
    184             const QKeyEvent *keyEvent = static_cast<const QKeyEvent *> ( event );
     185            const QKeyEvent* keyEvent = static_cast< const QKeyEvent* > ( event );
    185186            if ( eventPattern.keyMatch( QwtEventPattern::KeySelect1, keyEvent ) )
    186187            {
    … …  
    216217
    217218//! Transition
    218 QList<QwtPickerMachine::Command> QwtPickerClickRectMachine::transition(
    219     const QwtEventPattern &eventPattern, const QEvent *event )
    220 {
    221     QList<QwtPickerMachine::Command> cmdList;
     219QList< QwtPickerMachine::Command > QwtPickerClickRectMachine::transition(
     220    const QwtEventPattern& eventPattern, const QEvent* event )
     221{
     222    QList< QwtPickerMachine::Command > cmdList;
    222223
    223224    switch ( event->type() )
    … …  
    226227        {
    227228            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    228                 static_cast<const QMouseEvent *>( event ) ) )
     229                static_cast< const QMouseEvent* >( event ) ) )
    229230            {
    230231                switch ( state() )
    … …  
    261262        {
    262263            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    263                 static_cast<const QMouseEvent *>( event ) ) )
     264                static_cast< const QMouseEvent* >( event ) ) )
    264265            {
    265266                if ( state() == 1 )
    … …  
    273274        case QEvent::KeyPress:
    274275        {
    275             const QKeyEvent *keyEvent = static_cast<const QKeyEvent *> ( event );
     276            const QKeyEvent* keyEvent = static_cast< const QKeyEvent* > ( event );
    276277            if ( eventPattern.keyMatch( QwtEventPattern::KeySelect1, keyEvent ) )
    277278            {
    … …  
    315316
    316317//! Transition
    317 QList<QwtPickerMachine::Command> QwtPickerDragRectMachine::transition(
    318     const QwtEventPattern &eventPattern, const QEvent *event )
    319 {
    320     QList<QwtPickerMachine::Command> cmdList;
     318QList< QwtPickerMachine::Command > QwtPickerDragRectMachine::transition(
     319    const QwtEventPattern& eventPattern, const QEvent* event )
     320{
     321    QList< QwtPickerMachine::Command > cmdList;
    321322
    322323    switch ( event->type() )
    … …  
    325326        {
    326327            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    327                 static_cast<const QMouseEvent *>( event ) ) )
     328                static_cast< const QMouseEvent* >( event ) ) )
    328329            {
    329330                if ( state() == 0 )
    … …  
    356357        {
    357358            if ( eventPattern.keyMatch( QwtEventPattern::KeySelect1,
    358                 static_cast<const QKeyEvent *> ( event ) ) )
     359                static_cast< const QKeyEvent* > ( event ) ) )
    359360            {
    360361                if ( state() == 0 )
    … …  
    387388
    388389//! Transition
    389 QList<QwtPickerMachine::Command> QwtPickerPolygonMachine::transition(
    390     const QwtEventPattern &eventPattern, const QEvent *event )
    391 {
    392     QList<QwtPickerMachine::Command> cmdList;
     390QList< QwtPickerMachine::Command > QwtPickerPolygonMachine::transition(
     391    const QwtEventPattern& eventPattern, const QEvent* event )
     392{
     393    QList< QwtPickerMachine::Command > cmdList;
    393394
    394395    switch ( event->type() )
    … …  
    397398        {
    398399            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    399                 static_cast<const QMouseEvent *>( event ) ) )
     400                static_cast< const QMouseEvent* >( event ) ) )
    400401            {
    401402                if ( state() == 0 )
    … …  
    412413            }
    413414            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect2,
    414                 static_cast<const QMouseEvent *>( event ) ) )
     415                static_cast< const QMouseEvent* >( event ) ) )
    415416            {
    416417                if ( state() == 1 )
    … …  
    431432        case QEvent::KeyPress:
    432433        {
    433             const QKeyEvent *keyEvent = static_cast<const QKeyEvent *> ( event );
     434            const QKeyEvent* keyEvent = static_cast< const QKeyEvent* > ( event );
    434435            if ( eventPattern.keyMatch( QwtEventPattern::KeySelect1, keyEvent ) )
    435436            {
    … …  
    476477
    477478//! Transition
    478 QList<QwtPickerMachine::Command> QwtPickerDragLineMachine::transition(
    479     const QwtEventPattern &eventPattern, const QEvent *event )
    480 {
    481     QList<QwtPickerMachine::Command> cmdList;
     479QList< QwtPickerMachine::Command > QwtPickerDragLineMachine::transition(
     480    const QwtEventPattern& eventPattern, const QEvent* event )
     481{
     482    QList< QwtPickerMachine::Command > cmdList;
    482483
    483484    switch( event->type() )
    … …  
    486487        {
    487488            if ( eventPattern.mouseMatch( QwtEventPattern::MouseSelect1,
    488                 static_cast<const QMouseEvent *>( event ) ) )
     489                static_cast< const QMouseEvent* >( event ) ) )
    489490            {
    490491                if ( state() == 0 )
    … …  
    501502        {
    502503            if ( eventPattern.keyMatch( QwtEventPattern::KeySelect1,
    503                 static_cast<const QKeyEvent *> ( event ) ) )
     504                static_cast< const QKeyEvent* > ( event ) ) )
    504505            {
    505506                if ( state() == 0 )
Note: See TracChangeset for help on using the changeset viewer.