Changeset - 825cc3737130
[Not reviewed]
default
1 3 2
Michael Guravage - 14 years ago 2011-01-13 10:04:42
michael.guravage@cwi.nl
Added a small virtual icon to the About message box.

--
user: Michael Guravage <michael.guravage@cwi.nl>
branch 'default'
added icons/leaficon.png
added icons/leaficon_small.png
changed src/ChangeLog
changed src/VirtualLeaf-install-windows.nsi
changed src/canvas.cpp
removed src/leaficon.png
5 files changed with 21 insertions and 1 deletions:
0 comments (0 inline, 0 general)
icons/leaficon.png
Show inline comments
 
file renamed from src/leaficon.png to icons/leaficon.png
Show images
icons/leaficon_small.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
src/ChangeLog
Show inline comments
 
2011-01-13    <guravage@petitdru.sen.cwi.nl>
 

	
 
	* VirtualLeaf-install-windows.nsi: Add new icons directory
 

	
 
	* canvas.cpp (about): Added virtual leaf logo to About message box.
 

	
 
2011-01-12    <guravage@petitdru.sen.cwi.nl>
 

	
 
	* transporterdialog.cpp (TransporterDialog): Add a proper title to
src/VirtualLeaf-install-windows.nsi
Show inline comments
 
@@ -144,6 +144,10 @@ section "Virtual Leaf executable"
 
  # create a shortcut named "VirtualLeaf" in the start menu programs directory
 
  # point the new shortcut at the program VirtualLeaf
 
  createShortCut "$SMPROGRAMS\VirtualLeaf.lnk" "$INSTDIR\bin\VirtualLeaf.exe"
 

	
 
  # Icons
 
  setOutPath $INSTDIR\icons
 
  file ..\icons\*
 
sectionEnd
 

	
 
section "Image Formats"
src/canvas.cpp
Show inline comments
 
@@ -1048,7 +1048,7 @@ void Main::about()
 
         Roeland M. H. Merks, Michael Guravage, Dirk Inze, and Gerrit T.S. Beemster,\
 
         <a href=\"http://www.plantphysiol.org/cgi/content/short/pp.110.167619?keytype=ref&ijkey=YTmfxrHG5QCsa8k\">\
 
         VirtualLeaf: an Open Source framework for cell-based modeling of plant tissue growth and development</a>,<br>\
 
         Plant Physiology 2010: pp.110.167619v1-pp.110.167619.\
 
         Plant Physiology 2011: pp.110.167619v1-pp.110.167619.\
 
       </p>\
 
       <p>\
 
         Please share your model plugins and extensions at\
 
@@ -1056,6 +1056,16 @@ void Main::about()
 
       </p>",
 
      QMessageBox::Information, 1, 0, 0, this, 0, FALSE );
 
  about->setButtonText( 1, "Dismiss" );
 

	
 
  // Locate and set the message box's icon
 
  QDir iconDir(QApplication::applicationDirPath()); 
 
  if (iconDir.cd("../icons")) {
 
    QString iconFile = iconDir.filePath("leaficon_small.png");
 
    QFile icon(iconFile);
 
    if (icon.exists()){
 
      about->setIconPixmap(QPixmap(iconFile));
 
    }
 
  }
 
  about->show();
 
}
 

	
0 comments (0 inline, 0 general)