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);
|
|