Changeset 989 in ntrip for trunk/BNC


Ignore:
Timestamp:
Jul 28, 2008, 5:39:36 PM (16 years ago)
Author:
weber
Message:

* empty log message *

Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnc.qrc

    r174 r989  
    22<qresource>
    33    <file>ntrip-logo.png</file>
     4    <file>flowchart.png</file>
    45    <file>bnchelp.html</file>
    56    <file>bncabout.html</file>
  • trunk/BNC/bncwindow.cpp

    r968 r989  
    7171  _actAbout = new QAction(tr("&About BNC"),this);
    7272  connect(_actAbout, SIGNAL(triggered()), SLOT(slotAbout()));
     73
     74  _actFlowchart = new QAction(tr("&Flowchart"),this);
     75  connect(_actFlowchart, SIGNAL(triggered()), SLOT(slotFlowchart()));
    7376
    7477  _actFontSel = new QAction(tr("Select &Font"),this);
     
    751754}
    752755
     756//Flowchart
     757////////////////////////////////////////////////////////////////////////////
     758void bncWindow::slotFlowchart() {
     759 new bncFlowchartDlg(0);
     760}
     761
    753762// Help Window
    754763////////////////////////////////////////////////////////////////////////////
     
    791800  _menuHlp = menuBar()->addMenu(tr("&Help"));
    792801  _menuHlp->addAction(_actHelp);
     802  _menuHlp->addAction(_actFlowchart);
    793803  _menuHlp->addAction(_actAbout);
    794 
    795804}
    796805
     
    838847};
    839848
     849bncFlowchartDlg::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
     868bncFlowchartDlg::~bncFlowchartDlg() {
     869};
     870
  • trunk/BNC/bncwindow.h

    r967 r989  
    4040};
    4141
     42  class bncFlowchartDlg : public QDialog {
     43  Q_OBJECT
     44
     45  public:
     46    bncFlowchartDlg(QWidget* parent);
     47    ~bncFlowchartDlg();
     48};
     49
    4250  class bncWindow : public QMainWindow {
    4351  Q_OBJECT
     
    5563    void slotHelp();
    5664    void slotAbout();
     65    void slotFlowchart();
    5766    void slotFontSel();
    5867    void slotSaveOptions();
     
    7584    QAction*   _actHelp;
    7685    QAction*   _actAbout;
     86    QAction*   _actFlowchart;
    7787    QAction*   _actFontSel;
    7888    QAction*   _actSaveOpt;
Note: See TracChangeset for help on using the changeset viewer.