mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-16 17:44:36 +00:00
const correctness MainWindowInterface
This commit is contained in:
parent
52f58e9de2
commit
cf66402dfe
@ -34,7 +34,7 @@ It is used as base class of the MainWindow.
|
||||
class MainWindowInterface
|
||||
{
|
||||
public:
|
||||
virtual void executeFilter(QAction *, RichParameterList &, bool = false) {}
|
||||
virtual void executeFilter(const QAction *, RichParameterList &, bool = false) {}
|
||||
//parexpval is a string map containing the parameter expression values set in the filter's dialog.
|
||||
//These parameter expression values will be evaluated when the filter will start.
|
||||
};
|
||||
|
||||
@ -154,8 +154,8 @@ public:
|
||||
QSize minimumSizeHint() const;
|
||||
QSize sizeHint() const;
|
||||
|
||||
QAction *getLastAppliedFilter() {return lastFilterRef;}
|
||||
void setLastAppliedFilter(QAction *qa) {lastFilterRef = qa;}
|
||||
const QAction *getLastAppliedFilter() {return lastFilterRef;}
|
||||
void setLastAppliedFilter(const QAction *qa) {lastFilterRef = qa;}
|
||||
|
||||
////RenderMode* getCurrentRenderMode();
|
||||
//RenderMode* getCurrentRenderMode()
|
||||
@ -449,7 +449,7 @@ private:
|
||||
//shader support
|
||||
RenderPluginInterface *iRenderer;
|
||||
QAction *currentShader;
|
||||
QAction *lastFilterRef; // reference to last filter applied
|
||||
const QAction *lastFilterRef; // reference to last filter applied
|
||||
QFont qFont; //font settings
|
||||
|
||||
// Editing support
|
||||
|
||||
@ -93,7 +93,7 @@ class MainWindow : public QMainWindow, public MainWindowInterface
|
||||
|
||||
public:
|
||||
// callback function to execute a filter
|
||||
void executeFilter(QAction *action, RichParameterList &srcpar, bool isPreview = false);
|
||||
void executeFilter(const QAction *action, RichParameterList &srcpar, bool isPreview = false);
|
||||
|
||||
MainWindow();
|
||||
~MainWindow();
|
||||
@ -178,7 +178,6 @@ private slots:
|
||||
void suspendEditMode();
|
||||
///////////Slot Menu Filter ////////////////////////
|
||||
void startFilter();
|
||||
void applyLastFilter();
|
||||
void runFilterScript();
|
||||
void showFilterScript();
|
||||
void showTooltip(QAction*);
|
||||
|
||||
@ -757,12 +757,6 @@ void MainWindow::endEdit()
|
||||
updateLayerDialog();
|
||||
}
|
||||
|
||||
void MainWindow::applyLastFilter()
|
||||
{
|
||||
if(GLA()==nullptr) return;
|
||||
GLA()->getLastAppliedFilter()->activate(QAction::Trigger);
|
||||
}
|
||||
|
||||
void MainWindow::showFilterScript()
|
||||
{
|
||||
if (meshDoc()->filterHistory != nullptr)
|
||||
@ -1142,7 +1136,7 @@ from the user defined dialog
|
||||
*/
|
||||
|
||||
|
||||
void MainWindow::executeFilter(QAction *action, RichParameterList ¶ms, bool isPreview)
|
||||
void MainWindow::executeFilter(const QAction* action, RichParameterList ¶ms, bool isPreview)
|
||||
{
|
||||
FilterPluginInterface *iFilter = qobject_cast<FilterPluginInterface *>(action->parent());
|
||||
qb->show();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user