Merge pull request #820 from EugeneZelenko/laybasic-spell-check

Fix misspellings in laybasic.
This commit is contained in:
Matthias Köfferlein 2021-06-04 00:19:09 +02:00 committed by GitHub
commit 7aaed50bc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
46 changed files with 91 additions and 91 deletions

View File

@ -34,7 +34,7 @@
<item>
<widget class="QCheckBox" name="alt_mouse_wheel_mode_cbx" >
<property name="text" >
<string>Mouse wheel alternative mode (No button: vertical, Ctrl: zoom, Shift: horizonal)</string>
<string>Mouse wheel alternative mode (No button: vertical, Ctrl: zoom, Shift: horizontal)</string>
</property>
</widget>
</item>

View File

@ -122,7 +122,7 @@
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Multithreaded Drawing</string>
<string>Multi-threaded Drawing</string>
</property>
<layout class="QHBoxLayout">
<property name="spacing">

View File

@ -1113,7 +1113,7 @@ Class<lay::LayoutView> decl_LayoutView (QT_EXTERNAL_BASE (QWidget) "lay", "Layou
gsi::method ("get_screenshot", &lay::LayoutView::get_screenshot,
"@brief Gets a screenshot as a \\QImage\n"
"\n"
"Getting the image requires the drawing to be complete. Ideally, synchroneous mode is switched on "
"Getting the image requires the drawing to be complete. Ideally, synchronous mode is switched on "
"for the application to guarantee this condition. The image will have the size of the viewport "
"showing the current layout."
) +
@ -1124,7 +1124,7 @@ Class<lay::LayoutView> decl_LayoutView (QT_EXTERNAL_BASE (QWidget) "lay", "Layou
"@param height The height of the image to render in pixel.\n"
"\n"
"The image contains the current scene (layout, annotations etc.).\n"
"The image is drawn synchroneously with the given width and height. Drawing may take some time. "
"The image is drawn synchronously with the given width and height. Drawing may take some time. "
) +
gsi::method_ext ("get_image_with_options", &get_image_with_options, gsi::arg ("width"), gsi::arg ("height"), gsi::arg ("linewidth"), gsi::arg ("oversampling"), gsi::arg ("resolution"), gsi::arg ("target"), gsi::arg ("monochrome"),
"@brief Gets the layout image as a \\QImage (with options)\n"
@ -1139,7 +1139,7 @@ Class<lay::LayoutView> decl_LayoutView (QT_EXTERNAL_BASE (QWidget) "lay", "Layou
"\n"
"The image contains the current scene (layout, annotations etc.).\n"
"The image is written as a PNG file to the given file. "
"The image is drawn synchroneously with the given width and height. Drawing may take some time. "
"The image is drawn synchronously with the given width and height. Drawing may take some time. "
"Monochrome images don't have background or annotation objects currently.\n"
"\n"
"This method has been introduced in 0.23.10.\n"
@ -1151,7 +1151,7 @@ Class<lay::LayoutView> decl_LayoutView (QT_EXTERNAL_BASE (QWidget) "lay", "Layou
"@param filename The file to which to write the screenshot to.\n"
"\n"
"The screenshot is written as a PNG file to the given file. "
"This requires the drawing to be complete. Ideally, synchroneous mode is switched on "
"This requires the drawing to be complete. Ideally, synchronous mode is switched on "
"for the application to guarantee this condition. The image will have the size of the viewport "
"showing the current layout."
) +
@ -1164,7 +1164,7 @@ Class<lay::LayoutView> decl_LayoutView (QT_EXTERNAL_BASE (QWidget) "lay", "Layou
"\n"
"The image contains the current scene (layout, annotations etc.).\n"
"The image is written as a PNG file to the given file. "
"The image is drawn synchroneously with the given width and height. Drawing may take some time. "
"The image is drawn synchronously with the given width and height. Drawing may take some time. "
) +
gsi::method_ext ("save_image_with_options", &save_image_with_options, gsi::arg ("filename"), gsi::arg ("width"), gsi::arg ("height"), gsi::arg ("linewidth"), gsi::arg ("oversampling"), gsi::arg ("resolution"), gsi::arg ("target"), gsi::arg ("monochrome"),
"@brief Saves the layout as an image to the given file (with options)\n"
@ -1180,7 +1180,7 @@ Class<lay::LayoutView> decl_LayoutView (QT_EXTERNAL_BASE (QWidget) "lay", "Layou
"\n"
"The image contains the current scene (layout, annotations etc.).\n"
"The image is written as a PNG file to the given file. "
"The image is drawn synchroneously with the given width and height. Drawing may take some time. "
"The image is drawn synchronously with the given width and height. Drawing may take some time. "
"Monochrome images don't have background or annotation objects currently.\n"
"\n"
"This method has been introduced in 0.23.10.\n"
@ -2279,7 +2279,7 @@ Class<lay::CellViewRef> decl_CellView ("lay", "CellView",
"The hierarchy levels are counted from the context cell, which is on level 0.\n"
"If the context path is empty, the context cell is identical with the target cell.\n"
"\n"
"Starting with version 0.25, the cellview can be modified directly. This will have an immdiate "
"Starting with version 0.25, the cellview can be modified directly. This will have an immediate "
"effect on the display. For example, the following code will select a different cell:\n"
"\n"
"@code\n"

View File

@ -191,7 +191,7 @@ Class<lay::AbstractMenu> decl_AbstractMenu ("lay", "AbstractMenu",
"@param group The group name\n"
"@param A vector of all members (by path) of the group\n"
),
"@brief An abstraction for the application menues\n"
"@brief An abstraction for the application menus\n"
"\n"
"The abstract menu is a class that stores a main menu and several popup menus\n"
"in a generic form such that they can be manipulated and converted into GUI objects.\n"
@ -383,7 +383,7 @@ Class<ActionStub> decl_Action (decl_ActionBase, "lay", "Action",
),
"@brief The abstraction for an action (i.e. used inside menus)\n"
"\n"
"Actions act as a generalisation of menu entries. The action provides the appearance of a menu "
"Actions act as a generalization of menu entries. The action provides the appearance of a menu "
"entry such as title, key shortcut etc. and dispatches the menu events. The action can be manipulated "
"to change to appearance of a menu entry and can be attached an observer that receives the events "
"when the menu item is selected.\n"

View File

@ -154,7 +154,7 @@ Class<lay::NetlistObjectsPath> decl_NetlistObjectsPath ("lay", "NetlistObjectsPa
gsi::method_ext ("second", &second,
"@brief Gets the second object's path.\n"
"In cases of paired netlists (LVS database), the first path points to the schematic netlist object.\n"
"For the single netlist, the scecond path is always a null path."
"For the single netlist, the second path is always a null path."
),
"@brief An object describing the instantiation of a single netlist object or a pair of those.\n"
"This class is basically a pair of netlist object paths (see \\NetlistObjectPath). When derived from a single netlist view, "

View File

@ -947,7 +947,7 @@ Class<lay::Dispatcher> decl_Dispatcher ("lay", "Dispatcher",
"@brief Reads the configuration from a file\n"
"@return A value indicating whether the operation was successful\n"
"\n"
"This method siletly does nothing, if the config file does not\n"
"This method silently does nothing, if the config file does not\n"
"exist. If it does and an error occurred, the error message is printed\n"
"on stderr. In both cases, false is returned.\n"
) +

View File

@ -287,7 +287,7 @@ widget_to_path (QWidget *w, const char *pf = 0)
} else {
QWidgetList tlw = QApplication::topLevelWidgets ();
for (QWidgetList::const_iterator itl = tlw.begin (); itl != tlw.end (); ++itl) {
// only QDialog or QMainWindow anchestors count as valid top level widgets
// only QDialog or QMainWindow ancestors count as valid top level widgets
if (dynamic_cast<QDialog *> (*itl) != 0 || dynamic_cast<QMainWindow *> (*itl) != 0 || dynamic_cast <QWidget *> (*itl) != 0) {
if (*itl == w) {
break;

View File

@ -186,8 +186,8 @@ public:
* @brief Load the log file
*
* This method parses the given file and stores the events internally.
* If the file is not a valid log file or an error occures, an exception
* is thown.
* If the file is not a valid log file or an error occurs, an exception
* is thrown.
*/
void load (const std::string &filename, bool no_spontaneous = false);
@ -372,8 +372,8 @@ public:
* @brief Load the log file
*
* This method parses the given file and stores the events internally.
* If the file is not a valid log file or an error occures, an exception
* is thown.
* If the file is not a valid log file or an error occurs, an exception
* is thrown.
*/
void load (const std::string &filename, bool no_spontaneous = false)
{

View File

@ -49,7 +49,7 @@ namespace lay
#if defined(__APPLE__)
// On MacOS, the main menu bar and it's decendent children
// can't be modified using "removeAction", followrd by "addAction"
// can't be modified using "removeAction", followed by "addAction"
// to achieve a move operation.If we try to do so, segmentation faults happen
// in the timer event that presumably tries to merge the menu bar
// with the application menu.
@ -832,7 +832,7 @@ ConfigureAction::ConfigureAction (const std::string &title, const std::string &c
: Action (title), m_cname (cname), m_cvalue (cvalue), m_type (ConfigureAction::setter_type)
{
if (cvalue == "?") {
// A "?" notation indicates a boolean toogle entry
// A "?" notation indicates a boolean toggle entry
m_type = boolean_type;
set_checkable (true);
} else if (! cvalue.empty () && cvalue[0] == '?') {
@ -1029,7 +1029,7 @@ AbstractMenu::build (QMenuBar *mbar, QToolBar *tbar)
c->set_action (new Action (menu), true);
}
// prepare a detached menu which can be used as context menues
// prepare a detached menu which can be used as context menus
build (c->menu (), c->children);
} else if (mbar) {
@ -1361,7 +1361,7 @@ AbstractMenu::delete_item (const std::string &p)
if (p->second == p->first->children.end ()) {
break;
} else if (p != path.rbegin () && (! p->second->remove_on_empty () || ! p->second->children.empty ())) {
// stop on non-empty parent menues
// stop on non-empty parent menus
break;
}

View File

@ -70,7 +70,7 @@ LAYBASIC_PUBLIC std::string pack_key_binding (const std::vector<std::pair<std::s
LAYBASIC_PUBLIC std::vector<std::pair<std::string, bool> > unpack_menu_items_hidden (const std::string &packed);
/**
* @brief A utility function to convert the hidde flags (as path/bool pair vector) to a packed string for cfg_menu_items_hidden
* @brief A utility function to convert the hidden flags (as path/bool pair vector) to a packed string for cfg_menu_items_hidden
*/
LAYBASIC_PUBLIC std::string pack_menu_items_hidden (const std::vector<std::pair<std::string, bool> > &unpacked);
@ -359,7 +359,7 @@ private:
};
/**
* @brief A specialisation for the Action to issue a "configure" request on "triggered"
* @brief A specialization for the Action to issue a "configure" request on "triggered"
*
* When this action is triggered, a "configure" request is issued to the Dispatcher instance
* (which is the root of the configuration hierarchy). The name and value is given by the

View File

@ -56,7 +56,7 @@ AnnotationLayerOp::erase (AnnotationShapes *shapes)
std::vector<AnnotationShapes::layer_type::iterator> to_erase;
to_erase.reserve (m_shapes.size ());
// This is not quite effective but seems to be the simpliest way
// This is not quite effective but seems to be the simplest way
// of implementing this: search for each element and erase these.
for (AnnotationShapes::layer_type::iterator lsh = shapes->begin (); lsh != shapes->end (); ++lsh) {
std::vector<shape_type>::const_iterator s = std::lower_bound (s_begin, s_end, *lsh);

View File

@ -53,7 +53,7 @@ BitmapRenderer::reserve_texts (size_t n)
void
BitmapRenderer::clear ()
{
// this implementation is efficent but does not free memory -
// this implementation is efficient but does not free memory -
// the idea is to let the BitmapRenderer object manage it's workspace.
m_edges.erase (m_edges.begin (), m_edges.end ());
// might be manhattan
@ -151,7 +151,7 @@ BitmapRenderer::insert (const db::DEdge &e)
m_ymax = std::max (m_ymax, std::max (e.y1 (), e.y2 ()));
}
// check, if the edge is neigther horizontal nor vertical -
// check, if the edge is neither horizontal nor vertical -
// reset the orthogonal flag in this case.
if (m_ortho && fabs (e.x1 () - e.x2 ()) > render_epsilon
&& fabs (e.y1 () - e.y2 ()) > render_epsilon) {

View File

@ -259,7 +259,7 @@ private:
};
/**
* @brief A specialisation of QTextBrowser that allows loading a specific resource through BrowserPanel
* @brief A specialization of QTextBrowser that allows loading a specific resource through BrowserPanel
*/
class LAYBASIC_PUBLIC BrowserTextWidget
: public QTextBrowser
@ -303,7 +303,7 @@ struct LAYBASIC_PUBLIC BookmarkItem
};
/**
* @brief A specialisation of QWidget around a TextBrowser that allows loading a specific resource
* @brief A specialization of QWidget around a TextBrowser that allows loading a specific resource
*/
class LAYBASIC_PUBLIC BrowserPanel
: public QWidget

View File

@ -142,7 +142,7 @@ public:
/**
* @brief Read the configuration from a file
*
* This method siletly does nothing, if the config file does not
* This method silently does nothing, if the config file does not
* exist. If it does and an error occurred, the error message is printed
* on stderr. In both cases, false is returned.
*

View File

@ -49,8 +49,8 @@ static const char *dither_strings [] = {
"*.\n"
".*",
// 3: coarsly dotted
"coarsly dotted",
// 3: coarsely dotted
"coarsely dotted",
"*...\n"
"....\n"
"..*.\n"

View File

@ -217,7 +217,7 @@ public:
* This method is used by the single-point selection cycling protocol to clear the
* plugin's single-point selection state. The cycling protocol is used when a certain
* point is clicked at multiple times. A plugin is supposed to remember such selections and
* exlcude them from further checks. If all objects in question are selected, no further
* exclude them from further checks. If all objects in question are selected, no further
* object would be selected. clear_previous_selection is called in that case to indicate that
* the previous selection should be cleared and a new cycle is about to begin
*/

View File

@ -166,7 +166,7 @@ protected:
* "trans" is the transformation to be applied to the edge before the test.
*
* This method returns a mask indicating which point of the edge was matching.
* Bit 0 of this mask indicates the first point is matching, bit 1 indictates the
* Bit 0 of this mask indicates the first point is matching, bit 1 indicates the
* second point is matching.
*/
unsigned int test_edge (const db::ICplxTrans &trans, const db::Edge &edge, double &distance, bool &match);

View File

@ -502,7 +502,7 @@ public:
}
/**
* @brief Gets a context by name and creates the context if it does not exist alread
* @brief Gets a context by name and creates the context if it does not exist already.
*
* If a new context is created, a new ID is assigned.
*/

View File

@ -813,7 +813,7 @@ LayerPropertiesNode::attach_view (LayoutView *view, unsigned int list_index)
c->attach_view (view, list_index);
}
// Attachment of a view is a strong indication that something significant changed -
// recompute the source specfications on next request
// recompute the source specifications on next request.
m_realize_needed_source = true;
}

View File

@ -824,7 +824,7 @@ LayerTreeModel::data (const QModelIndex &index, int role) const
// blinking
animate_visible = ((m_phase & 1) == 0);
} else {
// inversly blinking
// inversely blinking
animate_visible = ((m_phase & 1) != 0);
}
}

View File

@ -835,7 +835,7 @@ LayoutCanvas::image_with_options (unsigned int width, unsigned int height, int l
lay::RedrawThread redraw_thread (&rd_canvas, mp_view);
// render the layout
redraw_thread.start (0 /*synchroneous*/, m_layers, vp, resolution, true);
redraw_thread.start (0 /*synchronous*/, m_layers, vp, resolution, true);
redraw_thread.stop (); // safety
// paint the background objects. It uses "img" to paint on.

View File

@ -155,7 +155,7 @@ LayoutPropertiesForm::prop_pb_clicked ()
lay::UserPropertiesForm props_form (this);
if (props_form.show (mp_view, m_index, prop_id)) {
mp_view->manager ()->transaction (tl::to_string (QObject::tr ("Edit layout's user propertes")));
mp_view->manager ()->transaction (tl::to_string (QObject::tr ("Edit layout's user properties")));
layout.prop_id (prop_id);
mp_view->manager ()->commit ();

View File

@ -679,7 +679,7 @@ LayoutView::~LayoutView ()
stop ();
// because LayoutView and LayoutCanvas both control lifetimes of
// ruler objects for example, it is safer to explictly delete the
// ruler objects for example, it is safer to explicitly delete the
// LayoutCanvas object here:
delete mp_canvas;
mp_canvas = 0;
@ -725,7 +725,7 @@ lay::EditorOptionsPages *LayoutView::editor_options_pages ()
void LayoutView::do_setup_editor_options_pages ()
{
// intialize the editor option pages
// initialize the editor option pages
lay::EditorOptionsPages *eo_pages = editor_options_pages ();
if (eo_pages) {
for (std::vector<lay::EditorOptionsPage *>::const_iterator op = eo_pages->pages ().begin (); op != eo_pages->pages ().end (); ++op) {
@ -2003,7 +2003,7 @@ LayoutView::merge_dither_pattern (lay::LayerPropertiesList &props)
void
LayoutView::set_properties (unsigned int index, const LayerPropertiesList &props)
{
// If index is not a valid tab index, don't do anythign except for the case of
// If index is not a valid tab index, don't do anything except for the case of
// index 0 in which the first entry is created (this can happen as a result of
// delete_properties).
if (index >= layer_lists ()) {
@ -4295,7 +4295,7 @@ LayoutView::set_view_ops ()
// blinking
animate_visible = ((m_phase & 1) == 0);
} else {
// inversly blinking
// inversely blinking
animate_visible = ((m_phase & 1) != 0);
}

View File

@ -2342,7 +2342,7 @@ public:
void remove_unused_layers ();
/**
* @brief Returns true, if the layer shource shall be shown always in the layer properties tree
* @brief Returns true, if the layer source shall be shown always in the layer properties tree
*/
bool always_show_source () const
{

View File

@ -681,7 +681,7 @@ LayoutViewConfigPage4::LayoutViewConfigPage4 (QWidget *parent)
LayoutViewConfigPage4::~LayoutViewConfigPage4 ()
{
// deinstall the manager
// uninstall the manager
manager (0);
delete mp_ui;
@ -1015,7 +1015,7 @@ LayoutViewConfigPage6::LayoutViewConfigPage6 (QWidget *parent)
LayoutViewConfigPage6::~LayoutViewConfigPage6 ()
{
// deinstall the manager
// uninstall the manager
manager (0);
delete mp_ui;
@ -1300,7 +1300,7 @@ LayoutViewConfigPage6a::LayoutViewConfigPage6a (QWidget *parent)
LayoutViewConfigPage6a::~LayoutViewConfigPage6a ()
{
// deinstall the manager
// uninstall the manager
manager (0);
delete mp_ui;

View File

@ -394,7 +394,7 @@ LayoutViewFunctions::cm_cell_user_properties ()
lay::UserPropertiesForm props_form (view ());
if (props_form.show (view (), cv_index, prop_id)) {
view ()->transaction (tl::to_string (QObject::tr ("Edit cell's user propertes")));
view ()->transaction (tl::to_string (QObject::tr ("Edit cell's user properties")));
cell.prop_id (prop_id);
view ()->commit ();

View File

@ -149,7 +149,7 @@ public:
}
/**
* @brief Set the framee pattern index for the marker
* @brief Set the frame pattern index for the marker
*
* The default pattern is 0 (solid)
*/

View File

@ -57,7 +57,7 @@ private:
virtual bool mouse_move_event (const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool mouse_double_click_event (const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool mouse_release_event (const db::DPoint &p, unsigned int /*buttons*/, bool prio);
virtual bool wheel_event (int delta, bool horizonal, const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool wheel_event (int delta, bool horizontal, const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool key_event (unsigned int key, unsigned int buttons);
virtual void drag_cancel ();
virtual void deactivated ();

View File

@ -332,7 +332,7 @@ void NetInfoDialog::update_info_text ()
db::coord_traits<db::Coord>::area_type area = 0;
db::coord_traits<db::Coord>::perimeter_type perimeter = 0;
// Despite merging, a multitude of seperate non-touching polygons can exist.
// Despite merging, a multitude of separate non-touching polygons can exist.
for (std::vector <db::Polygon>::iterator j = merged.begin (); j != merged.end (); ++j) {
// Sum area
area += j->area ();

View File

@ -48,7 +48,7 @@ namespace lay {
* @brief A class encapsulating an instantiation path and the element addressed by it
*
* This class either addresses an instance (in which case the path is that to the instance
* adressed) or a shape (in which case the path leads to the cell that has this shape and
* addressed) or a shape (in which case the path leads to the cell that has this shape and
* the layer and shape is specified additionally).
*/

View File

@ -422,7 +422,7 @@ extract_base (tl::Extractor &ex)
}
/**
* @brief Expression parser: parse complex elements (brackted expressions)
* @brief Expression parser: parse complex elements (bracketed expressions)
*/
static PropertySelectorBase *
extract_element (tl::Extractor &ex)

View File

@ -495,7 +495,7 @@ public:
bool operator== (const PropertySelector &sel) const;
/**
* @brief Inquality
* @brief Inequality
*/
bool operator!= (const PropertySelector &sel) const
{
@ -541,7 +541,7 @@ public:
* A set of properties ids is determined that each satisfies the given
* selection. The set should be empty on enter. Otherwise the results are
* not defined.
* The return value is true if the ids are to be interpretated inversely (every properties id
* The return value is true if the ids are to be interpreted inversely (every properties id
* matches that is not in the set). This allows optimizing the computation of the set.
*/
bool matching (const db::PropertiesRepository &rep, std::set<db::properties_id_type> &matching) const;

View File

@ -372,7 +372,7 @@ Plugin::config_set (const std::string &name, const std::string &value)
void
Plugin::config_end ()
{
// finish static conifgurations for plugins if the root is addressed
// finish static configurations for plugins if the root is addressed
if (! mp_parent && ! m_standalone) {
for (tl::Registrar<lay::PluginDeclaration>::iterator cls = tl::Registrar<lay::PluginDeclaration>::begin (); cls != tl::Registrar<lay::PluginDeclaration>::end (); ++cls) {
(const_cast<lay::PluginDeclaration *> (&*cls))->config_finalize ();

View File

@ -291,7 +291,7 @@ public:
* Reimplementation of this method offers a chance to initialize static resources such as
* dialogs etc.
* While initialize is called before any configuration is loaded, "initialized" will be
* called after the pugin system has been initially configured.
* called after the plugin system has been initially configured.
*/
virtual void initialized (lay::Dispatcher * /*dispatcher*/)
{
@ -321,7 +321,7 @@ public:
* @brief Fetches the menu objects for this plugin
*
* The implementation of this method is supposed to call the base
* class'es "get_menu_entries" method and add it's own entries.
* classes "get_menu_entries" method and add it's own entries.
*/
virtual void get_menu_entries (std::vector<lay::MenuEntry> & /*menu_entries*/) const
{
@ -600,7 +600,7 @@ public:
}
/**
* @brief Terminat a sequence of configuration setups
* @brief Terminate a sequence of configuration setups
*
* In order to make configuration changes effective, this method
* must be called. It calls config_finalize recursively on the

View File

@ -126,7 +126,7 @@ public:
virtual bool at_end () const = 0;
/**
* @brief Step one elemement back
* @brief Step one element back
*
* This method is supposed to move the current pointer one position
* back. If at_begin () was true before, the result may be unpredictable.

View File

@ -43,7 +43,7 @@ namespace lay
{
/**
* @brief Save the given Widget's (dialog) state to the string
* @brief Save the given widget's (dialog) state to the string
*
* The state can be recovered from the string using restore_dialog_state;
*/

View File

@ -63,7 +63,7 @@ public:
/**
* @brief Signal that a transfer has been done
*
* This method is called (from the redraw thread) if a transfer has been performed ansynchreously
* This method is called (from the redraw thread) if a transfer has been performed asynchronously
*/
virtual void signal_transfer_done () { }

View File

@ -113,7 +113,7 @@ SelectionService::reset_box ()
}
bool
SelectionService::wheel_event (int /*delta*/, bool /*horizonal*/, const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/)
SelectionService::wheel_event (int /*delta*/, bool /*horizontal*/, const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/)
{
return false;
}

View File

@ -62,7 +62,7 @@ public:
virtual bool mouse_press_event (const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool mouse_click_event (const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool mouse_double_click_event (const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool wheel_event (int delta, bool horizonal, const db::DPoint &p, unsigned int buttons, bool prio);
virtual bool wheel_event (int delta, bool horizontal, const db::DPoint &p, unsigned int buttons, bool prio);
/**
* @brief Reset the hover timer for the transient selection

View File

@ -225,7 +225,7 @@ snap_angle (const db::DVector &in, lay::angle_constraint_type ac)
* @brief A finder for a point on a contour
*
* This is an object to look up a point on a contour.
* It will start from a gvein point and look into the direction of given cutlines.
* It will start from a given point and look into the direction of given cutlines.
* It will try to find the closest snapping point while also considering snapping.
*
* There are basically three modes:
@ -242,7 +242,7 @@ snap_angle (const db::DVector &in, lay::angle_constraint_type ac)
* guaranteed to sit on an edge.
*
* The finder will deliver two solutions if available: an exact one where the
* point sits exactly on the constraint and a more generic one where the resoluting
* point sits exactly on the constraint and a more generic one where the resulting
* point is allowed to deviate a little from that direction. The exact solution is
* priority in the generic case.
*/
@ -489,7 +489,7 @@ private:
} else {
// Test, if there is a crossing between a cut line and the vertical
// or horizonal lines through the given point. Take this as the
// or horizontal lines through the given point. Take this as the
// test point.
for (std::vector <db::DEdge>::const_iterator cl = m_cutlines.begin (); cl != m_cutlines.end (); ++cl) {
std::pair<bool, db::DPoint> ret;
@ -753,7 +753,7 @@ do_obj_snap (lay::LayoutView *view, const db::DPoint &pt, const db::DVector &gri
}
}
// if both the projection and the finder are sucessful, decide by a heuristic criterion which to take
// if both the projection and the finder are successful, decide by a heuristic criterion which to take
// (the projection gets a penalty (of the snap range) to make it count less than the finder's choice)
// This avoids extreme distortions of the ruler due to projection on long edges.
if (finder.any () && anyp && (dp.distance (closest) + snap_range) * 5.0 < dp.distance (finder.get_found ())) {

View File

@ -47,7 +47,7 @@ namespace lay
* Any: no angle constraint
* Diagonal: vertical, horizontal and 45 degree diagonals
* Ortho: vertical and horizontal
* Horizonal: horizontal only
* Horizontal: horizontal only
* Vertical: vertical only
* Global: use global setting (templates and ruler specific setting only)
*/

View File

@ -172,7 +172,7 @@ private:
};
/**
* @brief A specialisation of Plugin declaration for stream reader plugins
* @brief A specialization of Plugin declaration for stream reader plugins
*/
class LAYBASIC_PUBLIC StreamReaderPluginDeclaration
: public StreamPluginDeclarationBase
@ -212,7 +212,7 @@ public:
};
/**
* @brief A specialisation of Plugin declaration for stream reader plugins
* @brief A specialization of Plugin declaration for stream reader plugins
*/
class LAYBASIC_PUBLIC StreamWriterPluginDeclaration
: public StreamPluginDeclarationBase

View File

@ -126,9 +126,9 @@ CellDragDropData::deserialize (const QByteArray &ba)
static unsigned int
qt_to_buttons (Qt::MouseButtons b, Qt::KeyboardModifiers m)
{
// this is a straightforward conversion with the excepton that
// MetaModifyer+LeftButton is taken as a RightButton
// This is useful on MAC OX for people wizh a one-button mouse.
// this is a straightforward conversion with the exception that
// MetaModifier+LeftButton is taken as a RightButton
// This is useful on MAC OX for people with a one-button mouse.
// They can do a right click by doing a ctrl-leftclick.
// BTW: On a MAC's keyboard, the cmd-key is received here as a ControlModifier
// while the ctrl-key is received as a MetaModifier
@ -769,31 +769,31 @@ BEGIN_PROTECTED
bool done = false;
unsigned int buttons = qt_to_buttons (e->buttons (), e->modifiers ());
bool horizonal = (e->orientation () == Qt::Horizontal);
bool horizontal = (e->orientation () == Qt::Horizontal);
db::DPoint p = pixel_to_um (e->pos ());
for (std::list<ViewService *>::iterator g = m_grabbed.begin (); !done && g != m_grabbed.end (); ) {
std::list<ViewService *>::iterator gg = g;
++gg;
done = ((*g)->enabled () && (*g)->wheel_event (e->delta (), horizonal, p, buttons, true));
done = ((*g)->enabled () && (*g)->wheel_event (e->delta (), horizontal, p, buttons, true));
g = gg;
}
if (! done && mp_active_service) {
done = (mp_active_service->enabled () && mp_active_service->wheel_event (e->delta (), horizonal, p, buttons, true));
done = (mp_active_service->enabled () && mp_active_service->wheel_event (e->delta (), horizontal, p, buttons, true));
}
service_iterator svc = begin_services ();
while (svc != end_services () && !done) {
service_iterator next = svc;
++next;
done = ((*svc)->enabled () && (*svc)->wheel_event (e->delta (), horizonal, p, buttons, false));
done = ((*svc)->enabled () && (*svc)->wheel_event (e->delta (), horizontal, p, buttons, false));
svc = next;
}
if (! done) {
wheel_event (e->delta (), horizonal, p, buttons);
wheel_event (e->delta (), horizontal, p, buttons);
}
end_mouse_event ();

View File

@ -286,7 +286,7 @@ public:
/**
* @brief Mouse single-click event handler
*
* Analogeous to mouse_press_event (see above), but sent if the mouse was not moved.
* Analogous to mouse_press_event (see above), but sent if the mouse was not moved.
* The click event is coincident with the release of the mouse button.
*/
virtual bool mouse_click_event (const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/) { return false; }
@ -294,7 +294,7 @@ public:
/**
* @brief Mouse double-click event handler
*
* Analogeous to mouse_press_event (see above), but sent if a double-click was detected.
* Analogous to mouse_press_event (see above), but sent if a double-click was detected.
*/
virtual bool mouse_double_click_event (const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/) { return false; }
@ -311,24 +311,24 @@ public:
/**
* @brief Mouse move event handler
*
* Analogeous to mouse_press_event (see above).
* Analogous to mouse_press_event (see above).
*/
virtual bool mouse_move_event (const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/) { return false; }
/**
* @brief Mouse release event handler
*
* Analogeous to mouse_press_event (see above).
* Analogous to mouse_press_event (see above).
*/
virtual bool mouse_release_event (const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/) { return false; }
/**
* @brief Wheel event handler
*
* Analogeous to mouse_press_event (see above).
* Analogous to mouse_press_event (see above).
*
* @param delta The rotation angle in eigths of a degree
* @param horizonal True, if the horizontal wheel was turned
* @param delta The rotation angle in eights of a degree
* @param horizontal True, if the horizontal wheel was turned
* @param p The position where the mouse currently is at (in micron units)
*/
virtual bool wheel_event (int /*delta*/, bool /*horizontal*/, const db::DPoint & /*p*/, unsigned int /*buttons*/, bool /*prio*/) { return false; }
@ -381,7 +381,7 @@ public:
virtual void drag_cancel () { }
/**
* @brief Enable or disable a sevice
* @brief Enable or disable a service
*
* If a service is disabled, it will not receive mouse events
*/

View File

@ -39,7 +39,7 @@ const unsigned int wordbits = 5;
const unsigned int wordones = 0xffffffff;
/**
* @brief The operator that decribes how a bitmap is combined with the others on the stack
* @brief The operator that describes how a bitmap is combined with the others on the stack
*
* Each operator is described by these properties:
* - a mode (copy, or, and, xor) which describes what boolean operation to use
@ -48,7 +48,7 @@ const unsigned int wordones = 0xffffffff;
* - a bitmap index
*
* The bitmap index describes which bitmap to take the data from.
* Usually bitmaps and combination operators are organised in two vectors: one for the
* Usually bitmaps and combination operators are organized in two vectors: one for the
* bitmaps and one for the operators. By default, each operator is associated with the
* corresponding bitmap.
*

View File

@ -280,7 +280,7 @@ private:
};
/**
* @brief Simpl color chooser button
* @brief Simple color chooser button
*
* This class implements a special button that can replace a
* usual push button and supplies a color chooser without the
@ -465,7 +465,7 @@ private:
};
/**
* @brief An interactive liste widget which offers slots to delete and move items and interfaces to std::vector<std::string>
* @brief An interactive list widget which offers slots to delete and move items and interfaces to std::vector<std::string>
*/
class LAYBASIC_PUBLIC InteractiveListWidget
: public QListWidget