50 wxCHECK( !sheets.empty(), );
58 if( std::find( sheets.begin(), sheets.end(), *entry ) != sheets.end() )
61 if( ( entry !=
m_navHistory.begin() ) && ( *entry == *std::prev( entry ) ) )
92 if( sheet.GetPageNumber() == destPage )
99 m_frame->ShowInfoBarError( wxString::Format(
_(
"Page '%s' not found." ), destPage ) );
105 menu.Append( 1, wxString::Format(
_(
"Open %s" ), href ) );
107 if(
m_frame->GetPopupMenuSelectionFromUser( menu ) == 1 )
131 m_frame->DisplayCurrentSheet();
152 m_frame->DisplayCurrentSheet();
167 int targetSheet =
m_frame->GetCurrentSheet().GetVirtualPageNumber() - 1;
183 int targetSheet =
m_frame->GetCurrentSheet().GetVirtualPageNumber() + 1;
209 return m_frame->GetCurrentSheet().Last() != &
m_frame->Schematic().Root();
215 return m_frame->GetCurrentSheet().GetVirtualPageNumber() > 1;
221 if( !
m_frame->Schematic().IsValid() )
224 return m_frame->GetCurrentSheet().GetVirtualPageNumber()
225 < (int)
m_frame->Schematic().Hierarchy().size();
245 if( selection.GetSize() == 1 )
308 m_frame->GetScreen()->m_LastZoomLevel =
m_frame->GetCanvas()->GetView()->GetScale();
313 m_frame->Schematic().SetCurrentSheet( aPath );
314 m_frame->DisplayCurrentSheet();
static TOOL_ACTION cancelInteractive
static TOOL_ACTION selectionClear
Clear the current selection.
static bool IsGotoPageHref(const wxString &aHref, wxString *aDestination=nullptr)
Check if aHref is a valid internal hyperlink.
static TOOL_ACTION navigateBack
static TOOL_ACTION leaveSheet
static TOOL_ACTION navigateNext
static TOOL_ACTION navigateForward
static TOOL_ACTION navigatePrevious
static TOOL_ACTION changeSheet
static TOOL_ACTION enterSheet
static TOOL_ACTION navigateUp
A container for handling SCH_SHEET_PATH objects in a flattened hierarchy.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
void push_back(SCH_SHEET *aSheet)
Forwarded method from std::vector.
void pop_back()
Forwarded method from std::vector.
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
const wxString ResolveUriByEnvVars(const wxString &aUri, const PROJECT *aProject)
Replace any environment and/or text variables in URIs.
bool GetAssociatedDocument(wxWindow *aParent, const wxString &aDocName, PROJECT *aProject, SEARCH_STACK *aPaths, std::vector< EMBEDDED_FILES * > aFilesStack)
Open a document (file) with the suitable browser.
This file is part of the common library.
std::vector< FAB_LAYER_COLOR > dummy