From eecc8da23dc324461ec59e177bcc18de278e9dbe Mon Sep 17 00:00:00 2001 From: ccremers Date: Fri, 4 Aug 2006 14:02:19 +0000 Subject: [PATCH] - Added custom buttons. - Note: stuff is breaking rather easily now. --- gui/Mainwindow.py | 24 +-- gui/images/characterize-button.png | Bin 0 -> 4007 bytes gui/images/characterize-button.svg | 235 ++++++++++++++++++++++++++++ gui/images/verify-button.png | Bin 0 -> 3919 bytes gui/images/verify-button.svg | 236 +++++++++++++++++++++++++++++ 5 files changed, 484 insertions(+), 11 deletions(-) create mode 100644 gui/images/characterize-button.png create mode 100644 gui/images/characterize-button.svg create mode 100644 gui/images/verify-button.png create mode 100644 gui/images/verify-button.svg diff --git a/gui/Mainwindow.py b/gui/Mainwindow.py index fb3420d..1ffd743 100644 --- a/gui/Mainwindow.py +++ b/gui/Mainwindow.py @@ -102,24 +102,26 @@ class MainWindow(wx.Frame): #print "Default toolbar tool size: %s\n" % tb.GetToolBitmapSize() - tsize = (32,32) + tsize = (64,64) - bmp = wx.ArtProvider_GetBitmap(wx.ART_EXECUTABLE_FILE,wx.ART_TOOLBAR,tsize) - if not bmp.Ok(): - bmp = wx.EmptyBitmap(tsize) + bmpverify = wx.Bitmap("images/verify-button.png",wx.BITMAP_TYPE_PNG) + bmpcharacterize = wx.Bitmap("images/characterize-button.png",wx.BITMAP_TYPE_PNG) + #bmp = wx.ArtProvider_GetBitmap(wx.ART_EXECUTABLE_FILE,wx.ART_TOOLBAR,tsize) + #if not bmp.Ok(): + # bmp = wx.EmptyBitmap(tsize) # add the actual tools - tb.AddSimpleTool(ID_VERIFY, bmp,"Verify","Verify claims") + tb.AddSimpleTool(ID_VERIFY, bmpverify,"Verify","Verify claims") self.Bind(wx.EVT_TOOL, self.OnVerify, id=ID_VERIFY) - tb.AddSimpleTool(ID_STATESPACE, bmp,"Statespace","Generate statespace for all roles") + tb.AddSimpleTool(ID_STATESPACE, bmpcharacterize,"Statespace","Generate statespace for all roles") self.Bind(wx.EVT_TOOL, self.OnStatespace, id=ID_STATESPACE) - tb.AddSeparator() + # tb.AddSeparator() - tb.AddSimpleTool(ID_CHECK, bmp,"Check","Check protocol") - self.Bind(wx.EVT_TOOL, self.OnCheck, id=ID_CHECK) - tb.AddSimpleTool(ID_AUTOVERIFY, bmp,"Default claims","Verify default claims") - self.Bind(wx.EVT_TOOL, self.OnAutoVerify, id=ID_AUTOVERIFY) + # tb.AddSimpleTool(ID_CHECK, bmp,"Check","Check protocol") + # self.Bind(wx.EVT_TOOL, self.OnCheck, id=ID_CHECK) + # tb.AddSimpleTool(ID_AUTOVERIFY, bmp,"Default claims","Verify default claims") + # self.Bind(wx.EVT_TOOL, self.OnAutoVerify, id=ID_AUTOVERIFY) tb.Realize() diff --git a/gui/images/characterize-button.png b/gui/images/characterize-button.png new file mode 100644 index 0000000000000000000000000000000000000000..9a84127324c5d0c2d1f7ce94dc6294fc42525c15 GIT binary patch literal 4007 zcmV;Y4_NStP)xQT=XdYZ)6-&GmL*GGWLsXajWHN71=|!GTGKKl5MoLjwzO%PKueS9OeyJf zNK*#LkQGSdNoXlc(o7df8Nh|YxG@H^Sl$5dn`9#|vSjUg@4mbI`o~?~eT!r{lZ;65 z@jTsof7?Chd(Q9t&hPxLMQhEcnbcS_FxGSqfU#y^tmzy8W6i)=(>Vafnt`#Va{!Dr z17l6+02pfq#+uFnFxCu=HJNAIK}70)iGC7XRl$Ay8s4i|A9aR)lIu!8a7dr!_EyfO zy@-r6ljdg6)6D{f9i?QasBh_}BKhM;SXW{+e+>$kJc`C97}BMMPKqt>K| zDB!C`DlzNUb$6Mjp)izSieQMs5GnC1C|5*fW{Ea=WvX~Qv*T~Ngk5ujZ=*SZy za+}uL8ns-bwEz*BqY}mkD<8c+HU09LR2WIFpZ2>LqEHA*1ce|%aP=7zV&&m;tWCU6 zygpaw+k`574(?B7KEUz%IDM+0>z4d&Hj~b-0bU;MR2Y>7h)Bvvn*UUHQDb7tWz*4G zv$}C5%W9V*G24z?ZD`7I)0d*Zxr$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=-O?@?~>T(Wm zZlh{K1v3{-MTs!bIl!@fCz;$-OXG}5Sc4XawjV`AFik}wVS?*%;j+0{0~UL>wozMG z&Adg^P@-tru!m$a!P4b(16~ydvAu-|@4vN=Z$I?HkY(A|0(-R9ouw=Q;54v9Yj5Me zr(3REc-Q4-h#)~o>!xiy%fT6Pum^3-G83f~11ARPEw04qCXURyG@>GJMehX_bi*4~EpjfYlFTQSR!AQq4~<1xlUjY$#Hg_+(^ zh=RUhc?h7yvdJ-_qw&aZBWMJn<5)L)ceUGg)_FLv=6ikv zaM{2KD^)S68V@j(pVIUKbMqvg5ssT;>sJ6kT<}70qwxxa*PdqmYacpx z)_DRy-0c}o`y*LEXay62YR`7oo@_b#mou+lX^Mb{pi~fr2}Hp+K`0#F2iNcj$A6ZR z{X7Dv8UuoYXDAs@jw8h_ug^{p1qaooMYMj(TKY~KIN0MLhTK3U)wo^7w`IoLIQ z!u*9k%YpX}nF>wZi?rl37C*_+vAL}&*07FE6CKlZSQl#Fi)r5zL4u4`cgIN%?>S)G zR`$U_h92PbNC&0E0-&|lfivs{>fDU=aM$+jPgKsmJYkkspb@kx79eh#TEY{cocZdQ z*{T4P5J0~^e+q_CYYad1lfY#cj!@PD~eQC%?1F$Mqt N002ovPDHLkV1i=6ut@*_ literal 0 HcmV?d00001 diff --git a/gui/images/characterize-button.svg b/gui/images/characterize-button.svg new file mode 100644 index 0000000..fd0fca7 --- /dev/null +++ b/gui/images/characterize-button.svg @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + REACH + REACH + + diff --git a/gui/images/verify-button.png b/gui/images/verify-button.png new file mode 100644 index 0000000000000000000000000000000000000000..5e8e1feb041144b21be1bd9f4893529d81eefc8f GIT binary patch literal 3919 zcmV-V53ulwP)xQTuaB9XJ+<1Eb|tM=t6iN4Wa|QSAdV6O6d@cUps*=$f^pe^?UWo`!cOc0 z6U-GS+_u3S!7d0+a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