void CommandHistory::emitUndoRedo ( void ) { bool undo_available = false; bool redo_available = false; if ( current_ >= 0 && current_ < (int)history_.count() ) undo_available = true; if ( current_ + 1 >= 0 && current_ + 1 < (int)history_.count() ) redo_available = true; emit undoRedoChanged( undo_available, redo_available ); }
bool FormWindow::qt_emit( int _id, QUObject* _o ) { switch ( _id - staticMetaObject()->signalOffset() ) { case 0: showProperties((QObject*)static_QUType_ptr.get(_o+1)); break; case 1: updateProperties((QObject*)static_QUType_ptr.get(_o+1)); break; case 2: undoRedoChanged((bool)static_QUType_bool.get(_o+1),(bool)static_QUType_bool.get(_o+2),(const QString&)static_QUType_QString.get(_o+3),(const QString&)static_QUType_QString.get(_o+4)); break; case 3: selectionChanged(); break; case 4: modificationChanged((bool)static_QUType_bool.get(_o+1),(FormWindow*)static_QUType_ptr.get(_o+2)); break; case 5: modificationChanged((bool)static_QUType_bool.get(_o+1),(const QString&)static_QUType_QString.get(_o+2)); break; case 6: fileNameChanged((const QString&)static_QUType_QString.get(_o+1),(FormWindow*)static_QUType_ptr.get(_o+2)); break; default: return QWidget::qt_emit(_id,_o); } return TRUE; }