示例#1
0
spravTovar::spravTovar(FunctionsProducts &object2, FunctionsGroup &object, QWidget *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
	//window1 = new addProduct(*obj1,*obj,this);
	connect(ui.addingGroup, SIGNAL(clicked(bool)), this, SLOT(addGroupClicked()));
	connect(ui.spravTovarExit, SIGNAL(clicked(bool)), this, SLOT(spravTovarExit()));
	connect(ui.spravTovarAdd, SIGNAL(clicked(bool)), this, SLOT(addProductClicked()));
	connect(ui.spravTovarDelete, SIGNAL(clicked(bool)), this, SLOT(deleteTov()));
	connect(ui.spravTovarChange, SIGNAL(clicked(bool)), this, SLOT(addProdIzm()));
	connect(ui.spravTovarList, SIGNAL(itemSelectionChanged()), this, SLOT(changeList()));
	//itemSelectionChanged ()

	obj = &object;
	obj1=&object2;
	//obj1->LoadProdFile("products.mkt");
	//obj->LoadGroupFile("groups.mkt");
	showListProd();
	
}
inline void
RestyleTracker::ProcessOneRestyle(Element* aElement,
                                  nsRestyleHint aRestyleHint,
                                  nsChangeHint aChangeHint,
                                  const RestyleHintData& aRestyleHintData)
{
  NS_PRECONDITION((aRestyleHint & eRestyle_LaterSiblings) == 0,
                  "Someone should have handled this before calling us");
  NS_PRECONDITION(Document(), "Must have a document");
  NS_PRECONDITION(aElement->GetComposedDoc() == Document(),
                  "Element has unexpected document");

  LOG_RESTYLE("aRestyleHint = %s, aChangeHint = %s",
              GeckoRestyleManager::RestyleHintToString(aRestyleHint).get(),
              GeckoRestyleManager::ChangeHintToString(aChangeHint).get());

  nsIFrame* primaryFrame = aElement->GetPrimaryFrame();

  if (aRestyleHint & ~eRestyle_LaterSiblings) {
#ifdef RESTYLE_LOGGING
    if (ShouldLogRestyle() && primaryFrame &&
        GeckoRestyleManager::StructsToLog() != 0) {
      LOG_RESTYLE("style context tree before restyle:");
      LOG_RESTYLE_INDENT();
      primaryFrame->StyleContext()->LogStyleContextTree(
          LoggingDepth(), GeckoRestyleManager::StructsToLog());
    }
#endif
    mRestyleManager->RestyleElement(aElement, primaryFrame, aChangeHint,
                                    *this, aRestyleHint, aRestyleHintData);
  } else if (aChangeHint &&
             (primaryFrame ||
              (aChangeHint & nsChangeHint_ReconstructFrame))) {
    // Don't need to recompute style; just apply the hint
    nsStyleChangeList changeList(StyleBackendType::Gecko);
    changeList.AppendChange(primaryFrame, aElement, aChangeHint);
    mRestyleManager->ProcessRestyledFrames(changeList);
  }
}