Exemple #1
0
MainWindow::MainWindow() : QMainWindow(nullptr)
{
	setWindowTitle(tr("Dolphin"));
	setWindowIcon(QIcon(Resources::GetMisc(Resources::LOGO_SMALL)));

	MakeGameList();
	MakeToolBar();
	MakeRenderWidget();
	MakeStack();
	MakeMenuBar();
}
void TDirectoryDiffDocument::Open(TDocumentWindow* window)
{
	TMenuBar* menuBar = MakeMenuBar(window);
	menuBar->SetWindowPositioner(WidthParent);

	TRect bounds;
	window->GetLocalBounds(bounds);
	bounds.top += menuBar->GetHeight();
	
	TScroller* scroller = new TScroller(window, bounds, true, true);
	scroller->SetWindowPositioner(SizeRelativeParent);
	
	fDirectoryDiffListView = new TDirectoryDiffListView(scroller, bounds, fDirectory1, fDirectory2, fDiffList);
	scroller->SetContainedView(fDirectoryDiffListView);
	window->SetTarget(fDirectoryDiffListView);
	window->SetWindowContext(this);

	ComputeDiffs();
	fDirectoryDiffListView->GenerateDiffTree();
}