コード例 #1
0
ファイル: MainWindow.cpp プロジェクト: remy-phelipot/myMices
MainWindow::MainWindow()
:mTimer(new QTimer(this)),
mSpeed(30),
mZoomValue(100),
mZoomOldValue(100),
mPlayingState(IDLE),
mFrameNumber(0),
mCurrentFrame(0)
{
    createGraphicView();
    createToolBars();
    createStatusBar();
    setWindowTitle("myMices");
    setWindowIcon(QIcon(":/images/Mouse.jpg"));
    setSceneState(IDLE);
}
コード例 #2
0
/**************************************************************
***
**   ViewFactory   ---   createView
***
***************************************************************/
BasicView *ViewFactory::createView( wxWindow *parent, ChildWindow *frame, Document *doc, WidgetNode *node )
{
	BasicView * view = 0;
	switch ( node->viewtype )
	{
	case VIEW_TEXT:
		view = createDefaultTextView( parent, frame, doc, node->toolpanel, node->vedic, node->textmode );
		break;
	case VIEW_YOGA:
		view = createYogaView( parent, frame, doc );
		break;
	case VIEW_GRAPHICALDASA:
		view = createGraphicalDasaView( parent, frame, doc );
		break;
	case VIEW_PLANETLIST:
		view = createMainView( parent, frame, doc, node->vedic );
		break;
	case VIEW_GRAPHIC:
		view = createGraphicView( parent, frame, doc, node->varga, node->vedic );
		break;
	case VIEW_DASA:
		view = createDasaView( parent, frame, doc );
		break;
	case VIEW_URANIAN:
		view = createUranianView( parent, frame, doc, node->vedic );
		break;
	case VIEW_TRANSIT:
		view = createTransitView( parent, frame, doc, node->vedic );
		break;
	case VIEW_VARGA:
		view = createVargaView( parent, frame, doc );
		break;
	case VIEW_ASHTAKAVARGA:
		view = createAshtakaVargaView( parent, frame, doc );
		break;
	case VIEW_VIMSOPAKABALA:
		view = createVimsopakaBalaView( parent, frame, doc );
		break;
	case VIEW_SOLAR:
		view = createSolarView( parent, frame, doc, node->vedic );
		break;
	case VIEW_SBC:
		view = createSbcView( parent, frame, doc );
		break;
	case VIEW_HORA:
		view = createHoraView( parent, frame );
		break;
	case VIEW_ECLIPSE:
		view = createEclipseView( parent, frame, node->vedic );
		break;
	case VIEW_EPHEM:
		view = createEphemView( parent, frame, node->vedic );
		break;
	case VIEW_YOGA_EDITOR:
		view = createYogaEditorView( parent, frame );
		break;
	case VIEW_GRAPHICGRID:
		view = createGraphicGridView( parent, frame, doc, node->rows, node->cols, node->vargas, node->vedic );
		break;
	default:
		printf( "ViewFactory::createView unknown id %d\n", node->viewtype );
		assert( false );
		view = createEmptyView( parent, frame );
		break;
	}
	assert( view );
	return view;
}