
    ը	fo                     B    d Z ddlZddlmZmZ ddlmZ  G d de      Zy)aT  
@package gmodeler.toolbars

@brief wxGUI Graphical Modeler toolbars classes

Classes:
 - toolbars::ModelerToolbar

(C) 2010-2011 by the GRASS Development Team

This program is free software under the GNU General Public License
(>=v2). Read the file COPYING that comes with GRASS for details.

@author Martin Landa <landa.martin gmail.com>
    N)BaseToolbar	BaseIcons)MetaIconc                       e Zd ZdZd Zd Zy)ModelerToolbarz,Graphical modeler toolbaro (see gmodeler.py)c                     t        j                  | |       t        j                  dk(  r|j	                  |        | j                  | j                                | j                          y )Ndarwin)r   __init__sysplatform
SetToolBarInitToolbar_toolbarDataRealize)selfparents     2/usr/lib/grass83/gui/wxpython/gmodeler/toolbars.pyr
   zModelerToolbar.__init__   sP    T6* <<8#d#**,- 	    c                 L	   i dt        dt        d            dt        dt        d            dt        dt        d            d	t        d
t        d            dt        dt        d            dt        dt        d            dt        dt        d            dt        dt        d            dt        dt        d            dt        dt        d            dt        dt        d             d!t        d"t        d#            d$t        d$   d%t        d&t        d'            d(t        d)t        d*            d+t        d+t        d,            d-t        d-   d.t        d.   i}| j                  d|d   j                  j                  d/d0      d1   f|d   | j                  j                  fd|d   j                  j                  d/d0      d1   f|d   | j                  j                  fd|d   j                  j                  d/d0      d1   f|d   | j                  j                  fd2|d	   j                  j                  d/d0      d1   f|d	   | j                  j                  fd3|d   j                  f|d   | j                  j                  fd4d5|d   j                  f|d   | j                  j                  fd6|d   j                  f|d   | j                  j                  fd|d   j                  f|d   | j                  j                  fd|d   j                  f|d   | j                  j                  fd|d   j                  f|d   | j                  j                   fd4d+|d+   j                  f|d+   | j                  j"                  fd!|d!   j                  f|d!   | j                  j$                  fd|d   j                  f|d   | j                  j&                  fd4d(|d(   j                  f|d(   | j                  j(                  fd$|d$   j                  f|d$   | j                  j*                  fd-|d-   j                  f|d-   | j                  j,                  fd4d.|d.   j                  f|d.   | j                  j.                  ff      S )7zToolbar datanewcreatezCreate new model (Ctrl+N))imglabelopenzLoad model from file (Ctrl+O)savez#Save current model to file (Ctrl+S)toImagezimage-exportzExport model to imagetoPythonzpython-exportzExport model to Python script	actionAddz
module-addz Add GRASS tool (module) to modeldataAddzdata-addzAdd data to modelrelationzrelation-createz2Manually define relation between data and commandsloopzloop-addzAdd loop/series to modelcommentz	label-addzAdd comment to modelrunexecutez	Run modelvalidatecheckzValidate modelsettings
propertiesoptionszShow model properties	variableszmodeler-variableszManage model variablesredrawzRedraw model canvashelpquit    r   imagepython)Nactiondata)r   _r   _getToolbarDatar   rsplitr   
OnModelNewOnModelOpenOnModelSaveOnExportImageOnExportPythonOnAddAction	OnAddDataOnDefineRelationOnDefineLoopOnAddCommentOnCanvasRefreshOnValidateModel
OnRunModelOnVariablesOnPreferencesOnHelpOnCloseWindow)r   iconss     r   r   zModelerToolbar._toolbarData'   s?   
82M0NO
Hq1P/QR
 H!$I"J
 xN!<S:TU
 #1-L+M
  *L(M
 xJa8K6LM
 %LM
$ H15O3PQ%
& xKq9O7PQ'
( 8	;@)
* WA6F4GH+
, 	*--
. (y:Q8RS/
0 'q1I/J1
6 h815J3KL7
8 If%9
: If%;
@ ## E%L..55c1=a@A%LKK** U6]0077Q?BC&MKK++ U6]0077Q?BC&MKK++ eI.44;;CCAFG)$KK-- uZ0667*%KK..
 u[1778+&KK++ U9-334)$KK))  z!2!8!89*%KK00 U6]001&MKK,, i 0 6 67)$KK,,
 uX445(OKK//  z!2!8!89*%KK// E%L../%LKK**
  %"4":":;+&KK++  z!2!8!89*%KK-- U6]001&MKK&&
 U6]001&MKK--kZ\
 \	
r   N)__name__
__module____qualname____doc__r
   r    r   r   r   r      s    6
~
r   r   )rL   r   gui_core.toolbarsr   r   
icons.iconr   r   rM   r   r   <module>rP      s#      4 M
[ M
r   