Changeset 1e43dec in tol for tolbase/lib/toltk


Ignore:
Timestamp:
May 25, 2015, 8:00:31 AM (11 years ago)
Author:
Pedro Gea <pgea@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
ee9644c
Parents:
53456bc
Message:

Refs #1827
Se incorporan nuevos iconos para TOLBase 3.2. Se hace diferencia entre el TOL compilado con GNU-GCC (MinGW en Windows) y el TOL con MSVC.
Se introducen cambios en TOLBase para adoptar estas nuevas imágenes.

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6723 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tolbase/lib/toltk
Files:
6 added
3 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/toltk/project.tcl

    r53456bc r1e43dec  
    128128 
    129129  # Gives a name for the application
    130   set prjtitle "TOLBase"
     130  # tol platform selection
     131  array set tol_platform [lindex [toltcl::eval {PlatformInfo(?)} -named 1] 1]
     132  if {$tol_platform(CompilerID) eq "GNU"} {
     133    set prjtitle "TOLBase (GNU)"
     134  } elseif {$tol_platform(CompilerID) eq "MSVC"} {
     135    set prjtitle "TOLBase (MSVC)"
     136  } else {
     137    set prjtitle "TOLBase"
     138  }
     139 
    131140  if { [info exists projects(Project,title)] && $projects(Project,title) ne "" } {
    132141    set prjtitle $projects(Project,title)
    … …  
    144153    pack $widgets(mainmdi) -fill both -expand yes -side bottom
    145154        bind . <Control-Tab> "[list $widgets(mainmdi) cicle]; break"
     155
     156    #(pgea) se adelanta para no ver el icono de TK intermedio
     157    if { [string equal $tcl_platform(platform) "unix"] } {
     158      wm iconbitmap . "@[file join $toltk_images_path tolbase-gnu-64.xbm]"
     159    } else {
     160      # tol platform selection
     161      if {$tol_platform(CompilerID) eq "GNU"} {
     162        wm iconbitmap . -default [file join $toltk_images_path tolbase-gnu.ico]
     163      } elseif {$tol_platform(CompilerID) eq "MSVC"} {
     164        wm iconbitmap . -default [file join $toltk_images_path tolbase-msvc.ico]
     165      } else {
     166        wm iconbitmap . -default [file join $toltk_images_path tolbase.ico]
     167      }
     168    }
     169
    146170        ::TolConsole::MainFrame $widgets(mainmdi) [TolConReq]
    147171  #
    … …  
    156180  $widgets(mainmenu) draw
    157181
    158   if { [string equal $tcl_platform(platform) "unix"] } {
    159     wm iconbitmap . "@[file join $toltk_images_path bayes.xbm]"
    160   } else {
    161     wm iconbitmap . -default [file join $toltk_images_path bayes.ico]
    162   }
    163182  if { [TolConReq] } {
    164183    ::TolInspector::Busy
  • tolbase/lib/toltk/tolbase.tcl

    r53456bc r1e43dec  
    13191319  global GuiVersionInfo
    13201320
    1321   set imgfile [file join $toltk_library toltk images splash.gif]
     1321  # tol platform selection
     1322  array set tol_platform [lindex [toltcl::eval {PlatformInfo(?)} -named 1] 1]
     1323  if {$tol_platform(CompilerID) eq "GNU"} {
     1324    set imgfile [file join $toltk_library toltk images splash-gnu.gif]
     1325  } elseif {$tol_platform(CompilerID) eq "MSVC"} {
     1326    set imgfile [file join $toltk_library toltk images splash-msvc.gif]
     1327  } else {
     1328    set imgfile [file join $toltk_library toltk images splash.gif]
     1329  }
    13221330  set img [image create photo -file $imgfile]
    13231331  toplevel $w
Note: See TracChangeset for help on using the changeset viewer.