Changeset 998 in ntrip for trunk/BNS/bnswindow.cpp
- Timestamp:
- Jul 29, 2008, 11:15:18 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnswindow.cpp
r981 r998 56 56 }; 57 57 58 // Flowchart Dialog - Constructor 59 //////////////////////////////////////////////////////////////////////////// 60 bnsFlowchartDlg::bnsFlowchartDlg(QWidget* parent) : 61 QDialog(parent) { 62 63 int ww = QFontMetrics(font()).width('w'); 64 QPushButton* _closeButton = new QPushButton("Close"); 65 _closeButton->setMaximumWidth(10*ww); 66 connect(_closeButton, SIGNAL(clicked()), this, SLOT(close())); 67 68 QGridLayout* dlgLayout = new QGridLayout(); 69 QLabel* img = new QLabel(); 70 img->setPixmap(QPixmap(":bnsflowchart.png")); 71 dlgLayout->addWidget(img, 0,0); 72 dlgLayout->addWidget(_closeButton,1,0,Qt::AlignLeft); 73 74 setLayout(dlgLayout); 75 show(); 76 } 77 78 // Flowchart Dialog - Destructor 79 //////////////////////////////////////////////////////////////////////////// 80 bnsFlowchartDlg::~bnsFlowchartDlg() { 81 }; 82 58 83 // Constructor 59 84 //////////////////////////////////////////////////////////////////////////// … … 84 109 _actAbout = new QAction(tr("&About BNS"),this); 85 110 connect(_actAbout, SIGNAL(triggered()), SLOT(slotAbout())); 111 112 _actFlowchart = new QAction(tr("&Flow Chart"),this); 113 connect(_actFlowchart, SIGNAL(triggered()), SLOT(slotFlowchart())); 86 114 87 115 _actFontSel = new QAction(tr("Select &Font"),this); … … 367 395 } 368 396 397 //Flowchart 398 //////////////////////////////////////////////////////////////////////////// 399 void bnsWindow::slotFlowchart() { 400 new bnsFlowchartDlg(0); 401 } 402 369 403 // Help Window 370 404 //////////////////////////////////////////////////////////////////////////// … … 407 441 _menuHlp = menuBar()->addMenu(tr("&Help")); 408 442 _menuHlp->addAction(_actHelp); 443 _menuHlp->addAction(_actFlowchart); 409 444 _menuHlp->addAction(_actAbout); 410 445 }
Note:
See TracChangeset
for help on using the changeset viewer.