Changeset 998 in ntrip
- Timestamp:
- Jul 29, 2008, 11:15:18 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncwindow.cpp
r997 r998 864 864 865 865 setLayout(dlgLayout); 866 /* resize(50*ww, 35*ww); */867 866 show(); 868 867 } -
trunk/BNS/bns.qrc
r749 r998 2 2 <qresource> 3 3 <file>ntrip-logo.png</file> 4 <file>bnsflowchart.png</file> 4 5 <file>bnshelp.html</file> 5 6 <file>bnsabout.html</file> -
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 } -
trunk/BNS/bnswindow.h
r981 r998 12 12 bnsAboutDlg(QWidget* parent); 13 13 ~bnsAboutDlg(); 14 }; 15 16 class bnsFlowchartDlg : public QDialog { 17 Q_OBJECT 18 19 public: 20 bnsFlowchartDlg(QWidget* parent); 21 ~bnsFlowchartDlg(); 14 22 }; 15 23 … … 28 36 void slotHelp(); 29 37 void slotAbout(); 38 void slotFlowchart(); 30 39 void slotFontSel(); 31 40 void slotSaveOptions(); … … 47 56 QAction* _actHelp; 48 57 QAction* _actAbout; 58 QAction* _actFlowchart; 49 59 QAction* _actFontSel; 50 60 QAction* _actSaveOpt;
Note:
See TracChangeset
for help on using the changeset viewer.