Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : stack.* Aggiunto copy constructor degli TStack tabapp.h Aggiunta #define TTable_application tabutil.cpp Sostitutite varie fexist(n) con n.exist() viswin.cpp Abilitato bottone di stampa solo se presente! git-svn-id: svn://10.65.10.50/trunk@7202 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5657e8ae59
commit
212dc05aef
@ -1,7 +1,10 @@
|
|||||||
#include <stack.h>
|
#include <stack.h>
|
||||||
|
|
||||||
TStack::TStack(int size) : _data(size), _sp(0)
|
TStack::TStack(int size) : _data(size), _sp(0)
|
||||||
{}
|
{ }
|
||||||
|
|
||||||
|
TStack::TStack(const TStack& stack) : _data(stack._data), _sp(0)
|
||||||
|
{ }
|
||||||
|
|
||||||
void TStack::push(const TObject& o)
|
void TStack::push(const TObject& o)
|
||||||
{
|
{
|
||||||
|
@ -40,6 +40,8 @@ public:
|
|||||||
bool destroy_base();
|
bool destroy_base();
|
||||||
// @cmember Costruttore. Chiama il costruttore di <c TArray>
|
// @cmember Costruttore. Chiama il costruttore di <c TArray>
|
||||||
TStack(int size = 16);
|
TStack(int size = 16);
|
||||||
|
// @cmember Costruttore. Chiama il costruttore di <c TArray>
|
||||||
|
TStack(const TStack& stack);
|
||||||
// @cmember Distruttore. Chiama il distruttore di <c TArray>
|
// @cmember Distruttore. Chiama il distruttore di <c TArray>
|
||||||
virtual ~TStack() { }
|
virtual ~TStack() { }
|
||||||
};
|
};
|
||||||
|
@ -11,6 +11,8 @@
|
|||||||
|
|
||||||
#define FPC "FPC"
|
#define FPC "FPC"
|
||||||
|
|
||||||
|
#define TTable_application Tab_application
|
||||||
|
|
||||||
// @doc EXTERNAL
|
// @doc EXTERNAL
|
||||||
|
|
||||||
// @class Tab_application | Classe per la definizione della <c TRelation_application> per le tabelle
|
// @class Tab_application | Classe per la definizione della <c TRelation_application> per le tabelle
|
||||||
@ -56,16 +58,16 @@ protected:
|
|||||||
// @cmember imposta la maschera (se non indicata, usa le convenzioni di default) ed eventualmente disalloca quella usata in precedenza
|
// @cmember imposta la maschera (se non indicata, usa le convenzioni di default) ed eventualmente disalloca quella usata in precedenza
|
||||||
virtual TMask* set_mask(TMask* mask = NULL);
|
virtual TMask* set_mask(TMask* mask = NULL);
|
||||||
|
|
||||||
|
|
||||||
// @access Public Member
|
// @access Public Member
|
||||||
public:
|
public:
|
||||||
|
// @cmember Ritorna il nome della tabella
|
||||||
|
const TString& get_tabname() const
|
||||||
|
{ return _tabname; }
|
||||||
|
|
||||||
// @cmember Costruttore
|
// @cmember Costruttore
|
||||||
Tab_application();
|
Tab_application();
|
||||||
// @cmember Distruttore
|
// @cmember Distruttore
|
||||||
virtual ~Tab_application();
|
virtual ~Tab_application();
|
||||||
// @cmember Ritorna il nome della tabella
|
|
||||||
const TString& get_tabname() const
|
|
||||||
{ return _tabname; }
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -34,13 +34,15 @@ int TTable::skip(TRecnotype nrec, word lockop)
|
|||||||
{
|
{
|
||||||
if (nrec > 0)
|
if (nrec > 0)
|
||||||
{
|
{
|
||||||
if (lockop == _lock) TBaseisamfile::reread(_unlock);
|
if (lockop == _lock)
|
||||||
|
TBaseisamfile::reread(_unlock);
|
||||||
last(lockop);
|
last(lockop);
|
||||||
setstatus(_iseof);
|
setstatus(_iseof);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (lockop == _lock) TBaseisamfile::reread(_unlock);
|
if (lockop == _lock)
|
||||||
|
TBaseisamfile::reread(_unlock);
|
||||||
first(lockop);
|
first(lockop);
|
||||||
setstatus(_isbof);
|
setstatus(_isbof);
|
||||||
}
|
}
|
||||||
@ -155,12 +157,15 @@ void TTable::load_module_description()
|
|||||||
if (list_files(n, f) == 1)
|
if (list_files(n, f) == 1)
|
||||||
{
|
{
|
||||||
n = f.row(0);
|
n = f.row(0);
|
||||||
if (!fexist(n))
|
if (!n.exist())
|
||||||
n.overwrite("ba",0);
|
n.overwrite("ba",0);
|
||||||
if (fexist(n))
|
if (n.exist())
|
||||||
{
|
{
|
||||||
if (_module.empty())
|
if (_module.empty())
|
||||||
|
{
|
||||||
_module = n.left(2);
|
_module = n.left(2);
|
||||||
|
_module.lower();
|
||||||
|
}
|
||||||
TScanner m(n);
|
TScanner m(n);
|
||||||
bool ok = TRUE;
|
bool ok = TRUE;
|
||||||
while (ok)
|
while (ok)
|
||||||
|
@ -1518,9 +1518,9 @@ void TViswin::handler (WINDOW win, EVENT * ep)
|
|||||||
p = ep->v.mouse.where;
|
p = ep->v.mouse.where;
|
||||||
if (_selecting)
|
if (_selecting)
|
||||||
_isselection = TRUE;;
|
_isselection = TRUE;;
|
||||||
{
|
{
|
||||||
_isselection = TRUE;
|
_isselection = TRUE;
|
||||||
}
|
}
|
||||||
// scroll if necessary
|
// scroll if necessary
|
||||||
if (p.y >= _textrows + 1l)
|
if (p.y >= _textrows + 1l)
|
||||||
{
|
{
|
||||||
@ -2272,8 +2272,9 @@ void TViswin::close_print ()
|
|||||||
if (_toplevel)
|
if (_toplevel)
|
||||||
{
|
{
|
||||||
xvt_menu_set_item_title(win(), M_EDIT_QUIT, "Chiudi\tESC");
|
xvt_menu_set_item_title(win(), M_EDIT_QUIT, "Chiudi\tESC");
|
||||||
enable_menu_item(M_EDIT_CLIPBOARD, FALSE);
|
enable_menu_item(M_EDIT_CLIPBOARD, FALSE);
|
||||||
_print_button->enable();
|
if (_print_button)
|
||||||
|
_print_button->enable();
|
||||||
enable_menu_item(M_EDIT_SEL_ALL, TRUE);
|
enable_menu_item(M_EDIT_SEL_ALL, TRUE);
|
||||||
// build bookmark menu tree
|
// build bookmark menu tree
|
||||||
_bookmarks = &(printer().get_bookmarks());
|
_bookmarks = &(printer().get_bookmarks());
|
||||||
@ -2294,7 +2295,7 @@ void TViswin::goto_end()
|
|||||||
|
|
||||||
void TViswin::goto_top()
|
void TViswin::goto_top()
|
||||||
{
|
{
|
||||||
goto_pos(0l,0l);;
|
goto_pos(0l,0l);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @doc INTERNAL
|
// @doc INTERNAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user