Exemplo n.º 1
0
void nuiHTMLNode::BuildTree(const void* _tdoc, const void* _tnod, nglTextEncoding encoding, bool ComputeStyle)
{
  TidyDoc tdoc = (TidyDoc)_tdoc;
  TidyNode tnod = (TidyNode)_tnod;
  SetFromNode(_tdoc, _tnod, encoding, ComputeStyle);
  
  TidyNode child;
  
  for (child = tidyGetChild(tnod); child; child = tidyGetNext(child))
  {
    nuiHTMLNode* pNode = new nuiHTMLNode(_tdoc, child, encoding, this, ComputeStyle);
    mChildren.push_back(pNode);
    pNode->BuildTree(tdoc, child, encoding, ComputeStyle);
  }
}
Exemplo n.º 2
0
MibView::MibView (QWidget * parent) : BasicMibView(parent)
{
    // Create context menu actions
    walkAct = new QAction(tr("Walk"), this);
    connect(walkAct, SIGNAL(triggered()), this, SLOT(WalkFromNode()));

    getAct = new QAction(tr("Get"), this);
    connect(getAct, SIGNAL(triggered()), this, SLOT(GetFromNode()));
    getPromptAct = new QAction(tr("Prompt for instance..."), this);
    connect(getPromptAct, SIGNAL(triggered()), this, SLOT(GetFromNodePromptInstance()));
    getSelectAct = new QAction(tr("Select Instance"), this);
    connect(getSelectAct, SIGNAL(triggered()), this, SLOT(GetFromNodeSelectInstance()));

    getnextAct = new QAction(tr("Get Next"), this);
    connect(getnextAct, SIGNAL(triggered()), this, SLOT(GetNextFromNode()));
    getnextPromptAct = new QAction(tr("Prompt for instance..."), this);
    connect(getnextPromptAct, SIGNAL(triggered()), this, SLOT(GetNextFromNodePromptInstance()));
    getnextSelectAct = new QAction(tr("Select Instance"), this);
    connect(getnextSelectAct, SIGNAL(triggered()), this, SLOT(GetNextFromNodeSelectInstance()));

    getbulkAct = new QAction(tr("Get Bulk"), this);
    connect(getbulkAct, SIGNAL(triggered()), this, SLOT(GetBulkFromNode()));
    getbulkPromptAct = new QAction(tr("Prompt for instance..."), this);
    connect(getbulkPromptAct, SIGNAL(triggered()), this, SLOT(GetBulkFromNodePromptInstance()));
    getbulkSelectAct = new QAction(tr("Select Instance"), this);
    connect(getbulkSelectAct, SIGNAL(triggered()), this, SLOT(GetBulkFromNodeSelectInstance()));

    setAct = new QAction(tr("Set..."), this);
    connect(setAct, SIGNAL(triggered()), this, SLOT(SetFromNode()));
    stopAct = new QAction(tr("Stop"), this);
    connect(stopAct, SIGNAL(triggered()), this, SLOT(StopNode()));
    tableviewAct = new QAction(tr("Table View"), this);
    connect(tableviewAct, SIGNAL(triggered()), this, SLOT(TableViewFromNode()));
    varbindsAct = new QAction(tr("Multiple Varbinds..."), this);
    connect(varbindsAct, SIGNAL(triggered()), this, SLOT(VarbindsFromNode()));

    walkinprogress = false;
    agentisv1 = true; 
}
Exemplo n.º 3
0
nuiHTMLNode::nuiHTMLNode(const void* _tdoc, const void* _tnod, nglTextEncoding encoding, nuiHTMLNode* pParent, bool ComputeStyle)
: mpParent(pParent), mpStyle(NULL), mpInlineStyle(NULL)
{
  SetFromNode(_tdoc, _tnod, encoding, ComputeStyle);
}