亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? addremovelist.m

?? 使用MATLAB編寫的GUI程序 可實現list菜單的增減
?? M
?? 第 1 頁 / 共 2 頁
字號:
                        error('The %s parameter value must be a cell array of strings of length 2',parName)
                    else
                        set(handles.leftListName,'String',parVal{1})
                        set(handles.rightListName,'String',parVal{2})
                    end
                case 4 % Window title
                    if ~ischar(parVal)
                        error('The %s parameter value must be a string',parName)
                    else
                        set(handles.mainFigure,'Name',parVal)
                    end
                case 5 % Multiselection
                    if ~islogical(parVal)
                        error('The %s parameter value must be either true or false',parName)
                    else
                        if parVal
                            set(handles.allowMultiSelect,'Value',1)
                            handles.multi=true;
                        else
                            set(handles.allowMultiSelect,'Value',0)
                            handles.multi=false;
                        end
                    end
                case 6 % Keep contents and corresponding indices sorted
                    if ~islogical(parVal)
                        error('The %s parameter value must be either true or false',parName)
                    else
                        if parVal
                            set(handles.sortLists,'Value',1)
                            handles.sort=true;
                            handles.rightListContents=sort(handles.rightListContents);
                            handles.leftListContents=sort(handles.leftListContents);
                        else
                            set(handles.sortLists,'Value',0)
                            handles.sort=false;
                        end
                    end
                    
            end
        end
    end
end

% Initialize the listboxes (fill) and the indices of items
set(handles.leftList,'String',handles.leftListContents,'Value',1)
if handles.multi
    set(handles.leftList,'Max',length(handles.leftListContents))
end
if ~isempty(handles.rightListContents)
    set(handles.rightList,'String',handles.rightListContents,'Value',1)
    set(handles.removeElement,'Enable','on')
    if handles.multi
        set(handles.rightList,'Max',length(handles.rightListContents))
    end
    handles.indflag=true;
end
handles.leftIndices=1:length(handles.leftListContents);
handles.rightIndices=[];

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes addremovelist wait for user response (see UIRESUME)
uiwait(handles.mainFigure);


% --- Outputs from this function are returned to the command line.
function varargout = addremovelist_OutputFcn(hObject, eventdata, handles) 

% Handles button press
if (get(handles.cancelButton,'Value')==0)
    delete(handles.mainFigure);
elseif (get(handles.okButton,'Value')==0)
    delete(handles.mainFigure);
end

% Get default command line output from handles structure
varargout{1}=handles.rightContents;
varargout{2}=handles.leftContents;
if ~handles.indflag
    varargout{3}=handles.rightIndices;
    varargout{4}=handles.leftIndices;
end


%%%%%%%%%%%%%%%%%%% BEGIN LISTBOXES %%%%%%%%%%%%%%%%%%%%

% --- Executes on selection change in leftList.
function leftList_Callback(hObject, eventdata, handles)


% --- Executes during object creation, after setting all properties.
function leftList_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end


% --- Executes on selection change in rightList.
function rightList_Callback(hObject, eventdata, handles)


% --- Executes during object creation, after setting all properties.
function rightList_CreateFcn(hObject, eventdata, handles)

if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
    set(hObject,'BackgroundColor','white');
end

%%%%%%%%%%%%%%%%%%% END LISTBOXES %%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%% BEGIN LISTBOX CONTROL BUTTONS %%%%%%%%%%%%%%%%%%%%

% --- Executes on button press in addElement.
function addElement_Callback(hObject, eventdata, handles)

% Determine what remains and what is to be added
leftNames=get(handles.leftList,'String');
leftToAddInd=get(handles.leftList,'Value');
leftToAddNames=leftNames(leftToAddInd);

% Do the job
oldstr=get(handles.rightList,'String');
addstr=leftToAddNames;
verify=ismember(addstr,oldstr);
if isempty(oldstr)
    newstr=[oldstr;addstr];
elseif length(verify)==1
    if ~ismember(addstr,oldstr)
        newstr=[oldstr;addstr];
    else
        newstr=oldstr;
    end
else
    newstr=[oldstr;addstr];
end

% Update the right list...
set(handles.rightList,'String',newstr)
% Sort it if wanted
if handles.sort
    neweststr=sort(newstr);
    set(handles.rightList,'String',neweststr)
end
% Handle multiple selection possibility
if handles.multi
    set(handles.rightList,'Max',length(newstr))
end

% Update the left list by removing elements
remaining=leftNames;
remaining(leftToAddInd)=[];
set(handles.leftList,'String',remaining,'Value',1)
% Sort it if wanted
if handles.sort
    [remainingnew,remainind]=sort(remaining);
    set(handles.leftList,'String',remainingnew,'Value',1)
end
% Handle multiple selection possibility
if handles.multi
    set(handles.leftList,'Max',length(remaining))
end

% Fix the final indices vectors
if ~handles.indflag
    if ~handles.sort
        newindices=handles.leftIndices(leftToAddInd);
        handles.leftIndices(leftToAddInd)=[];
        handles.rightIndices=[handles.rightIndices,newindices];
    else
        newindices=handles.leftIndices(leftToAddInd);
        handles.leftIndices(leftToAddInd)=[];
        handles.leftIndices=handles.leftIndices(remainind);
        handles.rightIndices=sort([handles.rightIndices,newindices]);
    end
end

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % if size(handles.leftIndices,1)>size(handles.leftIndices,2)
% %     handles.leftIndices=handles.leftIndices';
% %     handles.rightIndices=handles.rightIndices';
% % end
% msgleft=['The left indices are : ',num2str(handles.leftIndices)];
% msgright=['The right indices are : ',num2str(handles.rightIndices)];
% disp(msgleft)
% disp(msgright)
% disp(' ')
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Manage Add/Remove buttons
if ~isempty(get(handles.rightList,'String'))
    set(handles.removeElement,'Enable','on')
end
if isempty(get(handles.leftList,'String'))
    set(handles.addElement,'Enable','off')
end

% Update the output strings
handles.leftContents=get(handles.leftList,'String');
handles.rightContents=get(handles.rightList,'String');
guidata(hObject,handles);


% --- Executes on button press in removeElement.
function removeElement_Callback(hObject, eventdata, handles)

% Determine what remains and what is to be added
rightNames=get(handles.rightList,'String');
rightToRemoveInd=get(handles.rightList,'Value');
rightToRemoveNames=rightNames(rightToRemoveInd);

% Do the job
oldstr=get(handles.leftList,'String');
addstr=rightToRemoveNames;
verify=ismember(addstr,oldstr);
if isempty(oldstr)
    newstr=[oldstr;addstr];
elseif length(verify)==1
    if ~ismember(addstr,oldstr)
        newstr=[oldstr;addstr];
    else
        newstr=oldstr;
    end
else
    newstr=[oldstr;addstr];
end

% Update the reft list...
set(handles.leftList,'String',newstr)
% Sort it if wanted
if handles.sort
    neweststr=sort(newstr);
    set(handles.leftList,'String',neweststr)
end
% Handle multiple selection possibility
if handles.multi
    set(handles.leftList,'Max',length(newstr))
end

% Update the right list by removing elements
remaining=rightNames;
remaining(rightToRemoveInd)=[];
set(handles.rightList,'String',remaining,'Value',1)
% Sort it if wanted
if handles.sort
    [remainingnew,remainind]=sort(remaining);
    set(handles.rightList,'String',remainingnew,'Value',1)
end
% Handle multiple selection possibility
if handles.multi
    set(handles.rightList,'Max',length(remaining))
end

% Fix the final indices vectors
if ~handles.indflag
    if ~handles.sort
        newindices=handles.rightIndices(rightToRemoveInd);
        handles.rightIndices(rightToRemoveInd)=[];
        handles.leftIndices=[handles.leftIndices,newindices];
    else
        newindices=handles.rightIndices(rightToRemoveInd);
        handles.rightIndices(rightToRemoveInd)=[];
        handles.rightIndices=handles.rightIndices(remainind);
        handles.leftIndices=sort([handles.leftIndices,newindices]);
    end
end

% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% % if size(handles.leftIndices,1)>size(handles.leftIndices,2)
% %     handles.leftIndices=handles.leftIndices';
% %     handles.rightIndices=handles.rightIndices';
% % end
% msgleft=['The left indices are : ',num2str(handles.leftIndices)];
% msgright=['The right indices are : ',num2str(handles.rightIndices)];
% disp(msgleft)
% disp(msgright)
% disp(' ')
% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Manage Add/Remove buttons
if ~isempty(get(handles.leftList,'String'))
    set(handles.addElement,'Enable','on')
end
if isempty(get(handles.rightList,'String'))
    set(handles.removeElement,'Enable','off')
end

% Update the output strings
handles.leftContents=get(handles.leftList,'String');
handles.rightContents=get(handles.rightList,'String');
guidata(hObject,handles);

%%%%%%%%%%%%%%%%%% BEGIN LISTBOX CONTROL BUTTONS %%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%% BEGIN OPTIONS PANEL %%%%%%%%%%%%%%%%%%%%

% --- Executes on button press in allowMultiSelect.
function allowMultiSelect_Callback(hObject, eventdata, handles)

if get(hObject,'Value')==1
    % Multiple selection allowed, maximum number of selections to length of contents
    handles.multi=true;
    set(handles.leftList,'Max',length(handles.leftContents))
else
    % Mutlple selection not allowed, current selection becomes the first item of possibly
    % a vector of selected items
    handles.multi=false;
    vals=get(handles.leftList,'Value');
    set(handles.leftList,'Value',vals(1),'Max',1)
end
guidata(hObject,handles);


% --- Executes on button press in sortLists.
function sortLists_Callback(hObject, eventdata, handles)

if get(hObject,'Value')==1
    handles.sort=true;
else
    handles.sort=false;
end
guidata(hObject,handles);

%%%%%%%%%%%%%%%%%% END OPTIONS PANEL %%%%%%%%%%%%%%%%%%%%


%%%%%%%%%%%%%%%%%% BEGIN CLOSE BUTTONS %%%%%%%%%%%%%%%%%%%%

% --- Executes on button press in okButton.
function okButton_Callback(hObject, eventdata, handles)

uiresume(handles.mainFigure);


% --- Executes on button press in cancelButton.
function cancelButton_Callback(hObject, eventdata, handles)

% Return default values
handles.leftContents=handles.leftListContents;
handles.rightContents=handles.rightListContents;
if ~handles.indflag
    handles.leftIndices=1:length(handles.leftListContents);
    handles.rightIndices=[];
end
guidata(hObject,handles);
uiresume(handles.mainFigure);

%%%%%%%%%%%%%%%%%% END CLOSE BUTTONS %%%%%%%%%%%%%%%%%%%%

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一区精品| 日韩一区在线看| 精品粉嫩超白一线天av| 中文字幕一区二区三| 另类综合日韩欧美亚洲| 色www精品视频在线观看| 精品国产一区久久| 亚洲电影激情视频网站| 不卡av免费在线观看| 精品入口麻豆88视频| 亚洲成年人影院| 在线免费av一区| 国产精品久久久久久久久图文区| 日韩av一级片| 欧美精品久久久久久久久老牛影院| 中文字幕精品在线不卡| 精品在线你懂的| 欧美高清一级片在线| 亚洲视频狠狠干| 国产成人在线看| 欧美不卡视频一区| 日韩电影一区二区三区四区| 一本色道久久综合亚洲精品按摩| 欧美经典一区二区三区| 国产在线精品视频| 日韩欧美一区中文| 日本不卡在线视频| 51午夜精品国产| 午夜欧美一区二区三区在线播放| 91福利资源站| 亚洲一区二区三区自拍| 欧美视频在线一区二区三区 | 一区二区三区在线视频观看| 国产精品影视网| 久久久久99精品一区| 高清成人在线观看| 欧美韩日一区二区三区四区| 国产成人久久精品77777最新版本| 久久综合色鬼综合色| 狠狠色狠狠色合久久伊人| 精品免费日韩av| 极品少妇xxxx精品少妇偷拍| 久久综合九色综合久久久精品综合 | 色诱亚洲精品久久久久久| 国产精品成人免费| 91免费国产在线| 一区二区在线观看av| 欧美日韩国产综合视频在线观看 | 欧美在线一区二区| 亚洲sss视频在线视频| 欧美一区二区三区色| 久久精品国产一区二区三区免费看| 日韩一级二级三级精品视频| 激情五月播播久久久精品| 国产女人18水真多18精品一级做| 成人性生交大片免费看在线播放| 日韩一区日韩二区| 欧美久久久影院| 激情五月婷婷综合| 国产精品视频一二三| 在线精品视频免费播放| 美国欧美日韩国产在线播放| 中文字幕乱码久久午夜不卡| 欧美最猛性xxxxx直播| 精品一二三四区| 综合久久给合久久狠狠狠97色 | 色94色欧美sute亚洲线路二| 日韩精品91亚洲二区在线观看 | 国产福利视频一区二区三区| 一区二区在线免费| 精品卡一卡二卡三卡四在线| 99热在这里有精品免费| 日韩福利电影在线| 国产精品白丝在线| 欧美一区欧美二区| caoporn国产精品| 日产欧产美韩系列久久99| 国产欧美一区二区三区在线老狼| 在线日韩av片| 懂色中文一区二区在线播放| 午夜精彩视频在线观看不卡| 国产精品嫩草久久久久| 日韩欧美一区二区免费| 91久久线看在观草草青青| 极品美女销魂一区二区三区 | 毛片不卡一区二区| 亚洲色图欧美激情| 国产亚洲精品7777| 欧美一区二区啪啪| 91久久精品网| www.99精品| 国产乱人伦精品一区二区在线观看| 亚洲日韩欧美一区二区在线| 欧美xxxxx牲另类人与| 欧美体内she精视频| 成人动漫中文字幕| 国产呦萝稀缺另类资源| 免费人成在线不卡| 亚洲成人av福利| 亚洲精品国产成人久久av盗摄| 国产欧美精品国产国产专区| 精品国产成人系列| 日韩一区二区免费高清| 欧美日韩日日骚| 欧美三级电影在线看| 色哟哟在线观看一区二区三区| 粉嫩一区二区三区性色av| 国产综合色在线视频区| 麻豆精品新av中文字幕| 青娱乐精品视频| 日韩激情av在线| 亚洲午夜免费电影| 亚洲最快最全在线视频| 亚洲乱码精品一二三四区日韩在线| 国产精品乱码一区二区三区软件| 久久久久九九视频| 国产精品久久看| 国产精品国产三级国产普通话蜜臀 | 一区二区三区中文字幕精品精品| 国产欧美一区二区精品秋霞影院| 精品久久国产老人久久综合| 日韩三级精品电影久久久| 欧美一二三四在线| 日韩一卡二卡三卡国产欧美| 日韩欧美国产1| 国产色产综合产在线视频 | 欧美电视剧免费观看| 欧美一区在线视频| 亚洲精品在线观看网站| 日本一区二区三区四区| 综合久久国产九一剧情麻豆| 亚洲一区影音先锋| 日本不卡在线视频| 国产成人精品影院| 色婷婷久久综合| 91精品在线麻豆| 精品va天堂亚洲国产| 中文字幕不卡一区| 一区二区三区欧美日韩| 日本va欧美va精品发布| 国产精品综合av一区二区国产馆| 成人app下载| 欧美精品一级二级| 久久在线免费观看| 亚洲人成网站精品片在线观看| 午夜视频在线观看一区二区| 黄色日韩网站视频| 色激情天天射综合网| 日韩免费观看高清完整版| 国产日产欧美精品一区二区三区| 亚洲精品国产无天堂网2021| 青青草原综合久久大伊人精品| 国产精品一区二区三区四区| 色菇凉天天综合网| 精品99999| 亚洲永久精品大片| 国产91综合网| 欧美精品在线视频| 国产精品美女久久福利网站| 石原莉奈在线亚洲二区| 不卡视频一二三| 欧美tk—视频vk| 亚洲免费视频成人| 国产精品自拍av| 欧美日韩国产免费一区二区| 中文一区二区完整视频在线观看| 午夜国产精品一区| 91香蕉视频污在线| 久久午夜羞羞影院免费观看| 亚洲线精品一区二区三区| 床上的激情91.| 日韩精品一区二区三区三区免费| 亚洲一区二区免费视频| 成人av电影免费在线播放| 欧美精品一区二| 日日嗨av一区二区三区四区| 一本大道久久精品懂色aⅴ| 国产嫩草影院久久久久| 国产一区二区三区香蕉| 欧美一激情一区二区三区| 亚洲国产日韩a在线播放| 成人午夜电影网站| 久久久久久亚洲综合影院红桃| 日本在线不卡视频| 欧美日韩成人高清| 亚洲综合男人的天堂| 91网页版在线| 国产精品大尺度| 北条麻妃一区二区三区| 国产区在线观看成人精品 | 国产精品网站在线观看| 久久www免费人成看片高清| 欧美日韩第一区日日骚| 亚洲高清视频在线| 欧美中文字幕久久| 亚洲国产一区二区三区| 色狠狠综合天天综合综合| 亚洲精选一二三| 色综合天天天天做夜夜夜夜做| 国产精品成人在线观看|