Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some inconsistent overrides and headers #960

Merged
merged 1 commit into from
Jun 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions avogadro/qtplugins/surfaces/gaussiansetconcurrent.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2013 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include "gaussiansetconcurrent.h"
Expand Down
13 changes: 1 addition & 12 deletions avogadro/qtplugins/surfaces/slatersetconcurrent.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2013 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include "slatersetconcurrent.h"
Expand Down
13 changes: 1 addition & 12 deletions avogadro/qtplugins/surfaces/slatersetconcurrent.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2013 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_QTPLUGINS_SLATERSETCONCURRENT_H
Expand Down
16 changes: 2 additions & 14 deletions avogadro/qtplugins/surfaces/surfacedialog.cpp
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2009 Marcus D. Hanwell
Copyright 2012-2013 Kitware, Inc.
Copyright 2018 Geoffrey Hutchison

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include "surfacedialog.h"

#include "ui_surfacedialog.h"
Expand Down
15 changes: 2 additions & 13 deletions avogadro/qtplugins/surfaces/surfacedialog.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2009 Marcus D. Hanwell
Copyright 2013 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_QTPLUGINS_SURFACEDIALOG_H
#define AVOGADRO_QTPLUGINS_SURFACEDIALOG_H

Expand Down
15 changes: 2 additions & 13 deletions avogadro/qtplugins/surfaces/surfaces.cpp
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2012-2013 Kitware, Inc.
Copyright 2018 Geoffrey Hutchison

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include "surfaces.h"
#include "surfacedialog.h"

Expand Down
19 changes: 4 additions & 15 deletions avogadro/qtplugins/surfaces/surfaces.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2012-2013 Kitware, Inc.
Copyright 2018 Geoffrey Hutchison

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_QTPLUGINS_SURFACES_H
#define AVOGADRO_QTPLUGINS_SURFACES_H

Expand Down Expand Up @@ -67,8 +56,8 @@ class Surfaces : public QtGui::ExtensionPlugin
Unknown
};

QString name() const { return tr("Surfaces"); }
QString description() const { return tr("Read and render surfaces."); }
QString name() const override { return tr("Surfaces"); }
QString description() const override { return tr("Read and render surfaces."); }

QList<QAction*> actions() const override;

Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/symmetry/symmetryscene.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class SymmetryScene : public QtGui::ScenePlugin

bool isEnabled() const override;

bool isActiveLayerEnabled() const;
bool isActiveLayerEnabled() const override;

void setEnabled(bool enable) override;

Expand Down
13 changes: 1 addition & 12 deletions avogadro/vtk/vtkAvogadroActor.cxx
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2013 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include "vtkAvogadroActor.h"
Expand Down
25 changes: 7 additions & 18 deletions avogadro/vtk/vtkAvogadroActor.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2013 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_VTKAVOGADROACTOR_H
Expand Down Expand Up @@ -42,23 +31,23 @@ class AVOGADROVTK_EXPORT vtkAvogadroActor : public vtkActor
/** Required type macro. */
vtkTypeMacro(vtkAvogadroActor, vtkActor)

/** Print the state of the object. */
void PrintSelf(ostream& os, vtkIndent indent);
/** Print the state of the object. */
void PrintSelf(ostream& os, vtkIndent indent) override;

/** Render the opaque geometry. */
int RenderOpaqueGeometry(vtkViewport* viewport);
int RenderOpaqueGeometry(vtkViewport* viewport) override;

/** Render the translucent geometry. */
int RenderTranslucentPolygonalGeometry(vtkViewport* viewport);
int RenderTranslucentPolygonalGeometry(vtkViewport* viewport) override;

/** Does the actor have translucent geometry? */
int HasTranslucentPolygonalGeometry();
int HasTranslucentPolygonalGeometry() override;

/**
* Get the bounds for this Actor as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax). (The
* method GetBounds(double bounds[6]) is available from the superclass.)
*/
double* GetBounds();
double* GetBounds() override;

/** Set the scene on the actor, the actor assumes ownership of the scene. */
void setScene(Avogadro::Rendering::Scene* scene);
Expand Down
13 changes: 1 addition & 12 deletions avogadro/vtk/vtkglwidget.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2014 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include "vtkglwidget.h"
Expand Down
13 changes: 1 addition & 12 deletions avogadro/vtk/vtkglwidget.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2014 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_VTKGLWIDGET_H
Expand Down
13 changes: 1 addition & 12 deletions avogadro/vtk/vtkplot.cpp
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
/******************************************************************************

This source file is part of the Avogadro project.

Copyright 2018 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#include <iostream>
Expand Down
17 changes: 3 additions & 14 deletions avogadro/vtk/vtkplot.h
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
/*******************************************************************************

/******************************************************************************
This source file is part of the Avogadro project.

Copyright 2018 Kitware, Inc.

This source code is released under the New BSD License, (the "License").

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

*******************************************************************************/
This source code is released under the 3-Clause BSD License, (see "LICENSE").
******************************************************************************/

#ifndef AVOGADRO_VTK_VTKPLOT_H
#define AVOGADRO_VTK_VTKPLOT_H
Expand Down