Basic Image AlgorithmS Library
2.8.0
Main Page
Related Pages
Modules
Classes
Examples
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
Tools
BIASViewWX
BVWXDnDTarget.cpp
1
/*
2
This file is part of the BIAS library (Basic ImageAlgorithmS).
3
4
Copyright (C) 2003-2009 (see file CONTACT for details)
5
Multimediale Systeme der Informationsverarbeitung
6
Institut fuer Informatik
7
Christian-Albrechts-Universitaet Kiel
8
9
10
BIAS is free software; you can redistribute it and/or modify
11
it under the terms of the GNU Lesser General Public License as published by
12
the Free Software Foundation; either version 2.1 of the License, or
13
(at your option) any later version.
14
15
BIAS is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU Lesser General Public License for more details.
19
20
You should have received a copy of the GNU Lesser General Public License
21
along with BIAS; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
*/
24
25
#include "BVWXDnDTarget.hh"
26
27
28
using namespace
BIAS;
29
30
BVWXDnDTarget::BVWXDnDTarget
() { }
31
32
BVWXDnDTarget::BVWXDnDTarget
(
BVWXMainFrame
* frame)
33
{
34
_Frame
= frame;
35
}
36
37
BVWXDnDTarget::~BVWXDnDTarget
() { }
38
39
bool
BVWXDnDTarget::OnDropFiles
(wxCoord
/*x*/
,
40
wxCoord
/*y*/
,
41
const
wxArrayString& filenames)
42
{
43
BIASASSERT(
_Frame
!= NULL);
44
wxArrayString sortedFilenames(filenames);
45
// sort alphabetically because file seq is not preserved "as expected"
46
// (at least on Windows XP Explorer)
47
sortedFilenames.Sort();
48
_Frame
->
LoadImages
(sortedFilenames);
49
_Frame
->
FitSizetIfTooSmall
();
50
_Frame
->
RefitClients
();
51
52
return
true
;
53
}
BIAS::BVWXMainFrame::FitSizetIfTooSmall
void FitSizetIfTooSmall()
fits the frame size if it is too small for curent image
Definition:
BVWXMainFrame.cpp:844
BIAS::BVWXDnDTarget::_Frame
BIAS::BVWXMainFrame * _Frame
Definition:
BVWXDnDTarget.hh:57
BIAS::BVWXDnDTarget::OnDropFiles
virtual bool OnDropFiles(wxCoord x, wxCoord y, const wxArrayString &filenames)
Definition:
BVWXDnDTarget.cpp:39
BIAS::BVWXDnDTarget::~BVWXDnDTarget
~BVWXDnDTarget()
Definition:
BVWXDnDTarget.cpp:37
BIAS::BVWXMainFrame
Definition:
BVWXMainFrame.hh:57
BIAS::BVWXDnDTarget::BVWXDnDTarget
BVWXDnDTarget()
Definition:
BVWXDnDTarget.cpp:30
BIAS::BVWXMainFrame::RefitClients
void RefitClients()
workaround adapting client canvases size
Definition:
BVWXMainFrame.cpp:881
BIAS::BVWXMainFrame::LoadImages
void LoadImages(const wxArrayString &paths)
Definition:
BVWXMainFrame.cpp:788
Generated on Tue Feb 6 2018 02:01:44 for Basic Image AlgorithmS Library by
1.8.5