14 |
* You should have received a copy of the GNU General Public License along |
* You should have received a copy of the GNU General Public License along |
15 |
* with this program; if not, write to the Free Software Foundation, Inc., |
* with this program; if not, write to the Free Software Foundation, Inc., |
16 |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
* 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. |
17 |
|
* |
18 |
|
* $Id$ |
19 |
*/ |
*/ |
20 |
|
|
21 |
#include "gui.hh" |
#include "gui.hh" |
145 |
highlighted ? "h" : ""); |
highlighted ? "h" : ""); |
146 |
if (px::Surface *s = enigma::GetImage(bordername)) |
if (px::Surface *s = enigma::GetImage(bordername)) |
147 |
blit(gc, get_x(), get_y(), s); |
blit(gc, get_x(), get_y(), s); |
148 |
|
else { |
149 |
|
set_color (gc, 0,0,0); |
150 |
|
box (gc, r); |
151 |
|
set_color (gc, 160,160,160); |
152 |
|
frame (gc, r); |
153 |
|
frame (gc, smaller(r, 1)); |
154 |
|
} |
155 |
} |
} |
156 |
|
|
157 |
//---------------------------------------- |
//---------------------------------------- |
234 |
//---------------------------------------- |
//---------------------------------------- |
235 |
ImageButton::ImageButton(const std::string &unselected, |
ImageButton::ImageButton(const std::string &unselected, |
236 |
const std::string &selected) |
const std::string &selected) |
237 |
: fname_sel(selected), |
: fname_sel(selected), |
238 |
fname_unsel(unselected) |
fname_unsel(unselected) |
239 |
{} |
{} |
240 |
|
|
241 |
void |
void |
258 |
//---------------------------------------- |
//---------------------------------------- |
259 |
|
|
260 |
Menu::Menu() |
Menu::Menu() |
261 |
: active_widget(0) |
: active_widget(0), |
262 |
, quitp(false) |
quitp(false), |
263 |
, abortp(false) |
abortp(false) |
264 |
{} |
{} |
265 |
|
|
266 |
Menu::~Menu() |
Menu::~Menu() |