KiCad PCB EDA Suite
Loading...
Searching...
No Matches
nl_gerbview_plugin_impl.cpp File Reference
#include "nl_gerbview_plugin_impl.h"
#include <gal/graphics_abstraction_layer.h>
#include <gerbview_frame.h>
#include <bitmaps.h>
#include <class_draw_panel_gal.h>
#include <view/view.h>
#include <view/wx_view_controls.h>
#include <tool/action_manager.h>
#include <tool/tool_action.h>
#include <tool/tool_manager.h>
#include <list>
#include <map>
#include <memory>
#include <utility>
#include <vector>
#include <cfloat>
#include <wx/log.h>
#include <wx/mstream.h>

Go to the source code of this file.

Typedefs

using CATEGORY_STORE = std::map< std::string, TDx::CCommandTreeNode *, std::less<> >
 

Functions

static void add_category (const std::string &aCategoryPath, CATEGORY_STORE &aCategoryStore)
 Add a category to the store.
 
static void try_add_category (const std::string &aCategoryPath, CATEGORY_STORE &aCategoryStore)
 add_category wrapper.
 

Typedef Documentation

◆ CATEGORY_STORE

using CATEGORY_STORE = std::map<std::string, TDx::CCommandTreeNode*, std::less<> >

Definition at line 114 of file nl_gerbview_plugin_impl.cpp.

Function Documentation

◆ add_category()

static void add_category ( const std::string &  aCategoryPath,
CATEGORY_STORE aCategoryStore 
)
static

Add a category to the store.

The function adds category paths of the format "A.B" where B is a sub-category of A.

Parameters
aCategoryPathis the std::string representation of the category.
aCategoryStoreis the CATEGORY_STORE instance to add to.

Definition at line 125 of file nl_gerbview_plugin_impl.cpp.

References add_category(), and name.

Referenced by add_category(), and try_add_category().

◆ try_add_category()

static void try_add_category ( const std::string &  aCategoryPath,
CATEGORY_STORE aCategoryStore 
)
static

add_category wrapper.

Function checks if path exists in the category and adds it if it doesn't.

Parameters
aCategoryPathis the std::string representation of the category.
aCategoryStoreis the CATEGORY_STORE instance to add to.

Definition at line 160 of file nl_gerbview_plugin_impl.cpp.

References add_category().

Referenced by NL_GERBVIEW_PLUGIN_IMPL::exportCommandsAndImages(), and NL_PL_EDITOR_PLUGIN_IMPL::exportCommandsAndImages().