Code covered by the BSD License  

Highlights from
HTML Indexer

image thumbnail

HTML Indexer

by

 

16 Aug 2004 (Updated )

automated multi-language html index, index for print, batch image scaling

prjDlgListContact.m
% quadra 
%
% v.0.5     - 19.05.2004, new, incearca new look for contact

if ~exist('FileList') 
    FileList = uConstr('fileinfo');
end;

if isfield(h,'DlgListContact')
    figure(h.DlgListContact);
else % fa una noua, cu tot ce implica
    h.DlgListContact = figure; 
end;

% seteaza niste defaulturi pentru butoane
pz_pref.minclear = 5; % clearance intre mai toate obiectele
pz_pref.minheight = 20; pz_pref.minlength = 60; % dimensiunea butonului
pz_pref.fontsize = 8; pz_pref.fontname = 'verdana';
pz_pref.listwidth = 200; pz_pref.listheight = 400; % dim listei
pz_pref.overspacing = 2; % cu atita multiplic pz_pref.minclear cind vreau mai larg
pz_pref.treime = 200; % treimi orizontale
% si deseneaz-o totusi de fiecare data
pz_pref.main = [10 30 3*pz_pref.treime 550];
set(h.DlgListContact, 'Position', pz_pref.main, 'MenuBar', 'none', 'NumberTitle', 'off', 'Name', 'quadra: input file list', 'Resize', 'on'); 

% genereaza ctrl
% --------------
% calc toate pozitiile, ordinea butoanelor e :
% path, original name, display name, lista, infobox, 
% a whole section on img quality
% keep: up, dw, up5, dw5, uph, dwh, addF, addD, OK, Close

clear ctrl;
% - path
pz(1,:) = [pz_pref.minclear pz_pref.minclear 2*pz_pref.treime-2*pz_pref.minclear pz_pref.minheight];
ctrl.info.path = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(1,:), 'string', 'Path: ', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - original name
pztemp = [pz_pref.minclear 2*pz_pref.minclear+pz_pref.minheight 2*pz_pref.minlength pz_pref.minheight ];
ctrl.info.originalnamelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pztemp, 'string', 'file name:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(2,:) = pz(1,:)+ [pz_pref.minlength+pz_pref.minclear pz_pref.minheight+pz_pref.minclear -pz_pref.minlength-pz_pref.minclear 0 ]; % pot sa suprascriu in liniste
ctrl.info.originalname = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(2,:), 'string', 'original name here... ', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - displayed name
pz(3,:) = pz(2,:)+ [0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.info.displayedname = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(3,:), 'string', 'displayed name here ....', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.info.displayedname, 'callback', 'ceva = ''dlgList_in_displayedname''; IncearcaCeva');
pztemp = [pz_pref.minclear 3*pz_pref.minclear+2*pz_pref.minheight pz_pref.minlength pz_pref.minheight ];
ctrl.info.displayednamelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pztemp, 'string', 'displayed name:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');

% - lista
pz(4,:) = [pz_pref.minclear pz(3,2)+pz_pref.minclear+pz_pref.minheight pz_pref.listwidth pz_pref.listheight ];
ctrl.lista = uicontrol(h.DlgListContact, 'style', 'listbox', 'position', pz(4,:));
set(ctrl.lista, 'String', strvcat(FileList.name));
set(ctrl.lista, 'callback', 'Nav.image_index = get(ctrl.lista, ''value''); ceva=''dlgList_disp_file''; IncearcaCeva;'); 

% - info box
pz_cheat = 70; % imprumuta niste pixeli lu img qual frame
pztemp = [pz(4,1) pz(4,2)+pz(4,4)+pz_pref.minclear pz(4,3)-pz_cheat 60];
ctrl.info = uicontrol(h.DlgListContact, 'style', 'text', 'position', pztemp, 'string', 'fileinfo', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');

% ---------------------------
% genereaza img quality ctrl
% ---------------------------

% ---- image quality frame
pztemp = [ pztemp(1)+pztemp(3)+pz_pref.minclear pz(2,2)+pz(2,4)+pz_pref.minclear pz_pref.treime+pz_cheat 60];
clear pz_cheat
ctrl.imgframe = uicontrol(h.DlgListContact, 'style', 'frame', 'position', pztemp);

% seteaza x si y pentru butoanele din frame
ctrl.imgopt.pz_pref.x = [ 10 70 125 200 245] + pztemp(1); % coloane
ctrl.imgopt.pz_pref.y = [ 10 30 50] + pztemp(2);; % rinduri

% calc toate pozitiile, ordinea butoanelor e :
% row 1: thumbnail : label th, norm th, low th, qual th, %
% row 2: gallery (full) : label gy, norm gy, low gy, qual gy %
% row 3: titluri : normal, low res, quality

% --- row 1, y(1), th
% - etiketa 'thumbnails'
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(1) ctrl.imgopt.pz_pref.y(1) 55 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', 'thumbnail', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - norm th
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(2) ctrl.imgopt.pz_pref.y(1) 50 18];
ctrl.imgopt.thnorm = uicontrol(h.DlgListContact, 'style', 'edit', 'position', ctrl.imgopt.pz, 'string', num2str(Options.ThSize), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
ctrl.imgopt.callback = ' Options.ThSize = str2num(get(ctrl.imgopt.thnorm, ''string'')); FileList = prjRefresh(FileList, Options);';
set (ctrl.imgopt.thnorm, 'callback', ctrl.imgopt.callback);
% - low th
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(3) ctrl.imgopt.pz_pref.y(1) 50 18];
ctrl.imgopt.thlow = uicontrol(h.DlgListContact, 'style', 'edit', 'position', ctrl.imgopt.pz, 'string', num2str(Options.ThSizeLow), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
ctrl.imgopt.callback = ' Options.ThSizeLow = str2num(get(ctrl.imgopt.thlow, ''string''));';
set (ctrl.imgopt.thlow, 'callback', ctrl.imgopt.callback);
% - quality th
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(4) ctrl.imgopt.pz_pref.y(1) 40 18];
ctrl.imgopt.thqual = uicontrol(h.DlgListContact, 'style', 'edit', 'position', ctrl.imgopt.pz, 'string', num2str(Options.ThQual), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
ctrl.imgopt.callback = 't=min(max(str2num(get(ctrl.imgopt.thqual, ''string'')),10),99); Options.ThQual = t; set(ctrl.imgopt.thqual, ''string'', num2str(t)); clear t;';
set (ctrl.imgopt.thqual, 'callback', ctrl.imgopt.callback);
% - '%'
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(5) ctrl.imgopt.pz_pref.y(1) 15 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', '%', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');

% --- row 2, y(2), gy
% - etiketa gy
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(1) ctrl.imgopt.pz_pref.y(2) 55 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', 'full-size', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - norm gy
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(2) ctrl.imgopt.pz_pref.y(2) 50 18];
ctrl.imgopt.gynorm = uicontrol(h.DlgListContact, 'style', 'edit', 'position', ctrl.imgopt.pz, 'string', num2str(Options.GySize), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
ctrl.imgopt.callback = ' Options.GySize = str2num(get(ctrl.imgopt.gynorm, ''string'')); FileList = prjRefresh(FileList, Options);';
set (ctrl.imgopt.gynorm, 'callback', ctrl.imgopt.callback);
% - low gy
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(3) ctrl.imgopt.pz_pref.y(2) 50 18];
ctrl.imgopt.gylow = uicontrol(h.DlgListContact, 'style', 'edit', 'position', ctrl.imgopt.pz, 'string', num2str(Options.GySizeLow), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
ctrl.imgopt.callback = ' Options.GySizeLow = str2num(get(ctrl.imgopt.gylow, ''string''));';
set (ctrl.imgopt.gylow, 'callback', ctrl.imgopt.callback);
% - quality gy
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(4) ctrl.imgopt.pz_pref.y(2) 40 18];
ctrl.imgopt.gyqual = uicontrol(h.DlgListContact, 'style', 'edit', 'position', ctrl.imgopt.pz, 'string', num2str(Options.GyQual), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
ctrl.imgopt.callback = 't=min(max(str2num(get(ctrl.imgopt.gyqual, ''string'')),10),99); Options.GyQual = t; set(ctrl.imgopt.gyqual, ''string'', num2str(t)); clear t;';
set (ctrl.imgopt.gyqual, 'callback', ctrl.imgopt.callback);
% - '%'
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(5) ctrl.imgopt.pz_pref.y(2) 15 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', '%', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');

% --- row 3, title
% - pixels
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(1) ctrl.imgopt.pz_pref.y(3) 55 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', 'pixels', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - normal
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(2) ctrl.imgopt.pz_pref.y(3) 50 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', 'normal', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - low res
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(3) ctrl.imgopt.pz_pref.y(3) 50 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', 'low res', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
% - quality
ctrl.imgopt.pz = [ctrl.imgopt.pz_pref.x(4) ctrl.imgopt.pz_pref.y(3) 40 18];
ctrl.imgopt.txt = uicontrol(h.DlgListContact, 'style', 'text', 'position', ctrl.imgopt.pz, 'string', 'quality', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');

% -------------------------------------------------------------------------

% - filt pulldown > to turn into batch
%pztemp = [pz_pref.treime+2*pz_pref.minclear pztemp(2) 3*pz_pref.minlength+2*pz_pref.minclear pz_pref.minheight ];
%ctrl.filt = uicontrol(h.DlgListContact, 'style', 'popupmenu', 'position', pztemp, 'string' , 'filtering method');
% - image quality and refresh
% insert here optImg, then filelist_buff=prjRefresh c

% ----------------------------------
% composition, file/dir add/del/move
% ----------------------------------

% - up > 3,4,5
pz_xcol = pz(2,1)+pz(2,3)+pz_pref.minclear;
pz_ytop = pz(2,2)+pz(2,4)-pz_pref.minheight;
pz(3,:) = [ pz_xcol pz_ytop pz_pref.minlength pz_pref.minheight];
ctrl.up = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(3,:), 'string', 'up', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.up, 'callback', 'Nav.list_switch = -1; ceva=''dlgList_switch_files''; IncearcaCeva'); 
% - up5
pz(4,:) = pz(3,:) + [ pz_pref.minlength+pz_pref.minclear 0 0 0 ];
ctrl.up5 = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(4,:), 'string', 'up 5', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.up5, 'callback', 'Nav.list_switch = -5; ceva=''dlgList_switch_files''; IncearcaCeva'); 
% - up top
pz(5,:) = pz(4,:) + [ pz_pref.minlength+pz_pref.minclear 0 0 0 ];
ctrl.uph = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(5,:), 'string', 'up top', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.uph, 'callback', 'Nav.list_switch = -65536; ceva=''dlgList_switch_files''; IncearcaCeva'); 

% - dw > 6,7,8
pz(6,:) = pz(3,:) + [ 0 -pz_pref.minheight-2*pz_pref.minclear 0 0 ];
ctrl.dw = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(6,:), 'string', 'down', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.dw, 'callback', 'Nav.list_switch = 1; ceva=''dlgList_switch_files''; IncearcaCeva'); 
% - dw5
pz(7,:) = pz(6,:) + [pz_pref.minlength+pz_pref.minclear 0 0 0 ];
ctrl.dw5 = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(7,:), 'string', 'down 5', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.dw5, 'callback', 'Nav.list_switch = 5; ceva=''dlgList_switch_files''; IncearcaCeva'); 
% - down end
pz(8,:) = pz(7,:) + [ pz_pref.minlength+pz_pref.minclear 0 0 0 ];
ctrl.dwe = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(8,:), 'string', 'down end', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.dwe, 'callback', 'Nav.list_switch = 65536; ceva=''dlgList_switch_files''; IncearcaCeva'); 

% - 9,10,11> add f
pz(9,:) = pz(6,:) + [ 0 -pz_pref.minheight-pz_pref.overspacing*pz_pref.minclear 0 0 ];
ctrl.addf = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(9,:), 'string', 'add file', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.addf, 'callback', 'ceva=''dlgList_add_file''; IncearcaCeva' );
% - add dir
pz(10,:) = pz(9,:) + [ pz_pref.minlength+pz_pref.minclear 0 0 0 ];
ctrl.addD = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(10,:), 'string', 'add dir', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.addD, 'callback', 'ceva=''dlgList_add_dir''; IncearcaCeva' );
% - del file
pz(11,:) = pz(10,:) + [pz_pref.minlength+pz_pref.minclear -pz_pref.minheight-pz_pref.minclear 0 0 ];
ctrl.addD = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(11,:), 'string', 'del file', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.addD, 'callback', 'ceva=''dlgList_del_file''; IncearcaCeva');
% - OK
pz(12,:) = pz(9,:) + [ 0 -2*pz_pref.minheight-2*pz_pref.minclear 0 0 ];
ctrl.ok = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(12,:), 'string', 'OK', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.ok, 'callback', 'ceva=''dlgList_OK''; IncearcaCeva ');
% - close
pz(13,:) = pz(12,:) + [ pz_pref.minlength+pz_pref.minclear 0 0 0 ];
ctrl.close = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(13,:), 'string', 'close', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.close, 'callback', 'ceva=''dlgList_close''; IncearcaCeva' ); % da'nainte fa curat

% - sw limba
pz(14,:) = pz(12,:) + [ 0 -pz_pref.minheight-2*pz_pref.minclear pz_pref.minlength+pz_pref.minclear 0];
ctrl.langswitch = uicontrol(h.DlgListContact, 'style', 'popupmenu', 'string' , Options.languages, 'position', pz(14,:), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.langswitch, 'callback', 'ceva = ''dlgList_switch_lang''; IncearcaCeva');
% - add limba
pz(15,:) = pz(14,:) + [ 2*pz_pref.minlength+2*pz_pref.minclear 0 -pz_pref.minlength-pz_pref.minclear 0];
ctrl.langadd = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(15,:), 'string', 'add lang', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.langadd, 'callback', 'ceva = ''dlgList_add_lang''; IncearcaCeva');
% - del limba
pz(16,:) = pz(15,:) + [ 0 -pz_pref.minheight-pz_pref.minclear 0 0];
ctrl.langdel = uicontrol(h.DlgListContact, 'style', 'pushbutton', 'position', pz(16,:), 'string', 'del lang', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'center');
set(ctrl.langdel, 'callback', 'ceva = ''dlgList_del_lang''; IncearcaCeva');

% --- show img ---
pz_pref.xo= pz_pref.listwidth + 2*pz_pref.minclear;
pz_pref.yo= 3*pz_pref.minheight + 4*pz_pref.minclear;
pz_pref.dmax= 400 - pz_pref.xo - pz_pref.minclear; % deocamdata 400 te limiteaza

% ------------------------
%     html
% ------------------------

% - edit html link go home
pz(18,:) = [2*pz_pref.treime+pz_pref.minclear pz_pref.minclear pz_pref.minlength pz_pref.minheight];
ctrl.linkhomelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(18,:), 'string', 'link home:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(19,:) = pz(18,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(19,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.linkhome = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(19,:), 'string', 'http://', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.linkhome, 'callback', 'ceva = ''dlgList_in_linkhome''; IncearcaCeva');

% - edit htmltxt go home
pz(20,:) = pz(18,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.texthomelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(20,:), 'string', 'text home:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(21,:) = pz(20,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(21,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.texthome = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(21,:), 'string', 'go home', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.texthome, 'callback', 'ceva = ''dlgList_in_texthome''; IncearcaCeva');

% - edit htmltxt switch lang
pz(22,:) =pz(20,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textlanglabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(22,:), 'string', 'text lang:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(23,:) = pz(22,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(23,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textlang = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(23,:), 'string', 'see this page in <ro>', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textlang, 'callback', 'ceva = ''dlgList_in_textlang''; IncearcaCeva');

% - edit html text jos 
pz(24,:) =pz(22,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textjoslabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(24,:), 'string', 'text jos:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(25,:) = pz(24,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(25,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textjos = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(25,:), 'string', 'text jos', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textjos, 'callback', 'ceva = ''dlgList_in_textjos''; IncearcaCeva');

% - edit html text sus 
pz(26,:) =pz(24,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textsuslabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(26,:), 'string', 'text sus:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(27,:) = pz(26,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(27,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textsus = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(27,:), 'string', 'text sus', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textsus, 'callback', 'ceva = ''dlgList_in_textsus''; IncearcaCeva');

% - edit html titlu
pz(28,:) =pz(26,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.texttitlulabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(28,:), 'string', 'titlu:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(29,:) = pz(28,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(29,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.texttitlu = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(29,:), 'string', 'titlu', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.texttitlu, 'callback', 'ceva = ''dlgList_in_texttitlu''; IncearcaCeva');

% - edit html author
pz(30,:) =pz(28,:) + [ 0 2*pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textautorlabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(30,:), 'string', 'author:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(31,:) = pz(30,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(31,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textautor = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(31,:), 'string', 'author', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textautor, 'callback', 'ceva = ''dlgList_in_textautor''; IncearcaCeva');

% - edit html font size
pz(32,:) = pz(30,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontsizelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(32,:), 'string', 'size:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(33,:) = pz(32,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(33,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textfontsize = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(33,:), 'string', num2str(Options.FontSize), 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textfontsize, 'callback', 'ceva = ''dlgList_in_textfontsize''; IncearcaCeva');

% - edit html font face
pz(34,:) =pz(32,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontfacelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(34,:), 'string', 'font face:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(35,:) = pz(34,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(35,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textfontface = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(35,:), 'string', Options.FontFace, 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textfontface, 'callback', 'ceva = ''dlgList_in_textfontface''; IncearcaCeva');

% -------------------
% - edit html colors
% -------------------

% - alink colour
pz(36,:) =pz(34,:) + [ 0 2*pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontfacelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(36,:), 'string', 'active link:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(37,:) = pz(36,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(37,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textcolouralink = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(37,:), 'string', Options.Colour.alink, 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textcolouralink, 'callback', 'ceva = ''dlgList_in_textcolouralink''; IncearcaCeva');
% - verify alink color
[rgb, CorrectedColour] = uNet2Dec(Options.Colour.alink); set(ctrl.textcolouralink, 'backgroundcolor', rgb); Options.Colour.alink = CorrectedColour; set(ctrl.textcolouralink, 'String', Options.Colour.alink); 

% - vlink colour
pz(38,:) =pz(36,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontfacelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(38,:), 'string', 'followed link', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(39,:) = pz(38,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(39,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textcolourvlink = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(39,:), 'string', Options.Colour.vlink, 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textcolourvlink, 'callback', 'ceva = ''dlgList_in_textcolourvlink''; IncearcaCeva');
% - verify vlink colour
[rgb, CorrectedColour] = uNet2Dec(Options.Colour.vlink); set(ctrl.textcolourvlink, 'backgroundcolor', rgb); Options.Colour.vlink = CorrectedColour; set(ctrl.textcolourvlink, 'String', Options.Colour.vlink); 

% - link colour
pz(40,:) =pz(38,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontfacelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(40,:), 'string', '  link :', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(41,:) = pz(40,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(41,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textcolourlink = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(41,:), 'string', Options.Colour.link, 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textcolourlink, 'callback', 'ceva = ''dlgList_in_textcolourlink''; IncearcaCeva');
% - verify link colour
[rgb, CorrectedColour] = uNet2Dec(Options.Colour.link); set(ctrl.textcolourlink, 'backgroundcolor', rgb); Options.Colour.link = CorrectedColour; set(ctrl.textcolourlink, 'String', Options.Colour.link); 

% - bg colour
pz(42,:) =pz(40,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontfacelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(42,:), 'string', 'background:', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(43,:) = pz(42,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(43,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textcolourbg = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(43,:), 'string', Options.Colour.bg, 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textcolourbg, 'callback', 'ceva = ''dlgList_in_textcolourbg''; IncearcaCeva');
% - verify bg colour
[rgb, CorrectedColour] = uNet2Dec(Options.Colour.bg); set(ctrl.textcolourbg, 'backgroundcolor', rgb); Options.Colour.bg = CorrectedColour; set(ctrl.textcolourbg, 'String', Options.Colour.bg); 

% - text colour
pz(44,:) =pz(42,:) + [ 0 pz_pref.minheight+pz_pref.minclear 0 0 ];
ctrl.textfontfacelabel = uicontrol(h.DlgListContact, 'style', 'text', 'position', pz(44,:), 'string', ' text :', 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
pz(45,:) = pz(44,:) + [pz_pref.minlength+pz_pref.minclear  0 0 0 ];
pz(45,3) = pz_pref.treime - 3*pz_pref.minclear - pz_pref.minlength;
ctrl.textcolourtext = uicontrol(h.DlgListContact, 'style', 'edit', 'position', pz(45,:), 'string', Options.Colour.text, 'FontName', 'pz_pref.fontname', 'HorizontalAlignment', 'left');
set(ctrl.textcolourtext, 'callback', 'ceva = ''dlgList_in_textcolourtext''; IncearcaCeva');
% - verify text colour
[rgb, CorrectedColour] = uNet2Dec(Options.Colour.text); set(ctrl.textcolourtext, 'backgroundcolor', rgb); Options.Colour.text = CorrectedColour; set(ctrl.textcolourtext, 'String', Options.Colour.text); 
clear rgb CorrectedColour

% --- niste initializari
set(ctrl.lista, 'value', Nav.image_index);
%ceva = 'dlgList_disp_file'; IncearcaCeva;
ceva = 'dlgList_disp_text'; IncearcaCeva;


% note : 
% de la x=400 incolo sint optiunile html de-acum

Contact us