From: <gua...@us...> - 2012-04-11 09:26:59
|
Revision: 2145 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=2145&view=rev Author: guanlisheng Date: 2012-04-11 09:07:44 +0000 (Wed, 11 Apr 2012) Log Message: ----------- cleanup Modified Paths: -------------- branches/lua_integration/mmex/src/assetspanel.cpp Modified: branches/lua_integration/mmex/src/assetspanel.cpp =================================================================== --- branches/lua_integration/mmex/src/assetspanel.cpp 2012-04-11 08:59:31 UTC (rev 2144) +++ branches/lua_integration/mmex/src/assetspanel.cpp 2012-04-11 09:07:44 UTC (rev 2145) @@ -149,25 +149,12 @@ wxLC_REPORT | wxLC_HRULES | wxLC_VRULES | wxLC_VIRTUAL | wxLC_SINGLE_SEL ); m_listCtrlAssets->SetBackgroundColour(mmColors::listDetailsPanelColor); m_listCtrlAssets->SetImageList(m_imageList.get(), wxIMAGE_LIST_SMALL); - m_listCtrlAssets->InsertColumn(COL_NAME, _("Name")); - wxListItem itemCol; - itemCol.SetImage(-1); - itemCol.SetAlign(wxLIST_FORMAT_LEFT); - itemCol.SetText(_("Type")); - m_listCtrlAssets->InsertColumn(COL_TYPE, itemCol); - - itemCol.SetAlign(wxLIST_FORMAT_RIGHT); - itemCol.SetText(_("Value")); - m_listCtrlAssets->InsertColumn(COL_VALUE, itemCol); + m_listCtrlAssets->InsertColumn(COL_NAME, _("Name"), wxLIST_FORMAT_RIGHT); + m_listCtrlAssets->InsertColumn(COL_TYPE, _("Type"), wxLIST_FORMAT_RIGHT); + m_listCtrlAssets->InsertColumn(COL_VALUE, _("Value"), wxLIST_FORMAT_RIGHT); + m_listCtrlAssets->InsertColumn(COL_DATE, _("Date"), wxLIST_FORMAT_RIGHT); + m_listCtrlAssets->InsertColumn(COL_NOTES, _("Notes")); - itemCol.SetAlign(wxLIST_FORMAT_RIGHT); - itemCol.SetText(_("Date")); - m_listCtrlAssets->InsertColumn(COL_DATE, itemCol); - - itemCol.SetAlign(wxLIST_FORMAT_LEFT); - itemCol.SetText(_("Notes")); - m_listCtrlAssets->InsertColumn(COL_NOTES, itemCol); - /* See if we can get data from inidb */ long col0, col1, col2, col3, col4; mmDBWrapper::getINISettingValue(inidb_, wxT("ASSETS_COL0_WIDTH"), wxT("150")).ToLong(&col0); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |