823 lines
87 KiB
Plaintext
823 lines
87 KiB
Plaintext
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="generator" content="TempleOS V5.03">
|
||
|
<meta name="viewport" content="width=device-width">
|
||
|
<link rel="stylesheet" href="/style/templeos.css">
|
||
|
<script src="/script/templeos.js"></script>
|
||
|
<style type="text/css">
|
||
|
.cF0{color:#000000;background-color:#ffffff;}
|
||
|
.cF1{color:#0000aa;background-color:#ffffff;}
|
||
|
.cF2{color:#00aa00;background-color:#ffffff;}
|
||
|
.cF3{color:#00aaaa;background-color:#ffffff;}
|
||
|
.cF4{color:#aa0000;background-color:#ffffff;}
|
||
|
.cF5{color:#aa00aa;background-color:#ffffff;}
|
||
|
.cF6{color:#aa5500;background-color:#ffffff;}
|
||
|
.cF7{color:#aaaaaa;background-color:#ffffff;}
|
||
|
.cF8{color:#555555;background-color:#ffffff;}
|
||
|
.cF9{color:#5555ff;background-color:#ffffff;}
|
||
|
.cFA{color:#55ff55;background-color:#ffffff;}
|
||
|
.cFB{color:#55ffff;background-color:#ffffff;}
|
||
|
.cFC{color:#ff5555;background-color:#ffffff;}
|
||
|
.cFD{color:#ff55ff;background-color:#ffffff;}
|
||
|
.cFE{color:#ffff55;background-color:#ffffff;}
|
||
|
.cFF{color:#ffffff;background-color:#ffffff;}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
<pre id="content">
|
||
|
<a name="l1"></a><span class=cF0>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"DolDoc/Output;StdOut/DolDoc"</span><span class=cF0>
|
||
|
<a name="l2"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>DirFileDoc</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde)
|
||
|
<a name="l3"></a>{
|
||
|
<a name="l4"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l5"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde->attr & </span><span class=cF3>RS_ATTR_DIR</span><span class=cF0>) {
|
||
|
<a name="l6"></a> tmpde->user_data=</span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$TR,\"%s\",U=0x%X$"</span><span class=cF0>,tmpde->name,tmpde);
|
||
|
<a name="l7"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"\n$ID,+2$"</span><span class=cF0>);
|
||
|
<a name="l8"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde->sub)
|
||
|
<a name="l9"></a> </span><span class=cF5>DirFileDoc</span><span class=cF0>(doc,tmpde->sub);
|
||
|
<a name="l10"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$ID,-2$"</span><span class=cF0>);
|
||
|
<a name="l11"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
||
|
<a name="l12"></a> tmpde->user_data=</span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$MU,\"%s\",U=0x%X$"</span><span class=cF0>,tmpde->name,tmpde);
|
||
|
<a name="l13"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"\n"</span><span class=cF0>);
|
||
|
<a name="l14"></a> }
|
||
|
<a name="l15"></a> tmpde=tmpde->next;
|
||
|
<a name="l16"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l17"></a>}
|
||
|
<a name="l18"></a>
|
||
|
<a name="l19"></a>#</span><span class=cF1>help_index</span><span class=cF0> </span><span class=cF6>"File/Cmd Line (Typically);Cmd Line (Typically)"</span><span class=cF0>
|
||
|
<a name="l20"></a>
|
||
|
<a name="l21"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FM_NORMAL</span><span class=cF0> 0
|
||
|
<a name="l22"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FM_PICK_FILE</span><span class=cF0> 1
|
||
|
<a name="l23"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FM_PICK_DIR</span><span class=cF0> 2
|
||
|
<a name="l24"></a>
|
||
|
<a name="l25"></a></span><span class=cF1>class</span><span class=cF0> </span><span class=cF9>CFMUncollapsedLst</span><span class=cF0>
|
||
|
<a name="l26"></a>{
|
||
|
<a name="l27"></a> </span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *next;
|
||
|
<a name="l28"></a> </span><span class=cF1>U8</span><span class=cF0> *name;
|
||
|
<a name="l29"></a>};
|
||
|
<a name="l30"></a>
|
||
|
<a name="l31"></a></span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *</span><span class=cF5>FMCollectUncollapsedLst</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l32"></a>{
|
||
|
<a name="l33"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->head.next;
|
||
|
<a name="l34"></a> </span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *res=</span><span class=cF3>NULL</span><span class=cF0>,*tmpc;
|
||
|
<a name="l35"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l36"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l37"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) {
|
||
|
<a name="l38"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF7>(</span><span class=cF0>doc_e->de_flags&</span><span class=cF3>DOCEF_CHECKED_COLLAPSED</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l39"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde=doc_e->user_data) {
|
||
|
<a name="l40"></a> tmpc=</span><span class=cF5>MAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CFMUncollapsedLst</span><span class=cF7>)</span><span class=cF0>);
|
||
|
<a name="l41"></a> tmpc->next=res;
|
||
|
<a name="l42"></a> res=tmpc;
|
||
|
<a name="l43"></a> tmpc->name=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l44"></a> }
|
||
|
<a name="l45"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l46"></a> }
|
||
|
<a name="l47"></a> doc_e=doc_e->next;
|
||
|
<a name="l48"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l49"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
||
|
<a name="l50"></a>}
|
||
|
<a name="l51"></a>
|
||
|
<a name="l52"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMMarkUncollapsed</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *tmpc,
|
||
|
<a name="l53"></a> </span><span class=cF1>U8</span><span class=cF0> *cur_entry,</span><span class=cF1>U8</span><span class=cF0> *next_entry)
|
||
|
<a name="l54"></a>{
|
||
|
<a name="l55"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->head.next;
|
||
|
<a name="l56"></a> </span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *tmpc1;
|
||
|
<a name="l57"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l58"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l59"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) {
|
||
|
<a name="l60"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l61"></a> tmpc1=tmpc;
|
||
|
<a name="l62"></a> </span><span class=cF1>while</span><span class=cF0> (tmpc1) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l63"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>StrCmp</span><span class=cF7>(</span><span class=cF0>tmpc1->name,tmpde->full_name</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l64"></a> doc_e->de_flags&=~</span><span class=cF3>DOCEF_CHECKED_COLLAPSED</span><span class=cF0>;
|
||
|
<a name="l65"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l66"></a> }
|
||
|
<a name="l67"></a> tmpc1=tmpc1->next;
|
||
|
<a name="l68"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l69"></a> </span><span class=cF1>if</span><span class=cF0> (cur_entry) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l70"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>StrNCmp</span><span class=cF7>(</span><span class=cF0>cur_entry,tmpde->full_name,</span><span class=cF5>StrLen</span><span class=cF0>(tmpde->full_name)</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l71"></a> doc->cur_entry=doc_e;
|
||
|
<a name="l72"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>tmpde->full_name</span><span class=cF7>)</span><span class=cF0>==</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>cur_entry</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l73"></a> cur_entry=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l74"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (next_entry) {
|
||
|
<a name="l75"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>StrNCmp</span><span class=cF7>(</span><span class=cF0>next_entry,
|
||
|
<a name="l76"></a> tmpde->full_name,</span><span class=cF5>StrLen</span><span class=cF0>(tmpde->full_name)</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l77"></a> doc->cur_entry=doc_e;
|
||
|
<a name="l78"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>tmpde->full_name</span><span class=cF7>)</span><span class=cF0>==</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>next_entry</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l79"></a> cur_entry=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l80"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l81"></a> }
|
||
|
<a name="l82"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l83"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) {
|
||
|
<a name="l84"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l85"></a> </span><span class=cF1>if</span><span class=cF0> (cur_entry) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l86"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>StrNCmp</span><span class=cF7>(</span><span class=cF0>cur_entry,tmpde->full_name,</span><span class=cF5>StrLen</span><span class=cF0>(tmpde->full_name)</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l87"></a> doc->cur_entry=doc_e;
|
||
|
<a name="l88"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>tmpde->full_name</span><span class=cF7>)</span><span class=cF0>==</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>cur_entry</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l89"></a> cur_entry=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l90"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (next_entry) {
|
||
|
<a name="l91"></a> </span><span class=cF1>if</span><span class=cF0> (!</span><span class=cF5>StrNCmp</span><span class=cF7>(</span><span class=cF0>next_entry,
|
||
|
<a name="l92"></a> tmpde->full_name,</span><span class=cF5>StrLen</span><span class=cF0>(tmpde->full_name)</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l93"></a> doc->cur_entry=doc_e;
|
||
|
<a name="l94"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>tmpde->full_name</span><span class=cF7>)</span><span class=cF0>==</span><span class=cF5>StrLen</span><span class=cF7>(</span><span class=cF0>next_entry</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l95"></a> cur_entry=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l96"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l97"></a> }
|
||
|
<a name="l98"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l99"></a> }
|
||
|
<a name="l100"></a> doc_e=doc_e->next;
|
||
|
<a name="l101"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l102"></a>}
|
||
|
<a name="l103"></a>
|
||
|
<a name="l104"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMDelUncollapsedLst</span><span class=cF0>(</span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *tmpc)
|
||
|
<a name="l105"></a>{
|
||
|
<a name="l106"></a> </span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *tmpc1;
|
||
|
<a name="l107"></a> </span><span class=cF1>while</span><span class=cF0> (tmpc) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l108"></a> tmpc1=tmpc->next;
|
||
|
<a name="l109"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpc->name);
|
||
|
<a name="l110"></a> </span><span class=cF5>Free</span><span class=cF0>(tmpc);
|
||
|
<a name="l111"></a> tmpc=tmpc1;
|
||
|
<a name="l112"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l113"></a>}
|
||
|
<a name="l114"></a>
|
||
|
<a name="l115"></a></span><span class=cF9>CDirEntry</span><span class=cF0> *</span><span class=cF5>FMRebuildDocDrv</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> drv_let,</span><span class=cF9>CDoc</span><span class=cF0> *doc,</span><span class=cF9>CDirEntry</span><span class=cF0> **_head,</span><span class=cF1>Bool</span><span class=cF0> init)
|
||
|
<a name="l116"></a>{
|
||
|
<a name="l117"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde,*tmpde1;
|
||
|
<a name="l118"></a> </span><span class=cF1>U8</span><span class=cF0> *st;
|
||
|
<a name="l119"></a> tmpde=</span><span class=cF5>CAlloc</span><span class=cF0>(</span><span class=cF1>sizeof</span><span class=cF7>(</span><span class=cF9>CDirEntry</span><span class=cF7>)</span><span class=cF0>);
|
||
|
<a name="l120"></a> tmpde->full_name=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%C:/"</span><span class=cF0>,drv_let);
|
||
|
<a name="l121"></a> tmpde->attr=</span><span class=cF3>RS_ATTR_DIR</span><span class=cF0>;
|
||
|
<a name="l122"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%c:/*"</span><span class=cF0>,drv_let);
|
||
|
<a name="l123"></a> </span><span class=cF1>if</span><span class=cF0> (init)
|
||
|
<a name="l124"></a> tmpde->sub=tmpde1=</span><span class=cF5>FilesFind</span><span class=cF0>(st,</span><span class=cF3>FUF_RECURSE</span><span class=cF0>);
|
||
|
<a name="l125"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l126"></a> tmpde1=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l127"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
||
|
<a name="l128"></a> tmpde->user_data=</span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$TR,\"%s\",U=0x%X$"</span><span class=cF0>,tmpde->full_name,tmpde);
|
||
|
<a name="l129"></a> tmpde->next=*_head;
|
||
|
<a name="l130"></a> *_head=tmpde;
|
||
|
<a name="l131"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"\n$ID,+2$"</span><span class=cF0>);
|
||
|
<a name="l132"></a> </span><span class=cF5>DocBottom</span><span class=cF0>(doc);
|
||
|
<a name="l133"></a> </span><span class=cF1>if</span><span class=cF0> (init) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l134"></a> </span><span class=cF5>DirFileDoc</span><span class=cF0>(doc,tmpde1);
|
||
|
<a name="l135"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde1) {
|
||
|
<a name="l136"></a> tmpde1->parent=tmpde;
|
||
|
<a name="l137"></a> tmpde1=tmpde1->next;
|
||
|
<a name="l138"></a> }
|
||
|
<a name="l139"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l140"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$ID,-2$"</span><span class=cF0>);
|
||
|
<a name="l141"></a> </span><span class=cF1>return</span><span class=cF0> tmpde;
|
||
|
<a name="l142"></a>}
|
||
|
<a name="l143"></a>
|
||
|
<a name="l144"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>DEF2_PROCESSED</span><span class=cF0> 1
|
||
|
<a name="l145"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>DEF2_NOT_INITIALIZED</span><span class=cF0> 2
|
||
|
<a name="l146"></a>
|
||
|
<a name="l147"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMRebuildDoc</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> **_doc,</span><span class=cF9>CDirEntry</span><span class=cF0> **_head,</span><span class=cF9>I64</span><span class=cF0> mode)
|
||
|
<a name="l148"></a>{
|
||
|
<a name="l149"></a> </span><span class=cF9>CDrv</span><span class=cF0> *dv;
|
||
|
<a name="l150"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
||
|
<a name="l151"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=*_doc,*doc2=</span><span class=cFB>sys_clip_doc</span><span class=cF0>,*parent_doc;
|
||
|
<a name="l152"></a> </span><span class=cF9>CFMUncollapsedLst</span><span class=cF0> *tmpc=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l153"></a> </span><span class=cF1>U8</span><span class=cF0> *cur_entry=</span><span class=cF3>NULL</span><span class=cF0>,*next_entry=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l154"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce;
|
||
|
<a name="l155"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde,*tmpde1,*cur_tree_entry;
|
||
|
<a name="l156"></a> </span><span class=cF1>if</span><span class=cF0> (!doc)
|
||
|
<a name="l157"></a> parent_doc=</span><span class=cF5>DocPut</span><span class=cF0>;
|
||
|
<a name="l158"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l159"></a> parent_doc=doc->parent_doc;
|
||
|
<a name="l160"></a> </span><span class=cF5>Fs</span><span class=cF0>->put_doc=</span><span class=cF5>Fs</span><span class=cF0>->display_doc=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l161"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l162"></a> </span><span class=cF5>Refresh</span><span class=cF0>;
|
||
|
<a name="l163"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l164"></a> cur_tree_entry=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l165"></a> doc_ce=doc->cur_entry;
|
||
|
<a name="l166"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l167"></a> cur_tree_entry=doc_ce->user_data;
|
||
|
<a name="l168"></a> </span><span class=cF1>if</span><span class=cF0> (cur_tree_entry)
|
||
|
<a name="l169"></a> cur_entry=</span><span class=cF5>StrNew</span><span class=cF0>(cur_tree_entry->full_name);
|
||
|
<a name="l170"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l171"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce!=doc)
|
||
|
<a name="l172"></a> doc_ce=doc_ce->next;
|
||
|
<a name="l173"></a> </span><span class=cF1>while</span><span class=cF0> (doc_ce!=doc) {
|
||
|
<a name="l174"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l175"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l176"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l177"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l178"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l179"></a> tmpde1=tmpde->parent;
|
||
|
<a name="l180"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde1) {
|
||
|
<a name="l181"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde1==cur_tree_entry) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l182"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l183"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l184"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l185"></a> tmpde1=tmpde1->parent;
|
||
|
<a name="l186"></a> }
|
||
|
<a name="l187"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde)
|
||
|
<a name="l188"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l189"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l190"></a> doc_ce=doc_ce->next;
|
||
|
<a name="l191"></a> }
|
||
|
<a name="l192"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde)
|
||
|
<a name="l193"></a> next_entry=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l194"></a>
|
||
|
<a name="l195"></a> tmpc=</span><span class=cF5>FMCollectUncollapsedLst</span><span class=cF0>(doc);
|
||
|
<a name="l196"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
||
|
<a name="l197"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l198"></a> </span><span class=cF1>if</span><span class=cF0> (*_head) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l199"></a> </span><span class=cF5>DirTreeDel</span><span class=cF0>(*_head);
|
||
|
<a name="l200"></a> *_head=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l201"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l202"></a> doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
||
|
<a name="l203"></a> doc->desc=</span><span class=cF6>'FileMan'</span><span class=cF0>;
|
||
|
<a name="l204"></a> doc->parent_doc=parent_doc;
|
||
|
<a name="l205"></a> doc->flags|=</span><span class=cF3>DOCF_FORM</span><span class=cF0>;
|
||
|
<a name="l206"></a> </span><span class=cF1>switch</span><span class=cF0> (mode) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l207"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FM_NORMAL</span><span class=cF0>:
|
||
|
<a name="l208"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$PURPLE$File Manager\n\n"</span><span class=cF0>
|
||
|
<a name="l209"></a> </span><span class=cF6>"$LK,\"Click for Help\",A=\"FI:::/Doc/FileMgr.DD\"$\n\n"</span><span class=cF0>);
|
||
|
<a name="l210"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l211"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FM_PICK_FILE</span><span class=cF0>:
|
||
|
<a name="l212"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$PURPLE$Pick file and press <ESC>\n\n"</span><span class=cF0>);
|
||
|
<a name="l213"></a> doc->flags|=</span><span class=cF3>DOCF_SIZE_MIN</span><span class=cF0>;
|
||
|
<a name="l214"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l215"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FM_PICK_DIR</span><span class=cF0>:
|
||
|
<a name="l216"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$PURPLE$Pick directory and press <ESC>\n\n"</span><span class=cF0>);
|
||
|
<a name="l217"></a> doc->flags|=</span><span class=cF3>DOCF_SIZE_MIN</span><span class=cF0>;
|
||
|
<a name="l218"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l219"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l220"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$LTBLUE$"</span><span class=cF0>);
|
||
|
<a name="l221"></a> </span><span class=cF1>for</span><span class=cF0> (i=0;i<</span><span class=cF3>DRVS_NUM</span><span class=cF0>;i++) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l222"></a> dv=&</span><span class=cFB>blkdev</span><span class=cF0>.drvs[i];
|
||
|
<a name="l223"></a> </span><span class=cF1>if</span><span class=cF0> (dv->bd->type==</span><span class=cF3>BDT_ATAPI</span><span class=cF0>) {
|
||
|
<a name="l224"></a> </span><span class=cF1>if</span><span class=cF0> (dv->bd->flags&</span><span class=cF3>BDF_INITIALIZED</span><span class=cF0>)
|
||
|
<a name="l225"></a> tmpde=</span><span class=cF5>FMRebuildDocDrv</span><span class=cF0>(</span><span class=cF5>Drv2Let</span><span class=cF7>(</span><span class=cF0>dv</span><span class=cF7>)</span><span class=cF0>,doc,_head,</span><span class=cF3>TRUE</span><span class=cF0>);
|
||
|
<a name="l226"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l227"></a> tmpde=</span><span class=cF5>FMRebuildDocDrv</span><span class=cF0>(</span><span class=cF5>Drv2Let</span><span class=cF7>(</span><span class=cF0>dv</span><span class=cF7>)</span><span class=cF0>,doc,_head,</span><span class=cF3>FALSE</span><span class=cF0>);
|
||
|
<a name="l228"></a> tmpde->user_data2|=</span><span class=cF3>DEF2_NOT_INITIALIZED</span><span class=cF0>;
|
||
|
<a name="l229"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l230"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (dv->fs_type==</span><span class=cF3>FSt_REDSEA</span><span class=cF0> || dv->fs_type==</span><span class=cF3>FSt_FAT32</span><span class=cF0>)
|
||
|
<a name="l231"></a> </span><span class=cF5>FMRebuildDocDrv</span><span class=cF0>(</span><span class=cF5>Drv2Let</span><span class=cF7>(</span><span class=cF0>dv</span><span class=cF7>)</span><span class=cF0>,doc,_head,</span><span class=cF3>TRUE</span><span class=cF0>);
|
||
|
<a name="l232"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l233"></a> </span><span class=cF5>DocTop</span><span class=cF0>(doc);
|
||
|
<a name="l234"></a> </span><span class=cF5>FMMarkUncollapsed</span><span class=cF0>(doc,tmpc,cur_entry,next_entry);
|
||
|
<a name="l235"></a> </span><span class=cF5>DocCenter</span><span class=cF0>(doc);
|
||
|
<a name="l236"></a> </span><span class=cF5>DocRst</span><span class=cF0>(doc2,</span><span class=cF3>TRUE</span><span class=cF0>);
|
||
|
<a name="l237"></a> </span><span class=cF5>FMDelUncollapsedLst</span><span class=cF0>(tmpc);
|
||
|
<a name="l238"></a> </span><span class=cF5>Free</span><span class=cF0>(cur_entry);
|
||
|
<a name="l239"></a> </span><span class=cF5>Free</span><span class=cF0>(next_entry);
|
||
|
<a name="l240"></a> *_doc=doc;
|
||
|
<a name="l241"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l242"></a> </span><span class=cF5>Fs</span><span class=cF0>->put_doc=</span><span class=cF5>Fs</span><span class=cF0>->display_doc=doc;
|
||
|
<a name="l243"></a>}
|
||
|
<a name="l244"></a>
|
||
|
<a name="l245"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMRename</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l246"></a>{
|
||
|
<a name="l247"></a> </span><span class=cF9>CEdFileName</span><span class=cF0> fn;
|
||
|
<a name="l248"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->cur_entry;
|
||
|
<a name="l249"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde=</span><span class=cF3>NULL</span><span class=cF0>,*parent;
|
||
|
<a name="l250"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l251"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l252"></a> </span><span class=cF1>if</span><span class=cF0> (parent=tmpde->parent) {
|
||
|
<a name="l253"></a> </span><span class=cF5>Cd</span><span class=cF0>(parent->full_name);
|
||
|
<a name="l254"></a> </span><span class=cF5>StrCpy</span><span class=cF0>(fn.name,tmpde->name);
|
||
|
<a name="l255"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l256"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l257"></a> </span><span class=cF5>Move</span><span class=cF0>(tmpde->name,fn.name);
|
||
|
<a name="l258"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l259"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l260"></a> }
|
||
|
<a name="l261"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l262"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l263"></a> </span><span class=cF1>if</span><span class=cF0> (parent=tmpde->parent) {
|
||
|
<a name="l264"></a> </span><span class=cF5>Cd</span><span class=cF0>(parent->full_name);
|
||
|
<a name="l265"></a> </span><span class=cF5>StrCpy</span><span class=cF0>(fn.name,tmpde->name);
|
||
|
<a name="l266"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l267"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrCmp</span><span class=cF7>(</span><span class=cF0>tmpde->name,fn.name</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l268"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l269"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>CopyTree</span><span class=cF7>(</span><span class=cF0>tmpde->name,fn.name</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l270"></a> </span><span class=cF5>DelTree</span><span class=cF0>(tmpde->name);
|
||
|
<a name="l271"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l272"></a> }
|
||
|
<a name="l273"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l274"></a> }
|
||
|
<a name="l275"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l276"></a>}
|
||
|
<a name="l277"></a>
|
||
|
<a name="l278"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMMkDir</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l279"></a>{
|
||
|
<a name="l280"></a> </span><span class=cF9>CEdFileName</span><span class=cF0> fn;
|
||
|
<a name="l281"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_e=doc->cur_entry;
|
||
|
<a name="l282"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde=</span><span class=cF3>NULL</span><span class=cF0>,*parent;
|
||
|
<a name="l283"></a> *fn.name=0;
|
||
|
<a name="l284"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l285"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l286"></a> </span><span class=cF1>if</span><span class=cF0> (parent=tmpde->parent) {
|
||
|
<a name="l287"></a> </span><span class=cF5>Cd</span><span class=cF0>(parent->full_name);
|
||
|
<a name="l288"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn</span><span class=cF7>)</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l289"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l290"></a> </span><span class=cF5>DirMk</span><span class=cF0>(fn.name);
|
||
|
<a name="l291"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l292"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l293"></a> }
|
||
|
<a name="l294"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l295"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l296"></a> </span><span class=cF5>Cd</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l297"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>DocForm</span><span class=cF7>(</span><span class=cF0>&fn</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l298"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l299"></a> </span><span class=cF5>DirMk</span><span class=cF0>(fn.name);
|
||
|
<a name="l300"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l301"></a> }
|
||
|
<a name="l302"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l303"></a>}
|
||
|
<a name="l304"></a>
|
||
|
<a name="l305"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMDelete</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l306"></a>{
|
||
|
<a name="l307"></a> </span><span class=cF1>U8</span><span class=cF0> *st;
|
||
|
<a name="l308"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l309"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l310"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l311"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l312"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l313"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Delete: %s"</span><span class=cF0>,tmpde->full_name);
|
||
|
<a name="l314"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l315"></a> </span><span class=cF5>Del</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l316"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
||
|
<a name="l317"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l318"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l319"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l320"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l321"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Delete: %s"</span><span class=cF0>,tmpde->full_name);
|
||
|
<a name="l322"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l323"></a> </span><span class=cF5>DelTree</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l324"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
||
|
<a name="l325"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l326"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l327"></a>}
|
||
|
<a name="l328"></a>
|
||
|
<a name="l329"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMChgDsk</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l330"></a>{
|
||
|
<a name="l331"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l332"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l333"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l334"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l335"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l336"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l337"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l338"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde->parent)
|
||
|
<a name="l339"></a> tmpde=tmpde->parent;
|
||
|
<a name="l340"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l341"></a> </span><span class=cF5>DskChg</span><span class=cF0>(*tmpde->full_name);
|
||
|
<a name="l342"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l343"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l344"></a>}
|
||
|
<a name="l345"></a>
|
||
|
<a name="l346"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMMountISO</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l347"></a>{
|
||
|
<a name="l348"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l349"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l350"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0> && </span><span class=cF7>(</span><span class=cF0>tmpde=doc_ce->user_data</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l351"></a> </span><span class=cF5>MountFile</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l352"></a>}
|
||
|
<a name="l353"></a>
|
||
|
<a name="l354"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMUnmount</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l355"></a>{
|
||
|
<a name="l356"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l357"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l358"></a> </span><span class=cF9>I64</span><span class=cF0> drv_let;
|
||
|
<a name="l359"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l360"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l361"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l362"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l363"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l364"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde->parent)
|
||
|
<a name="l365"></a> tmpde=tmpde->parent;
|
||
|
<a name="l366"></a> drv_let=*tmpde->full_name;
|
||
|
<a name="l367"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>Let2BlkDev</span><span class=cF7>(</span><span class=cF0>drv_let</span><span class=cF7>)</span><span class=cF0>!=</span><span class=cF5>Let2BlkDev</span><span class=cF7>(</span><span class=cF6>':'</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l368"></a> </span><span class=cF5>Unmount</span><span class=cF0>(drv_let);
|
||
|
<a name="l369"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l370"></a>}
|
||
|
<a name="l371"></a>
|
||
|
<a name="l372"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMFmtDrv</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l373"></a>{
|
||
|
<a name="l374"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l375"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l376"></a> </span><span class=cF1>U8</span><span class=cF0> *st=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l377"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l378"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l379"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l380"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l381"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l382"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde->parent)
|
||
|
<a name="l383"></a> tmpde=tmpde->parent;
|
||
|
<a name="l384"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"Format Drive '%c'?\nAre You Sure?\n"</span><span class=cF0>,*tmpde->full_name);
|
||
|
<a name="l385"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>PopUpCancelOk</span><span class=cF7>(</span><span class=cF0>st</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l386"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l387"></a> </span><span class=cF5>Fmt</span><span class=cF0>(*tmpde->full_name,,</span><span class=cF3>FALSE</span><span class=cF0>);
|
||
|
<a name="l388"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l389"></a> }
|
||
|
<a name="l390"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l391"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
||
|
<a name="l392"></a>}
|
||
|
<a name="l393"></a>
|
||
|
<a name="l394"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMMakeISO</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l395"></a>{
|
||
|
<a name="l396"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l397"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l398"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l399"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l400"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l401"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l402"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l403"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l404"></a> tmpde=tmpde->parent;
|
||
|
<a name="l405"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde && *tmpde->full_name) {
|
||
|
<a name="l406"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l407"></a> </span><span class=cF5>RedSeaISO</span><span class=cF0>(,tmpde->full_name);
|
||
|
<a name="l408"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l409"></a> }
|
||
|
<a name="l410"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l411"></a>}
|
||
|
<a name="l412"></a>
|
||
|
<a name="l413"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMBurnISO</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l414"></a>{
|
||
|
<a name="l415"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry;
|
||
|
<a name="l416"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde;
|
||
|
<a name="l417"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0> || doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l418"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l419"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l420"></a> tmpde=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l421"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l422"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde->parent)
|
||
|
<a name="l423"></a> tmpde=tmpde->parent;
|
||
|
<a name="l424"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l425"></a> </span><span class=cF5>DVDImageWrite</span><span class=cF0>(*tmpde->full_name);
|
||
|
<a name="l426"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l427"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l428"></a>}
|
||
|
<a name="l429"></a>
|
||
|
<a name="l430"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMCopy</span><span class=cF0>(</span><span class=cF9>CDoc</span><span class=cF0> *doc)
|
||
|
<a name="l431"></a>{
|
||
|
<a name="l432"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc2=</span><span class=cFB>sys_clip_doc</span><span class=cF0>;
|
||
|
<a name="l433"></a> </span><span class=cF1>U8</span><span class=cF0> *st;
|
||
|
<a name="l434"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=doc->cur_entry,*doc_e;
|
||
|
<a name="l435"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *tmpde,*tmpde1=</span><span class=cF3>NULL</span><span class=cF0>,*tmpde2;
|
||
|
<a name="l436"></a> </span><span class=cF1>Bool</span><span class=cF0> unlock_doc2=</span><span class=cF5>DocLock</span><span class=cF0>(doc2);
|
||
|
<a name="l437"></a> doc_e=doc2->head.next;
|
||
|
<a name="l438"></a>
|
||
|
<a name="l439"></a> tmpde1=doc_ce->user_data;
|
||
|
<a name="l440"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l441"></a> tmpde1=tmpde1->parent;
|
||
|
<a name="l442"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8!=</span><span class=cF3>DOCT_TREE</span><span class=cF0>)
|
||
|
<a name="l443"></a> tmpde1=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l444"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde1) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l445"></a> </span><span class=cF1>while</span><span class=cF0> (doc_e!=doc2) {
|
||
|
<a name="l446"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l447"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l448"></a> tmpde->user_data2|=</span><span class=cF3>DEF2_PROCESSED</span><span class=cF0>;
|
||
|
<a name="l449"></a> tmpde2=tmpde->parent;
|
||
|
<a name="l450"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpde2 || !</span><span class=cF7>(</span><span class=cF0>tmpde2->user_data2&</span><span class=cF3>DEF2_PROCESSED</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l451"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l452"></a> </span><span class=cF5>Copy</span><span class=cF0>(tmpde->full_name,tmpde1->full_name);
|
||
|
<a name="l453"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l454"></a> }
|
||
|
<a name="l455"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l456"></a> tmpde=doc_e->user_data;
|
||
|
<a name="l457"></a> tmpde->user_data2|=</span><span class=cF3>DEF2_PROCESSED</span><span class=cF0>;
|
||
|
<a name="l458"></a> tmpde2=tmpde->parent;
|
||
|
<a name="l459"></a> </span><span class=cF1>if</span><span class=cF0> (!tmpde2 || !</span><span class=cF7>(</span><span class=cF0>tmpde2->user_data2&</span><span class=cF3>DEF2_PROCESSED</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l460"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l461"></a> </span><span class=cF1>if</span><span class=cF0> (*tmpde1->name)
|
||
|
<a name="l462"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%s/%s"</span><span class=cF0>,tmpde1->full_name,tmpde->name);
|
||
|
<a name="l463"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l464"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%s%s"</span><span class=cF0>,tmpde1->full_name,tmpde->name);
|
||
|
<a name="l465"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(tmpde->full_name,st);
|
||
|
<a name="l466"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
||
|
<a name="l467"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l468"></a> }
|
||
|
<a name="l469"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l470"></a> doc_e=doc_e->next;
|
||
|
<a name="l471"></a> }
|
||
|
<a name="l472"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l473"></a> </span><span class=cF1>if</span><span class=cF0> (unlock_doc2)
|
||
|
<a name="l474"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc2);
|
||
|
<a name="l475"></a>}
|
||
|
<a name="l476"></a>
|
||
|
<a name="l477"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_INCLUDE</span><span class=cF0> 0
|
||
|
<a name="l478"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_ADAM_INCLUDE</span><span class=cF0> 1
|
||
|
<a name="l479"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_DELETE</span><span class=cF0> 2
|
||
|
<a name="l480"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_RENAME</span><span class=cF0> 3
|
||
|
<a name="l481"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_MKDIR</span><span class=cF0> 4
|
||
|
<a name="l482"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_PLAIN</span><span class=cF0> 5
|
||
|
<a name="l483"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_PASTE</span><span class=cF0> 6
|
||
|
<a name="l484"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_CHG_DSK</span><span class=cF0> 7
|
||
|
<a name="l485"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_FORMAT</span><span class=cF0> 8
|
||
|
<a name="l486"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_MOUNT_REDSEA_ISO_C</span><span class=cF0> 9
|
||
|
<a name="l487"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_UNMOUNT</span><span class=cF0> 10
|
||
|
<a name="l488"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_MAKE_REDSEA_ISO_C</span><span class=cF0> 11
|
||
|
<a name="l489"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_BURN_ISO</span><span class=cF0> 12
|
||
|
<a name="l490"></a>#</span><span class=cF1>define</span><span class=cF0> </span><span class=cF3>FMR_HELP</span><span class=cF0> 13
|
||
|
<a name="l491"></a>
|
||
|
<a name="l492"></a></span><span class=cF9>I64</span><span class=cF0> </span><span class=cF5>PopUpFMRight</span><span class=cF0>(</span><span class=cF1>U8</span><span class=cF0> *header=</span><span class=cF3>NULL</span><span class=cF0>,</span><span class=cF1>U8</span><span class=cF0> *footer=</span><span class=cF3>NULL</span><span class=cF0>)
|
||
|
<a name="l493"></a>{
|
||
|
<a name="l494"></a> </span><span class=cF9>I64</span><span class=cF0> i;
|
||
|
<a name="l495"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF5>DocNew</span><span class=cF0>;
|
||
|
<a name="l496"></a> </span><span class=cF1>if</span><span class=cF0> (header) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,header);
|
||
|
<a name="l497"></a> </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"$CM+LX,1,1 $$BT,\"INCLUDE \",LE=FMR_INCLUDE$"</span><span class=cF0>
|
||
|
<a name="l498"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"ADAM INCLUDE \",LE=FMR_ADAM_INCLUDE$"</span><span class=cF0>
|
||
|
<a name="l499"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"DELETE \",LE=FMR_DELETE$"</span><span class=cF0>
|
||
|
<a name="l500"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"RENAME \",LE=FMR_RENAME$"</span><span class=cF0>
|
||
|
<a name="l501"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"MAKE DIRECTORY \",LE=FMR_MKDIR$"</span><span class=cF0>
|
||
|
<a name="l502"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"PLAIN-TEXT EDIT \",LE=FMR_PLAIN$"</span><span class=cF0>
|
||
|
<a name="l503"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"PASTE CLIP FILES \",LE=FMR_PASTE$"</span><span class=cF0>
|
||
|
<a name="l504"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"CHANGE DISK(MOUNT IT) \",LE=FMR_CHG_DSK$"</span><span class=cF0>
|
||
|
<a name="l505"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"FORMAT \",LE=FMR_FORMAT$"</span><span class=cF0>
|
||
|
<a name="l506"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"MOUNT ISO.C FILE \","</span><span class=cF0>
|
||
|
<a name="l507"></a> </span><span class=cF6>"LE=FMR_MOUNT_REDSEA_ISO_C$"</span><span class=cF0>
|
||
|
<a name="l508"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"UNMOUNT \",LE=FMR_UNMOUNT$"</span><span class=cF0>
|
||
|
<a name="l509"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"MAKE ISO.C (CD/DVD) FILE\",LE=FMR_MAKE_REDSEA_ISO_C$"</span><span class=cF0>
|
||
|
<a name="l510"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"BURN ISO (CD/DVD) FILE \",LE=FMR_BURN_ISO$"</span><span class=cF0>
|
||
|
<a name="l511"></a> </span><span class=cF6>"$CM+LX,1,3 $$BT,\"HELP \",LE=FMR_HELP$"</span><span class=cF0>
|
||
|
<a name="l512"></a> </span><span class=cF6>"$CM+LX,29,0$$BT,\"CANCEL \",LE=DOCM_CANCEL$\n"</span><span class=cF0>);
|
||
|
<a name="l513"></a> </span><span class=cF1>if</span><span class=cF0> (footer) </span><span class=cF5>DocPrint</span><span class=cF0>(doc,</span><span class=cF6>"%s"</span><span class=cF0>,footer);
|
||
|
<a name="l514"></a> i=</span><span class=cF5>PopUpMenu</span><span class=cF0>(doc);
|
||
|
<a name="l515"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
||
|
<a name="l516"></a> </span><span class=cF1>return</span><span class=cF0> i;
|
||
|
<a name="l517"></a>}
|
||
|
<a name="l518"></a>
|
||
|
<a name="l519"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMRightClick</span><span class=cF0>()
|
||
|
<a name="l520"></a>{
|
||
|
<a name="l521"></a> </span><span class=cF1>switch</span><span class=cF0> (</span><span class=cF5>PopUpFMRight</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l522"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_INCLUDE</span><span class=cF0>:
|
||
|
<a name="l523"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,0x3F0000003F);
|
||
|
<a name="l524"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l525"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_ADAM_INCLUDE</span><span class=cF0>:
|
||
|
<a name="l526"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,0x23F0000023F);
|
||
|
<a name="l527"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l528"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_DELETE</span><span class=cF0>:
|
||
|
<a name="l529"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_CTRLY</span><span class=cF0>,0);
|
||
|
<a name="l530"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l531"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_RENAME</span><span class=cF0>:
|
||
|
<a name="l532"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'r'</span><span class=cF0>,0);
|
||
|
<a name="l533"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l534"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_MKDIR</span><span class=cF0>:
|
||
|
<a name="l535"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'d'</span><span class=cF0>,0);
|
||
|
<a name="l536"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l537"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_PLAIN</span><span class=cF0>:
|
||
|
<a name="l538"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_SHIFT_SPACE</span><span class=cF0>,0);
|
||
|
<a name="l539"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l540"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_PASTE</span><span class=cF0>:
|
||
|
<a name="l541"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,0,</span><span class=cF3>SC_INS</span><span class=cF0>+</span><span class=cF3>SCF_SHIFT</span><span class=cF0>);
|
||
|
<a name="l542"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l543"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_CHG_DSK</span><span class=cF0>:
|
||
|
<a name="l544"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'c'</span><span class=cF0>,0);
|
||
|
<a name="l545"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l546"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_FORMAT</span><span class=cF0>:
|
||
|
<a name="l547"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'f'</span><span class=cF0>,0);
|
||
|
<a name="l548"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l549"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_MOUNT_REDSEA_ISO_C</span><span class=cF0>:
|
||
|
<a name="l550"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'i'</span><span class=cF0>,0);
|
||
|
<a name="l551"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l552"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_UNMOUNT</span><span class=cF0>:
|
||
|
<a name="l553"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'u'</span><span class=cF0>,0);
|
||
|
<a name="l554"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l555"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_MAKE_REDSEA_ISO_C</span><span class=cF0>:
|
||
|
<a name="l556"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'m'</span><span class=cF0>,0);
|
||
|
<a name="l557"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l558"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_BURN_ISO</span><span class=cF0>:
|
||
|
<a name="l559"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF6>'B'</span><span class=cF0>,0);
|
||
|
<a name="l560"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l561"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>FMR_HELP</span><span class=cF0>:
|
||
|
<a name="l562"></a> </span><span class=cF5>Msg</span><span class=cF0>(</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>,</span><span class=cF3>CH_CTRLM</span><span class=cF0>,0x43200000432);
|
||
|
<a name="l563"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l564"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l565"></a>}
|
||
|
<a name="l566"></a>
|
||
|
<a name="l567"></a></span><span class=cF1>U8</span><span class=cF0> *</span><span class=cFB>fm_ms_str</span><span class=cF0>=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l568"></a></span><span class=cF1>U0</span><span class=cF0> (*</span><span class=cFB>fp_old_final_scrn_update</span><span class=cF0>)(</span><span class=cF9>CDC</span><span class=cF0> *dc);
|
||
|
<a name="l569"></a>
|
||
|
<a name="l570"></a></span><span class=cF1>U0</span><span class=cF0> </span><span class=cF5>FMFinalScrnUpdate</span><span class=cF0>(</span><span class=cF9>CDC</span><span class=cF0> *dc)
|
||
|
<a name="l571"></a>{
|
||
|
<a name="l572"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cFB>fm_ms_str</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l573"></a> dc->color=</span><span class=cF3>LTRED</span><span class=cF0>;
|
||
|
<a name="l574"></a> </span><span class=cF5>GrPrint</span><span class=cF0>(dc,</span><span class=cFB>ms</span><span class=cF0>.pos.x,</span><span class=cFB>ms</span><span class=cF0>.pos.y,</span><span class=cF6>"%s"</span><span class=cF0>,</span><span class=cFB>fm_ms_str</span><span class=cF0>);
|
||
|
<a name="l575"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l576"></a> (*</span><span class=cFB>fp_old_final_scrn_update</span><span class=cF0>)(dc);
|
||
|
<a name="l577"></a>}
|
||
|
<a name="l578"></a>
|
||
|
<a name="l579"></a></span><span class=cF1>public</span><span class=cF0> </span><span class=cF1>U8</span><span class=cF0> *</span><span class=cF5>FileMgr</span><span class=cF0>(</span><span class=cF9>I64</span><span class=cF0> mode=</span><span class=cF3>FM_NORMAL</span><span class=cF0>,</span><span class=cF9>CTask</span><span class=cF0> *mem_task=</span><span class=cF3>NULL</span><span class=cF0>)
|
||
|
<a name="l580"></a>{</span><span class=cF2>//File manager. Also, used to choose files and dirs.</span><span class=cF0>
|
||
|
<a name="l581"></a> </span><span class=cF9>CDirEntry</span><span class=cF0> *head=</span><span class=cF3>NULL</span><span class=cF0>,*tmpde,*tmpde1,*tmpde2;
|
||
|
<a name="l582"></a> </span><span class=cF9>I64</span><span class=cF0> sc,ch,arg1,arg2,msg_code;
|
||
|
<a name="l583"></a> </span><span class=cF9>CDoc</span><span class=cF0> *doc=</span><span class=cF3>NULL</span><span class=cF0>,*old_put_doc=</span><span class=cF5>DocPut</span><span class=cF0>,*old_display_doc=</span><span class=cF5>DocDisplay</span><span class=cF0>;
|
||
|
<a name="l584"></a> </span><span class=cF1>U8</span><span class=cF0> *res=</span><span class=cF3>NULL</span><span class=cF0>,*st,*st2,*old_cur_dir=</span><span class=cF5>DirCur</span><span class=cF0>;
|
||
|
<a name="l585"></a> </span><span class=cF9>CDocEntry</span><span class=cF0> *doc_ce=</span><span class=cF3>NULL</span><span class=cF0>,*doc_e;
|
||
|
<a name="l586"></a> </span><span class=cF1>Bool</span><span class=cF0> okay;
|
||
|
<a name="l587"></a>
|
||
|
<a name="l588"></a> </span><span class=cF5>SettingsPush</span><span class=cF0>; </span><span class=cF2>//See </span><a href="/Wb/Adam/TaskSettings.HC.HTML#l3"><span class=cF4>SettingsPush</span></a><span class=cF0>
|
||
|
<a name="l589"></a> </span><span class=cFB>fp_old_final_scrn_update</span><span class=cF0>=</span><span class=cFB>gr</span><span class=cF0>.fp_final_scrn_update;
|
||
|
<a name="l590"></a> </span><span class=cF5>MenuFilePush</span><span class=cF0>(</span><span class=cF6>"::/Doc/FileMgrPullDown.DD"</span><span class=cF0>);
|
||
|
<a name="l591"></a> </span><span class=cF5>FMRebuildDoc</span><span class=cF0>(&doc,&head,mode);
|
||
|
<a name="l592"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde1=</span><span class=cF5>Cd2DirEntry</span><span class=cF7>(</span><span class=cF0>head,old_cur_dir</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l593"></a> doc->cur_entry=tmpde1->user_data;
|
||
|
<a name="l594"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde1) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l595"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde1->attr&</span><span class=cF3>RS_ATTR_DIR</span><span class=cF0>)
|
||
|
<a name="l596"></a> tmpde1->user_data(</span><span class=cF9>CDocEntry</span><span class=cF0> *)->de_flags&=~</span><span class=cF3>DOCEF_CHECKED_COLLAPSED</span><span class=cF0>;
|
||
|
<a name="l597"></a> tmpde1=tmpde1->parent;
|
||
|
<a name="l598"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l599"></a> </span><span class=cF1>do</span><span class=cF0> </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l600"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l601"></a> </span><span class=cF1>do</span><span class=cF0> msg_code=</span><span class=cF5>GetMsg</span><span class=cF0>(&arg1,&arg2,
|
||
|
<a name="l602"></a> 1<<</span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>|1<<</span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>|1<<</span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>|1<<</span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>);
|
||
|
<a name="l603"></a> </span><span class=cF1>while</span><span class=cF0> (</span><span class=cF5>Fs</span><span class=cF0>!=</span><span class=cFB>sys_focus_task</span><span class=cF0>);
|
||
|
<a name="l604"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l605"></a> </span><span class=cF1>switch</span><span class=cF0> (msg_code) {
|
||
|
<a name="l606"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>MSG_MS_R_UP</span><span class=cF0>:
|
||
|
<a name="l607"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l608"></a> </span><span class=cF5>FMRightClick</span><span class=cF0>;
|
||
|
<a name="l609"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l610"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l611"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>MSG_MS_L_DOWN</span><span class=cF0>:
|
||
|
<a name="l612"></a> doc_ce=doc->cur_entry;
|
||
|
<a name="l613"></a> </span><span class=cFB>fm_ms_str</span><span class=cF0>=doc_ce->tag;
|
||
|
<a name="l614"></a> </span><span class=cFB>gr</span><span class=cF0>.fp_final_scrn_update=&</span><span class=cF5>FMFinalScrnUpdate</span><span class=cF0>;
|
||
|
<a name="l615"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l616"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>MSG_MS_L_UP</span><span class=cF0>:
|
||
|
<a name="l617"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l618"></a> </span><span class=cFB>gr</span><span class=cF0>.fp_final_scrn_update=</span><span class=cFB>fp_old_final_scrn_update</span><span class=cF0>;
|
||
|
<a name="l619"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>WinCursorPosSet</span><span class=cF7>(</span><span class=cF5>Fs</span><span class=cF0>,arg1+</span><span class=cF5>Fs</span><span class=cF0>->pix_left+</span><span class=cF5>Fs</span><span class=cF0>->scroll_x,
|
||
|
<a name="l620"></a> arg2+</span><span class=cF5>Fs</span><span class=cF0>->pix_top+</span><span class=cF5>Fs</span><span class=cF0>->scroll_y,</span><span class=cF3>TRUE</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l621"></a> doc_e=doc->cur_entry;
|
||
|
<a name="l622"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e!=doc_ce) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l623"></a> st2=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l624"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) {
|
||
|
<a name="l625"></a> tmpde1=doc_e->user_data;
|
||
|
<a name="l626"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde1=tmpde1->parent)
|
||
|
<a name="l627"></a> st2=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde1->full_name);
|
||
|
<a name="l628"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) {
|
||
|
<a name="l629"></a> tmpde1=doc_e->user_data;
|
||
|
<a name="l630"></a> st2=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde1->full_name);
|
||
|
<a name="l631"></a> }
|
||
|
<a name="l632"></a> </span><span class=cF1>if</span><span class=cF0> (st2 && doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) {
|
||
|
<a name="l633"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l634"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l635"></a> </span><span class=cF5>Move</span><span class=cF0>(tmpde->full_name,st2);
|
||
|
<a name="l636"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l637"></a> </span><span class=cF5>FMRebuildDoc</span><span class=cF0>(&doc,&head,mode);
|
||
|
<a name="l638"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (st2 && doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>) {
|
||
|
<a name="l639"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l640"></a> okay=</span><span class=cF3>TRUE</span><span class=cF0>;
|
||
|
<a name="l641"></a> tmpde2=tmpde1;
|
||
|
<a name="l642"></a> </span><span class=cF1>while</span><span class=cF0> (tmpde2) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l643"></a> </span><span class=cF1>if</span><span class=cF0> (tmpde2!=tmpde)
|
||
|
<a name="l644"></a> tmpde2=tmpde2->parent;
|
||
|
<a name="l645"></a> </span><span class=cF1>else</span><span class=cF0> {
|
||
|
<a name="l646"></a> okay=</span><span class=cF3>FALSE</span><span class=cF0>;
|
||
|
<a name="l647"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l648"></a> }
|
||
|
<a name="l649"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l650"></a> </span><span class=cF1>if</span><span class=cF0> (okay) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l651"></a> </span><span class=cF1>if</span><span class=cF0> (*tmpde1->name)
|
||
|
<a name="l652"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%s/%s"</span><span class=cF0>,tmpde1->full_name,tmpde->name);
|
||
|
<a name="l653"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l654"></a> st=</span><span class=cF5>MStrPrint</span><span class=cF0>(</span><span class=cF6>"%s%s"</span><span class=cF0>,tmpde1->full_name,tmpde->name);
|
||
|
<a name="l655"></a> </span><span class=cF1>if</span><span class=cF0> (</span><span class=cF5>StrCmp</span><span class=cF7>(</span><span class=cF0>tmpde->full_name,st</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l656"></a> </span><span class=cF5>Silent</span><span class=cF0>;
|
||
|
<a name="l657"></a> </span><span class=cF5>CopyTree</span><span class=cF0>(tmpde->full_name,st);
|
||
|
<a name="l658"></a> </span><span class=cF5>DelTree</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l659"></a> </span><span class=cF5>Silent</span><span class=cF0>(</span><span class=cF3>OFF</span><span class=cF0>);
|
||
|
<a name="l660"></a> </span><span class=cF5>FMRebuildDoc</span><span class=cF0>(&doc,&head,mode);
|
||
|
<a name="l661"></a> }
|
||
|
<a name="l662"></a> </span><span class=cF5>Free</span><span class=cF0>(st);
|
||
|
<a name="l663"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l664"></a> }
|
||
|
<a name="l665"></a> </span><span class=cF5>Free</span><span class=cF0>(st2);
|
||
|
<a name="l666"></a> </span><span class=cF5>FlushMsgs</span><span class=cF0>;
|
||
|
<a name="l667"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l668"></a> </span><span class=cF1>if</span><span class=cF0> (doc_e->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l669"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l670"></a> </span><span class=cF5>Ed</span><span class=cF0>(doc_e->user_data</span><span class=cF7>(</span><span class=cF9>CDirEntry</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>->full_name);
|
||
|
<a name="l671"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l672"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l673"></a> doc_ce=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l674"></a> }
|
||
|
<a name="l675"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l676"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l677"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>MSG_KEY_DOWN</span><span class=cF0>:
|
||
|
<a name="l678"></a> doc_ce=</span><span class=cF3>NULL</span><span class=cF0>;
|
||
|
<a name="l679"></a> ch=arg1; sc=arg2;
|
||
|
<a name="l680"></a> </span><span class=cF1>if</span><span class=cF0> (sc.u8[0]==</span><span class=cF3>SC_DELETE</span><span class=cF0> && !</span><span class=cF7>(</span><span class=cF0>sc&(</span><span class=cF3>SCF_SHIFT</span><span class=cF0>|</span><span class=cF3>SCF_CTRL</span><span class=cF0>)</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l681"></a> ch=</span><span class=cF3>CH_CTRLY</span><span class=cF0>;
|
||
|
<a name="l682"></a> </span><span class=cF1>if</span><span class=cF0> (ch && sc&</span><span class=cF3>SCF_ALT</span><span class=cF0>) </span><span class=cF1>goto</span><span class=cF0> fm_regular_key;
|
||
|
<a name="l683"></a> </span><span class=cF1>switch</span><span class=cF0> (ch) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l684"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'\n'</span><span class=cF0>:
|
||
|
<a name="l685"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l686"></a> </span><span class=cF5>FMRightClick</span><span class=cF0>;
|
||
|
<a name="l687"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l688"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l689"></a> </span><span class=cF1>start</span><span class=cF0>:
|
||
|
<a name="l690"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l691"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CH_CTRLV</span><span class=cF0>:
|
||
|
<a name="l692"></a> </span><span class=cF5>FMCopy</span><span class=cF0>(doc);
|
||
|
<a name="l693"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l694"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'r'</span><span class=cF0>:
|
||
|
<a name="l695"></a> </span><span class=cF5>FMRename</span><span class=cF0>(doc);
|
||
|
<a name="l696"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l697"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'d'</span><span class=cF0>:
|
||
|
<a name="l698"></a> </span><span class=cF5>FMMkDir</span><span class=cF0>(doc);
|
||
|
<a name="l699"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l700"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CH_CTRLY</span><span class=cF0>:
|
||
|
<a name="l701"></a> </span><span class=cF5>FMDelete</span><span class=cF0>(doc);
|
||
|
<a name="l702"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l703"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'c'</span><span class=cF0>:
|
||
|
<a name="l704"></a> </span><span class=cF5>FMChgDsk</span><span class=cF0>(doc);
|
||
|
<a name="l705"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l706"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'i'</span><span class=cF0>:
|
||
|
<a name="l707"></a> </span><span class=cF5>FMMountISO</span><span class=cF0>(doc);
|
||
|
<a name="l708"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l709"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'u'</span><span class=cF0>:
|
||
|
<a name="l710"></a> </span><span class=cF5>FMUnmount</span><span class=cF0>(doc);
|
||
|
<a name="l711"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l712"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'m'</span><span class=cF0>:
|
||
|
<a name="l713"></a> </span><span class=cF5>FMMakeISO</span><span class=cF0>(doc);
|
||
|
<a name="l714"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l715"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'B'</span><span class=cF0>:
|
||
|
<a name="l716"></a> </span><span class=cF5>FMBurnISO</span><span class=cF0>(doc);
|
||
|
<a name="l717"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l718"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF6>'f'</span><span class=cF0>:
|
||
|
<a name="l719"></a> </span><span class=cF5>FMFmtDrv</span><span class=cF0>(doc);
|
||
|
<a name="l720"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l721"></a> </span><span class=cF1>end</span><span class=cF0>:
|
||
|
<a name="l722"></a> </span><span class=cF5>FMRebuildDoc</span><span class=cF0>(&doc,&head,mode);
|
||
|
<a name="l723"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l724"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>:
|
||
|
<a name="l725"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l726"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CH_SPACE</span><span class=cF0>:
|
||
|
<a name="l727"></a> </span><span class=cF1>if</span><span class=cF0> (doc->cur_entry->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) {
|
||
|
<a name="l728"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l729"></a> </span><span class=cF5>Ed</span><span class=cF0>(doc->cur_entry->user_data</span><span class=cF7>(</span><span class=cF9>CDirEntry</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>->full_name);
|
||
|
<a name="l730"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l731"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l732"></a> </span><span class=cF1>goto</span><span class=cF0> fm_regular_key;
|
||
|
<a name="l733"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l734"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CH_SHIFT_SPACE</span><span class=cF0>:
|
||
|
<a name="l735"></a> </span><span class=cF1>if</span><span class=cF0> (doc->cur_entry->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) {
|
||
|
<a name="l736"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l737"></a> </span><span class=cF5>Plain</span><span class=cF0>(doc->cur_entry->user_data</span><span class=cF7>(</span><span class=cF9>CDirEntry</span><span class=cF0> *</span><span class=cF7>)</span><span class=cF0>->full_name);
|
||
|
<a name="l738"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l739"></a> } </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l740"></a> </span><span class=cF1>goto</span><span class=cF0> fm_regular_key;
|
||
|
<a name="l741"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l742"></a> </span><span class=cF1>case</span><span class=cF0> </span><span class=cF3>CH_ESC</span><span class=cF0>:
|
||
|
<a name="l743"></a> doc_ce=doc->cur_entry;
|
||
|
<a name="l744"></a> tmpde=doc_ce->user_data;
|
||
|
<a name="l745"></a> </span><span class=cF1>if</span><span class=cF0> (mode==</span><span class=cF3>FM_PICK_FILE</span><span class=cF0> && doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>)
|
||
|
<a name="l746"></a> res=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde->full_name,mem_task);
|
||
|
<a name="l747"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (mode==</span><span class=cF3>FM_PICK_DIR</span><span class=cF0>) {
|
||
|
<a name="l748"></a> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_TREE</span><span class=cF0>)
|
||
|
<a name="l749"></a> res=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde->full_name,mem_task);
|
||
|
<a name="l750"></a> </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (doc_ce->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0> &&
|
||
|
<a name="l751"></a> </span><span class=cF7>(</span><span class=cF0>tmpde=tmpde->parent</span><span class=cF7>)</span><span class=cF0>)
|
||
|
<a name="l752"></a> res=</span><span class=cF5>StrNew</span><span class=cF0>(tmpde->full_name,mem_task);
|
||
|
<a name="l753"></a> }
|
||
|
<a name="l754"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l755"></a> </span><span class=cF1>default</span><span class=cF0>:
|
||
|
<a name="l756"></a> </span><span class=cF1>if</span><span class=cF0> (sc.u8[0]==</span><span class=cF3>SC_INS</span><span class=cF0> && sc&</span><span class=cF3>SCF_SHIFT</span><span class=cF0> && !</span><span class=cF7>(</span><span class=cF0>sc&</span><span class=cF3>SCF_CTRL</span><span class=cF7>)</span><span class=cF0>) {
|
||
|
<a name="l757"></a> </span><span class=cF5>FMCopy</span><span class=cF0>(doc);
|
||
|
<a name="l758"></a> </span><span class=cF5>FMRebuildDoc</span><span class=cF0>(&doc,&head,mode);
|
||
|
<a name="l759"></a> } </span><span class=cF1>else</span><span class=cF0> </span><span class=cF1>if</span><span class=cF0> (sc.u8[0]==</span><span class=cF3>SC_F5</span><span class=cF0>) {
|
||
|
<a name="l760"></a> </span><span class=cF1>if</span><span class=cF0> (doc->cur_entry->type_u8==</span><span class=cF3>DOCT_MENU_VAL</span><span class=cF0>) </span><span class=cF7>{</span><span class=cF0>
|
||
|
<a name="l761"></a> tmpde=doc->cur_entry->user_data;
|
||
|
<a name="l762"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l763"></a> </span><span class=cF1>if</span><span class=cF0> (sc&</span><span class=cF3>SCF_SHIFT</span><span class=cF0>)
|
||
|
<a name="l764"></a> </span><span class=cF5>AdamFile</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l765"></a> </span><span class=cF1>else</span><span class=cF0>
|
||
|
<a name="l766"></a> </span><span class=cF5>PopUpFile</span><span class=cF0>(tmpde->full_name);
|
||
|
<a name="l767"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l768"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l769"></a> } </span><span class=cF1>else</span><span class=cF0> {
|
||
|
<a name="l770"></a>fm_regular_key:
|
||
|
<a name="l771"></a> </span><span class=cF5>DocUnlock</span><span class=cF0>(doc);
|
||
|
<a name="l772"></a> </span><span class=cF5>PutKey</span><span class=cF0>(ch,sc);
|
||
|
<a name="l773"></a> </span><span class=cF5>DocLock</span><span class=cF0>(doc);
|
||
|
<a name="l774"></a> }
|
||
|
<a name="l775"></a> </span><span class=cF7>}</span><span class=cF0>
|
||
|
<a name="l776"></a> </span><span class=cF1>break</span><span class=cF0>;
|
||
|
<a name="l777"></a> }
|
||
|
<a name="l778"></a> </span><span class=cF7>}</span><span class=cF0> </span><span class=cF1>while</span><span class=cF0> (ch!=</span><span class=cF3>CH_ESC</span><span class=cF0> && ch!=</span><span class=cF3>CH_SHIFT_ESC</span><span class=cF0>);
|
||
|
<a name="l779"></a> </span><span class=cFB>gr</span><span class=cF0>.fp_final_scrn_update=</span><span class=cFB>fp_old_final_scrn_update</span><span class=cF0>;
|
||
|
<a name="l780"></a> </span><span class=cF5>Fs</span><span class=cF0>->put_doc =old_put_doc;
|
||
|
<a name="l781"></a> </span><span class=cF5>Fs</span><span class=cF0>->display_doc=old_display_doc;
|
||
|
<a name="l782"></a> </span><span class=cF5>SettingsPop</span><span class=cF0>;
|
||
|
<a name="l783"></a> </span><span class=cF5>DocDel</span><span class=cF0>(doc);
|
||
|
<a name="l784"></a> </span><span class=cF5>DirTreeDel</span><span class=cF0>(head);
|
||
|
<a name="l785"></a> </span><span class=cF5>Cd</span><span class=cF0>(old_cur_dir);
|
||
|
<a name="l786"></a> </span><span class=cF5>Free</span><span class=cF0>(old_cur_dir);
|
||
|
<a name="l787"></a> </span><span class=cF1>if</span><span class=cF0> (mode!=</span><span class=cF3>FM_NORMAL</span><span class=cF0> && !res)
|
||
|
<a name="l788"></a> res=</span><span class=cF5>StrNew</span><span class=cF0>(</span><span class=cF6>""</span><span class=cF0>,mem_task);
|
||
|
<a name="l789"></a> </span><span class=cF5>MenuPop</span><span class=cF0>;
|
||
|
<a name="l790"></a> </span><span class=cF1>return</span><span class=cF0> res;
|
||
|
<a name="l791"></a>}
|
||
|
</span></pre></body>
|
||
|
</html>
|