а в данный момент, документации нет никакой...
хм... в SVN вроде есть достаточно документации (на русском)
или уже нет?
Модератор: Модераторы
а в данный момент, документации нет никакой...
ev писал(а):хм... в SVN вроде есть достаточно документации (на русском)
или уже нет?
worrier писал(а):русской документации инструмент не получит массового распространения..
worrier писал(а):Сам планирую занятся рассмотрением MSE
tstatfile :
- so that to be in effect, it should also be assigned to the form where the widget
using the stafile is placed on
- in design, if "onstatwrite" is set and "filedir" is not yet created,
deactivate exception "ECreateError" in project settings ( "Debugger" tab )
- "filedir" may contain "~/" indicating the user's home directory
- options "oe_savestate" & "oe_savevalue" of "client" widgets define
what to store to the file - position etc changes or/and value changes
- in case when a main form shares its stafile with non-main forms, on creating
non-main ones, just edited not saved data of the main form ( bound to vars
of the statfile) are reset to values read from the statfile upon creating the form;
for "sfo_memory", this effect absents unless widgets on the concurring forms
share same variable[s];
to avoid this behaviour, disable "fo_autoreadstat" & "fo_autowritestat"
of the non-main forms
- each "tstafile" owns:
= tstatwriter:
* provides methods of writing sections & statvars to a memory/file stream
- tstatreader:
* holds list of sections with statvars each
* provides search & check & reading interface to the statvars
* provides reading statvars from a memory/file stream
Positioning to a section speeds up accessing its statvars
- there also is "tstatfiler" ( exposed by some "tstatfile" events ) which:
= may present or "tstatwriter" or "tstatreader" ( there's a check method )
= provides directionless "update" methods with internal switch to needed direction of processing -
"reading" or "writing" statvars on per-section basis
-----------
activator :
<see tactivator> : NOT YET DONE
encoding = "en_utf8" selected here, allows to store non-Latin text in the file
*mse filedir = directory where to keep the file ( by default - the current working directory )
filename = name of the file
options:
sfo_memory = reads & writes not from a disk file but from a named memory stream
( there's an exclusion - see below "sfo_savedata" ),
mostly useful for presenting last used values on recalling
non-main forms etc ( data even survive recreating forms),
or even for data "exchange" between non-main modal( non-concurring ) forms
in case of the target widgets share same statvarnames
sfo_createpath = creates "filedir" if necessary
sfo_savedata = used only with "sfo_memory", commands to save
the memory data to the master statfile (see below)
*mse sfo_activatorread = activator activate triggers reading ???
*mse sfo_activatorwrite = activator deactivate triggers writing ???
statfile = a master statfile
statvarname = name of section of this file in the upper statfile
Tag = an integer property for misc purposes
Event handlers:
onstatafterread - fires on return from "readstat"
onstatafterwrite - fires on return from "writestat"
onstatbeforeread - fires on beginning of "readstat"
onstatbeforewrite - fires on beginning of "writestat"
onstatread = fires after reading state data
onstatwrite = fires after writing state data
onstatupdate = fires after reading/writing state data just before
"onstatread" & "onstatwrite"
Public methods:
procedure initnewcomponent(const ascale: real); override;
- does nothing but fixes the default file name as the statfile default
procedure readstat(stream: ttextstream = nil); overload;
- rereads all statvars of the stafile/memorystream
procedure readstat(const aname: msestring; const statreader: tstatreader); overload;
- rereads "aname" statvar of the statfile
procedure writestat(const stream: ttextstream = nil); overload;
- rewrites all statvars to the stafile/memorystream
(if neccessary, prepares to writting - creates "filedir", stafile,...)
procedure writestat(const aname: msestring; const statwriter: tstatwriter); overload;
- overwrites "aname" statvar of the statfile
procedure updatestat(const aname: msestring; const statfiler: tstatfiler);
- depending on kind of "statfiler" ( writer/reader ), writes/reads
the most up-to-date stat data
debi12345 писал(а):Я частично написал краткое описание статфайла (в SVN-доку "заливать" не умею ):
Attid писал(а):worrier писал(а):русской документации инструмент не получит массового распространения..
ага особенно в китае =)
Attid писал(а):как получаешь так и заливай, если получаешь в консоле
svn up
то залить
svn commit имя_файла
svn add имя_файла
svn commit имя_файла
Attid писал(а):svn commit имя_файла
svn commit -m "это изменение чегото"
svn commit -А путь_к_файлу_с_текстом_описания_измнения
alexs писал(а):мне кажется там не имя файла надо, а текст сообщения о измненениях или имя файла с таким текстом
alexs писал(а):ну... ну...
тогда зачем такие примеры?
alexs писал(а):Кстати, спасибо за наводку - я и не знал что так можно комитеть
в доке по svn этого вроде нет.
svn help
alexs писал(а):а одиночный комит череват тем что забудеш внести то что действительно важно.
Attid писал(а):тогда первый кто обновится даст тебе в лоб
alexs писал(а):что наш флейм уже вобще к топику не относится?
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 8