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:
guy 1998-10-01 14:08:11 +00:00
parent 5657e8ae59
commit 212dc05aef
5 changed files with 28 additions and 15 deletions

View File

@ -1,7 +1,10 @@
#include <stack.h>
TStack::TStack(int size) : _data(size), _sp(0)
{}
{ }
TStack::TStack(const TStack& stack) : _data(stack._data), _sp(0)
{ }
void TStack::push(const TObject& o)
{

View File

@ -40,6 +40,8 @@ public:
bool destroy_base();
// @cmember Costruttore. Chiama il costruttore di <c TArray>
TStack(int size = 16);
// @cmember Costruttore. Chiama il costruttore di <c TArray>
TStack(const TStack& stack);
// @cmember Distruttore. Chiama il distruttore di <c TArray>
virtual ~TStack() { }
};

View File

@ -11,6 +11,8 @@
#define FPC "FPC"
#define TTable_application Tab_application
// @doc EXTERNAL
// @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
virtual TMask* set_mask(TMask* mask = NULL);
// @access Public Member
public:
// @cmember Ritorna il nome della tabella
const TString& get_tabname() const
{ return _tabname; }
// @cmember Costruttore
Tab_application();
// @cmember Distruttore
virtual ~Tab_application();
// @cmember Ritorna il nome della tabella
const TString& get_tabname() const
{ return _tabname; }
};
#endif

View File

@ -34,13 +34,15 @@ int TTable::skip(TRecnotype nrec, word lockop)
{
if (nrec > 0)
{
if (lockop == _lock) TBaseisamfile::reread(_unlock);
if (lockop == _lock)
TBaseisamfile::reread(_unlock);
last(lockop);
setstatus(_iseof);
}
else
{
if (lockop == _lock) TBaseisamfile::reread(_unlock);
if (lockop == _lock)
TBaseisamfile::reread(_unlock);
first(lockop);
setstatus(_isbof);
}
@ -155,12 +157,15 @@ void TTable::load_module_description()
if (list_files(n, f) == 1)
{
n = f.row(0);
if (!fexist(n))
if (!n.exist())
n.overwrite("ba",0);
if (fexist(n))
if (n.exist())
{
if (_module.empty())
{
_module = n.left(2);
_module.lower();
}
TScanner m(n);
bool ok = TRUE;
while (ok)

View File

@ -1518,9 +1518,9 @@ void TViswin::handler (WINDOW win, EVENT * ep)
p = ep->v.mouse.where;
if (_selecting)
_isselection = TRUE;;
{
_isselection = TRUE;
}
{
_isselection = TRUE;
}
// scroll if necessary
if (p.y >= _textrows + 1l)
{
@ -2272,8 +2272,9 @@ void TViswin::close_print ()
if (_toplevel)
{
xvt_menu_set_item_title(win(), M_EDIT_QUIT, "Chiudi\tESC");
enable_menu_item(M_EDIT_CLIPBOARD, FALSE);
_print_button->enable();
enable_menu_item(M_EDIT_CLIPBOARD, FALSE);
if (_print_button)
_print_button->enable();
enable_menu_item(M_EDIT_SEL_ALL, TRUE);
// build bookmark menu tree
_bookmarks = &(printer().get_bookmarks());
@ -2294,7 +2295,7 @@ void TViswin::goto_end()
void TViswin::goto_top()
{
goto_pos(0l,0l);;
goto_pos(0l,0l);
}
// @doc INTERNAL