- Timestamp:
- Jul 28, 2008, 5:39:36 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bnc.qrc
r174 r989 2 2 <qresource> 3 3 <file>ntrip-logo.png</file> 4 <file>flowchart.png</file> 4 5 <file>bnchelp.html</file> 5 6 <file>bncabout.html</file> -
trunk/BNC/bncwindow.cpp
r968 r989 71 71 _actAbout = new QAction(tr("&About BNC"),this); 72 72 connect(_actAbout, SIGNAL(triggered()), SLOT(slotAbout())); 73 74 _actFlowchart = new QAction(tr("&Flowchart"),this); 75 connect(_actFlowchart, SIGNAL(triggered()), SLOT(slotFlowchart())); 73 76 74 77 _actFontSel = new QAction(tr("Select &Font"),this); … … 751 754 } 752 755 756 //Flowchart 757 //////////////////////////////////////////////////////////////////////////// 758 void bncWindow::slotFlowchart() { 759 new bncFlowchartDlg(0); 760 } 761 753 762 // Help Window 754 763 //////////////////////////////////////////////////////////////////////////// … … 791 800 _menuHlp = menuBar()->addMenu(tr("&Help")); 792 801 _menuHlp->addAction(_actHelp); 802 _menuHlp->addAction(_actFlowchart); 793 803 _menuHlp->addAction(_actAbout); 794 795 804 } 796 805 … … 838 847 }; 839 848 849 bncFlowchartDlg::bncFlowchartDlg(QWidget* parent) : 850 QDialog(parent) { 851 852 int ww = QFontMetrics(font()).width('w'); 853 QPushButton* _closeButton = new QPushButton("Close"); 854 _closeButton->setMaximumWidth(10*ww); 855 connect(_closeButton, SIGNAL(clicked()), this, SLOT(close())); 856 857 QGridLayout* dlgLayout = new QGridLayout(); 858 QLabel* img = new QLabel(); 859 img->setPixmap(QPixmap(":flowchart.png")); 860 dlgLayout->addWidget(img, 0,0); 861 dlgLayout->addWidget(_closeButton,1,0,Qt::AlignLeft); 862 863 setLayout(dlgLayout); 864 /* resize(50*ww, 35*ww); */ 865 show(); 866 } 867 868 bncFlowchartDlg::~bncFlowchartDlg() { 869 }; 870 -
trunk/BNC/bncwindow.h
r967 r989 40 40 }; 41 41 42 class bncFlowchartDlg : public QDialog { 43 Q_OBJECT 44 45 public: 46 bncFlowchartDlg(QWidget* parent); 47 ~bncFlowchartDlg(); 48 }; 49 42 50 class bncWindow : public QMainWindow { 43 51 Q_OBJECT … … 55 63 void slotHelp(); 56 64 void slotAbout(); 65 void slotFlowchart(); 57 66 void slotFontSel(); 58 67 void slotSaveOptions(); … … 75 84 QAction* _actHelp; 76 85 QAction* _actAbout; 86 QAction* _actFlowchart; 77 87 QAction* _actFontSel; 78 88 QAction* _actSaveOpt;
Note:
See TracChangeset
for help on using the changeset viewer.