Changeset 989 in ntrip for trunk/BNC/bncwindow.cpp
- Timestamp:
- Jul 28, 2008, 5:39:36 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.