예제 #1
0
void QTextPanel::pageClear()
{
	scene->clear();  /*  remove all item */
    BASE_TEXT = new QTextPanelLayerControl(0);
    scene->addItem(BASE_TEXT);
	connect(scene, SIGNAL(MakeVisible(QRectF)), this, SLOT(viewDisplay(QRectF)));
    connect(BASE_TEXT, SIGNAL(pageCountChange() ), this, SLOT(forceResize()));
    connect(BASE_TEXT, SIGNAL(autoCursorChange() ), this, SLOT(cursorChange()));
    
    /* load document and recalculate the first time */
    QTimer::singleShot(22, this, SLOT(forceResize()));
}
	void LeaderboardDialog::dialogWillAppear()
	{
		clearCells();
		addHeaderCell();
		for(int i = 0; i < m_cellData.size(); i++)
		{
			addCell(m_cellData[i].rank,m_cellData[i].name,m_cellData[i].rating,false, !(i % 2 == 0));
		}
		forceResize();
		repositionCells();
		scrollToTop();
	}
예제 #3
0
/* Set whether the view is expanded or not */
void exonViewSetExpanded(GtkWidget *exonView, const gboolean expanded)
{
    ExonViewProperties *properties = exonViewGetProperties(exonView);
    properties->expanded = expanded;

    if (expanded)
    {
        properties->yPad = DEFAULT_EXON_YPAD_BUMPED;
        properties->exonHeight = DEFAULT_EXON_HEIGHT_BUMPED;
    }
    else
    {
        properties->yPad = DEFAULT_EXON_YPAD;
        properties->exonHeight = DEFAULT_EXON_HEIGHT;
    }

    calculateExonViewHeight(exonView);
    forceResize(properties->bigPicture);
    bigPictureRedrawAll(properties->bigPicture);
}
예제 #4
0
void gcWebControl::onStartLoad()
{
	m_bStartedLoading = true;
	onPageStartEvent -= guiDelegate(this, &gcWebControl::onStartLoad);
	forceResize();
}
예제 #5
0
void MainWindow::play ()
{
    mlt->play ();
    forceResize ();
    ui->statusBar->showMessage (tr("Playing"));
}
예제 #6
0
void MainWindow::pause ()
{
    mlt->pause ();
    forceResize ();
    ui->statusBar->showMessage (tr("Paused"));
}
예제 #7
0
void QTextPanel::swapPaper()
{
	PanelPageSize PAGE_MODEL = QTextPanelData::instance()->CurrentPageFormat();
	BASE_TEXT->changePageModel(PAGE_MODEL);
    forceResize();  /* at end page total */
}