[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
committed by
WandererFan
parent
a207d11fa4
commit
e92ed45df9
@@ -35,7 +35,7 @@ public:
|
||||
Module()
|
||||
: Py::ExtensionModule<Module>("Start")
|
||||
{
|
||||
initialize("This module is the Start module.");// register with Python
|
||||
initialize("This module is the Start module."); // register with Python
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -46,7 +46,7 @@ PyObject* initModule()
|
||||
return Base::Interpreter().addModule(new Module);
|
||||
}
|
||||
|
||||
}// namespace Start
|
||||
} // namespace Start
|
||||
|
||||
/* Python entry */
|
||||
PyMOD_INIT_FUNC(Start)
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
#ifdef FC_OS_WIN32
|
||||
#define START_SHOW_SKETCHER
|
||||
#define START_USE_DRAFTING
|
||||
#else// for Linux
|
||||
#else // for Linux
|
||||
#define START_USE_DRAFTING
|
||||
#endif
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ public:
|
||||
Module()
|
||||
: Py::ExtensionModule<Module>("StartGui")
|
||||
{
|
||||
initialize("This module is the StartGui module.");// register with Python
|
||||
initialize("This module is the StartGui module."); // register with Python
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -63,7 +63,7 @@ PyObject* initModule()
|
||||
return Base::Interpreter().addModule(new Module);
|
||||
}
|
||||
|
||||
}// namespace StartGui
|
||||
} // namespace StartGui
|
||||
|
||||
|
||||
/* Python entry */
|
||||
|
||||
@@ -65,6 +65,6 @@ private:
|
||||
std::unique_ptr<Ui_DlgStartPreferencesAdvanced> ui;
|
||||
};
|
||||
|
||||
}// namespace StartGui
|
||||
} // namespace StartGui
|
||||
|
||||
#endif// STARTGUI_DLGSTARTPREFERENCESIMP_H
|
||||
#endif // STARTGUI_DLGSTARTPREFERENCESIMP_H
|
||||
|
||||
@@ -30,6 +30,6 @@
|
||||
// Qt Toolkit
|
||||
#include <QCoreApplication>
|
||||
|
||||
#endif//_PreComp_
|
||||
#endif //_PreComp_
|
||||
|
||||
#endif// STARTGUI_PRECOMPILED_H
|
||||
#endif // STARTGUI_PRECOMPILED_H
|
||||
|
||||
@@ -159,7 +159,7 @@ Gui::ToolBarItem* StartGui::Workbench::setupCommandBars() const
|
||||
Gui::DockWindowItems* StartGui::Workbench::setupDockWindows() const
|
||||
{
|
||||
Gui::DockWindowItems* root = Gui::StdWorkbench::setupDockWindows();
|
||||
root->setVisibility(false); // hide all dock windows by default
|
||||
root->setVisibility("Std_ComboView", true);// except of the combo view
|
||||
root->setVisibility(false); // hide all dock windows by default
|
||||
root->setVisibility("Std_ComboView", true); // except of the combo view
|
||||
return root;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ protected:
|
||||
/** Returns a DockWindowItems structure of dock windows this workbench. */
|
||||
Gui::DockWindowItems* setupDockWindows() const override;
|
||||
|
||||
};// namespace StartGui
|
||||
}; // namespace StartGui
|
||||
|
||||
}// namespace StartGui
|
||||
#endif// START_WORKBENCH_H
|
||||
} // namespace StartGui
|
||||
#endif // START_WORKBENCH_H
|
||||
|
||||
@@ -44,4 +44,4 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif// START_GLOBAL_H
|
||||
#endif // START_GLOBAL_H
|
||||
|
||||
@@ -26,11 +26,11 @@ function load()
|
||||
|
||||
if (localStorage["notepad"]) {
|
||||
document.getElementById("notepad").value =
|
||||
localStorage["notepad"];// Load notepad from local storage
|
||||
localStorage["notepad"]; // Load notepad from local storage
|
||||
}
|
||||
document.getElementById("notepad").addEventListener("input", function() {
|
||||
localStorage.setItem("notepad",
|
||||
document.getElementById("notepad").value);// Save notepad on type
|
||||
document.getElementById("notepad").value); // Save notepad on type
|
||||
}, false);
|
||||
|
||||
if (allowDownloads == 1) {
|
||||
@@ -39,16 +39,16 @@ function load()
|
||||
ddiv.innerHTML = "Connecting...";
|
||||
var tobj = new JSONscriptRequest(
|
||||
'https://api.github.com/repos/FreeCAD/FreeCAD/commits?callback=printCommits');
|
||||
tobj.buildScriptTag();// Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
tobj.buildScriptTag(); // Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
ddiv.innerHTML = "Downloading latest news...";
|
||||
// load addons list
|
||||
ddiv = document.getElementById("addons");
|
||||
ddiv.innerHTML = "Connecting...";
|
||||
var tobj = new JSONscriptRequest(
|
||||
'https://api.github.com/repos/FreeCAD/FreeCAD-addons/contents?callback=printAddons');
|
||||
tobj.buildScriptTag();// Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
tobj.buildScriptTag(); // Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
ddiv.innerHTML = "Downloading addons list...";
|
||||
if (showForum == 1) {
|
||||
// load forum recent posts
|
||||
@@ -56,8 +56,8 @@ function load()
|
||||
ddiv.innerHTML = "Connecting...";
|
||||
var tobj = new JSONscriptRequest(
|
||||
'https://www.freecad.org/xml-to-json.php?callback=printForum&url=https://forum.freecad.org/feed.php');
|
||||
tobj.buildScriptTag();// Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
tobj.buildScriptTag(); // Build the script tag
|
||||
tobj.addScriptTag(); // Execute (add) the script tag
|
||||
ddiv.innerHTML = "Downloading addons list...";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user