allpy
changeset 1143:a9d4a06ed103
pair-cores/web: add header "Description" before example and description
* * *
1
author | Boris Nagaev <bnagaev@gmail.com> |
---|---|
date | Mon, 14 Jan 2013 02:44:43 +0400 |
parents | 0df62d106146 |
children | 1a8e48f09fe6 |
files | pair_cores/web/approot/locales/pair-cores-web.xml pair_cores/web/approot/locales/pair-cores-web_ru.xml pair_cores/web/pair-cores.cpp |
diffstat | 3 files changed, 7 insertions(+), 0 deletions(-) [+] |
line diff
1.1 --- a/pair_cores/web/approot/locales/pair-cores-web.xml Mon Jan 14 02:42:49 2013 +0400 1.2 +++ b/pair_cores/web/approot/locales/pair-cores-web.xml Mon Jan 14 02:44:43 2013 +0400 1.3 @@ -19,6 +19,7 @@ 1.4 Bron-Kerbosch (pair cores) timeout (-1 - unlimited) 1.5 </message> 1.6 1.7 + <message id='pair.main.Description_header'>Description</message> 1.8 <message id='pair.main.Header_compare'><h1>CompareAln3D</h1></message> 1.9 <message id='pair.main.Refresh'>Refresh</message> 1.10 <message id='pair.main.Reset'>Reset</message>
2.1 --- a/pair_cores/web/approot/locales/pair-cores-web_ru.xml Mon Jan 14 02:42:49 2013 +0400 2.2 +++ b/pair_cores/web/approot/locales/pair-cores-web_ru.xml Mon Jan 14 02:44:43 2013 +0400 2.3 @@ -26,6 +26,7 @@ 2.4 Пропускать ядра, входящие в один элемент вторичной структуры 2.5 </message> 2.6 2.7 + <message id='pair.main.Description_header'>Описание</message> 2.8 <message id='pair.main.Refresh'>Обновить</message> 2.9 <message id='pair.main.Reset'>Сбросить</message> 2.10 <message id='pair.main.Description'>
3.1 --- a/pair_cores/web/pair-cores.cpp Mon Jan 14 02:42:49 2013 +0400 3.2 +++ b/pair_cores/web/pair-cores.cpp Mon Jan 14 02:44:43 2013 +0400 3.3 @@ -13,6 +13,7 @@ 3.4 3.5 #include "wc/src/Wbi.hpp" 3.6 #include "wc/src/FileView.hpp" 3.7 +#include "wc/src/TableForm.hpp" 3.8 #include "wc/src/util.hpp" 3.9 3.10 using namespace Wt; 3.11 @@ -180,7 +181,11 @@ 3.12 task->set_queue(&queue); 3.13 new TaskCountup(task, root()); 3.14 // 3.15 + // header Description 3.16 new WBreak(root()); 3.17 + TableForm* descption_tableform = new TableForm(root()); 3.18 + descption_tableform->section(tr("pair.main.Description_header")); 3.19 + // 3.20 new Wt::WTemplate(tr("pair.main.Example"), root()); 3.21 new Wt::WTemplate(tr("pair.main.Example_fasta"), root()); 3.22 new Wt::WTemplate(tr("pair.main.Description"), root());