Exemplo n.º 1
0
ModelPicker::ModelPicker(QWidget* parent)
: QWidget(parent)
, ui(new Ui::ModelPicker)
, favouriteList(new FavouriteList(this))
, modelList(new ModelList(this))
/*, modelIconSize(QSize(78, 78))
, modelIconMargin(QSize(0, 0))
, columns((width() - 50) / (modelIconSize.width() + modelIconMargin.width()))
, box(new ToolBox())*/
{
    ui->setupUi(this);

    setMinimumHeight(200);

    //ui->verticalLayout->insertWidget(0, box);
    ui->horizontalLayout_2->addWidget(modelList);
    ui->gridLayout->addWidget(favouriteList, 3, 0, 1, 2);

    connect(ui->deleteButton, SIGNAL(clicked()), this, SLOT(deleteModel()));
    connect(ui->clearButton,  SIGNAL(clicked()), this, SLOT(clearModels()));

    connect(ui->searchLine, SIGNAL(textChanged(QString)), this, SLOT(search(QString)));

    connect(favouriteList, SIGNAL(currentRowChanged(int)), this, SLOT(modelSelected(int)));

    connect(modelList, SIGNAL(currentItemChanged(QTreeWidgetItem*, QTreeWidgetItem*)), this, SLOT(modelSelected(QTreeWidgetItem*, QTreeWidgetItem*)));

    hide();
}
Exemplo n.º 2
0
FApplication::~FApplication(void)
{
	cleanupBackups();
		
	clearModels();

	if (m_updateDialog) {
		delete m_updateDialog;
	}

	FSvgRenderer::cleanup();
	ViewIdentifierClass::cleanup();
	ViewLayer::cleanup();
	ItemBase::cleanup();
	Wire::cleanup();
	DebugDialog::cleanup();
	ViewSwitcher::cleanup();
	ItemDrag::cleanup();
	Version::cleanup();
	TipsAndTricks::cleanup();
	TranslatorListModel::cleanup();
	FolderUtils::cleanup();
	SearchLineEdit::cleanup();
	RatsnestColors::cleanup();
	HtmlInfoView::cleanup();
	SvgIconWidget::cleanup();
	PartFactory::cleanup();
}
void Renderer::createModels()
{
	clearModels();

	//addModel( new Cube	( this ) );
	addModel( new Triangle	( this ) );
}
Exemplo n.º 4
0
void scene::reset()
{ 
  *loaded = false;
  
  viewZoneIndex = 0;
    
  for (int lp = 0; lp < *zoneCount; lp++) 
    zoneBuffer[lp]->unload();
  
  *zoneCount = 0;
  
  if (!((*viewMode & SCENE_VIEWMODE_VIEWZONESCUMULATIVE) == SCENE_VIEWMODE_VIEWZONESCUMULATIVE))
  {
    clearModels();

    geom->reset();
    cam->reset();
  }
}
Exemplo n.º 5
0
void MessageWidget::on_pushButton_pressed()
{
    clearModels();
    getContactList();
    getSmsList();
}
void Renderer::createModels()
{
	clearModels();
	//addModel( new Cube	( this ) );
	addModel( new ObjLoader	( this ) );
}
void Renderer::createModels()
{
	clearModels();
	addModel( new Bloom	( this ) );
}
void Renderer::createModels()
{
	clearModels();
	addModel( new ObjLoader	( this ) );
	addModel( new Grid	( this ) );
}