# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,117,80)
  Icon = Picture["icon:/medium/clock"]
  Arrangement = Arrange.Vertical
  Spacing = True
  { panToolbar ToolBar
    MoveScaled(1,2,110,4)
    Key = "profile"
    Text = ("Profile")
    Border = True
    Separator = True
    { btnSave ToolButton
      MoveScaled(1,0,15,4)
      ToolTip = ("Save profile")
      Action = ".save-as"
      AutoResize = True
      Text = ("Save profile") & "..."
      Picture = Picture["icon:/small/save-as"]
    }
    { Separator1 Separator
      MoveScaled(20,0,1,4)
    }
    { btnPrev ToolButton
      MoveScaled(23,0,4,4)
      ToolTip = ("Go back")
      Action = ".previous"
      Picture = Picture["icon:/small/left"]
    }
    { btnNext ToolButton
      MoveScaled(27,0,4,4)
      ToolTip = ("Go forward")
      Action = ".next"
      Picture = Picture["icon:/small/right"]
    }
    { btnPercent ToolButton
      MoveScaled(31,0,4,4)
      ToolTip = ("Show relative durations")
      Action = ".percent"
      Picture = Picture["icon:/small/percent"]
      Toggle = True
    }
    { btnAverage ToolButton
      MoveScaled(35,0,4,4)
      ToolTip = ("Show average")
      Action = ".mean"
      Picture = Picture["icon:/small/average"]
      Toggle = True
    }
  }
  { splProfile Splitter
    MoveScaled(7,16,96,58)
    Expand = True
    Spacing = True
    Border = False
    { gvwProfile GridView
      MoveScaled(2,7,41,29)
      Background = Color.TextBackground
      Mode = Select.Single
      Header = GridView.Horizontal
      ScrollBar = Scroll.Vertical
      AutoResize = False
      Sorted = True
    }
    { panCurrent VBox
      MoveScaled(50,3,35,49)
      Visible = False
      Spacing = True
      { panCurrentFrame Panel
        MoveScaled(1,1,29,3)
        Arrangement = Arrange.Fill
        Border = Border.Styled
        { lblCurrent TextLabel
          MoveScaled(0,0,24,3)
          Font = Font["Bold"]
          Padding = 4
          Alignment = Align.Normal
          Wrap = False
        }
      }
      { splSource VSplit
        MoveScaled(1,7,33,41)
        Expand = True
        Spacing = True
        Border = False
        { tabInfo TabPanel
          MoveScaled(1,2,29,17)
          Expand = True
          Arrangement = Arrange.Fill
          Border = False
          Count = 2
          Highlight = True
          Separator = False
          Index = 0
          Text = ("Callees")
          { gvwCalled GridView
            MoveScaled(1,1,27,11)
            Background = Color.TextBackground
            Mode = Select.Single
            Header = GridView.Horizontal
            ScrollBar = Scroll.Vertical
            AutoResize = False
            Sorted = True
          }
          Index = 1
          Text = ("Callers")
          { gvwCaller GridView
            MoveScaled(1,1,27,11)
            Background = Color.TextBackground
            Mode = Select.Single
            Header = GridView.Horizontal
            ScrollBar = Scroll.Vertical
            AutoResize = False
            Sorted = True
          }
          Index = 0
        }
        { panSource Panel
          MoveScaled(1,20,29,20)
          Background = Color.TextBackground
          Arrangement = Arrange.Horizontal
          Border = Border.Styled
          { gvwSource GridView
            MoveScaled(1,1,7,14)
            Background = Color.Transparent
            Border = False
            Mode = Select.Single
            Grid = False
            Header = GridView.Horizontal
            ScrollBar = Scroll.None
          }
          { Separator4 Separator
            MoveScaled(9,1,0,14)
          }
          { Panel4 VBox
            MoveScaled(10,1,18,15)
            Expand = True
            { panSourceHeader Panel
              MoveScaled(2,1,10,1)
            }
            { Separator6 Separator
              MoveScaled(2,3,11,0)
            }
            { Panel5 HBox
              MoveScaled(1,4,16,10)
              Expand = True
              { panSepSource Panel
                MoveScaled(2,1,1,8)
                Visible = False
                Background = Color.TextBackground
              }
              { edtSource TextEditor
                MoveScaled(4,1,11,8)
                Expand = True
                Border = False
                ScrollBar = Scroll.Vertical
                ReadOnly = True
                ShowCursor = False
              }
            }
          }
        }
      }
    }
  }
}

# Gambas Action File 3.0

{ Actions
  { Action mean
    Text = "Show average"
    Picture = "icon:/small/average"
  }
  { Action next
    Text = "Go forward"
    Picture = "icon:/small/right"
  }
  { Action percent
    Text = "Show relative durations"
    Picture = "icon:/small/percent"
  }
  { Action previous
    Text = "Go back"
    Picture = "icon:/small/left"
  }
  { Action save-as
    Text = "Save profile"
    Picture = "icon:/small/save-as"
  }
}

{ Toolbars
  { Toolbar profile
    Text = "Profile"
    List = "save-as,previous,next,percent,mean"
    Default = "save-as,|,previous,next,percent,mean"
  }
}
