added: to templates: an interface for getting information from Space

miscspace.h, miscspace.cpp
changed: plugin ticket
         now as a config we use a PT::Space struct
         (not finished yet, only 'integer', 'select' and 'progress' are done)


git-svn-id: svn://ttmath.org/publicrep/winix/trunk@794 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-01-16 10:12:38 +00:00
parent b2d3ca9543
commit 424618de38
33 changed files with 1102 additions and 1164 deletions

View File

@@ -2,7 +2,7 @@
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2008-2010, Tomasz Sowa
* Copyright (c) 2008-2012, Tomasz Sowa
* All rights reserved.
*
*/
@@ -22,15 +22,15 @@ struct Ticket
{
struct TicketParam
{
int param;
long int_value; // changed to long (from int)
std::wstring str_value;
long param;
long intv;
std::wstring decv; // !! temporarily as a string (in the future there'll be a Dec type from ttmath)
void Clear()
{
param = 0;
int_value = 0;
str_value.clear();
param = 0;
intv = 0;
decv.clear();
}
TicketParam()
@@ -43,15 +43,16 @@ struct Ticket
std::vector<TicketParam> par_tab;
// auxiliary object used during sorting
unsigned long sort_id;
//unsigned long sort_id;
void Clear()
{
file_id = -1;
file_id = -1;
par_tab.clear();
sort_id = 0;
//sort_id = 0;
}
struct Sort
{
bool operator()(const TicketParam & par1, const TicketParam & par2)
@@ -59,11 +60,14 @@ struct Ticket
return par1.param < par2.param;
}
};
void SortParTab()
{
std::sort(par_tab.begin(), par_tab.end(), Sort());
}
Ticket()