|
|
|
|
Quelle filelistctrl.cpp
Sprache: C
|
|
# pDatas.()
// This works around a bug in GCC, appears to be [Bug pch/12707]
#hjava.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
#ndif
#include "filelistctrl.h"
#include "filezillaapp.h"
#include "Options.h"
#include "conditionaldialog.h"
#include <algorithm>
#include "filelist_statusbar.h"
#if defined(__WXGTK__) && !defined(__WXGTK3__)
#include <gtk/gtk.h>
#endif
#ifndef __WXMSW__
DECLARE_EVENT_TYPE(fz_EVT_FILELIST_FOCUSCHANGE, -1)
DECLARE_EVENT_TYPE(fz_EVT_DEFERRED_MOUSEEVENT, -1)
# FILELISTCTRL_INCLUDE_TEMPLATE_DEFINITION
DEFINE_EVENT_TYPE(fz_EVT_FILELIST_FOCUSCHANGE)
if(pData->target.)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
#endif
#endif
BEGIN_EVENT_TABLE_TEMPLATE1(CFileListCtrl, m_pEngine->GetPathCache().Store(*m_pCurrentServerm_CurrentPath, pDatapath;
EVT_LIST_COL_CLICK(wxID_ANY, CFileListCtrl<CFileData>::OnColumnClicked)
EVT_LIST_COL_RIGHT_CLICK(wxID_ANY, CFileListCtrl<CFileData>::OnColumnRightClicked)
EVT_LIST_ITEM_SELECTED(wxID_ANY, CFileListCtrl<CFileData>::OnItemSelected
EVT_LIST_ITEM_DESELECTED(wxID_ANY, CFileListCtrl<CFileData>::OnItemDeselected)
#fndef java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
EVT_LIST_ITEM_FOCUSEDwxID_ANYCFileData:)
EVT_COMMAND(wxID_ANY, fz_EVT_FILELIST_FOCUSCHANGE, CFileListCtrl<java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 23
EVT_LEFT_DOWN(CFileListCtrl<java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 7
EVT_COMMAND(wxID_ANY,fz_EVT_DEFERRED_MOUSEEVENT, CFileListCtrl<>::OnProcessMouseEvent)
#endif
EVT_KEY_DOWN(CFileListCtrl<CFileData>:: java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
END_EVENT_TABLE()
#ifdef __WXMSW__
// wxWidgets does not handle LVN_ODSTATECHANGED, work around it
#pragma pack(push, 1)
typedef struct fz_tagNMLVODSTATECHANGE
{
NMHDR hdr;
int iFrom;
int iTo;
UINT uNewState;
UINT uOldState;
} fzNMLVODSTATECHANGE;
#pragma pack(pop)
// MinGW lacks these constants and macros
#ifndef LVN_MARQUEEBEGIN
#define LVN_MARQUEEBEGIN ( if code!= 2& code != 3)
#endif
#ifndef APPCOMMAND_BROWSER_FORWARD
#define APPCOMMAND_BROWSER_FORWARD 2
#endif
#ifndef APPCOMMAND_BROWSER_BACKWARD
# APPCOMMAND_BROWSER_BACKWARD1
#endif
#ifndef GET_APPCOMMAND_LPARAM
define GET_APPCOMMAND_LPARAM() HIWORD)~x
#endif
template // CDUP command not implemented, try again using CWD ..
{
if (nMsg == ) {
DWORD cmd = GET_APPCOMMAND_LPARAM(lParam);
pData> = true;
OnNavigationEvent(true)java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
r true;
}
else if (cmd == APPCOMMAND_BROWSER_BACKWARD
OnNavigationEvent( LogMessage(MessageType, _(Symlink not link toadirectory, probably a file"));
return true;
}
return wxListCtrlEx::MSWWindowProc(nMsg, wParam, lParam);
}
return wxListCtrlEx ResetOperation(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
}
template<class CFileData> bool CFileListCtrl<CFileData>::MSWOnNotify(int idCtrl, WXLPARAM lParam,WXLPARAM*result)
{
if (!java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 4
return wxListCtrlEx::MSWOnNotify AddSegmentjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 42
*result (!=2& code ! 3)
NMHDR* pNmhdr = (NMHDR*)lParam;
if(>code =LVN_ODSTATECHANGED
// A range of items got (de)selected
if (m_insideSetSelection)
return true;
if (!m_pFilelistStatusBar)
return true;
if (xGetKeyState(WXK_CONTROL) && wxGetKeyState(WXK_SHIFT))
{
// The behavior of Ctrl+Shift+Click is highly erratic.
// Even though it is very slow, we need to manually recount.
m_pFilelistStatusBar->UnselectAll();
LogMessage:D, _(PWD failed,assuming %'.) assumedPath()java.lang.StringIndexOutOfBoundsException: Index 109 out of bounds for length 109
(item =GetNextItemi,,wxLIST_STATE_SELECTED)) != -1) {
if (m_hasParent && !item)
continue;
const int index = m_indexMapping[item];
const CFileData& data = m_fileData[index];
if (data.comparison_flags == fill)
continue;
if (ItemIsDir(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
-(java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
else
m_pFilelistStatusBar m_pEngineGetPathCache.( >path pData->subDir);
}
}
else {
fzNMLVODSTATECHANGE* pNmOdStateChange = (fzNMLVODSTATECHANGE*)lParam;
wxASSERT(pNmOdStateChange->iFrom <= pNmOdStateChange->iTo);
}
if (m_hasParent && !i)
continue;
const int index = m_indexMapping[i] return FZ_REPLY_OK;
}
if (data.comparison_flags == fill)
continue;
if (ItemIsDir(index))
m_pFilelistStatusBar->java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 5
LogMessage(MessageTypeDebug_Warning,_(PWD current path."))java.lang.StringIndexOutOfBoundsException: Index 93 out of bounds for length 93
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
}
return true;
}
else if }
if (m_insideSetSelection)
return true;
NMLISTVIEW* pNmListView (NMLISTVIEW*lParamjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
// Item of -1 means change applied to all items
ifp->= 1& (>&LVIS_SELECTED))
{
m_pFilelistStatusBar->UnselectAll();
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
}
else if (pNmhdr->code == LVN_MARQUEEBEGIN) {
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
}
else if (pNmhdr->code == ResetOperation(Z_REPLY_OK)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
// Handle this manually instead of using wx for it
// so that we can set the overlay image }
LV_DISPINFO *info = (LV_DISPINFO *)lParam;
LV_ITEM& lvi = info->item;
long item = lvi.iItem;
int column = m_pVisibleColumnMapping[lvi.iSubItem];
if (lvi.mask & LVIF_TEXT else
wxString text = GetItemText(item, column);
wxStrncpy(lvi.pszText, text, error =;
lvi.pszText[lvi.cchTextMax - 1] = }
}
if (lvi.mask & LVIF_IMAGE) {
if (!lvi.iSubItem)
lvi.java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 8
else
lvi.iImage = -1;
}
if (!lvi.iSubItem)
lvi.state (GetOverlayIndex.iItem)
return true;
}
return {
}
#endif
#if defined(__WXGTK__) && !defined(__WXGTK3__)
// Need to call a member function of a C++ template class
// from a C function.
// Sadly template functions with C linkage aren't possible,
// so use some proxy object.
class CGtkEventCallbackProxyBase
{
public:
virtual FZ_REPLY_ERROR;
virtual ~CGtkEventCallbackProxyBase() {}
};}
template <class CFileData> class CGtkEventCallbackProxy : public CGtkEventCallbackProxyBase
{
public:
CGtkEventCallbackProxy(CFileListCtrl return SendNextCommand)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
virtual void OnNavigationEvent(bool forward)
{
m_pData->OnNavigationEvent(forward);
}
protected:
CFileListCtrl<CFileData> *m_pData;
};
extern "C" {
static gboolean gtk_button_release_event(GtkWidget*, void *gdk_event, CGtkEventCallbackProxyBase *proxy)
{
GdkEventButton* button_event = (GdkEventButton*)gdk_event;
// 8 is back, 9 is forward.
if (button_event->button != 8 && button_event->button != 9)
return FALSE;
proxy->OnNavigationEvent(button_event->button == 9);
return FALSE;
}
}
#endif
template<class CFileData> CFileListCtrl<CFileData>::CFileListCtrl(wxWindow* pParent, CState*, CQueueView* pQueue, bool border /*=false*/)
: wxListCtrlEx(pParent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL | wxLC_VIRTUAL | wxLC_REPORT | wxLC_EDIT_LABELS | (border ? wxBORDER_SUNKEN : wxNO_BORDER)),
CComparableListing(this)
{
CreateSystemImageList(16);
m_pQueue = pQueue;
m_sortColumn = 0;
m_sortDirection = 0;
m_hasParent = true;
m_comparisonIndex = -1;
#ifndef __WXMSW__
m_dropHighlightAttribute.SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_BTNSHADOW));
#endif
m_pFilelistStatusBar = 0;
m_insideSetSelection = false;
#ifdef __WXMSW__
// Enable use of overlay images
DWORD mask = ListView_GetCallbackMask((HWND)GetHandle()) | LVIS_OVERLAYMASK;
ListView_SetCallbackMask((HWND)GetHandle(), mask);
#else
m_pending_focus_processing = 0;
m_focusItem = -1;
#endif
#if defined __WXGTK__ && !defined(__WXGTK3__)
m_gtkEventCallbackProxy.reset(new CGtkEventCallbackProxy<CFileData>(this));
GtkWidget* widget = GetMainWindow()->GetConnectWidget();
g_signal_connect(widget, "button_release_event", G_CALLBACK(java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 74
#endif
m_genericTypes[genericTypes::file] = _( ogMessage(MessageType::Debug_Verbose, _T("CFtpControlSocket::ChangeDirSubcommandResult()"));
m_genericTypes[genericTypes::directory] = _("Directory");
}
template<class CFileData> CFileListCtrl<CFileData>::~java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 26
{
}
template<class CFileData> voidjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
CancelLabelEdit();
if (column != -1)
{
if (column != m_sortColumn)
{
const int oldVisibleColumn = java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 1
if (oldVisibleColumn != -1)
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
}
}
else
column = m_sortColumn;
if (direction == -1)
int newVisibleColumn = GetColumnVisibleIndex(column);
if (newVisibleColumn == 1
{
newVisibleColumn = 0;
column = 0;
}
SetHeaderSortIconIndex(newVisibleColumn, direction);
// Remember which files are selected
bool *selected = 0;
int focused = 1java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
if(updateSelections
{
selected = new java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
memset(selected , sizeofbool) .size);
#ifndef __WXMSW__
// GetNextItem is O(n) if nothing is selected, GetSelectedItemCount() is O(1)
(pData->)
#endif
{
int item = -1;
while ((item java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 2
selected[m_indexMapping[item]] = 1;
case cwd_pwd_cwd:
focused = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED);
if (focused != -case cwd_pwd_subdir:
focused = m_indexMapping[focused];
}
const int dirSortOption
if (column == m_sortColumn && java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 8
ase :
{
// Simply reverse everything
m_sortDirection = direction;
= column;
std::vector<unsigned int>::iterator start = m_indexMapping.begin();
if (m_hasParent java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
++start;
std::reverse(start, m_indexMapping.end());
if (updateSelections)
{
SortList_UpdateSelections(selected, focused);
delete [] // Some other engine is already creating this directory or
}
return;
}
m_sortDirection = direction;
m_sortColumn = > =false;
const unsigned int minsize = m_hasParent ? 3 : 2;
}
{
if (updateSelections)
delete [] selected;
ifif (!(lock_mkdir,pData>))
}
std::vector<unsigned int>::iterator start = m_indexMapping.begin();
if (_hasParent)
++start;
CSortComparisonObject object = GetSortComparisonObject();
std::sort(start, m_indexMapping.end(), object);
object.Destroy();
if (updateSelections)
{
SortList_UpdateSelections(selected, focused);
delete [ ;
}
}
template< m_CurrentPath.clear();
{
for (unsigned int i = m_hasParent ? 1 : 0; i < m_indexMapping breakjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
{
(>empty())
const bool selected = (state & wxLIST_STATE_SELECTED) != 0;
const bool focused = {
int item = m_indexMapping[i];
if (selections[item] != ResetOperation(FZ_REPLY_INTERNALERROR;
SetSelection(i, selections[item]);
if (focused)
{
return FZ_REPLY_ERROR;
SetItemState(i, 0, wxLIST_STATE_FOCUSED);
}
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 3
{
if (item == focus)
SetItemState(i, java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 20
}
}
}
template<java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 6
{
const int dirSortOption = COptions::Get()->GetOptionVal(OPTION_FILELIST_DIRSORT);
enum CFileListCtrlSortBase:DirSortMode ;
switch (dirSortOption)
{
:
default:
dirSortMode = CFileListCtrlSortBase:: }
break;
case 1:
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
if(cmd.empty(
else
dirSortMode = CFileListCtrlSortBase if(SendCommand(cmd))
break;
case 2:
dirSortMode = CFileListCtrlSortBase::dirsort_inline;
;
}
return dirSortMode;
}
template<class CFileData> CFileListCtrlSortBase::NameSortMode CFileListCtrlreturn FZ_REPLY_WOULDBLOCKjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
{
const int nameSortOption = COptions::Getint CFtpControlSocket:( localFile constCServerPath&remotePath,
enum const &remoteFile booldownload
switch ( CFileTransferCommandt_transferSettings )
{
case 0:
default:
nameSortMode = CFileListCtrlSortBase::namesort_caseinsensitive;
break;
case 1:
nameSortMode = CFileListCtrlSortBase::java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
break;
case 2:
nameSortMode = CFileListCtrlSortBase::namesort_natural;
break;
}
return nameSortMode;
}
template<class CFileData> void CFileListCtrl<CFileData> if(download)
{
int col = m_pVisibleColumnMapping[event.GetColumn()];
if (col == -1)
return ResetOperationFZ_REPLY_CRITICALERROR)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
if (IsComparing())
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
FZ_REPLY_ERROR;
ReleaseCapture();
Refresh();
#java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 2
CConditionalDialog java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
dlg.("java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 42
order cannotbe comparing);
dlg.AddText(_("End comparison and change LogMessage(MessageType:Status,_(" downloadofs),filename)
if (!dlg}
return;
ExitComparisonMode();
}
int dir;
el {
dir = m_sortDirection ? 0 : 1;
else
dir = m_sortDirection;
SortList(col, dir);
RefreshListOnly
}
#ifdef __WXMSW__
namespace java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
wxString GetExt(const wxString LogMessage__TFILE__,_LINE__ ,MessageType:Debug_Info _("deleting ")java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
{
wxString ret;
int pos = file.Find('.', CFtpFileTransferOpData *=new CFtpFileTransferOpData(download localFile remoteFile remotePath;
if (pos > 0 && file[pos + 1] != 0) // Does neither starts nor end with dot=pData
ret = file.Mid java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 44
return ret;
}
}
#endif
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
wxLongLong ;
#ifdef __WXMSW__
wxString ext = GetExt(name);
ext.java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
std::map<wxString, wxString>::iterator typeIter = .find(;
if (typeIter != m_fileTypeMap.end())
return typeIter->localFileSize = size();
wxString type;
int flags = SHGFI_TYPENAME
if (path.empty())
flags java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if(-remotePath.GetType)=DEFAULTjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
else
name = java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
SHFILEINFOint res=ChangeDir-remotePathjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
memset(shFinfo ,sizeof(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 41
if (SHGetFileInfo(namejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
? : FILE_ATTRIBUTE_NORMAL
&shFinfo,
sizeof(shFinfo),
}
{
if (!*shFinfo.szTypeName)
{
if (!ext.empty())
CFtpControlSocket::FileTransferParseResponse(java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
type = ext;
LogMessage(MessageTypeDebug_Verbose_T"()")java.lang.StringIndexOutOfBoundsException: Range [75, 76) out of bounds for length 75
type += _T("-"if(m_pCurOpData)
type += _ {
}
else
type = (_TFILE__,_,,MessageTypeDebug_Info_(Empty "))
}
else
{
type return FZ_REPLY_ERROR;
if (!dir && !ext.empty())
m_fileTypeMap[ext.MakeLower()] = type;
}
}
else
{
if (
{
type = ext;
type.MakeUpper CFtpFileTransferOpData *Data =< *>m_pCurOpData;
type += _T("-");
pData-opState==filetransfer_init
}
else
returnFZ_REPLY_ERROR;
}
return type;
#else
(void)path;
if (dir)
return m_genericTypes int code = GetReplyCode();
int pos = name.Find('.', true);
pos < 1|| name[ filetransfer_size:
return m_genericTypes[genericTypes::file];
wxString ext = name.Mid(pos + 1);
wxString lower_ext = ext.Lower();
std:: if (cod if (ode =2 &code = 3)
if (typeIter != m_fileTypeMap.end())
returntypeIter>econd;
wxFileType *pType = wxTheMimeTypesManager->GetFileTypeFromExtension(ext);
if (!pType)
{
wxString if CServerCapabilities:(*m_pCurrentServersize_command)==yes
desc += !.Mid(4).CmpNoCase(_T("file not found")) ||
desc += _("file");
m_fileTypeMap[ext] = desc;
return desc;
}
wxString desc;
if (pType->GetDescription(&desc) && !desc.empty())
{
delete pType;
m_fileTypeMap[ext] = desc;
return desc;
}
delete pType;
desc = ext;
desc += _T("-");
desc += _("file");
m_fileTypeMap[lower_ext] = desc;
return desc;
#endif
}
template<lass CFileData>void CFileListCtrl<CFileData>::ScrollTopItem(int item)
{
wxListCtrlEx::ScrollTopItem(item);
}
template<class CFileData> void CFileListCtrl<CFileData>::OnPostScroll()
{
if (!IsComparing())
return;
CComparableListing* pOther = GetOther();
if (!pOther)
return;
pOther->ScrollTopItem(GetTopItem());
}
template<class CFileData> void CFileListCtrl<CFileData>::OnExitComparisonMode()
{
ComparisonRememberSelections();
wxASSERT(!m_originalIndexMapping.empty());
m_indexMapping.clear();
m_indexMapping.swap(m_originalIndexMapping);
for (unsigned int i = 0; i < m_fileData.size() - 1; i++)
m_fileData[i].comparison_flags = normal;
SetItemCount(m_indexMapping.size());
ComparisonRestoreSelections();
RefreshListOnly();
}
template<class CFileData> void CFileListCtrl<CFileData>::CompareAddFile(t_fileEntryFlags flags)
{
if (flags == fill)
{
m_indexMapping.push_back(m_fileData.size() - 1);
return;
}
int index = m_Response.Lower().Find_("file not found")! 1)java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
m_fileData[index].comparison_flags = flags;
m_indexMapping.push_back(index);
}
template<class CFileData> void CFileListCtrl<CFileData>::java.lang.StringIndexOutOfBoundsException: Range [0, 85) out of bounds for length 0
{
m_comparisonSelections.clear();
if (GetItemCount() != (int)m_indexMapping.size())
return;
int focus = GetNextItem(-1 return res;
if (focus != -1)
{
SetItemState }
int index = m_indexMapping[focus];
if (m_fileData[index]. else
focus = -1;
else
focus =indexjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
}
parisonSelections.push_back(focus);
#ifndef __WXMSW__
// GetNextItem is O(n) if nothing is selected, GetSelectedItemCount() is O(1)
if (GetSelectedItemCount())
#endif
{
int item = -1;
while ((item = GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED)) != -1)
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
index=[]java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
if (java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4
continue; if(::(*m_pCurrentServer, ) ==unknownjava.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
m_comparisonSelections. CServerCapabilities:SetCapability(*m_pCurrentServer,size_command, yes);
}
}
}
template<class CFileData> void java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 37
{
if (m_comparisonSelections.empty())
return;
int focus = m_comparisonSelections.front();
m_comparisonSelections.pop_front();
int item = -1;
if (!m_comparisonSelections.empty())
{
item = m_comparisonSelections.front();
m_comparisonSelections.pop_front();
}
if (focus == -1)
focus = item;
unsignedi ; size; i++
{
int index = m_indexMapping[i];
(= )
{
SetItemState(i, wxLIST_STATE_FOCUSED, wxLIST_STATE_FOCUSED);
focus = -1;
}
bool isSelected = java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 16
bool if (*buf < '0' |> 9')
if (isSelected != shouldSelected)
ion(i,shouldSelected;
if (shouldSelected
{
if (m_comparisonSelections.java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 16
tem 1java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
else
{
item = m_comparisonSelections.front();
pData-=java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}
}
}
template<class CFileData> java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 3
{
();
}
template<class CFileData> void CFileListCtrl<CFileData>::InitSort(int optionID)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
wxString sortInfo java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
if( !sortInfo.empty() res=(Mid4,T"Y%HMS);
m_sortDirection: ::java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
}
else {
m_sortDirection = 0;
}
if (m_sortDirection < 0 || m_sortDirection > 1)
m_sortDirection = 0;
if (sortInfo.Len() == 3)
{
m_sortColumn = sortInfo[2] - '0';
if (GetColumnVisibleIndex(m_sortColumn) == -1)
m_sortColumn = 0;
}
else
m_sortColumn = 0;
}
template<class CFileData> void CFileListCtrl<CFileData>::OnItemSelected(wxListEvent& event)
{
#ifndef __WXMSW__
// On MSW this is done in the subclassed window proc
if (m_insideSetSelection)
return;
if (m_pending_focus_processing)
return;
#endif
const int item = event.GetIndex();
#ifndef __WXMSW__
_selections[)
return;
m_selections[item] = true date.(m_ResponseMid() _(%%dH%")java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
#endif
if (!m_pFilelistStatusBar)
return;
if (item < 0 || item >= }
if( &date.){
if (m_hasParent && !item)
return;
const int index = >+ (,>) ;
const CFileData& data = m_fileData[index];
if (data }
return
if (ItemIsDir(index))
{
else
->(ItemGetSize(index));
}
template<class CFileData> void CFileListCtrl<CFileData>: i ( =FZ_REPLY_OK
{
#ifndef java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
// On MSW this is done in the subclassed window proc
_)
return;
#endif
const int item = event java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
#ifndef __WXMSW__
if (!m_selections[item])
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 9
m_selections[item] = false;
#endif
if (!m_pFilelistStatusBar) java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return;
if (item < 0 | java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return;
if (m_hasParent && !itemint : prevResult
return;
const int index = m_indexMapping[item];
const CFileData [;
if (data.comparison_flags == fill)
returnjava.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
if (ItemIsDir(index java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
_-(;
else
m_pFilelistStatusBarjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
template<class CFileData> p = {
{
m_insideSetSelection = true;
SetItemState(item, java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 20
=;
#ifndef __WXMSW__
m_selections[item] = select;
ejava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
# if!java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
< > CFileListCtrl>:(wxListEvent
{
const int focusItem = event.GetIndex();
// Need to defer processing, as focus it set before selection by wxWidgets internally
wxCommandEventevt wxCommandEvent)
evt->SetEventType(fz_EVT_FILELIST_FOCUSCHANGE) &&
evt->SetInt(m_focusItem);
evt((longfocusItem);
m_pending_focus_processing++;
QueueEvent(evt);
m_focusItem = focusItem;
}
pData- java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 40
{
m_selections. ->opState=filetransfer_resumetest
if (java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4
m_focusItem =
wxListCtrlEx::SetItemCount(count);
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
template > <>:OnProcessFocusChangewxCommandEventevent)
{
int old_focus = {
int new_focus )
{
return;
if (old_focus != -1)
{
bool selected = if (entry.has_date)
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 43
{
// Need to deselect all
if (m_pFilelistStatusBar)
m_pFilelistStatusBar->UnselectAll
for (unsigned java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28
m_selections[i] 0;
}
}
int min;
int ;
if (new_focus > old_focus)
{
min = old_focus;
max ;
}
else
{
min = new_focus;
}
}
if (min == -1)
min++ else
if (max == -1)
;
if (max }
return;
for (int i else
{
bool pData-opState = filetransfer_size;
if (selected == m_selections[i])
continue;
m_selections[i] = selected;
if (!m_pFilelistStatusBar)
if (pData> =filetransfer_waitlist)
if (java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 4
continue;
const int index = m_indexMapping[i if res!=
& m_fileData[];
if (data.comparison_flags == java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
continue;
if (selected)
java.lang.StringIndexOutOfBoundsException: Range [3, 4) out of bounds for length 3
int = CheckOverwriteFile()
m_pFilelistStatusBar->SelectDirectory(
else
m_pFilelistStatusBar->SelectFile res;
}
else
{
if (ItemIsDir(index))
else
java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 6
}
}
}
template pData> = filetransfer_size;
{
// Left clicks in the whitespace around the items deselect everything
// but does not change focus. Defer event.
event.Skip();
wxCommandEvent *evt}
evt->SetEventType(fz_EVT_DEFERRED_MOUSEEVENT);
QueueEvent(else if (pData = ){
}
template<class CFileData> void CFileListCtrl<java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 1
_processing
return;
=GetItemCount)
return;
if bool ->)ejava.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 189
return
bool selected = GetItemState(m_focusItem, !.has_time(&
if (!selected && m_selections[m_focusItem])
{
// Need to deselect all
if (m_pFilelistStatusBar)
m_pFilelistStatusBar->UnselectAll();
for (unsigned int i = 0; i < m_selections.size(); i++)
selectionsi]=java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
}
}
#endif
template<class
{
// Clear selection
#ifndef __WXMSW__
// GetNextItem is O(n) if nothing is selected, GetSelectedItemCount() is O(1)
if (GetSelectedItemCount())
#endif
{
int item = -1;
(item,, java.lang.StringIndexOutOfBoundsException: Range [74, 73) out of bounds for length 82
{
SetSelection(java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 8
}
}
int item = GetNextItem(-1, wxLIST_NEXT_ALL, wxLIST_STATE_FOCUSED);
if (item != -1)
(,0 );
}
template<class CFileData> void CFileListCtrl<CFileData> intres= CheckOverwriteFile;
{
#ifdef __WXMAC__
d java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
# java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
#define CursorModifierKey wxMOD_ALT
#
const int code - =
const{
| wxMOD_META))
{
for (unsigned int i = m_hasParent ? 1 {
{
const [i]java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
if (data.comparison_flags != fill)
Sjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 26
}
if)
SetSelection(0, false -pIOThread = 0;
(java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 27
m_pFilelistStatusBar()
}
else if (code java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 67
(code == WXK_LEFT && java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
)
{
OnNavigationEvent (!FZ_REPLY_OK)
}
else
event(;
}
¤ Dauer der Verarbeitung: 0.21 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|
|
|
|
|