Check-in Number:
|
4092 | |
Date: |
2003-Feb-28 18:13:25 (local)
2003-Feb-28 17:13:25 (UTC) |
User: | ms |
Branch: | |
Comment: |
Improved dynamic calculation of fixed accounts combobox frame size. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/as/as-gui/TODO 1.92 -> 1.93
--- TODO 2003/02/27 13:56:22 1.92
+++ TODO 2003/02/28 17:13:25 1.93
@@ -42,6 +42,7 @@
Label methods and parameters throughout as const ... const, use &
Yank out all #include from headers, replace with class ...; protos
Check for empty amount field in getWeektotals before Hashtasks[Convstring] +=
+Accountlistbox is sorted both in assist and dataops with maps
Bugs (? = unverified)
---------------------
|
|
ossp-pkg/as/as-gui/as_assist.cpp 1.113 -> 1.114
--- as_assist.cpp 2003/02/27 13:57:47 1.113
+++ as_assist.cpp 2003/02/28 17:13:25 1.114
@@ -887,15 +887,20 @@
throw Genexcept("Main window task edit creation failed.");
m_pTasks->insertStringList(*m_pTaskentries);
m_pTasks->setCurrentText(NULL);
+ m_pTasks->setSizeLimit(TITRAQ_ACCTBOXHEIGHT);
m_pTasks->setAutoCompletion(true);
m_pTasks->setDuplicatesEnabled(false);
m_pTasks->setEnabled(false);
// m_pTasks->setEditable(false); // Only idiots define noneditable and autocompletion
// Add an auto scroll bar if possible under current GUI style
- if (m_pTasks->listBox()) // Motif style has no list box
+ if (m_pTasks->listBox()) { // Motif style has no list box
+ int nPopupwidth = m_pTasks->listBox()->maxItemWidth();
+ nPopupwidth += m_pTasks->listBox()->horizontalScrollBar()->height();
+ m_pTasks->listBox()->setFixedWidth(nPopupwidth);
m_pTasks->listBox()->setHScrollBarMode(QScrollView::Auto);
-// m_pTasks->setMinimumWidth(m_pTasks->listBox()->maxItemWidth());
+ m_pTasks->listBox()->sort();
+ }
// Whatsthis info for the task editor
const char *kszTasktext = "Choose a <em>task account</em> by clicking on "
|
|
ossp-pkg/as/as-gui/as_const.h 1.59 -> 1.60
--- as_const.h 2003/02/25 09:25:21 1.59
+++ as_const.h 2003/02/28 17:13:25 1.60
@@ -278,5 +278,6 @@
#define TITRAQ_BRIGHT 'H' // For coloring rows
#define TITRAQ_DARK 'D' // For coloring rows
#define TITRAQ_BIGMAGIC 700000 // For unreasonably large numbers
+#define TITRAQ_ACCTBOXHEIGHT 24 // Number rows in account combobox
#endif // TITCONST_H
|
|