本文整理汇总了C++中wxListEvent::Skip方法的典型用法代码示例。如果您正苦于以下问题:C++ wxListEvent::Skip方法的具体用法?C++ wxListEvent::Skip怎么用?C++ wxListEvent::Skip使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wxListEvent
的用法示例。
在下文中一共展示了wxListEvent::Skip方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: OnActivateEvent
void wxCheckedListCtrl::OnActivateEvent(wxListEvent& event)
{
long item = event.GetItem().GetId();
if (item == wxNOT_FOUND || !IsEnabled(item))
{
// skip this item
event.Skip();
return;
}
wxListEvent ev(wxEVT_NULL, GetId());
ev.m_itemIndex = item;
// send the check event
if (IsChecked(item))
{
ev.SetEventType(wxEVT_COMMAND_LIST_ITEM_UNCHECKED);
Check(item, FALSE);
AddPendingEvent(ev);
} else {
ev.SetEventType(wxEVT_COMMAND_LIST_ITEM_CHECKED);
Check(item, TRUE);
AddPendingEvent(ev);
}
event.Skip();
}
示例2: InstrKey
void InterpreterDisAsmFrame::InstrKey(wxListEvent& event)
{
long i = m_list->GetFirstSelected();
if (i < 0 || !cpu)
{
event.Skip();
return;
}
const u32 start_pc = m_pc - m_item_count * 4;
const u32 pc = start_pc + i * 4;
switch (event.GetKeyCode())
{
case 'E':
{
InstructionEditorDialog dlg(this, pc, cpu, m_disasm.get());
DoUpdate();
return;
}
case 'R':
{
RegisterEditorDialog dlg(this, pc, cpu, m_disasm.get());
DoUpdate();
return;
}
}
event.Skip();
}
示例3: InstrKey
void InterpreterDisAsmFrame::InstrKey(wxListEvent& event)
{
long i = m_list->GetFirstSelected();
if(i < 0 || !CPU)
{
event.Skip();
return;
}
const u64 start_pc = PC - m_item_count*4;
const u64 pc = start_pc + i*4;
switch(event.GetKeyCode())
{
case 'E':
InstructionEditorDialog(this, pc, CPU, decoder, disasm);
DoUpdate();
return;
case 'R':
RegisterEditorDialog(this, pc, CPU, decoder, disasm);
DoUpdate();
return;
}
event.Skip();
}
示例4: InstrKey
void InterpreterDisAsmFrame::InstrKey(wxListEvent& event)
{
long i = m_list->GetFirstSelected();
if(i < 0 || !CPU)
{
event.Skip();
return;
}
const u64 start_pc = PC - m_item_count*4;
const u64 pc = start_pc + i*4;
switch(event.GetKeyCode())
{
case 'E':
// TODO:: Syphurith: It is said the InstructionEditorDialog would be immediately destroyed.
InstructionEditorDialog(this, pc, CPU, decoder.get(), disasm);
DoUpdate();
return;
case 'R':
// TODO:: Syphurith: Eh Similiar for this one.
RegisterEditorDialog(this, pc, CPU, decoder.get(), disasm);
DoUpdate();
return;
}
event.Skip();
}
示例5: OnItemListSelected
void ItemEditorFrame::OnItemListSelected( wxListEvent& event )
{
selectItemIndex = event.GetIndex();
if ( selectItemIndex < 0 )
return;
unsigned itemID = m_ItemListCtrl->GetItemData( selectItemIndex );
TItemBase* item = TItemManager::getInstance().getItem( itemID );
if ( item )
{
m_EditPanel->Enable();
item->getDataInfo( mItemInfo );
GuiIO::wxOutputEval eval;
processGUIStream( eval );
if ( item->isEquipment() )
{
CFObject* obj[2];
TEquipment* equip = static_cast< TEquipment* >( item );
if ( equip ->createModel( obj ) )
{
changeEquipModel( equip , obj[0] );
}
//getGame()->changeModel( selectItemID , m_ModelObj );
//m_objCtrl->setSelectObj( m_ModelObj );
}
m_ModifyButton->Enable( false );
}
event.Skip();
}
示例6: OnLinkerOptionDeSelected
void CompilerMainPage::OnLinkerOptionDeSelected(wxListEvent& event)
{
#ifndef __WXMAC__
m_selectedLnkOption = wxNOT_FOUND;
#endif
event.Skip();
}
示例7: OnFileTypeDeSelected
void CompilerMainPage::OnFileTypeDeSelected(wxListEvent& event)
{
#ifndef __WXMAC__
m_selectedFileType = wxNOT_FOUND;
#endif
event.Skip();
}
示例8: OnItemSelected
void wxGxObjectDialog::OnItemSelected(wxListEvent& event)
{
event.Skip();
//if(m_bIsSaveDlg)
// return;
wxGxDialogContentView::LPITEMDATA pItemData = (wxGxDialogContentView::LPITEMDATA)event.GetData();
if(pItemData == NULL)
return;
wxGxObject* pGxObject = m_pCatalog->GetRegisterObject(pItemData->nObjectID);
bool bIsDataset = pGxObject->IsKindOf(wxCLASSINFO(wxGxDataset)) || m_FilterArray[m_WildcardCombo->GetCurrentSelection()]->CanChooseObject(pGxObject);
bool bIsObjContainer = pGxObject->IsKindOf(wxCLASSINFO(wxGxObjectContainer));
if(!bIsDataset && bIsObjContainer)
{
return;
}
wxString sTempName;
long item = wxNOT_FOUND;
while(1)
{
item = m_pwxGxContentView->GetNextItem(item, wxLIST_NEXT_ALL, wxLIST_STATE_SELECTED);
if ( item == wxNOT_FOUND )
break;
if(sTempName.IsEmpty())
sTempName += m_pwxGxContentView->GetItemText(item);
else
sTempName += wxT("; ") + m_pwxGxContentView->GetItemText(item);
}
if(!sTempName.IsEmpty())
m_sName = sTempName;
TransferDataToWindow();
}
示例9: OnListKeyDown
void OccurrencesHighlighting::OnListKeyDown(wxListEvent &event)
{
switch ( event.GetKeyCode() )
{
case WXK_DELETE:
RemoveSelected();
break;
case WXK_INSERT:
// if ( GetWindowStyle() & wxLC_REPORT )
// {
// if ( GetWindowStyle() & wxLC_VIRTUAL )
// {
// SetItemCount(GetItemCount() + 1);
// }
// else // !virtual
// {
// InsertItemInReportView(event.GetIndex());
// }
// }
//else: fall through
default:
event.Skip();
}
}
示例10: OnListSelected
void wxListbook::OnListSelected(wxListEvent& eventList)
{
if ( eventList.GetEventObject() != m_bookctrl )
{
eventList.Skip();
return;
}
const int selNew = eventList.GetIndex();
if ( selNew == m_selection )
{
// this event can only come from our own Select(m_selection) below
// which we call when the page change is vetoed, so we should simply
// ignore it
return;
}
SetSelection(selNew);
// change wasn't allowed, return to previous state
if (m_selection != selNew)
{
GetListView()->Select(m_selection);
GetListView()->Focus(m_selection);
}
}
示例11: onListItemActivated
// ----------------------------------------------------------------------------
// ArchiveEntryList::onListItemActivated
//
// Called when a list item is 'activated' (double-click or enter)
// ----------------------------------------------------------------------------
void ArchiveEntryList::onListItemActivated(wxListEvent& e)
{
// Get item entry
ArchiveEntry* entry = getEntry(e.GetIndex());
// Do nothing if NULL (shouldn't be)
if (!entry)
return;
// If it's a folder, open it
if (entry->getType() == EntryType::folderType())
{
// Get directory to open
ArchiveTreeNode* dir = nullptr;
if (entry == entry_dir_back)
dir = (ArchiveTreeNode*)current_dir->getParent(); // 'Back directory' entry, open current dir's parent
else
dir = archive->getDir(entry->getName(), current_dir);
// Check it exists (really should)
if (!dir)
{
LOG_MESSAGE(1, "Error: Trying to open nonexistant directory");
return;
}
// Set current dir
setDir(dir);
}
else
e.Skip();
}
示例12:
void wxdlg3dViewer::OnListPolysSelected( wxListEvent& event )
{
////@begin wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTPOLYS in wxdlg3dViewer.
// Before editing this code, remove the block markers.
event.Skip();
////@end wxEVT_COMMAND_LIST_ITEM_SELECTED event handler for ID_LISTPOLYS in wxdlg3dViewer.
}
示例13:
/**
* \brief Event sent when the user starts to resize a column.
* \param event The event.
*/
void bf::item_field_edit::on_column_begin_drag( wxListEvent& event )
{
if ( event.GetColumn() + 1 == GetColumnCount() )
event.Veto();
else
event.Skip();
} // item_field_edit::on_column_begin_drag()
示例14: OnBeginLabelEdit
void DataModelListCtrl::OnBeginLabelEdit(wxListEvent& event)
{
if (CanEditLabel())
event.Skip(); // does nothing :(
else
EndEditLabel(true);
}
示例15: onActivate
void StreamTable::onActivate(wxListEvent& event) {
// find out what we have got in our second column:
long index = event.GetIndex();
const wxString& loc = getLocation(index);
if (loc.IsEmpty()) {
std::cerr << "Location is invalid (empty)" << std::endl;
return;
}
try {
TrackInfo* onDaHeap = new TrackInfo();
onDaHeap->setLocation(loc);
// We set a void* here. It's a pointer to the `onDaHeap' TrackInfo object.
// Later on (see the `TrackStatusHandler::onStreamActivated' function), we
// can cast it back to a TrackInfo* and work with it. That function must
// also delete that very same pointer, or else we're fucked.
event.SetClientObject(onDaHeap);
// make sure this event is handled by event handlers up in the chain.
event.Skip();
} catch (AudioException& ex) {
wxString msg;
msg << wxT("Unable to open the URL `") << loc << wxT("'.\n\n");
msg << wxT("GStreamer error description:\n") << ex.getAsWxString();
wxMessageDialog dlg(this, msg, wxT("Error"), wxICON_ERROR | wxOK);
dlg.ShowModal();
}
}