Example #1
0
void
MainWindow::createActions(){
	openAction = new QAction( tr("&Open..."), this );
    openAction->setStatusTip(tr("Open an existing molecular file"));
	connect( openAction, SIGNAL( triggered() ), this, SLOT( openFile()  ) );

	viewAxisAction=new QAction(tr("&Axis"), this);
	viewAxisAction->setStatusTip(tr("Show Axis"));
	viewAxisAction->setCheckable(true);
	connect(viewAxisAction, SIGNAL(triggered()), this, SLOT(viewAxis()));

	viewStickAction=new QAction(tr("&Stick"), this);
	viewStickAction->setStatusTip( tr("Stick Model") );
	viewStickAction->setCheckable(true);
	connect(viewStickAction, SIGNAL(triggered()), this, SLOT(viewStick()));

	viewSphereAction=new QAction(tr("&Sphere"),this);
	viewSphereAction->setStatusTip(tr("Sphere Model"));
	viewSphereAction->setCheckable(true);
	connect(viewSphereAction, SIGNAL(triggered()), this, SLOT(viewSphere()));

	viewSurfaceAction=new QAction(tr("&Surface"),this);
	viewSurfaceAction->setStatusTip(tr("Surface Model"));
	viewSurfaceAction->setCheckable(true);
	connect(viewSurfaceAction, SIGNAL(triggered()), this, SLOT(viewSurface()));

	//---------------------------------------------------------------------------

	dockAction = new QAction( tr("&Dock"), this );
	dockAction->setStatusTip(tr("Config docking parameters."));
	connect( dockAction, SIGNAL( triggered() ), this, SLOT(dockConfig() ) );

	//----------------------- config dock --------------------------------------------------------
	confDlg = new ConfigDialog;
	connect( confDlg, SIGNAL( loadP(QString) ), this, SLOT(openFile(QString)) );
	connect( confDlg, SIGNAL( loadB(vector<float>) ), molViewer, SLOT( sDrawDots(vector<float>) ) );
    connect( confDlg, SIGNAL( loadL(QString) ), this, SLOT(openFile(QString)) );
    connect( confDlg, SIGNAL( dockRun() ), this, SLOT(dockRun()) );

    //-- textEdit
//    connect( deDock, SIGNAL(emitString(QString)), termEdit, SLOT(append(QString)) );
//    connect( this, SIGNAL(emitRun()), deDock, SLOT(run()) );
}
Example #2
0
uint32 get32_dis(void)
{
	uint32 a = *(uint32*)(uint8*)(bytes + bcnt) = loadL(pc);
	pc += 4; bcnt += 4;
	return a;
}
Example #3
0
_u32 get32_dis(void)
{
	_u32 a = *(_u32*)(_u8*)(bytes + bcnt) = loadL(pc);
	pc += 4; bcnt += 4;
	return a;
}