From 2f7c7d3e005d9e48bf57c27c0357fa1450253919 Mon Sep 17 00:00:00 2001 From: Eugene Zelenko Date: Wed, 2 Jun 2021 22:05:32 -0700 Subject: [PATCH] Fix misspellings in laybasic. --- src/laybasic/laybasic/LayoutViewConfigPage3b.ui | 2 +- src/laybasic/laybasic/LayoutViewConfigPage3f.ui | 2 +- src/laybasic/laybasic/gsiDeclLayLayoutView.cc | 14 +++++++------- src/laybasic/laybasic/gsiDeclLayMenu.cc | 4 ++-- .../laybasic/gsiDeclLayNetlistBrowserDialog.cc | 2 +- src/laybasic/laybasic/gsiDeclLayPlugin.cc | 2 +- src/laybasic/laybasic/gtf.cc | 2 +- src/laybasic/laybasic/gtf.h | 8 ++++---- src/laybasic/laybasic/layAbstractMenu.cc | 8 ++++---- src/laybasic/laybasic/layAbstractMenu.h | 4 ++-- src/laybasic/laybasic/layAnnotationShapes.cc | 2 +- src/laybasic/laybasic/layBitmapRenderer.cc | 4 ++-- src/laybasic/laybasic/layBrowserPanel.h | 4 ++-- src/laybasic/laybasic/layDispatcher.h | 2 +- src/laybasic/laybasic/layDitherPattern.cc | 4 ++-- src/laybasic/laybasic/layEditable.h | 2 +- src/laybasic/laybasic/layFinder.h | 2 +- .../laybasic/layGenericSyntaxHighlighter.h | 2 +- src/laybasic/laybasic/layLayerProperties.cc | 2 +- src/laybasic/laybasic/layLayerTreeModel.cc | 2 +- src/laybasic/laybasic/layLayoutCanvas.cc | 2 +- src/laybasic/laybasic/layLayoutPropertiesForm.cc | 2 +- src/laybasic/laybasic/layLayoutView.cc | 8 ++++---- src/laybasic/laybasic/layLayoutView.h | 2 +- .../laybasic/layLayoutViewConfigPages.cc | 6 +++--- src/laybasic/laybasic/layLayoutViewFunctions.cc | 2 +- src/laybasic/laybasic/layMarker.h | 2 +- src/laybasic/laybasic/layMove.h | 2 +- src/laybasic/laybasic/layNetInfoDialog.cc | 2 +- src/laybasic/laybasic/layObjectInstPath.h | 2 +- src/laybasic/laybasic/layParsedLayerSource.cc | 2 +- src/laybasic/laybasic/layParsedLayerSource.h | 4 ++-- src/laybasic/laybasic/layPlugin.cc | 2 +- src/laybasic/laybasic/layPlugin.h | 6 +++--- src/laybasic/laybasic/layProperties.h | 2 +- src/laybasic/laybasic/layQtTools.h | 2 +- src/laybasic/laybasic/layRedrawThreadCanvas.h | 2 +- src/laybasic/laybasic/laySelector.cc | 2 +- src/laybasic/laybasic/laySelector.h | 2 +- src/laybasic/laybasic/laySnap.cc | 8 ++++---- src/laybasic/laybasic/laySnap.h | 2 +- src/laybasic/laybasic/layStream.h | 4 ++-- src/laybasic/laybasic/layViewObject.cc | 16 ++++++++-------- src/laybasic/laybasic/layViewObject.h | 16 ++++++++-------- src/laybasic/laybasic/layViewOp.h | 4 ++-- src/laybasic/laybasic/layWidgets.h | 4 ++-- 46 files changed, 91 insertions(+), 91 deletions(-) diff --git a/src/laybasic/laybasic/LayoutViewConfigPage3b.ui b/src/laybasic/laybasic/LayoutViewConfigPage3b.ui index 647c11ea9..3e71cb538 100644 --- a/src/laybasic/laybasic/LayoutViewConfigPage3b.ui +++ b/src/laybasic/laybasic/LayoutViewConfigPage3b.ui @@ -34,7 +34,7 @@ - Mouse wheel alternative mode (No button: vertical, Ctrl: zoom, Shift: horizonal) + Mouse wheel alternative mode (No button: vertical, Ctrl: zoom, Shift: horizontal) diff --git a/src/laybasic/laybasic/LayoutViewConfigPage3f.ui b/src/laybasic/laybasic/LayoutViewConfigPage3f.ui index f4f2e5bc4..c42960e40 100644 --- a/src/laybasic/laybasic/LayoutViewConfigPage3f.ui +++ b/src/laybasic/laybasic/LayoutViewConfigPage3f.ui @@ -122,7 +122,7 @@ - Multithreaded Drawing + Multi-threaded Drawing diff --git a/src/laybasic/laybasic/gsiDeclLayLayoutView.cc b/src/laybasic/laybasic/gsiDeclLayLayoutView.cc index a0ac9a6a5..fb82f6878 100644 --- a/src/laybasic/laybasic/gsiDeclLayLayoutView.cc +++ b/src/laybasic/laybasic/gsiDeclLayLayoutView.cc @@ -1113,7 +1113,7 @@ Class 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 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 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 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 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 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 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" diff --git a/src/laybasic/laybasic/gsiDeclLayMenu.cc b/src/laybasic/laybasic/gsiDeclLayMenu.cc index 298d8bba3..130f2f632 100644 --- a/src/laybasic/laybasic/gsiDeclLayMenu.cc +++ b/src/laybasic/laybasic/gsiDeclLayMenu.cc @@ -191,7 +191,7 @@ Class 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 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" diff --git a/src/laybasic/laybasic/gsiDeclLayNetlistBrowserDialog.cc b/src/laybasic/laybasic/gsiDeclLayNetlistBrowserDialog.cc index b2273298f..a7f05d9d6 100644 --- a/src/laybasic/laybasic/gsiDeclLayNetlistBrowserDialog.cc +++ b/src/laybasic/laybasic/gsiDeclLayNetlistBrowserDialog.cc @@ -154,7 +154,7 @@ Class 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, " diff --git a/src/laybasic/laybasic/gsiDeclLayPlugin.cc b/src/laybasic/laybasic/gsiDeclLayPlugin.cc index 15d8cc180..5a7345f5b 100644 --- a/src/laybasic/laybasic/gsiDeclLayPlugin.cc +++ b/src/laybasic/laybasic/gsiDeclLayPlugin.cc @@ -947,7 +947,7 @@ Class 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" ) + diff --git a/src/laybasic/laybasic/gtf.cc b/src/laybasic/laybasic/gtf.cc index 6e6fc1171..567a958f0 100644 --- a/src/laybasic/laybasic/gtf.cc +++ b/src/laybasic/laybasic/gtf.cc @@ -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 (*itl) != 0 || dynamic_cast (*itl) != 0 || dynamic_cast (*itl) != 0) { if (*itl == w) { break; diff --git a/src/laybasic/laybasic/gtf.h b/src/laybasic/laybasic/gtf.h index f8682d2d1..d410ac3a4 100644 --- a/src/laybasic/laybasic/gtf.h +++ b/src/laybasic/laybasic/gtf.h @@ -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) { diff --git a/src/laybasic/laybasic/layAbstractMenu.cc b/src/laybasic/laybasic/layAbstractMenu.cc index 680b782b6..2a7ecfbed 100644 --- a/src/laybasic/laybasic/layAbstractMenu.cc +++ b/src/laybasic/laybasic/layAbstractMenu.cc @@ -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; } diff --git a/src/laybasic/laybasic/layAbstractMenu.h b/src/laybasic/laybasic/layAbstractMenu.h index 96ee27294..752b0cf92 100644 --- a/src/laybasic/laybasic/layAbstractMenu.h +++ b/src/laybasic/laybasic/layAbstractMenu.h @@ -70,7 +70,7 @@ LAYBASIC_PUBLIC std::string pack_key_binding (const std::vector > 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 > &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 diff --git a/src/laybasic/laybasic/layAnnotationShapes.cc b/src/laybasic/laybasic/layAnnotationShapes.cc index 10a43b865..10a1865a6 100644 --- a/src/laybasic/laybasic/layAnnotationShapes.cc +++ b/src/laybasic/laybasic/layAnnotationShapes.cc @@ -56,7 +56,7 @@ AnnotationLayerOp::erase (AnnotationShapes *shapes) std::vector 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::const_iterator s = std::lower_bound (s_begin, s_end, *lsh); diff --git a/src/laybasic/laybasic/layBitmapRenderer.cc b/src/laybasic/laybasic/layBitmapRenderer.cc index 24a6e053a..bfce2e610 100644 --- a/src/laybasic/laybasic/layBitmapRenderer.cc +++ b/src/laybasic/laybasic/layBitmapRenderer.cc @@ -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) { diff --git a/src/laybasic/laybasic/layBrowserPanel.h b/src/laybasic/laybasic/layBrowserPanel.h index 2fe7d8aba..1cc97de93 100644 --- a/src/laybasic/laybasic/layBrowserPanel.h +++ b/src/laybasic/laybasic/layBrowserPanel.h @@ -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 diff --git a/src/laybasic/laybasic/layDispatcher.h b/src/laybasic/laybasic/layDispatcher.h index e1bb70dd8..ae7d0b31e 100644 --- a/src/laybasic/laybasic/layDispatcher.h +++ b/src/laybasic/laybasic/layDispatcher.h @@ -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. * diff --git a/src/laybasic/laybasic/layDitherPattern.cc b/src/laybasic/laybasic/layDitherPattern.cc index 0f0850559..786896f3e 100644 --- a/src/laybasic/laybasic/layDitherPattern.cc +++ b/src/laybasic/laybasic/layDitherPattern.cc @@ -49,8 +49,8 @@ static const char *dither_strings [] = { "*.\n" ".*", - // 3: coarsly dotted - "coarsly dotted", + // 3: coarsely dotted + "coarsely dotted", "*...\n" "....\n" "..*.\n" diff --git a/src/laybasic/laybasic/layEditable.h b/src/laybasic/laybasic/layEditable.h index 59cbcde0d..3aa739f6a 100644 --- a/src/laybasic/laybasic/layEditable.h +++ b/src/laybasic/laybasic/layEditable.h @@ -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 */ diff --git a/src/laybasic/laybasic/layFinder.h b/src/laybasic/laybasic/layFinder.h index c2b816029..939513f27 100644 --- a/src/laybasic/laybasic/layFinder.h +++ b/src/laybasic/laybasic/layFinder.h @@ -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); diff --git a/src/laybasic/laybasic/layGenericSyntaxHighlighter.h b/src/laybasic/laybasic/layGenericSyntaxHighlighter.h index 49408b7d5..1f0ffda19 100644 --- a/src/laybasic/laybasic/layGenericSyntaxHighlighter.h +++ b/src/laybasic/laybasic/layGenericSyntaxHighlighter.h @@ -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. */ diff --git a/src/laybasic/laybasic/layLayerProperties.cc b/src/laybasic/laybasic/layLayerProperties.cc index cd5db5b8c..d2a48227a 100644 --- a/src/laybasic/laybasic/layLayerProperties.cc +++ b/src/laybasic/laybasic/layLayerProperties.cc @@ -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; } diff --git a/src/laybasic/laybasic/layLayerTreeModel.cc b/src/laybasic/laybasic/layLayerTreeModel.cc index 66efa50e9..21a0c9934 100644 --- a/src/laybasic/laybasic/layLayerTreeModel.cc +++ b/src/laybasic/laybasic/layLayerTreeModel.cc @@ -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); } } diff --git a/src/laybasic/laybasic/layLayoutCanvas.cc b/src/laybasic/laybasic/layLayoutCanvas.cc index 90e56a097..d59ad13a2 100644 --- a/src/laybasic/laybasic/layLayoutCanvas.cc +++ b/src/laybasic/laybasic/layLayoutCanvas.cc @@ -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. diff --git a/src/laybasic/laybasic/layLayoutPropertiesForm.cc b/src/laybasic/laybasic/layLayoutPropertiesForm.cc index ab82c5c45..b02913317 100644 --- a/src/laybasic/laybasic/layLayoutPropertiesForm.cc +++ b/src/laybasic/laybasic/layLayoutPropertiesForm.cc @@ -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 (); diff --git a/src/laybasic/laybasic/layLayoutView.cc b/src/laybasic/laybasic/layLayoutView.cc index 1d73fdbb6..aa4c9a3f2 100644 --- a/src/laybasic/laybasic/layLayoutView.cc +++ b/src/laybasic/laybasic/layLayoutView.cc @@ -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::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); } diff --git a/src/laybasic/laybasic/layLayoutView.h b/src/laybasic/laybasic/layLayoutView.h index 93c0545d8..58dbf94c6 100644 --- a/src/laybasic/laybasic/layLayoutView.h +++ b/src/laybasic/laybasic/layLayoutView.h @@ -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 { diff --git a/src/laybasic/laybasic/layLayoutViewConfigPages.cc b/src/laybasic/laybasic/layLayoutViewConfigPages.cc index fd9d48996..9f5bc1ec0 100644 --- a/src/laybasic/laybasic/layLayoutViewConfigPages.cc +++ b/src/laybasic/laybasic/layLayoutViewConfigPages.cc @@ -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; diff --git a/src/laybasic/laybasic/layLayoutViewFunctions.cc b/src/laybasic/laybasic/layLayoutViewFunctions.cc index fdcad1ea3..5752ef3f4 100644 --- a/src/laybasic/laybasic/layLayoutViewFunctions.cc +++ b/src/laybasic/laybasic/layLayoutViewFunctions.cc @@ -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 (); diff --git a/src/laybasic/laybasic/layMarker.h b/src/laybasic/laybasic/layMarker.h index 3f6c105b2..c0a6eeed4 100644 --- a/src/laybasic/laybasic/layMarker.h +++ b/src/laybasic/laybasic/layMarker.h @@ -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) */ diff --git a/src/laybasic/laybasic/layMove.h b/src/laybasic/laybasic/layMove.h index fc45b0c6f..f9eb95f4b 100644 --- a/src/laybasic/laybasic/layMove.h +++ b/src/laybasic/laybasic/layMove.h @@ -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 (); diff --git a/src/laybasic/laybasic/layNetInfoDialog.cc b/src/laybasic/laybasic/layNetInfoDialog.cc index 1f4706bc1..368512dc6 100644 --- a/src/laybasic/laybasic/layNetInfoDialog.cc +++ b/src/laybasic/laybasic/layNetInfoDialog.cc @@ -332,7 +332,7 @@ void NetInfoDialog::update_info_text () db::coord_traits::area_type area = 0; db::coord_traits::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 ::iterator j = merged.begin (); j != merged.end (); ++j) { // Sum area area += j->area (); diff --git a/src/laybasic/laybasic/layObjectInstPath.h b/src/laybasic/laybasic/layObjectInstPath.h index 8d62dcb20..f8fcedd7d 100644 --- a/src/laybasic/laybasic/layObjectInstPath.h +++ b/src/laybasic/laybasic/layObjectInstPath.h @@ -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). */ diff --git a/src/laybasic/laybasic/layParsedLayerSource.cc b/src/laybasic/laybasic/layParsedLayerSource.cc index 1b585a7b5..c818532b0 100644 --- a/src/laybasic/laybasic/layParsedLayerSource.cc +++ b/src/laybasic/laybasic/layParsedLayerSource.cc @@ -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) diff --git a/src/laybasic/laybasic/layParsedLayerSource.h b/src/laybasic/laybasic/layParsedLayerSource.h index 6b7cb6b4f..9af1d8167 100644 --- a/src/laybasic/laybasic/layParsedLayerSource.h +++ b/src/laybasic/laybasic/layParsedLayerSource.h @@ -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 &matching) const; diff --git a/src/laybasic/laybasic/layPlugin.cc b/src/laybasic/laybasic/layPlugin.cc index 02df71b8d..725c42c7b 100644 --- a/src/laybasic/laybasic/layPlugin.cc +++ b/src/laybasic/laybasic/layPlugin.cc @@ -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::iterator cls = tl::Registrar::begin (); cls != tl::Registrar::end (); ++cls) { (const_cast (&*cls))->config_finalize (); diff --git a/src/laybasic/laybasic/layPlugin.h b/src/laybasic/laybasic/layPlugin.h index 9dfcbeade..87a955227 100644 --- a/src/laybasic/laybasic/layPlugin.h +++ b/src/laybasic/laybasic/layPlugin.h @@ -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 & /*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 diff --git a/src/laybasic/laybasic/layProperties.h b/src/laybasic/laybasic/layProperties.h index d055cccbb..58f1df9d7 100644 --- a/src/laybasic/laybasic/layProperties.h +++ b/src/laybasic/laybasic/layProperties.h @@ -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. diff --git a/src/laybasic/laybasic/layQtTools.h b/src/laybasic/laybasic/layQtTools.h index af4160c6e..6f3189b7a 100644 --- a/src/laybasic/laybasic/layQtTools.h +++ b/src/laybasic/laybasic/layQtTools.h @@ -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; */ diff --git a/src/laybasic/laybasic/layRedrawThreadCanvas.h b/src/laybasic/laybasic/layRedrawThreadCanvas.h index 999040896..6673ede28 100644 --- a/src/laybasic/laybasic/layRedrawThreadCanvas.h +++ b/src/laybasic/laybasic/layRedrawThreadCanvas.h @@ -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 () { } diff --git a/src/laybasic/laybasic/laySelector.cc b/src/laybasic/laybasic/laySelector.cc index 7bf05f828..d17180605 100644 --- a/src/laybasic/laybasic/laySelector.cc +++ b/src/laybasic/laybasic/laySelector.cc @@ -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; } diff --git a/src/laybasic/laybasic/laySelector.h b/src/laybasic/laybasic/laySelector.h index 591fc849a..54e88dbd5 100644 --- a/src/laybasic/laybasic/laySelector.h +++ b/src/laybasic/laybasic/laySelector.h @@ -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 diff --git a/src/laybasic/laybasic/laySnap.cc b/src/laybasic/laybasic/laySnap.cc index c85be012f..a6fd51a6b 100644 --- a/src/laybasic/laybasic/laySnap.cc +++ b/src/laybasic/laybasic/laySnap.cc @@ -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 ::const_iterator cl = m_cutlines.begin (); cl != m_cutlines.end (); ++cl) { std::pair 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 ())) { diff --git a/src/laybasic/laybasic/laySnap.h b/src/laybasic/laybasic/laySnap.h index 2f1e57faa..5e98a1cc7 100644 --- a/src/laybasic/laybasic/laySnap.h +++ b/src/laybasic/laybasic/laySnap.h @@ -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) */ diff --git a/src/laybasic/laybasic/layStream.h b/src/laybasic/laybasic/layStream.h index c58903fd9..bc0363d29 100644 --- a/src/laybasic/laybasic/layStream.h +++ b/src/laybasic/laybasic/layStream.h @@ -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 diff --git a/src/laybasic/laybasic/layViewObject.cc b/src/laybasic/laybasic/layViewObject.cc index fdceb51bd..2cdad35f0 100644 --- a/src/laybasic/laybasic/layViewObject.cc +++ b/src/laybasic/laybasic/layViewObject.cc @@ -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::iterator g = m_grabbed.begin (); !done && g != m_grabbed.end (); ) { std::list::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 (); diff --git a/src/laybasic/laybasic/layViewObject.h b/src/laybasic/laybasic/layViewObject.h index 5e92b4b00..6be3330a6 100644 --- a/src/laybasic/laybasic/layViewObject.h +++ b/src/laybasic/laybasic/layViewObject.h @@ -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 */ diff --git a/src/laybasic/laybasic/layViewOp.h b/src/laybasic/laybasic/layViewOp.h index 66320fc29..f8aadbfbd 100644 --- a/src/laybasic/laybasic/layViewOp.h +++ b/src/laybasic/laybasic/layViewOp.h @@ -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. * diff --git a/src/laybasic/laybasic/layWidgets.h b/src/laybasic/laybasic/layWidgets.h index 4ba5be802..942e7c904 100644 --- a/src/laybasic/laybasic/layWidgets.h +++ b/src/laybasic/laybasic/layWidgets.h @@ -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 + * @brief An interactive list widget which offers slots to delete and move items and interfaces to std::vector */ class LAYBASIC_PUBLIC InteractiveListWidget : public QListWidget