[DEVELOPMENT ENVIRONMENT]

* NEW: More dark theme icons.
* NEW: Fabien's version of the new logo.
* BUG: Image editor: Pasted images are not one pixel too big anymore.

[GB.DBUS.TRAYICON]
* BUG: Toggle menus triggered from the trayicon menu correctly raise the
  Click event
  
[GB.FORM]
* NEW: TabPanel: Clicking with the middle mouse button on a tab button now 
  closes it.


git-svn-id: svn://localhost/gambas/trunk@7317 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
Benoît Minisini 2015-09-16 21:37:04 +00:00
parent 03fd5166f1
commit 8665f8766d
44 changed files with 50 additions and 13 deletions

View file

@ -272,7 +272,7 @@
}
}
{ btnClose ToolButton
MoveScaled(1,1,4,4)
MoveScaled(0,0,4,4)
Background = Color.Background
Ignore = True
Picture = Picture["icon:/small/close"]

View file

@ -109,7 +109,7 @@
{ mnuWatch Menu
Action = ".watch"
Text = Shortcut(("Watch expression"), "W")
Picture = Picture["icon:/small/watch"]
Picture = Picture["img/16/watch.png"]
}
{ mnuSepBookmark Menu
}

View file

@ -1696,7 +1696,7 @@ Public Sub imvImage_Draw(hZoom As Image)
With $hPasteSelect.GetExtents()
If .Width > 0 And If .Height > 0 Then
hImage = New Image(Ceil(.Width) + 1, Ceil(.Height) + 1, Color.Transparent)
hImage = New Image(Ceil(.Width), Ceil(.Height), Color.Transparent)
Paint.Begin(hImage)
Paint.Brush = Paint.Image($hPaste)

View file

@ -446,9 +446,15 @@
Picture = Picture["img/draw/magic.png"]
Toggle = True
}
{ btnHide ToolButton
MoveScaled(102,0,4,4)
ToolTip = ("Hide selection")
Action = ".hide"
Picture = Picture["img/draw/hide.png"]
}
{ btnEditSelection ToolButton btnTool
Name = "btnEditSelection"
MoveScaled(103,0,4,4)
MoveScaled(106,0,4,4)
Tag = "change"
ToolTip = ("Edit selection")
Action = ".tool-change"
@ -456,13 +462,7 @@
Toggle = True
}
{ Separator8 Separator
MoveScaled(107,0,1,4)
}
{ btnHide ToolButton
MoveScaled(108,0,4,4)
ToolTip = ("Hide selection")
Action = ".hide"
Picture = Picture["img/draw/hide.png"]
MoveScaled(110,0,1,4)
}
{ btnInvert ToolButton
MoveScaled(111,0,4,4)
@ -741,7 +741,7 @@
{ Toolbars
{ Toolbar image
Text = "Image editor"
List = "save,reload,locked,undo,redo,zoom-in,zoom,zoom-out,zoom-normal,zoom-fit,grid,resize,rotate,copy,cut,tool-paste,tool-move,tool-draw,tool-erase,tool-line,tool-rectangle,tool-ellipse,tool-text,tool-magic,tool-change,hide,invert,duplicate,offset,crop,flip-h,flip-v,rotate-r,rotate-l"
Default = "save,reload,locked,undo,redo,|,zoom-in,zoom,zoom-out,zoom-normal,zoom-fit,grid,|,copy,cut,tool-paste,|,tool-move,tool-draw,tool-erase,tool-line,tool-rectangle,tool-ellipse,tool-text,tool-magic,tool-change,|,hide,invert,duplicate,offset,|,crop,flip-h,flip-v,rotate-r,rotate-l"
List = "save,reload,locked,undo,redo,zoom-in,zoom,zoom-out,zoom-normal,zoom-fit,grid,resize,rotate,copy,cut,tool-paste,tool-move,tool-draw,tool-erase,tool-line,tool-rectangle,tool-ellipse,tool-text,tool-magic,hide,tool-change,invert,duplicate,offset,crop,flip-h,flip-v,rotate-r,rotate-l"
Default = "save,reload,locked,undo,redo,|,zoom-in,zoom,zoom-out,zoom-normal,zoom-fit,grid,|,copy,cut,tool-paste,|,tool-move,tool-draw,tool-erase,tool-line,tool-rectangle,tool-ellipse,tool-text,tool-magic,hide,tool-change,|,invert,duplicate,offset,|,crop,flip-h,flip-v,rotate-r,rotate-l"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 375 B

After

Width:  |  Height:  |  Size: 406 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 399 B

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 179 B

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 566 B

After

Width:  |  Height:  |  Size: 424 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 163 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 B

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 153 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 539 B

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 584 B

After

Width:  |  Height:  |  Size: 495 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 453 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 326 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 B

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 132 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 554 B

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 195 B

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -8,6 +8,7 @@ Component=gb.image
Component=gb.gui
Component=gb.form
Component=gb.dbus
Environment="GB_GUI=gb.qt4"
TabSize=2
Language=fr
Type=Component

View file

@ -4,6 +4,7 @@
Public Sub TrayIcon1_Click()
Debug
Me.Visible = Not Me.Visible
End
@ -54,3 +55,27 @@ Public Sub TrayIcon1_MiddleClick()
Debug
End
Public Sub Menu6_Click()
Debug
End
Public Sub Menu7_Click()
Debug
End
Public Sub Menu8_Click()
Debug
End
Public Sub Button3_Click()
Menu5.Value = Not Menu5.Value
End

View file

@ -2,6 +2,7 @@
{ Form Form
MoveScaled(0,0,64,64)
Persistent = True
{ Menu1 Menu
Text = ("Menu1")
{ Menu2 Menu
@ -58,4 +59,8 @@
MoveScaled(23,4,16,4)
Text = ("Picture")
}
{ Button3 Button
MoveScaled(32,12,16,4)
Text = ("Menu5")
}
}

View file

@ -275,6 +275,7 @@ Public Sub _Clicked(hMenu As Menu)
If hMenu.Toggle Then
hMenu.Value = Not hMenu.Value
Object.Raise(hMenu, "Click")
UpdateMenu
Else
hMenu.Value = True

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

@ -292,6 +292,11 @@ Public Sub DrawingArea_MouseDown()
'Me.Parent.SetFocus()
hTabPanel.Index = GetIndex()
Endif
Else If Mouse.Middle Then
If IsClosable() Then
hTabPanel = GetParent()
hTabPanel._Close(GetIndex())
Endif
Endif
End