--- as_assist.cpp 2002/11/22 19:42:25 1.9
+++ as_assist.cpp 2002/11/22 21:14:27 1.10
@@ -102,10 +102,11 @@
if (m_pFilenewact == NULL) // Sanity check
throw Genexcept("Main window file new action creation failed.");
connect(m_pFilenewact, SIGNAL(activated()), this, SLOT(newDoc()));
- const char *kszFilenewtext = trUtf8("<p><img source=\"filenew\"> "
- "Click this button to make a <em>blank file</em>."
- "You can also select the <b>New</b> command "
- "from the <b>File</b> menu.</p>");
+ const char *kszFilenewtext = "<p><img source=\"filenew\"> "
+ "Click this button to make<br>a "
+ "<em>blank file</em>. You can also<br>"
+ "select the <b>New</b> command<br>from "
+ "the <b>File</b> menu.</p>";
m_pFilenewact->setWhatsThis(kszFilenewtext);
// File open action
@@ -113,10 +114,11 @@
if (m_pFileopenact == NULL) // Sanity check
throw Genexcept("Main window file open action creation failed.");
connect(m_pFileopenact, SIGNAL(activated()), this, SLOT(chooseFile()));
- const char *kszFileopentext = trUtf8("<p><img source=\"fileopen\"> "
- "Click this button to open a <em>new file</em>."
- "You can also select the <b>Open</b> command "
- "from the <b>File</b> menu.</p>");
+ const char *kszFileopentext = "<p><img source=\"fileopen\"> "
+ "Click this button to open<br>a "
+ "<em>new file</em>. You can also select<br>"
+ "the <b>Open</b> command from the<br>"
+ "<b>File</b> menu.</p>";
m_pFileopenact->setWhatsThis(kszFileopentext);
// File save current action
@@ -124,11 +126,12 @@
if (m_pFilesaveact == NULL) // Sanity check
throw Genexcept("Main window file save action creation failed.");
connect(m_pFilesaveact, SIGNAL(activated()), this, SLOT(saveFile()));
- const char *kszFilesavetext = trUtf8("<p><img source=\"filesave\"> "
- "Click this button to <em>save</em> the file you "
- "are editing. You will be prompted for a file name.\n"
- "You can also select the <b>Save</b> command "
- "from the <b>File</b> menu.</p>");
+ const char *kszFilesavetext = "<p><img source=\"filesave\"> "
+ "Click this button to <em>save</em><br>"
+ "the file you are editing. You<br>will be "
+ "prompted for a file<br>name. You can also "
+ "select<br>the<b> Save</b> command from<br>"
+ "the <b>File</b> menu.</p>";
m_pFilesaveact->setWhatsThis(kszFilesavetext);
// File save selected action
@@ -155,10 +158,10 @@
if (m_pAddrowact == NULL) // Sanity check
throw Genexcept("Main window add row action creation failed.");
connect(m_pAddrowact, SIGNAL(activated()), this, SLOT(addEntry()));
- const char *kszAddrowtext = trUtf8("<p><img source=\"ossplogo\"> "
+ const char *kszAddrowtext = "<p><img source=\"ossplogo\"> "
"Click this button to add a <em>new row</em>."
- "You can also select the <b>Add row</b> command "
- "from the <b>Accounting</b> menu.</p>");
+ "You can also select the <b>Add</b> command "
+ "from the <b>Edit</b> menu.</p>";
m_pAddrowact->setWhatsThis(kszAddrowtext);
// Delete data row action
@@ -166,10 +169,10 @@
if (m_pDeleterowact == NULL) // Sanity check
throw Genexcept("Main window delete row action creation failed.");
connect(m_pDeleterowact, SIGNAL(activated()), this, SLOT(delEntry()));
- const char *kszDeleterowtext = trUtf8("<p><img source=\"ossplogo\"> "
+ const char *kszDeleterowtext = "<p><img source=\"ossplogo\"> "
"Click this button to delete a <em>row</em>."
- "You can also select the <b>Delete row</b> command "
- "from the <b>Accounting</b> menu.</p>");
+ "You can also select the <b>Delete</b> command "
+ "from the <b>Edit</b> menu.</p>";
m_pDeleterowact->setWhatsThis(kszDeleterowtext);
// Write data action
@@ -177,10 +180,10 @@
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 = trUtf8("<p><img source=\"ossplogo\"> "
+ const char *kszWritedatatext = "<p><img source=\"ossplogo\"> "
"Click this button to <em>write out</em> your accounting data."
- "You can also select the <b>Write data</b> command "
- "from the <b>Accounting</b> menu.</p>");
+ "You can also select the <b>Save</b> command "
+ "from the <b>File</b> menu.</p>";
m_pWritedataact->setWhatsThis(kszWritedatatext);
}
@@ -256,18 +259,18 @@
m_pMaintable->setSelectionMode(QTable::MultiRow); // Multi row selection
m_pMaintable->setLeftMargin(0); // Get rid of the vertical header
m_pMaintable->verticalHeader()->hide(); // by hiding it with a margin of 0
- m_pMaintable->horizontalHeader()->setResizeEnabled(false);
+ m_pMaintable->horizontalHeader()->setResizeEnabled(true);
m_pMaintable->setColumnStretchable(g_knCols - 1, true);
m_pMaintable->setSorting(false);
// Table header row
m_pTablehead = m_pMaintable->horizontalHeader();
m_pMaintable->setHScrollBarMode(QScrollView::AlwaysOff);
- m_pTablehead->setLabel(0, QObject::trUtf8("Date"), 96);
- m_pTablehead->setLabel(1, QObject::trUtf8("Begin"), 80);
- m_pTablehead->setLabel(2, QObject::trUtf8("End"), 80);
- m_pTablehead->setLabel(3, QObject::trUtf8("Amount"), 52);
- m_pTablehead->setLabel(4, QObject::trUtf8("Task"), 70);
+ m_pTablehead->setLabel(0, QObject::trUtf8("Date"), 76);
+ m_pTablehead->setLabel(1, QObject::trUtf8("Begin"), 48);
+ m_pTablehead->setLabel(2, QObject::trUtf8("End"), 48);
+ m_pTablehead->setLabel(3, QObject::trUtf8("Amount"), 48);
+ m_pTablehead->setLabel(4, QObject::trUtf8("Task"), 96);
m_pTablehead->setLabel(5, QObject::trUtf8("Remark"));
m_pPackagelayout->addWidget(m_pMaintable); // Finally add the damn table
|