Example #1
0
void pTabFrame::setGeometry(Geometry geometry) {
  pWidget::setGeometry(geometry);
  geometry.x += 0, geometry.width -= 5;
  geometry.y += 29, geometry.height -= 33;
  for(auto& layout : tabFrame.state.layout) {
    if(layout) layout->setGeometry(geometry);
  }
  synchronizeLayout();
}
Example #2
0
void pTabFrame::setGeometry(Geometry geometry) {
  pWidget::setGeometry(geometry);
  geometry.x += 1, geometry.width -= 5;
  geometry.y += 26, geometry.height -= 31;
  for(auto& layout : tabFrame.state.layout) {
    if(layout == nullptr) continue;
    layout->setGeometry(geometry);
  }
  synchronizeLayout();
}
Example #3
0
void Window::setVisible(bool visible) {
  state.visible = visible;
  synchronizeLayout();
  return p.setVisible(visible);
}
Example #4
0
void TabFrame::setLayout(unsigned selection, Layout& layout) {
  if(selection >= state.text.size()) return;
  state.layout[selection] = &layout;
  synchronizeLayout();
}
Example #5
0
void Frame::setLayout(Layout& layout) {
  state.layout = &layout;
  synchronizeLayout();
}
Example #6
0
void pTabFrame::onChange(int selection) {
  tabFrame.state.selection = selection;
  synchronizeLayout();
  if(!locked && tabFrame.onChange) tabFrame.onChange();
}
Example #7
0
void pTabFrame::setSelection(unsigned selection) {
  locked = true;
  qtTabFrame->setCurrentIndex(selection);
  synchronizeLayout();
  locked = false;
}
Example #8
0
void pTabFrame::setSelected(unsigned selection) {
  lock();
  qtTabFrame->setCurrentIndex(selection);
  synchronizeLayout();
  unlock();
}