예제 #1
0
void QwtCounter::initCounter()
{
    d_data = new PrivateData;

    QHBoxLayout *layout = new QHBoxLayout( this );
    layout->setSpacing( 0 );
    layout->setMargin( 0 );

    for ( int i = ButtonCnt - 1; i >= 0; i-- )
    {
        QwtArrowButton *btn =
            new QwtArrowButton( i + 1, Qt::DownArrow, this );
        btn->setFocusPolicy( Qt::NoFocus );
        btn->installEventFilter( this );
        layout->addWidget( btn );

        connect( btn, SIGNAL( released() ), SLOT( btnReleased() ) );
        connect( btn, SIGNAL( clicked() ), SLOT( btnClicked() ) );

        d_data->buttonDown[i] = btn;
    }

    d_data->valueEdit = new QLineEdit( this );
    d_data->valueEdit->setReadOnly( false );
    d_data->valueEdit->setValidator( new QDoubleValidator( d_data->valueEdit ) );
    layout->addWidget( d_data->valueEdit );

    connect( d_data->valueEdit, SIGNAL( editingFinished() ),
         SLOT( textChanged() ) );

    layout->setStretchFactor( d_data->valueEdit, 10 );

    for ( int i = 0; i < ButtonCnt; i++ )
    {
        QwtArrowButton *btn =
            new QwtArrowButton( i + 1, Qt::UpArrow, this );
        btn->setFocusPolicy( Qt::NoFocus );
        btn->installEventFilter( this );
        layout->addWidget( btn );

        connect( btn, SIGNAL( released() ), SLOT( btnReleased() ) );
        connect( btn, SIGNAL( clicked() ), SLOT( btnClicked() ) );

        d_data->buttonUp[i] = btn;
    }

    setNumButtons( 2 );
    setRange( 0.0, 1.0 );
    setSingleStep( 0.001 );
    setValue( 0.0 );

    setSizePolicy(
        QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Fixed ) );

    setFocusProxy( d_data->valueEdit );
    setFocusPolicy( Qt::StrongFocus );
}
예제 #2
0
void CToolButton::setPopup(QPopupMenu *_popup)
{
#if QT_VERSION < 300
    QToolButton::setPopup(_popup);
#else
    if (popup) disconnect(this, SIGNAL(clicked()), this, SLOT(btnClicked()));
    popup = _popup;
    if (popup) connect(this, SIGNAL(clicked()), this, SLOT(btnClicked()));
#endif
}
예제 #3
0
void BOperationProgressDialogPrivate::init()
{
    B_Q(BOperationProgressDialog);
    q->setStretchEnabled(true);
    proxy = new BSignalDelayProxy(250, 500);
    connect(proxy, SIGNAL(triggered()), this, SLOT(update()));
    canCancel = true;
    autoCloseInterval = -1;
    if (Operation) {
        connect(Operation, SIGNAL(finished()), this, SLOT(update()));
        connect(Operation, SIGNAL(error()), this, SLOT(update()));
        connect(Operation, SIGNAL(uploadProgress(qint64, qint64)), proxy, SLOT(trigger()));
        connect(Operation, SIGNAL(downloadProgress(qint64, qint64)), proxy, SLOT(trigger()));
    }
    QWidget *wgt = new QWidget;
      QVBoxLayout *vlt = new QVBoxLayout(wgt);
        lbl = new QLabel;
        vlt->addWidget(lbl);
        pbar = new QProgressBar;
          pbar->setMinimum(0);
        vlt->addWidget(pbar);
    q->setWidget(wgt);
    btn = q->addButton(" ", QDialogButtonBox::RejectRole, this, SLOT(btnClicked()));
    connect(bApp, SIGNAL(languageChanged()), this, SLOT(update()));
    update();
}
예제 #4
0
RSLineEdit::RSLineEdit(QWidget *parent, int height, QString value) :
    QWidget(parent),
    m_lineEdit(new QLineEdit(this)),
    m_customButton(new CustomButton(this)),
    m_height(height),
    m_defaultValue(value)
{
    //setWindowFlags(Qt::FramelessWindowHint);
    this->installEventFilter(this);
    m_customButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
    m_customButton->hide();
    //m_customButton->setMaximumSize(m_height, m_height);
    //m_customButton->setMinimumSize(m_height, m_height);
    m_customButton->setToolTip("Clear up to default value");
    //m_customButton->setObjectName("1234");
    //m_customButton->setStyleSheet("border: 1px solid red; border-right: none");
    //m_lineEdit->setFrame(false);
    m_lineEdit->installEventFilter(this);
    //m_lineEdit->setMinimumHeight(m_height);
    //m_lineEdit->setMaximumHeight(m_height);
    m_lineEdit->setText(m_defaultValue);
    //this->setStyleSheet("QWidget{border: 1px solid red}");
    //m_lineEdit->selectAll();//在这里和mainwindow里构造函数,此句代码均不好使,为何?
    //m_lineEdit->setFocus();

    QHBoxLayout *horizonLayout = new QHBoxLayout(this);
    horizonLayout->addWidget(m_lineEdit);
    horizonLayout->addWidget(m_customButton);
    horizonLayout->setSpacing(0);
    horizonLayout->setContentsMargins(0, 0, 0, 0);
    connect(m_customButton, SIGNAL(btnClicked()), this, SLOT(clearEditLine()));
}
예제 #5
0
int QwtCounter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QWidget::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: buttonReleased((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 1: valueChanged((*reinterpret_cast< double(*)>(_a[1]))); break;
        case 2: btnReleased(); break;
        case 3: btnClicked(); break;
        case 4: textChanged(); break;
        }
        _id -= 5;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< int*>(_v) = numButtons(); break;
        case 1: *reinterpret_cast< double*>(_v) = step(); break;
        case 2: *reinterpret_cast< double*>(_v) = minVal(); break;
        case 3: *reinterpret_cast< double*>(_v) = maxVal(); break;
        case 4: *reinterpret_cast< int*>(_v) = stepButton1(); break;
        case 5: *reinterpret_cast< int*>(_v) = stepButton2(); break;
        case 6: *reinterpret_cast< int*>(_v) = stepButton3(); break;
        case 7: *reinterpret_cast< double*>(_v) = value(); break;
        case 8: *reinterpret_cast< bool*>(_v) = editable(); break;
        }
        _id -= 9;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setNumButtons(*reinterpret_cast< int*>(_v)); break;
        case 1: setStep(*reinterpret_cast< double*>(_v)); break;
        case 2: setMinValue(*reinterpret_cast< double*>(_v)); break;
        case 3: setMaxValue(*reinterpret_cast< double*>(_v)); break;
        case 4: setStepButton1(*reinterpret_cast< int*>(_v)); break;
        case 5: setStepButton2(*reinterpret_cast< int*>(_v)); break;
        case 6: setStepButton3(*reinterpret_cast< int*>(_v)); break;
        case 7: setValue(*reinterpret_cast< double*>(_v)); break;
        case 8: setEditable(*reinterpret_cast< bool*>(_v)); break;
        }
        _id -= 9;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 9;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 9;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
예제 #6
0
ColorToolButton::ColorToolButton(QWidget *parent, QColor color)
        : QToolButton(parent)
{
    m_color = color;
    m_popup = NULL;
    connect(this, SIGNAL(clicked()), this, SLOT(btnClicked()));
}
WirelessSettingPannel::WirelessSettingPannel(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::WirelessSettingPannel)
  ,m_wepKeyValidator(0)
{
    ui->setupUi(this);
    connect(ui->m_wepkeyGenerateBtn, SIGNAL(clicked()), SLOT(btnClicked()));

    const char *basicEncryptions[] = {
        "None"
        ,"WEP"
        ,"WPA-PSK"
        ,"WPA2-PSK"
        ,"WPA-PSK/WPA2-PSK"
    };

    for(size_t idx = 0 ; idx < (sizeof(basicEncryptions) / sizeof(basicEncryptions[0])) ; ++idx){
        ui->m_securityCB->setItemData(idx, QString(basicEncryptions[idx]));
    }

    ui->m_wirelessModePromptPane->setVisible(ui->m_securityCB->currentText().contains("WPA-PSK"));
    updateWepKeyValidator();

    retranslateUi();
}
예제 #8
0
SMSEntryDeleteButton::SMSEntryDeleteButton(int ind, QWidget *parent/* = 0*/) :
QPushButton (parent),
index(ind)
{
    this->setText ("Delete");
    bool rv = connect (this, SIGNAL (clicked()), this, SLOT (btnClicked ()));
    Q_ASSERT(rv); Q_UNUSED(rv);
}//SMSEntryDeleteButton::SMSEntryDeleteButton
예제 #9
0
KviScriptUserButton::KviScriptUserButton(QWidget * par,const char * name)
: QToolButton(par)
{
	m_pScript = 0;
	setObjectName(name);
//	setAutoRaise(true);
	connect(this,SIGNAL(clicked()),this,SLOT(btnClicked()));
	setAutoRaise(true);
}
void DeviceDetailView::preparePersistUiElements()
{
    QVBoxLayout *layout = new QVBoxLayout(this);
    layout->setSpacing(15);

    m_proPanel = new DetailViewContentWidget(this);
    m_proPanel->setFocusPolicy(Qt::NoFocus);

    m_modifyApplyBtn = new QPushButton(this);
    m_modifyApplyBtn->setAutoDefault(true);
#ifdef BLOCK_DEVICE
    m_blockDeviceBtn = new QPushButton(this);
    connect(m_blockDeviceBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));
    m_blockDeviceBtn->setAutoDefault(true);
#endif
    m_closeBtn = new QPushButton(this);
    m_closeBtn->setAutoDefault(true);




    connect(m_modifyApplyBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));
    connect(m_closeBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));

    m_btnsLayout = new QHBoxLayout();
    m_btnsLayout->setSpacing(20);
    m_btnsLayout->addStretch(1);
    m_btnsLayout->addWidget(m_modifyApplyBtn);
#ifdef BLOCK_DEVICE
    m_btnsLayout->addWidget(m_blockDeviceBtn);
#endif
    m_btnsLayout->addWidget(m_closeBtn);
    m_btnsLayout->addStretch(1);

    QScrollArea *scrollArea = new QScrollArea(this);
    scrollArea->setFocusPolicy(Qt::NoFocus);
    scrollArea->setWidget(m_proPanel);
    scrollArea->setWidgetResizable(true);
    scrollArea->setFrameShadow(QFrame::Plain);
    scrollArea->setFrameShape(QFrame::NoFrame);

    layout->addWidget(scrollArea);
    layout->addLayout(m_btnsLayout);
}
예제 #11
0
StageEx01::StageEx01(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::StageEx01)
{
    ui->setupUi(this);

    //singls / slot 連接 ,  連接的主體(發送信號的類別,信號槽,接收信號的類別,接收信號的slot function);
    connect(ui->btnSend,SIGNAL(clicked()),this,SLOT(btnClicked()));

}
예제 #12
0
CToolButton::CToolButton (QWidget * parent, CommandDef *def)
        : QToolButton( parent), CToolItem(def)
{
    accelKey = 0;
    connect(this, SIGNAL(clicked()), this, SLOT(btnClicked()));
    connect(this, SIGNAL(toggled(bool)), this, SLOT(btnToggled(bool)));
    accel = NULL;
    if (def->accel){
        accel = new QAccel(this);
        accel->insertItem(QAccel::stringToKey(def->accel));
        connect(accel, SIGNAL(activated(int)), this, SLOT(accelActivated(int)));
    }
예제 #13
0
MvScene::MvScene(QObject *parent) : QGraphicsScene(parent)
{
    QBrush Brush;
    Brush.setColor(QColor(150,100,150));
    Brush.setStyle(Qt::DiagCrossPattern);
    setBackgroundBrush(Brush);

    QFont font;
    font.setPixelSize(16);
    lineEdit = new QLineEdit();
    QGraphicsProxyWidget * item = addWidget(lineEdit);
    lineEdit->setGeometry(-380, 300, 400, 35);
    lineEdit->setFont(font);
    item = addWidget(lineEdit);
    lineEdit->show();

    textEdit = new QTextEdit();
    item = addWidget(textEdit);
    textEdit->setGeometry(-380, 0, 400, 300);\
    textEdit->setFont(font);
    item = addWidget(textEdit);
    textEdit->show();

    QPushButton * button = new QPushButton(trUtf8("Speek!"), 0);
    item = addWidget(button);
    QTransform transform = item->transform();
    transform.translate(-500., 200.);
    transform.rotate(45.0);
    transform.scale(2., 2.);
    item->setTransform(transform);
    item = addWidget(button);
    button->show();

    connect(button,SIGNAL(clicked()),this,SLOT(btnClicked()));

    educationStatus = Free;

    UserName = "******";
    BotName = "Slave";

    InitializeBase();
}
예제 #14
0
void NerdMain::setSignalSlot(){
    connect(ui->menuNextRecord,SIGNAL(triggered()),data,SLOT(setNextRecord()));
    connect(ui->menuPrevRecord,SIGNAL(triggered()),data,SLOT(setPrevRecord()));
    connect(ui->menuNextCell,SIGNAL(triggered()),data,SLOT(setNextCell()));
    connect(ui->menuPrevCell,SIGNAL(triggered()),data,SLOT(setPrevCell()));

    connect(ui->menuAbout,SIGNAL(triggered()),aboutWin,SLOT(show()));
    connect(ui->menuHomepage,SIGNAL(triggered()),this,SLOT(openHomepage()));
    connect(open,SIGNAL(fileOpen()),this,SLOT(openFile()));
    connect(ui->menuOpen,SIGNAL(triggered()),open,SLOT(btnClicked()));
    connect(ui->menuExit,SIGNAL(triggered()),this,SLOT(close()));
    connect(ui->menuStart,SIGNAL(triggered()),data,SLOT(toggleState()));
    connect(ui->menuStop,SIGNAL(triggered()),data,SLOT(toggleState()));
    connect(data,SIGNAL(stateChange()),this,SLOT(toggleState()));

    connect(data,SIGNAL(nextState(bool)),this,SLOT(toggleNext(bool)));
    connect(data,SIGNAL(nextCellState(bool)),this,SLOT(toggleNextCell(bool)));
    connect(data,SIGNAL(prevState(bool)),this,SLOT(togglePrev(bool)));
    connect(data,SIGNAL(prevCellState(bool)),this,SLOT(togglePrevCell(bool)));
}
int PowerlineView::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsView::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: translateText((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< QString*(*)>(_a[2]))); break;
        case 1: nodeClicked((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 2: nodeContextMenu((*reinterpret_cast< int(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 3: btnClicked((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 4: onNodeClicked((*reinterpret_cast< PowerlineNode*(*)>(_a[1]))); break;
        case 5: onNodeContextMenu((*reinterpret_cast< PowerlineNode*(*)>(_a[1])),(*reinterpret_cast< const QPoint(*)>(_a[2]))); break;
        case 6: onMouseOverNode((*reinterpret_cast< int(*)>(_a[1]))); break;
        case 7: BtnClick(); break;
        default: ;
        }
        _id -= 8;
    }
    return _id;
}
예제 #16
0
Widget::Widget(QWidget *parent)
    : QWidget(parent)
{
    setFocusPolicy(Qt::ClickFocus);
    _scene= new QGraphicsScene(this);

     pmap =_scene->addPixmap(QPixmap("D:/Programacíon Avanzada SC/helloQtGraphics/nave.png"));
    _view= new QGraphicsView(_scene,this);
    _view->setFocusPolicy(Qt::NoFocus);

    QPushButton *btn= new QPushButton("dont Press this button",this);
    connect(btn,SIGNAL(clicked()),this,SLOT (btnClicked()));
    QLabel *lbl=new QLabel("Hola mundo",this);
    connect(this,SIGNAL(mensaje(QString)),lbl,SLOT(setText(QString)));

    QVBoxLayout *mainLayout=new QVBoxLayout;
    mainLayout->addWidget(lbl);
    mainLayout->addWidget(btn);
    mainLayout->addWidget(_view);


    this->setLayout(mainLayout);
}
예제 #17
0
WorkProcessButton::WorkProcessButton(int id, int value, const QTime &start, const QTime &end, QWidget *parent) : SelectableValueButton(id, value, parent),
    start(start),
    end(end)
{
    connect(this, SIGNAL(clicked()), this, SLOT(btnClicked()));
}
예제 #18
0
ColourChooser::ColourChooser(QString title, QWidget *parent) :
    QWidget(parent)
{
    isConstant = false;

    mainMinBtn = new QPushButton(tr("From"));
    mainMin = new QColor(0,64,0);
    mainMinBtn->setIcon(createIcon(mainMin));
    mainMinBtn->setObjectName(QString("mainMinBtn"));

    mainMaxBtn = new QPushButton(tr("To"));
    mainMax = new QColor(0,128,0);
    mainMaxBtn->setIcon(createIcon(mainMax));
    mainMaxBtn->setObjectName(QString("mainMaxBtn"));

    altMinBtn = new QPushButton(tr("From"));
    altMin = new QColor(32,64,32);
    altMinBtn->setIcon(createIcon(altMin));
    altMinBtn->setObjectName(QString("altMinBtn"));

    altMaxBtn = new QPushButton(tr("To"));
    altMax = new QColor(32,128,32);
    altMaxBtn->setIcon(createIcon(altMax));
    altMaxBtn->setObjectName(QString("altMaxBtn"));

    intensity = new VariationChooser(QString("Colouring Spread Distance"), 2,1,0);
    intensity->setMinimumHeight(50);

    connect(mainMinBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));
    connect(mainMaxBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));
    connect(altMinBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));
    connect(altMaxBtn,SIGNAL(clicked()),this,SLOT(btnClicked()));

    sideImage = new QLabel();
    sideImage->setPixmap(createVPixmap());
    mainImage = new QLabel();
    mainImage->setPixmap(createHPixmap(mainMin,mainMax));
    altImage = new QLabel();
    altImage->setPixmap(createHPixmap(altMin,altMax));

    QGroupBox *box = new QGroupBox(title);
    QVBoxLayout *leftLayout = new QVBoxLayout();

    //Main Colour Box
    QGroupBox *topBox = new QGroupBox(tr("Main Colour:"));
    QVBoxLayout *topBoxLayout = new QVBoxLayout();
    topBoxLayout->addWidget(new QLabel(tr("Variation")),0,Qt::AlignCenter);

    QHBoxLayout *topBoxHLayout = new QHBoxLayout();
    topBoxHLayout->addWidget(mainMinBtn);
    topBoxHLayout->addStretch();
    topBoxHLayout->addWidget(mainMaxBtn);
    topBoxLayout->addLayout(topBoxHLayout);

    topBoxLayout->addWidget(new QLabel(tr("Range")),0,Qt::AlignCenter);
    topBoxLayout->addWidget(mainImage,0,Qt::AlignCenter);

    topBox->setLayout(topBoxLayout);

    //Alt Colour Box
    bottomBox = new QGroupBox(tr("Alternate Colour:"));
    QVBoxLayout *bottomBoxLayout = new QVBoxLayout();
    bottomBoxLayout->addWidget(new QLabel(tr("Variation")),0,Qt::AlignCenter);

    QHBoxLayout *bottomBoxHLayout = new QHBoxLayout();
    bottomBoxHLayout->addWidget(altMinBtn);
    bottomBoxHLayout->addStretch();
    bottomBoxHLayout->addWidget(altMaxBtn);
    bottomBoxLayout->addLayout(bottomBoxHLayout);

    bottomBoxLayout->addWidget(new QLabel(tr("Range")),0,Qt::AlignCenter);
    bottomBoxLayout->addWidget(altImage,0,Qt::AlignCenter);
    bottomBoxLayout->addWidget(intensity,0,Qt::AlignCenter);
    bottomBoxLayout->addStretch();

    bottomBox->setLayout(bottomBoxLayout);

    //Now add to left layout
    leftLayout->addWidget(topBox);
    leftLayout->addWidget(bottomBox);


    QHBoxLayout *boxLayout = new QHBoxLayout();
    QHBoxLayout *mainLayout = new QHBoxLayout();
    boxLayout->addLayout(leftLayout);
    boxLayout->addWidget(sideImage,0,Qt::AlignBottom);
    box->setLayout(boxLayout);
    mainLayout->addWidget(box);

    this->setLayout(mainLayout);
}
PowerlineMapView::PowerlineMapView(QWidget *parent)
    :QWidget(parent)
    ,m_topologyview(0)
    //,m_prevPageBtnState(BTNSTATE_NORMAL)
    //,m_nextPageBtnState(BTNSTATE_NORMAL)
    //,m_firstPageBtnState(BTNSTATE_NORMAL)
    //,m_lastPageBtnState(BTNSTATE_NORMAL)
    ,m_layOut(0)
    ,m_devTotalCount(0)
    ,m_pageTotalCount(0)
    ,m_currentPageIndex(1)
    ,m_bUpdateUi(false)
    ,m_nOperRetCode(-1)
    ,m_nWhosOper(-1)
    ,m_nShowState(SS_HIDE)
    ,m_TipShowState(SDW_NO_SHOW)
    ,m_WirelessShowState(SDW_NO_SHOW)
	,m_hubView(NULL)
	,m_isRouterOk(false)
	,m_bAnimateStop(false)
	,m_bHaveIp(false)

{

#ifdef ENABLE_SMARTWIFIWIZARD
    m_dlgMgr.setWiFiWizardParentWidget(this);
#endif

#ifdef TEST_PL_CODE
	m_isHubView = false;
#endif
    m_topologyview = new PowerlineView(this);
    m_topologyview->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);

    m_waittingPanel = new WaitPanel(this);
    m_waittingPanel->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding);

	m_hubView	= new Powerline_HubMapView(this);
	m_hubView->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);

    m_topWaittingLayout = new QStackedLayout();
    m_topWaittingLayout->addWidget(m_topologyview);
    m_topWaittingLayout->addWidget(m_waittingPanel);
	m_topWaittingLayout->addWidget(m_hubView);
	connect(m_hubView, SIGNAL(pageTotal(int)), this, SIGNAL(pageChange(int)));


    m_devNumberLabel = new QLabel(this);
    //    m_netcardPanel = new NetcardsPanel(this);
    //    m_notifyNewDevCB = new QCheckBox(this);


    m_devNumberLabel->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred);
    //    m_notifyNewDevCB->setSizePolicy(QSizePolicy::Expanding,QSizePolicy::Preferred);
    //    m_notifyNewDevCB->setFocusPolicy(Qt::NoFocus);

    m_refreshBtn = new QPushButton(this);
    m_refreshBtn->setText("Refresh");
#ifndef TEST_PL_CODE
    m_refreshBtn->setVisible(false);
#else
    m_refreshBtn->setVisible(true);
#endif
    connect(m_refreshBtn, SIGNAL(clicked()), this, SLOT(slot_btn_refresh()));



    QHBoxLayout *horLayout = new QHBoxLayout();
    horLayout->addWidget(m_devNumberLabel);
#ifdef TEST_PL_CODE
    horLayout->addWidget(m_refreshBtn);
#endif


	//////◊Û”“º˝Õ∑
	m_prevPageBtn = new QPushButton(this);
	m_nextPageBtn = new QPushButton(this);
	m_prevPageBtn->setObjectName("prevPageBtn");
	m_nextPageBtn->setObjectName("nextPageBtn");
	m_prevPageBtn->setAttribute(Qt::WA_TranslucentBackground);
	m_nextPageBtn->setAttribute(Qt::WA_TranslucentBackground);
	m_prevPageBtn->setVisible(false);
	m_nextPageBtn->setVisible(false);
	connect(m_prevPageBtn, SIGNAL(clicked()), this, SLOT(btnClicked()));
	connect(m_nextPageBtn, SIGNAL(clicked()), this, SLOT(btnClicked()));
	QHBoxLayout *horLayout2 = new QHBoxLayout();
	horLayout2->addWidget(m_prevPageBtn);
	horLayout2->addLayout(m_topWaittingLayout);
	horLayout2->addWidget(m_nextPageBtn);

	QFile f(/*GENIE2_RES(*/":styles/powerlineview.qss")/*)*/;
	bool btemp=f.open(QIODevice::ReadOnly);
	Q_ASSERT(btemp);
	QString stemp;
	stemp=f.readAll();
	f.close();


	//m_prevPageBtn->setStyleSheet(stemp);
	//m_nextPageBtn->setStyleSheet(stemp);

	m_prevPageBtn->setStyleSheet(stemp);
	m_nextPageBtn->setStyleSheet(stemp);
	//////end
    m_layOut = new QVBoxLayout(this);
#ifdef TEST_PL_CODE
    m_layOut->addLayout(horLayout);
#endif

    m_layOut->addLayout(horLayout2);

    updateUiElements();


    //setLayout(m_layOut);

    //    QHBoxLayout *layout = new QHBoxLayout();
    //    layout->addWidget(m_topologyview);
    //    setLayout(layout);


    /**********END******************/
    connect(m_topologyview, SIGNAL(nodeClicked(int)), this, SLOT(onNodeClicked(int)));
    connect(m_topologyview, SIGNAL(nodeContextMenu(int ,QPoint)), this, SLOT(onNodeContextMenu(int, QPoint)));

    //connect(m_waittingPanel, SIGNAL(translateText(int,QString*)), this, SIGNAL(translateText(int, QString*)));

    connect(&m_dlgMgr, SIGNAL(onNewData(TopologyDataTransfer)), this, SLOT(slot_onNewData(TopologyDataTransfer)));
    connect(&m_dlgMgr, SIGNAL(commitOper(int)), this, SLOT(slot_dataFinish(int)));
    connect(&m_dlgMgr, SIGNAL(operRet(int,bool)), this, SLOT(slot_operRet(int,bool)));
	connect(&m_dlgMgr, SIGNAL(timeLineDlgOver(int)), this, SLOT(slot_timelineDlgOver(int)));

    //connect(m_topologyview, SIGNAL(btnClicked(int)), this, SLOT(slot_Btn_Click(int)));




    m_dlgMgr.setDlgParent(this);



    //slot_btn_refresh();
}