Toolbar icons is now (temporary) hardcoded.
This commit is contained in:
parent
a132ee0f7b
commit
90f888bdfb
22
common/toolbar_icons.go
Normal file
22
common/toolbar_icons.go
Normal file
@ -0,0 +1,22 @@
|
||||
// URTator - Urban Terror server browser and game launcher, written in
|
||||
// Go.
|
||||
//
|
||||
// Copyright (c) 2016, Stanslav N. a.k.a pztrn (or p0z1tr0n)
|
||||
// All rights reserved.
|
||||
//
|
||||
// Licensed under Terms and Conditions of GNU General Public License
|
||||
// version 3 or any higher.
|
||||
// ToDo: put full text of license here.
|
||||
package common
|
||||
|
||||
var ADD_TO_FAVORITES = `iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAK6SURBVFiFxZexaxRBGMXft7t6B4pR8CSKovbBQsTOwkrRMoVgm/wDVgpiZSUW+Qe0F9HCMkHsAjYiSMAUijZyIYdgipCbnW++Z3F7l93bu0v2NJuBZZZlZ+bHmzdvZoQkDrNEhzo6gKTKzyJyAkAT48ENgCO5dSAAAJoPX15ZI6w1EhBR59nCl7kqHVYFiIKF1v1bj5DETQAAAYAGH3bwauV5CxWntSoAjIYoSvDz9ypEBIAAIM7NXIXRqnY3BYARgQpjgEByYAqz6itqCgUImsKoEOYAzMOmWNLTKZABINOAAAJ9XQpYT26Goe9apwc8zLTwPdg/KpCFTANAPBGAhJpHGAYIux4QkdlJXSAXVnkFmotLl9cAjgyZfonj2AXVRgjFKVBTJHHsFpcutSe1B6Tz4sGPQVjlASKjteZvLuBI0sg+sfdI7h1oOL8N1UyBzIUu3cbdG/capMFoGNRmMAaYGdQc3n9cLoRVwQNmRIQY678+IJIIIjLyATCo+2Xjzzr6OyvJkc/JY+dLPikCkNCgCCGAwtGDC3YDKM/AfkWAoyFUy1lRAAhmPYONARgMnocoMGSDj4HQ4BGsuFRLCgTtAZ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ize() {
|
||||
m.launch_button = gtk.NewButtonWithLabel("Launch!")
|
||||
m.launch_button.SetTooltipText("Launch Urban Terror")
|
||||
m.launch_button.Clicked(m.launchGame)
|
||||
launch_button_image := gtk.NewImageFromStock(gtk.STOCK_APPLY, gtk.ICON_SIZE_SMALL_TOOLBAR)
|
||||
launch_button_image := gtk.NewImageFromPixbuf(logo.ScaleSimple(32, 32, gdkpixbuf.INTERP_NEAREST))
|
||||
m.launch_button.SetImage(launch_button_image)
|
||||
profile_and_launch_hbox.PackStart(m.launch_button, false, true, 5)
|
||||
|
||||
@ -542,14 +542,22 @@ func (m *MainWindow) InitializeToolbar() {
|
||||
m.vbox.PackStart(m.toolbar, false, false, 5)
|
||||
|
||||
// Update servers button.
|
||||
button_update_all_servers := gtk.NewToolButtonFromStock(gtk.STOCK_REFRESH)
|
||||
button_update_all_servers.SetLabel("Update all servers")
|
||||
button_update_all_servers_icon_bytes, _ := base64.StdEncoding.DecodeString(common.REFRESH_ALL_SERVERS)
|
||||
button_update_all_servers_icon_pixbuf, _ := gdkpixbuf.NewLoaderWithType("png")
|
||||
button_update_all_servers_icon_pixbuf.SetSize(24, 24)
|
||||
button_update_all_servers_icon_pixbuf.Write(button_update_all_servers_icon_bytes)
|
||||
button_update_all_servers_icon := gtk.NewImageFromPixbuf(button_update_all_servers_icon_pixbuf.GetPixbuf())
|
||||
button_update_all_servers := gtk.NewToolButton(button_update_all_servers_icon, "Update all servers")
|
||||
button_update_all_servers.SetTooltipText("Update all servers in all tabs")
|
||||
button_update_all_servers.OnClicked(m.UpdateServers)
|
||||
m.toolbar.Insert(button_update_all_servers, 0)
|
||||
|
||||
button_update_one_server := gtk.NewToolButtonFromStock(gtk.STOCK_REDO)
|
||||
button_update_one_server.SetLabel("Update selected server")
|
||||
button_update_one_server_icon_bytes, _ := base64.StdEncoding.DecodeString(common.REFRESH_ONE_SERVER)
|
||||
button_update_one_server_icon_pixbuf, _ := gdkpixbuf.NewLoaderWithType("png")
|
||||
button_update_one_server_icon_pixbuf.SetSize(24, 24)
|
||||
button_update_one_server_icon_pixbuf.Write(button_update_one_server_icon_bytes)
|
||||
button_update_one_server_icon := gtk.NewImageFromPixbuf(button_update_one_server_icon_pixbuf.GetPixbuf())
|
||||
button_update_one_server := gtk.NewToolButton(button_update_one_server_icon, "Update selected server")
|
||||
button_update_one_server.SetTooltipText("Update only selected server")
|
||||
button_update_one_server.OnClicked(m.updateOneServer)
|
||||
m.toolbar.Insert(button_update_one_server, 1)
|
||||
@ -559,28 +567,44 @@ func (m *MainWindow) InitializeToolbar() {
|
||||
m.toolbar.Insert(separator, 2)
|
||||
|
||||
// Add server to favorites button.
|
||||
fav_button := gtk.NewToolButtonFromStock(gtk.STOCK_ADD)
|
||||
fav_button.SetLabel("Add to favorites")
|
||||
fav_button_icon_bytes, _ := base64.StdEncoding.DecodeString(common.ADD_TO_FAVORITES)
|
||||
fav_button_icon_pixbuf, _ := gdkpixbuf.NewLoaderWithType("png")
|
||||
fav_button_icon_pixbuf.SetSize(24, 24)
|
||||
fav_button_icon_pixbuf.Write(fav_button_icon_bytes)
|
||||
fav_button_icon := gtk.NewImageFromPixbuf(fav_button_icon_pixbuf.GetPixbuf())
|
||||
fav_button := gtk.NewToolButton(fav_button_icon, "Update all servers")
|
||||
fav_button.SetTooltipText("Add selected server to favorites")
|
||||
fav_button.OnClicked(m.addToFavorites)
|
||||
m.toolbar.Insert(fav_button, 3)
|
||||
|
||||
fav_edit_button := gtk.NewToolButtonFromStock(gtk.STOCK_EDIT)
|
||||
fav_edit_button.SetLabel("Edit favorite")
|
||||
fav_edit_button_icon_bytes, _ := base64.StdEncoding.DecodeString(common.EDIT_FAVORITE)
|
||||
fav_edit_button_icon_pixbuf, _ := gdkpixbuf.NewLoaderWithType("png")
|
||||
fav_edit_button_icon_pixbuf.SetSize(24, 24)
|
||||
fav_edit_button_icon_pixbuf.Write(fav_edit_button_icon_bytes)
|
||||
fav_edit_button_icon := gtk.NewImageFromPixbuf(fav_edit_button_icon_pixbuf.GetPixbuf())
|
||||
fav_edit_button := gtk.NewToolButton(fav_edit_button_icon, "Edit favorite")
|
||||
fav_edit_button.SetTooltipText("Edit selected favorite server")
|
||||
fav_edit_button.OnClicked(m.editFavorite)
|
||||
m.toolbar.Insert(fav_edit_button, 4)
|
||||
|
||||
// Remove server from favorites button.
|
||||
fav_delete_button := gtk.NewToolButtonFromStock(gtk.STOCK_REMOVE)
|
||||
fav_delete_button.SetLabel("Remove from favorites")
|
||||
fav_delete_button_icon_bytes, _ := base64.StdEncoding.DecodeString(common.REMOVE_FAVORITE)
|
||||
fav_delete_button_icon_pixbuf, _ := gdkpixbuf.NewLoaderWithType("png")
|
||||
fav_delete_button_icon_pixbuf.SetSize(24, 24)
|
||||
fav_delete_button_icon_pixbuf.Write(fav_delete_button_icon_bytes)
|
||||
fav_delete_button_icon := gtk.NewImageFromPixbuf(fav_delete_button_icon_pixbuf.GetPixbuf())
|
||||
fav_delete_button := gtk.NewToolButton(fav_delete_button_icon, "Remove from favorites")
|
||||
fav_delete_button.SetTooltipText("Remove selected server from favorites")
|
||||
fav_delete_button.OnClicked(m.deleteFromFavorites)
|
||||
m.toolbar.Insert(fav_delete_button, 5)
|
||||
|
||||
// Copy server address button.
|
||||
copy_srv_addr_button := gtk.NewToolButtonFromStock(gtk.STOCK_COPY)
|
||||
copy_srv_addr_button.SetLabel("Copy server's creds")
|
||||
copy_srv_addr_button_icon_bytes, _ := base64.StdEncoding.DecodeString(common.COPY_CREDENTIALS)
|
||||
copy_srv_addr_button_icon_pixbuf, _ := gdkpixbuf.NewLoaderWithType("png")
|
||||
copy_srv_addr_button_icon_pixbuf.SetSize(24, 24)
|
||||
copy_srv_addr_button_icon_pixbuf.Write(copy_srv_addr_button_icon_bytes)
|
||||
copy_srv_addr_button_icon := gtk.NewImageFromPixbuf(copy_srv_addr_button_icon_pixbuf.GetPixbuf())
|
||||
copy_srv_addr_button := gtk.NewToolButton(copy_srv_addr_button_icon, "Copy server's creds")
|
||||
copy_srv_addr_button.SetTooltipText("Copy server's credentials to clipboard for sharing")
|
||||
copy_srv_addr_button.OnClicked(m.copyServerCredentialsToClipboard)
|
||||
m.toolbar.Insert(copy_srv_addr_button, 6)
|
||||
|
Reference in New Issue
Block a user