Construção de Interfaces Gráficas Programa/Utilizador

Documentos relacionados
Controles de entrada : caixas de seleção, botões de opção, listas suspensas, caixas de lista, botões, alternar, campos de texto, campo de data

CANape/vSignalyzer. Data Mining and Report Examples Offline Analysis V

Tutorial para Phred/Phrap/Consed Tutorial

VGM. VGM information. ALIANÇA VGM WEB PORTAL USER GUIDE June 2016

User Guide Manual de Utilizador

COMPUTAÇÃO E PROGRAMAÇÃO

Módulo 1: Introdução ao MatLab. (scripts e functions) Interfaces Gráficas (GUIs)

COMPUTAÇÃO E PROGRAMAÇÃO

MANUAL PRATICO DO PLANO DE PROJETO: UTILIZANDO O PMBOK GUIDE BY RICARDO VIANA VARGAS

Aqui pode escolher o Sistema operativo, e o software. Para falar, faça download do Cliente 2.

VGM. VGM information. ALIANÇA VGM WEB PORTAL USER GUIDE September 2016

BR localization: Hotfix 002. Technical documentation Documentação Técnica Version Nov 27, de novembro de 2018

MySQL: Comece com o principal banco de dados open source do mercado (Portuguese Edition)

Métodos Formais em Engenharia de Software. VDMToolTutorial

User's Guide. Manual de Utilizador

A necessidade da oração (Escola da Oração) (Portuguese Edition)

Como Mudar a Senha do Roteador Pelo IP o.1.1. Configure e Altere a Senha do seu Roteador acessando o IP Acesse o Site e Confira!

Mitologia - Deuses, Heróis e Lendas (Portuguese Edition)

Guia para criar aplicações simples em APEX/ Guide to create simple Apex applications (perte I)

Meditacao da Luz: O Caminho da Simplicidade

Uma solução possível para garantir, em ambiente APEX, a consistência duma estrutura ISA total e disjuntiva.

PODER DO ESPIRITO SANTO, O BY BILLY GRAHAM DOWNLOAD EBOOK : PODER DO ESPIRITO SANTO, O BY BILLY GRAHAM PDF

ATLAS DE ACUPUNTURA VETERINáRIA. CãES E GATOS (EM PORTUGUESE DO BRASIL) BY CHOO HYUNG KIM

O Ambiente GUIDE do MATLAB

Computação e Programação

Computação e Programação 2009 / 2010

Transtorno de Personalidade Borderline Mais de 30 segredos para retomar sua vida Ao lidar com TPB (Portuguese Edition)

Direito Processual Civil (Coleção Sucesso Concursos Públicos e OAB) (Portuguese Edition)

HISTOLOGIA E BIOLOGIA CELULAR. UMA INTRODUçãO À PATOLOGIA (EM PORTUGUESE DO BRASIL) BY ABRAHAM L. KIERSZENBAUM

O Uso do Inglês para Resolver Tarefas

Conversação Para Viagem - Inglês (Michaelis Tour) (Portuguese Edition)

A ENTREVISTA COMPREENSIVA: UM GUIA PARA PESQUISA DE CAMPO (PORTUGUESE EDITION) BY JEAN-CLAUDE KAUFMANN

Livro do Desassossego

Biscuit - potes (Coleção Artesanato) (Portuguese Edition)

Farmacologia na Pratica de Enfermagem (Em Portuguese do Brasil)

NOVO SISTEMA DE CORREIO ELETRONICO PARA OS DOMINIOS ic.uff.br & dcc.ic.uff.br

Transformando Pessoas - Coaching, PNL e Simplicidade no processo de mudancas (Portuguese Edition)

Manual dos locutores esportivos: Como narrar futebol e outros esportes no rádio e na televisão (Portuguese Edition)

Trabalho de AMSR. Especificação e Verificação de uma Câmara Fotográfica Digital. Problema a Resolver FEUP/MRSC/AMSR MPR. » Problema a concurso

A oração de Jabez: Alcançando a bênção de Deus (Portuguese Edition)

PURCHASE-TO-PAY SOLUTIONS

PL/SQL: Domine a linguagem do banco de dados Oracle (Portuguese Edition)

Introdução A Delphi Com Banco De Dados Firebird (Portuguese Edition)

CODIGOS CONTROLE RS232 Matrix HDMI 4x2 Control EDID/RS232 (GB )

Manual Steps for SAP note

A ENTREVISTA COMPREENSIVA: UM GUIA PARA PESQUISA DE CAMPO (PORTUGUESE EDITION) BY JEAN-CLAUDE KAUFMANN

Easy Linux! FUNAMBOL FOR IPBRICK MANUAL. IPortalMais: a «brainware» company Manual

As 10 bobagens mais comuns que as pessoas inteligentes cometem (Portuguese Edition)

Vendors Enquiries for RFP 003/2015

Medicina e Meditação - Um Médico Ensina a Meditar (Portuguese Edition)

Guia para criar aplicações simples em APEX/ Guide to create simple Apex applications (parte II)

Aprendi A Fazer Sexo Na Bíblia (Portuguese Edition)

As 100 melhores piadas de todos os tempos (Portuguese Edition)

Estatística Aplicada: Administração, Economia e Negócios (Portuguese Edition)

Introdução A Delphi Com Banco De Dados Firebird (Portuguese Edition)

IDE 2.5" hd:basic. hdd enclosure caixa externa para disco rígido

AutoCAD LT: Construido para desenhar

ATLAS DE ACUPUNTURA VETERINáRIA. CãES E GATOS (EM PORTUGUESE DO BRASIL) BY CHOO HYUNG KIM

Bíblia do Obreiro - Almeida Revista e Atualizada: Concordância Dicionário Auxílios Cerimônias (Portuguese Edition)

Poder sem limites - o caminho do sucesso pessoal pela programação neurolinguística

CODIGOS CONTROLE RS232 Matrix HDMI 4x4 Control EDID/RS232 (GB )

Esboços e Sermões Completos para Ocasiões e Datas Especiais: Mensagens Bíblicas para Todas as Datas da Vida Cristã (Portuguese Edition)

Como Falar no Rádio - Prática de Locução Am e Fm (Portuguese Edition)

hdd enclosure caixa externa para disco rígido

Guião para criar aplicações simples em APEX (parte I) Guide to create simple Apex applications (part I)

Bíblia de Estudo Conselheira - Gênesis: Acolhimento Reflexão Graça (Portuguese Edition)

Planejamento, Recrutamento e Seleção de Pessoal: Como Agregar Talentos à Empresa (Série Recursos Humanos) (Portuguese Edition)

Monteiro Lobato, Livro A Livro - Obra Adulta (Portuguese Edition)


Curso Completo de Memorização (Portuguese Edition)

Pesquisa de Marketing: Uma Orientação Aplicada (Portuguese Edition)

Como escrever para o Enem: roteiro para uma redação nota (Portuguese Edition)

Da Emoção à Lesão: um Guia de Medicina Psicossomática (Portuguese Edition)

GERENCIAMENTO DA ROTINA DO TRABALHO DO DIA A DIA (PORTUGUESE EDITION) BY VICENTE FALCONI

COMO ESCREVER PARA O ENEM: ROTEIRO PARA UMA REDAçãO NOTA (PORTUGUESE EDITION) BY ARLETE SALVADOR

GERENCIAMENTO DA ROTINA DO TRABALHO DO DIA-A-DIA (EM PORTUGUESE DO BRASIL) BY VICENTE FALCONI

BR localization: Hotfix 117. Technical documentation Documentação Técnica Version Fev 12, de fevereiro de 2019

Transcrição:

Construção de Interfaces Gráficas Programa/Utilizador Componentes das GUIs no MATLAB Estrutura da m-file para uma GUI Elementos de estilo Casos de Estudo Instituto Superior Técnico, Dep. de Engenharia Mecânica - ACCAII Exemplo: GUI controlsuite Disponível na pasta do MATLAB, subdirectoria "..\help\techdoc\creating_guis\examples" Abrir pela linha de comandos utilizando: guide controlsuite 2 1

Exemplo: GUI controlsuite 3 Exemplo: GUI controlsuite 4 2

Editor de GUIs: guide GUI do guide Editor de Toolbars de GUIs Toolbar do guide Componentes de GUIs 5 Componentes disponíveis no guide 6 3

Componente: Push Button Push Button Push buttons generate an action when clicked. For example, an OK button might apply settings and close a dialog box. When you click a push button, it appears depressed; when you release the mouse button, the push button appears raised. 7 Componente: Slider Slider Sliders accept numeric input within a specified range by enabling the user to move a sliding bar, which is called a slider or thumb. Users move the slider by clicking the slider and dragging it, by clicking in the trough, or by clicking an arrow. The location of the slider indicates the relative location within the specified range. 8 4

Componente: Radio Button Radio Button Radio buttons are similar to check boxes, but radio buttons are typically mutually exclusive within a group of related radio buttons. That is, when you select one button the previously selected button is deselected. To activate a radiobutton, click the mouse button on the object. The display indicates the state of the button. Use a button group to manage mutually exclusive radio buttons. 9 Componente: Check Box Check Box Check boxes can generate an action when checked and indicate their state as checked or not checked. Check boxes are useful when providing the user with a number of independent choices, for example, displaying a toolbar. 10 5

Componente: Edit Text Edit Text Edit text components are fields that enable users to enter or modify text strings. Use edit text when you want text as input. Users can enter numbers but you must convert them to their numeric equivalents. 11 Componente: Static Text Static Text Static text controls display lines of text. Statictext is typically used to label other controls, provide directions to the user, or indicate values associated with a slider. Users cannot changestatic text interactively. 12 6

Componente: Pop-Up Menu Pop-Up Menu Pop-up menus open to display a list of choices when users click the arrow. 13 Componente: List Box List Box List boxes display a list of items and enable users to select one or more items. 14 7

Componente: Toggle Button Toggle Button Toggle buttons generate an action and indicate whether they are turned on or off. When you clicka toggle button, it appears depressed, showingthat it is on. When you release the mouse button,the toggle button remains depressed until you click it a second time. When you do so, the buttonreturns to the raised state, showing that it is off. Use a button group to manage mutually exclusive toggle buttons. 15 Componente: Table Table Use the table button to create a table component. (Refer to the uitable function for more information on using this component.) 16 8

Componente: Axes Axes Axes enable your GUI to display graphics such as graphs and images. Like all graphics objects, axes have properties that you can set to control many aspects of its behavior and appearance(see Axes Properties in the MATLAB Graphics documentation) 17 Componente: Panel Panel Panels arrange GUI components into groups. By visually grouping related controls, panels can make the user interface easier to understand. Apanel can have a title and various borders.panel children can be user interface controls and axes as well as button groups and other panels. The position of each component within a panel is interpreted relative to the panel. If you move the panel, its children move with it and maintain their positions on the panel. 18 9

Componente: Button Group Button Group Button groups are like panels but are used to manage exclusive selection behavior for radio buttons and toggle buttons. 19 Componente: Toolbar Toolbar GUIDE Toolbar Editor You can create toolbars containing push buttons and toggle buttons. Use the GUIDE ToolbarEditor to create toolbar buttons. Choose between predefined buttons, such as Saveand Print, andbuttons which you customize with your own icons and callbacks. 20 10

Estrutura de uma GUI no MATLAB Figure: simple_gui.fig + M-file: simple_gui.m 21 Estrutura padrão da m-file de uma GUI 22 11

Exemplo: GUI controlsuite Comments 23 Exemplo: GUI controlsuite Initialization 24 12

Opening Function Exemplo: GUI controlsuite 25 Output Function Exemplo: GUI controlsuite 26 13

Exemplo: GUI controlsuite Component and figure callbacks (sample) 27 Utility / helper functions Exemplo: GUI controlsuite Não se aplica à GUI controlsuite 28 14

Template de uma callback (push button) Declaração da função de callback para a componente que disparou a chamada Argumentos de entrada. A sequência indicada é fixa. 29 Estrutura de dados dos argumentos OBJECT HANDLE (hobject): estrutura com atributos e propriedades (os mesmos visualizáveis no Property Inspector) da componente que disparou a callback. EVENT DATA (eventdata): estrutura com o histórico da sequência de evento até ao disparo da callback (não é utilizado por todas as componentes). HANDLES STRUCTURE (handles): apontador para uma estrutura com atributos e propriedades (os mesmos visualizáveis no Property Inspector) de todas as componentes existentes na GUI, bem como dados específicos da aplicação 30 15

Exemplo: GUI controlsuite 31 Exemplo: GUI controlsuite Push Button Toggle Button Ver os callbacks dos restantes componentes no ficheiro. 32 16

Elementos de Estilo Effective interfaces are visually apparent and forgiving, instilling in their users a sense of control. Users quickly see the breadth of their options, grasp how to achieve their goals, and do their work. Efficient interfaces do not concern the user with the inner workings of the system. Effective applications and services perform a maximum of work, while requiring a minimum of information from users. http://www.asktog.com/basics/firstprinciples.html 33 Elementos de Estilo "Less is more" Mies van der Rohe (while citing a poem by Robert Browning) 34 17

Casos de Estudo Desenvolver uma GUI que implementa uma máquina de somar. Analisar as seguintes GUIs (abrir pela linha de comandos) Simple GUI (>> guide simple_gui) controlsuite (>> guide controlsuite) Disponiveis na pasta do MATLAB, subdirectoria "..\help\techdoc\creating_guis\examples" 35 Referências Mathworks: Creating Graphical User Interfaces (buildgui.pdf) http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/buildgui.pdf Elementos de estilo: http://www.asktog.com/basics/firstprinciples.html http://www.fast-consulting.com/desktop.htm http://www.usabilitynet.org/management/b_design.htm 36 18