classdef CodedImageItemCollection < CodedItemCollection
    
    methods
        
        function fcc(obj)
            pairs=obj.makepairs;
            npairs=size(pairs,1);
            fh=figure('units','normalized','outerposition',[0 0 1 1]);
            for iPair=1:npairs,
                i1=pairs(iPair,1);
                i2=pairs(iPair,2);
                figure(fh);
                subplot(1,2,1);
                obj.getelem(i1).show;
                subplot(1,2,2);
                obj.getelem(i2).show;
                
                choice = questdlg('Melyik kep magasabb minosegu ?', ...
                    'Valassz', ...
                    'Bal','Jobb','Bal');
                switch choice
                    case 'Bal'
                        obj.getelem(i1).setscore(obj.getelem(i1).getscore+1);
                    case 'Jobb'
                        obj.getelem(i2).setscore(obj.getelem(i2).getscore+1);
                end
                
            end
        end
        
    end
    
end
