OSSP CVS Repository

ossp - Check-in [2817]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2817
Date: 2002-Nov-13 17:36:58 (local)
2002-Nov-13 16:36:58 (UTC)
User:ms
Branch:
Comment: First cut at a menu bar, tool bar, and status bar.
Tickets:
Inspections:
Files:
ossp-pkg/as/as-gui/TODO      1.4 -> 1.5     3 inserted, 0 deleted
ossp-pkg/as/as-gui/as_gui.cpp      1.5 -> 1.6     24 inserted, 2 deleted
ossp-pkg/as/as-gui/as_gui.h      1.4 -> 1.5     7 inserted, 0 deleted
ossp-pkg/titraq/TODO      1.4 -> 1.5     3 inserted, 0 deleted
ossp-pkg/titraq/titraq.cpp      1.5 -> 1.6     24 inserted, 2 deleted
ossp-pkg/titraq/titraq.h      1.4 -> 1.5     7 inserted, 0 deleted

ossp-pkg/as/as-gui/TODO 1.4 -> 1.5

--- TODO 2002/11/11 21:39:08     1.4
+++ TODO 2002/11/13 16:36:58     1.5
@@ -11,6 +11,9 @@
 -------
 Add GUID
 Add Ex_ID
+Q_CHECK_PTR
+public/private
+QWhatsThis::add(m_pAddbutton, trUtf8("Para soltar la pepa"));
 
 Dreams
 ------


ossp-pkg/as/as-gui/as_gui.cpp 1.5 -> 1.6

--- as_gui.cpp   2002/11/13 12:38:25     1.5
+++ as_gui.cpp   2002/11/13 16:36:58     1.6
@@ -30,10 +30,32 @@
     QMainWindow(pParent, kszName, Flags)
 {
     // Initial widget manipulations
-    resize(600, 480);
-    setCaption(trUtf8("OSSP Titraq"));
     if (!kszName)
         setName(trUtf8("Titraqform"));
+    resize(600, 480);
+    m_pMenubar = this->menuBar();
+    m_pStatbar = this->statusBar();
+    m_pStatbar->message(trUtf8("Ready"));
+    setCaption(trUtf8("OSSP Titraq"));
+
+    // Lock down window size
+    setSizePolicy(QSizePolicy((QSizePolicy::SizeType)0,
+        (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth()));
+
+    // Work on the menu bar
+    QPopupMenu *pFilepopup = new QPopupMenu(this);
+    m_pMenubar->insertItem("&File", pFilepopup);
+//    pFilepopup->insertItem("&Quit", this, SLOT(quit()));
+//    pFilenewact->addTo(pFilepopup);
+//    pFileopenact->addTo(pFilepopup);
+//    pFilesaveact->addTo(pFilepopup);
+
+    // Make a new tool bar
+    m_pToolbar = new QToolBar("Toolfile", this, DockTop);
+    m_pToolbar->setLabel(trUtf8("File Ops"));
+//    pFilenewact->addTo(m_pToolbar);
+//    pFileopenact->addTo(m_pToolbar);
+//    pFilesaveact->addTo(m_pToolbar);
 
     // Create a central frame and associated layout for QMainWindow
     m_pCenframe = new QFrame(this);


ossp-pkg/as/as-gui/as_gui.h 1.4 -> 1.5

--- as_gui.h     2002/11/13 12:38:25     1.4
+++ as_gui.h     2002/11/13 16:36:58     1.5
@@ -4,6 +4,9 @@
 #include <qapplication.h>
 #include <qmainwindow.h>
 #include <qtable.h>
+#include <qmenubar.h>
+#include <qtoolbar.h>
+#include <qstatusbar.h>
 #include <qimage.h>
 #include <qpushbutton.h>
 #include <qlineedit.h>
@@ -53,6 +56,10 @@
     QHBoxLayout *m_pControllayout;      // Lower control buttons
 
 private:
+    // Don't destroy these, they are owned by QMainWindow
+    QMenuBar    *m_pMenubar;
+    QToolBar    *m_pToolbar;
+    QStatusBar  *m_pStatbar;
 };
 
 #endif // TITRAQMWIN_H




CVSTrac 2.0.1