SymbolEditor  1.3.0
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
DragAndDropCommand Class Reference

Add new symbols dragged from another instance of the SymbolEditor. More...

#include <Commands.h>

Inheritance diagram for DragAndDropCommand:
Collaboration diagram for DragAndDropCommand:

Public Member Functions

 DragAndDropCommand (SymbolLibrary *library, const QMimeData *mimeData)
 
virtual void redo ()
 
virtual void undo ()
 

Private Attributes

SymbolLibrarym_library
 
QList< Symbolm_symbols
 
QList< qint16 > m_indexes
 

Detailed Description

Add new symbols dragged from another instance of the SymbolEditor.

Allows copying of symbols from one symbol library to another using drag and drop.

Definition at line 515 of file Commands.h.

Constructor & Destructor Documentation

DragAndDropCommand::DragAndDropCommand ( SymbolLibrary library,
const QMimeData *  mimeData 
)

Constructor.

Parameters
librarypointer to the symbol library to add the new symbols to
mimeDatapointer to the QMimeData containing the new symbols

Definition at line 1003 of file Commands.cpp.

Member Function Documentation

void DragAndDropCommand::redo ( )
virtual

Redo the addition of symbols dragged to the list.

Definition at line 1021 of file Commands.cpp.

Here is the call graph for this function:

void DragAndDropCommand::undo ( )
virtual

Undo the addition of the symbols added.

Definition at line 1032 of file Commands.cpp.

Here is the call graph for this function:

Member Data Documentation

QList<qint16> DragAndDropCommand::m_indexes
private

Definition at line 526 of file Commands.h.

SymbolLibrary* DragAndDropCommand::m_library
private

Definition at line 524 of file Commands.h.

QList<Symbol> DragAndDropCommand::m_symbols
private

Definition at line 525 of file Commands.h.


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