Qt:Документация 4.3.2/demos-undo
Материал из Wiki.crossplatform.ru
Внимание: Актуальная версия перевода документации находится здесь |
__NOTOC__
Главная · Все классы · Основные классы · Классы по группам · Модули · Функции |
[править] Undo Framework
Files:
- demos/undo/commands.cpp
- demos/undo/commands.h
- demos/undo/document.cpp
- demos/undo/document.h
- demos/undo/mainwindow.cpp
- demos/undo/mainwindow.h
- demos/undo/main.cpp
- demos/undo/undo.qrc
This demo shows Qt's undo framework in action.
Файл:Undodemo.png Qt's undo framework is an implementation of the Command pattern, which provides advanced undo/redo functionality.
To show the abilities of the framework, we have implemented a small diagram application in which the diagram items are geometric primitives. You can edit the diagram in the following ways: add, move, change the color of, and delete the items.
Copyright © 2007 Trolltech | Trademarks | Qt 4.3.2
|