1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/* TRANSLATOR BALL::Mainframe
Necessary for lupdate.
*/
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#include "mainframe.h"
#include <BALL/VIEW/KERNEL/message.h>
#include <BALL/VIEW/DIALOGS/mainControlPreferences.h>
#include <BALL/VIEW/DIALOGS/preferences.h>
namespace BALL
{
using namespace std;
using namespace BALL::VIEW;
Mainframe::Mainframe(QWidget* parent, const char* name)
: MainControl(parent, name, ".BALLView"),
control_(0),
geometric_control_(0),
display_properties_(0),
molecular_structure_(0)
{
registerThis();
#ifdef BALL_VIEW_DEBUG
Log.error() << "new Mainframe " << this << std::endl;
#endif
Log.remove(std::cout);
Log.remove(std::cerr);
control_ = new MolecularControl(this, tr("Structures"));
geometric_control_ = new GeometricControl(this, tr("Representations"));
scene_ = new Scene(this, tr("3D View"));
scene_->setMinimumSize(10, 10);
setCentralWidget(scene_);
display_properties_ = new DisplayProperties(this, tr("DisplayProperties"));
file_dialog_ = new MolecularFileDialog(this, tr("MolecularFileDialog"));
molecular_structure_ = new MolecularStructure(this, tr("MolecularStructure"));
init_();
}
Mainframe::~Mainframe()
{
}
}
|