void SliceEditView::PrepareBase(int baselayers, int filledlayers) { currSlice += baselayers - pCPJ->getBase(); pCPJ->setBase(baselayers); pCPJ->setFilled(filledlayers); GoToSlice(currSlice); pBuilder->SetDirty(); UpdateWidgets(); }
SliceDebugger::SliceDebugger(B9Layout* pmain, QWidget *parent, Qt::WFlags flags) : QWidget(parent, flags) { ui.setupUi(this); pMain = pmain; ppaintwidget = new SliceContext(NULL, pMain); ppaintwidget->debugmode = true; ui.debuglayout->addWidget(ppaintwidget); currslice = 1; GoToSlice(QString().number(currslice)); }
void SliceEditView::TopSlice() { GoToSlice(pCPJ->getTotalLayers() -1); ui.horizontalSlider->setValue(pCPJ->getTotalLayers() -1); }
void SliceEditView::BaseSlice() { GoToSlice(0); ui.horizontalSlider->setValue(0); }
void SliceEditView::PgDownSlice(int increment) { GoToSlice(currSlice-increment); ui.horizontalSlider->setValue(currSlice); }
void SliceEditView::PrevSlice() { GoToSlice(currSlice-1); ui.horizontalSlider->setValue(currSlice); }
//navigation void SliceEditView::NextSlice() { GoToSlice(currSlice+1); ui.horizontalSlider->setValue(currSlice); }
void SliceEditView::BaseSlice() { GoToSlice(0); //ui.horizontalSlider->setValue(0);//fixed_csh }
void SliceEditView::PgUpSlice(int increment) { GoToSlice(currSlice+increment); //ui.horizontalSlider->setValue(currSlice);//fixed_csh }