NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
#include <numeredroptarget.hpp>
Public Types | |
enum | parentType { NUMEREWINDOW , EDITOR , FILETREE , CONSOLE } |
enum | fileType { NOEXTENSION , TEXTFILE , BINARYFILE , IMAGEFILE , EXECUTABLE , NOTSUPPORTED } |
Public Member Functions | |
NumeReDropTarget (wxWindow *topwindow, wxWindow *owner, parentType type) | |
Constructor. Initializes the data objects, which correspond to the assigned wxWindow. More... | |
wxDragResult | OnDragOver (wxCoord x, wxCoord y, wxDragResult defaultDragResult) |
This method visualizes the DragDrop effect. More... | |
wxDragResult | OnData (wxCoord x, wxCoord y, wxDragResult defaultDragResult) |
This method handles the file operations after DragDrop. More... | |
fileType | getFileType (const wxString &filename) |
This method classifies the file type of the passed file type. More... | |
Private Attributes | |
wxWindow * | m_owner |
wxWindow * | m_topWindow |
parentType | m_type |
Definition at line 28 of file numeredroptarget.hpp.
Enumerator | |
---|---|
NOEXTENSION | |
TEXTFILE | |
BINARYFILE | |
IMAGEFILE | |
EXECUTABLE | |
NOTSUPPORTED |
Definition at line 32 of file numeredroptarget.hpp.
Enumerator | |
---|---|
NUMEREWINDOW | |
EDITOR | |
FILETREE | |
CONSOLE |
Definition at line 31 of file numeredroptarget.hpp.
NumeReDropTarget::NumeReDropTarget | ( | wxWindow * | topwindow, |
wxWindow * | owner, | ||
parentType | type | ||
) |
Constructor. Initializes the data objects, which correspond to the assigned wxWindow.
topwindow | wxWindow* |
owner | wxWindow* |
type | parentType |
Definition at line 43 of file numeredroptarget.cpp.
NumeReDropTarget::fileType NumeReDropTarget::getFileType | ( | const wxString & | filename | ) |
This method classifies the file type of the passed file type.
filename | const wxString& |
Definition at line 457 of file numeredroptarget.cpp.
References BINARYFILE, EXECUTABLE, IMAGEFILE, NOEXTENSION, NOTSUPPORTED, and TEXTFILE.
Referenced by OnData().
wxDragResult NumeReDropTarget::OnData | ( | wxCoord | x, |
wxCoord | y, | ||
wxDragResult | defaultDragResult | ||
) |
This method handles the file operations after DragDrop.
x | wxCoord |
y | wxCoord |
defaultDragResult | wxDragResult |
Definition at line 108 of file numeredroptarget.cpp.
References BINARYFILE, CONSOLE, EDITOR, EXECUTABLE, FILETREE, date::format(), NumeReWindow::GetCurrentEditor(), NumeReWindow::getDragDropSourceItem(), getFileType(), NumeReWindow::getPathDefs(), VersionControlSystemManager::getRevisionPath(), VersionControlSystemManager::getRevisions(), NumeReWindow::getTerminal(), NumeReWindow::getTreeFolderPath(), VersionControlSystemManager::hasRevisions(), IMAGEFILE, LOADPATH, m_owner, m_topWindow, m_type, NOTSUPPORTED, NumeReWindow::OpenSourceFile(), NumeReTerminal::pass_command(), PLOTPATH, NumeReTerminal::ProcessInput(), PROCPATH, replacePathSeparator(), SAVEPATH, SCRIPTPATH, FileTree::SetDnDHighlight(), TEXTFILE, and NumeReWindow::UpdateLocationIfOpen().
wxDragResult NumeReDropTarget::OnDragOver | ( | wxCoord | x, |
wxCoord | y, | ||
wxDragResult | defaultDragResult | ||
) |
This method visualizes the DragDrop effect.
x | wxCoord |
y | wxCoord |
defaultDragResult | wxDragResult |
It calls the corresponding UI functions, which visualize the cursor position in the editor or the file tree. This function is called from the DragDrop handler automatically.
Definition at line 70 of file numeredroptarget.cpp.
References EDITOR, FILETREE, date::format(), m_owner, m_type, and FileTree::SetDnDHighlight().
|
private |
Definition at line 41 of file numeredroptarget.hpp.
Referenced by OnData(), and OnDragOver().
|
private |
Definition at line 42 of file numeredroptarget.hpp.
Referenced by OnData().
|
private |
Definition at line 43 of file numeredroptarget.hpp.
Referenced by OnData(), and OnDragOver().