--- as_assist.cpp 2002/11/26 20:25:16 1.24
+++ as_assist.cpp 2002/11/26 20:38:19 1.25
@@ -201,17 +201,6 @@
"You can also select the <b>Delete</b> command "
"from the <b>Edit</b> menu.</p>";
m_pDelrowact->setWhatsThis(kszDelrowtext);
-
- // Write data action
- m_pWritedataact = new QAction(trUtf8("Write Data"), trUtf8("&Write data"), 0, this, "Writedata");
- if (m_pWritedataact == NULL) // Sanity check
- throw Genexcept("Main window write data action creation failed.");
- connect(m_pWritedataact, SIGNAL(activated()), this, SLOT(writeEntry()));
- const char *kszWritedatatext = "<p><img source=\"ossplogo\"> "
- "Click this button to <em>write out</em> "
- "your accounting data. You can also select the "
- "<b>Save</b> command from the <b>File</b> menu.</p>";
- m_pWritedataact->setWhatsThis(kszWritedatatext);
}
//
@@ -376,22 +365,20 @@
m_pCenframe->setFrameShadow(QFrame::Sunken);
setCentralWidget(m_pCenframe);
- // Layout controls for table, editing widgets, and buttons
+ // Layout controls for table, editing widgets
m_pMainlayout = new QVBoxLayout(m_pCenframe, 10, 6, "Mainlayout"); // For layouts
m_pPackagelayout = new QVBoxLayout(0, 0, 6, "Packagelayout"); // For table
m_pDatelayout = new QHBoxLayout(0, 0, 6, "Datelayout"); // For dates
m_pTasklayout = new QHBoxLayout(0, 0, 6, "Tasklayout"); // For tasks
- m_pControllayout = new QHBoxLayout(0, 0, 6, "Controllayout"); // For buttons
// Major sanity check wrapped in one call
- if (!(m_pMainlayout && m_pPackagelayout && m_pDatelayout && m_pTasklayout && m_pControllayout))
+ if (!(m_pMainlayout && m_pPackagelayout && m_pDatelayout && m_pTasklayout))
throw Genexcept("Main window layout creation failed.");
// Specify ordering of the layouts
m_pMainlayout->addLayout(m_pPackagelayout);
m_pMainlayout->addLayout(m_pDatelayout);
m_pMainlayout->addLayout(m_pTasklayout);
- m_pMainlayout->addLayout(m_pControllayout);
}
//
@@ -441,11 +428,6 @@
// connect(m_pMaintable, SIGNAL(clicked(int, int, int, const QPoint&)), this, SLOT(updEdit(int, int)));
// connect(m_pMaintable, SIGNAL(doubleClicked(int, int, int, const QPoint&)), this, SLOT(updEdit(int, int)));
// connect(m_pMaintable, SIGNAL(valueChanged(int, int)), this, SLOT(tableChanged(int, int)));
-
-// // Button action signals
-// connect(AddPushButton, SIGNAL(clicked()), this, SLOT(AddRow()));
-// connect(DeletePushButton, SIGNAL(clicked()), this, SLOT(DelRow()));
-// connect(WritePushButton, SIGNAL(clicked()), this, SLOT(accept()));
}
//
@@ -579,51 +561,3 @@
// m_pAmount->valueChanged(int value);
// m_pTasks->textChanged(const QString &string);
}
-
-//
-// Construct the buttons
-//
-void Titraqform::setupButtons(void)
-{
- // Tuple push button add
- m_pAddbutton = new QPushButton(m_pCenframe, "AddButton");
- if (m_pAddbutton == NULL) // Sanity check
- throw Genexcept("Main window add button creation failed.");
- m_pAddbutton->setCursor(QCursor(13));
- m_pAddbutton->setText(trUtf8("&Add"));
- QToolTip::add(m_pAddbutton, trUtf8("Add Entry"));
- connect(m_pAddbutton, SIGNAL(clicked()), this, SLOT(addEntry()));
- m_pControllayout->addWidget(m_pAddbutton);
-
- // Tuple push button delete
- m_pDeletebutton = new QPushButton(m_pCenframe, "Deletebutton");
- if (m_pDeletebutton == NULL) // Sanity check
- throw Genexcept("Main window delete button creation failed.");
- m_pDeletebutton->setCursor(QCursor(13));
- m_pDeletebutton->setText(trUtf8("&Delete"));
- m_pDeletebutton->setFlat(false);
- QToolTip::add(m_pDeletebutton, trUtf8("Delete Entry"));
- connect(m_pDeletebutton, SIGNAL(clicked()), this, SLOT(delEntry()));
- m_pControllayout->addWidget(m_pDeletebutton);
-
- // Tuple push button write
- m_pWritebutton = new QPushButton(m_pCenframe, "Writebutton");
- if (m_pWritebutton == NULL) // Sanity check
- throw Genexcept("Main window write button creation failed.");
- m_pWritebutton->setCursor(QCursor(13));
- m_pWritebutton->setText(trUtf8("&Write"));
- QToolTip::add(m_pWritebutton, trUtf8("Write Entry"));
- connect(m_pWritebutton, SIGNAL(clicked()), this, SLOT(writeEntry()));
- m_pControllayout->addWidget(m_pWritebutton);
-
- // Tuple push button quit
- m_pQuitbutton = new QPushButton(m_pCenframe, "Quitbutton");
- if (m_pQuitbutton == NULL) // Sanity check
- throw Genexcept("Main window quit button creation failed.");
- m_pQuitbutton->setCursor(QCursor(13));
- m_pQuitbutton->setText(trUtf8("&Quit"));
- m_pQuitbutton->setFlat(false);
- QToolTip::add(m_pQuitbutton, trUtf8("Quit titraq"));
- connect(m_pQuitbutton, SIGNAL(clicked()), qApp, SLOT(quit()));
- m_pControllayout->addWidget(m_pQuitbutton);
-}
|