Gui: redundant void 2

This commit is contained in:
berniev
2022-08-08 11:50:44 +10:00
committed by wwmayer
parent ec72d96038
commit 656ef8961f
160 changed files with 784 additions and 784 deletions

View File

@@ -55,7 +55,7 @@ TaskDialog::~TaskDialog()
//==== Slots ===============================================================
const std::vector<QWidget*> &TaskDialog::getDialogContent(void) const
const std::vector<QWidget*> &TaskDialog::getDialogContent() const
{
return Content;
}

View File

@@ -478,7 +478,7 @@ void TaskDialogPython::helpRequested()
}
}
QDialogButtonBox::StandardButtons TaskDialogPython::getStandardButtons(void) const
QDialogButtonBox::StandardButtons TaskDialogPython::getStandardButtons() const
{
Base::PyGILStateLocker lock;
try {
@@ -518,7 +518,7 @@ void TaskDialogPython::modifyStandardButtons(QDialogButtonBox *buttonBox)
}
}
bool TaskDialogPython::isAllowedAlterDocument(void) const
bool TaskDialogPython::isAllowedAlterDocument() const
{
Base::PyGILStateLocker lock;
try {
@@ -537,7 +537,7 @@ bool TaskDialogPython::isAllowedAlterDocument(void) const
return TaskDialog::isAllowedAlterDocument();
}
bool TaskDialogPython::isAllowedAlterView(void) const
bool TaskDialogPython::isAllowedAlterView() const
{
Base::PyGILStateLocker lock;
try {
@@ -556,7 +556,7 @@ bool TaskDialogPython::isAllowedAlterView(void) const
return TaskDialog::isAllowedAlterView();
}
bool TaskDialogPython::isAllowedAlterSelection(void) const
bool TaskDialogPython::isAllowedAlterSelection() const
{
Base::PyGILStateLocker lock;
try {

View File

@@ -34,7 +34,7 @@ namespace TaskView {
class ControlPy : public Py::PythonExtension<ControlPy>
{
public:
static void init_type(void); // announce properties and methods
static void init_type(); // announce properties and methods
static ControlPy* getInstance();
ControlPy();
@@ -73,24 +73,24 @@ public:
TaskDialogPython(const Py::Object&);
~TaskDialogPython();
virtual QDialogButtonBox::StandardButtons getStandardButtons(void) const;
virtual QDialogButtonBox::StandardButtons getStandardButtons() const;
virtual void modifyStandardButtons(QDialogButtonBox*);
/*!
Indicates whether this task dialog allows other commands to modify
the document while it is open.
*/
virtual bool isAllowedAlterDocument(void) const;
virtual bool isAllowedAlterDocument() const;
/*!
Indicates whether this task dialog allows other commands to modify
the 3d view while it is open.
*/
virtual bool isAllowedAlterView(void) const;
virtual bool isAllowedAlterView() const;
/*!
Indicates whether this task dialog allows other commands to modify
the selection while it is open.
*/
virtual bool isAllowedAlterSelection(void) const;
virtual bool isAllowedAlterSelection() const;
virtual bool needsFullSpace() const;
public:

View File

@@ -102,7 +102,7 @@ bool TaskSelectLinkProperty::setFilter(const char * sFilter)
}
void TaskSelectLinkProperty::activate(void)
void TaskSelectLinkProperty::activate()
{
// first clear the selection
Gui::Selection().clearSelection();
@@ -140,7 +140,7 @@ void TaskSelectLinkProperty::activate(void)
checkSelectionStatus();
}
bool TaskSelectLinkProperty::accept(void)
bool TaskSelectLinkProperty::accept()
{
// set the proptery with the selection
sendSelection2Property();
@@ -151,7 +151,7 @@ bool TaskSelectLinkProperty::accept(void)
return true;
}
bool TaskSelectLinkProperty::reject(void)
bool TaskSelectLinkProperty::reject()
{
if(LinkSub){
// restore the old values
@@ -164,7 +164,7 @@ bool TaskSelectLinkProperty::reject(void)
return true;
}
void TaskSelectLinkProperty::sendSelection2Property(void)
void TaskSelectLinkProperty::sendSelection2Property()
{
if (LinkSub) {
std::vector<Gui::SelectionObject> temp = Gui::Selection().getSelectionEx();
@@ -182,7 +182,7 @@ void TaskSelectLinkProperty::sendSelection2Property(void)
}
void TaskSelectLinkProperty::checkSelectionStatus(void)
void TaskSelectLinkProperty::checkSelectionStatus()
{
QPalette palette(QApplication::palette());

View File

@@ -66,16 +66,16 @@ public:
bool setFilter(const char*);
/// set the TaskSelectLinkProperty active, means setting the selection and control it
void activate(void);
void activate();
/// call this to accept the changes the user has made and send back to the Property (Ok)
bool accept(void);
bool accept();
/// This discards the changes of the user and leaves the Property untouched (Cancel)
bool reject(void);
bool reject();
/// send the selection to the Property for e.g. forced recomputation of a feature
void sendSelection2Property(void);
void sendSelection2Property();
/// checks if the filter is currently met
inline bool isSelectionValid(void) const {return Filter->match();}
inline bool isSelectionValid() const {return Filter->match();}
private Q_SLOTS:
void on_Remove_clicked(bool);
@@ -84,15 +84,15 @@ private Q_SLOTS:
void on_Help_clicked(bool);
Q_SIGNALS:
void emitSelectionFit(void);
void emitSelectionMisfit(void);
void emitSelectionFit();
void emitSelectionMisfit();
protected:
void changeEvent(QEvent *e);
private:
// checks for selection and set background color and signals
void checkSelectionStatus(void);
void checkSelectionStatus();
QWidget* proxy;
Ui_TaskSelectLinkProperty* ui;

View File

@@ -523,7 +523,7 @@ void TaskView::showDialog(TaskDialog *dlg)
getMainWindow()->updateActions();
}
void TaskView::removeDialog(void)
void TaskView::removeDialog()
{
getMainWindow()->updateActions();
@@ -561,7 +561,7 @@ void TaskView::removeDialog(void)
}
}
void TaskView::updateWatcher(void)
void TaskView::updateWatcher()
{
// In case a child of the TaskView has the focus and get hidden we have
// to make sure to set the focus on a widget that won't be hidden or
@@ -608,7 +608,7 @@ void TaskView::addTaskWatcher(const std::vector<TaskWatcher*> &Watcher)
addTaskWatcher();
}
void TaskView::clearTaskWatcher(void)
void TaskView::clearTaskWatcher()
{
std::vector<TaskWatcher*> watcher;
removeTaskWatcher();
@@ -616,7 +616,7 @@ void TaskView::clearTaskWatcher(void)
addTaskWatcher(watcher);
}
void TaskView::addTaskWatcher(void)
void TaskView::addTaskWatcher()
{
// add all widgets for all watcher to the task view
for (std::vector<TaskWatcher*>::iterator it=ActiveWatcher.begin();it!=ActiveWatcher.end();++it){
@@ -646,7 +646,7 @@ void TaskView::addTaskWatcher(void)
taskPanel->setScheme(QSint::FreeCADPanelScheme::defaultScheme());
}
void TaskView::removeTaskWatcher(void)
void TaskView::removeTaskWatcher()
{
// In case a child of the TaskView has the focus and get hidden we have
// to make sure that set the focus on a widget that won't be hidden or

View File

@@ -153,7 +153,7 @@ public:
friend class Gui::ControlSingleton;
void addTaskWatcher(const std::vector<TaskWatcher*> &Watcher);
void clearTaskWatcher(void);
void clearTaskWatcher();
void clearActionStyle();
void restoreActionStyle();
@@ -168,14 +168,14 @@ protected:
virtual void keyPressEvent(QKeyEvent*);
virtual bool event(QEvent*);
void addTaskWatcher(void);
void removeTaskWatcher(void);
void addTaskWatcher();
void removeTaskWatcher();
/// update the visibility of the TaskWatcher accordant to the selection
void updateWatcher(void);
void updateWatcher();
/// used by Gui::Control to register Dialogs
void showDialog(TaskDialog *dlg);
// removes the running dialog after accept() or reject() from the TaskView
void removeDialog(void);
void removeDialog();
void slotActiveDocument(const App::Document&);
void slotDeletedDocument();

View File

@@ -59,7 +59,7 @@ TaskWatcher::~TaskWatcher()
//==== implementer ===========================================================================
std::vector<QWidget*> &TaskWatcher::getWatcherContent(void)
std::vector<QWidget*> &TaskWatcher::getWatcherContent()
{
return Content;
}

View File

@@ -44,11 +44,11 @@ public:
TaskWatcher(const char* Filter);
virtual ~TaskWatcher();
std::vector<QWidget*> &getWatcherContent(void);
std::vector<QWidget*> &getWatcherContent();
public:
/// is called wenn the document or the Selection changes.
virtual bool shouldShow(void);
virtual bool shouldShow();
protected:
/// List of TaskBoxes of that dialog
@@ -68,7 +68,7 @@ public:
public:
/// is called wenn the document or the Selection changes.
virtual bool shouldShow(void);
virtual bool shouldShow();
};
@@ -84,7 +84,7 @@ public:
public:
/// is called wenn the document or the Selection changes.
virtual bool shouldShow(void);
virtual bool shouldShow();
};
@@ -101,7 +101,7 @@ public:
public:
/// is called wenn the document or the Selection changes.
virtual bool shouldShow(void);
virtual bool shouldShow();
};