Skip to content

Commit

Permalink
Making use of qtgui's backgroundfileformat
Browse files Browse the repository at this point in the history
Signed-off-by: Adarsh Balasubramanian <[email protected]>
  • Loading branch information
badarsh2 committed Sep 27, 2018
1 parent 584d7d7 commit 6ad6e5a
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 198 deletions.
3 changes: 2 additions & 1 deletion avogadro/qtgui/backgroundfileformat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ namespace QtGui {
BackgroundFileFormat::BackgroundFileFormat(Io::FileFormat* format,
QObject* aparent)
: QObject(aparent), m_format(format), m_molecule(nullptr), m_success(false)
{}
{
}

BackgroundFileFormat::~BackgroundFileFormat()
{
Expand Down
2 changes: 1 addition & 1 deletion avogadro/qtplugins/customelements/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ avogadro_plugin(CustomElements
ExtensionPlugin
customelements.h
CustomElements
"customelements.cpp;backgroundfileformat.cpp"
"customelements.cpp"
)
86 changes: 0 additions & 86 deletions avogadro/qtplugins/customelements/backgroundfileformat.cpp

This file was deleted.

107 changes: 0 additions & 107 deletions avogadro/qtplugins/customelements/backgroundfileformat.h

This file was deleted.

7 changes: 5 additions & 2 deletions avogadro/qtplugins/customelements/customelements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
******************************************************************************/

#include "customelements.h"
#include "backgroundfileformat.h"

#include <avogadro/qtgui/backgroundfileformat.h>
#include <avogadro/qtgui/customelementdialog.h>
#include <avogadro/qtgui/fileformatdialog.h>
#include <avogadro/qtgui/molecule.h>
Expand All @@ -28,6 +28,7 @@
#include <QtWidgets/QProgressDialog>

using Avogadro::QtGui::Molecule;
using Avogadro::QtGui::BackgroundFileFormat;

namespace Avogadro {
namespace QtPlugins {
Expand All @@ -47,7 +48,9 @@ CustomElements::CustomElements(QObject* parent_)
updateReassignAction();
}

CustomElements::~CustomElements() {}
CustomElements::~CustomElements()
{
}

QString CustomElements::description() const
{
Expand Down
4 changes: 3 additions & 1 deletion avogadro/qtplugins/customelements/customelements.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ class QThread;

namespace Avogadro {

namespace QtGui {
class BackgroundFileFormat;
}

namespace QtPlugins {

Expand Down Expand Up @@ -57,7 +59,7 @@ private slots:
QAction* m_reassignUsingTool;
QAction* m_reassignFromFile;
QThread* m_fileReadThread;
BackgroundFileFormat* m_threadedReader;
QtGui::BackgroundFileFormat* m_threadedReader;
QtGui::Molecule* m_fileReadMolecule;
QProgressDialog* m_progressDialog;

Expand Down

0 comments on commit 6ad6e5a

Please sign in to comment.