55 #include <sys/types.h> 63 #include "rnr/rnrconfig.h" 84 const string &strAltText,
85 const string &strTagNormal,
86 const string &strToolTipNormal,
87 const string &strTagActive,
88 const string &strToolTipActive) :
89 WinButton(eType, nEvent, eInitState, eAlign, strAltText,
90 strTagNormal, strToolTipNormal,
91 strTagActive, strToolTipActive)
95 m_wImgNormal = loadIcon(strTagNormal);
96 m_wImgActive = loadIcon(strTagActive);
136 if( access(strIconPath.c_str(), F_OK|R_OK) != 0 )
138 LOGSYSERROR(
"%s: %s(errno=%d)", strIconPath.c_str());
143 wBttnImg = gtk_image_new_from_file(strIconPath.c_str());
146 gtk_widget_ref(wBttnImg);
159 const string &strAltText,
160 const string &strIconNormal,
161 const string &strToolTipNormal,
162 const string &strIconActive,
163 const string &strToolTipActive)
166 if( m_mapButtons.find(nEvent) != m_mapButtons.end() )
171 string strIconPathNormal = makeIconPath(strIconNormal);
172 string strIconPathActive = makeIconPath(strIconActive);
175 if( !strIconPathNormal.empty() )
207 const string &strLabelNormal,
208 const string &strToolTipNormal,
209 const string &strLabelActive,
210 const string &strToolTipActive)
213 if( m_mapButtons.find(nEvent) != m_mapButtons.end() )
WinButtonType
Window button types.
RoadNarrows Robotics GTK derived WinGtk window class interface.
RoadNarrows Robotics Win abstract base class interface.