~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/metanet/ge_do_options.sci

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function ge_do_options()
 
2
//Copyright INRIA
 
3
//Author : Serge Steer 2002
 
4
 
 
5
  execstr('global EGdata_'+w+';EGdata=EGdata_'+w)
 
6
  node=list('Nodes',EGdata.NodeId+1,['Nothing','Number','Name','Demand','Label'])
 
7
  arc=list('Arcs',EGdata.ArcId+1,['Nothing','Number','Name','Cost','Min cap','Max cap',..
 
8
                     'Length', 'Quadratic weight','Quadratic origin', ...
 
9
                    'Weight','Label'])
 
10
  rep=x_choices("Select information to display",list(node,arc))
 
11
  
 
12
  if EGdata.NodeId<>rep(1)-1 | ...
 
13
        EGdata.ArcId<>rep(2)-1 then
 
14
    EGdata.NodeId=rep(1)-1
 
15
    EGdata.ArcId=rep(2)-1
 
16
    execstr('EGdata_'+w+'=EGdata')
 
17
    GraphList=EGdata.GraphList
 
18
    xbasc()
 
19
    ge_set_winsize()
 
20
    ge_drawobjs(GraphList),
 
21
  end
 
22
endfunction