mirror of
https://git.code.sf.net/p/fldigi/flmsg
synced 2026-08-13 17:30:58 -04:00
ICON update
This commit is contained in:
parent
925fb436b3
commit
41739319b2
9 changed files with 2222 additions and 1886 deletions
BIN
data/flmsg.ico
BIN
data/flmsg.ico
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 12 KiB |
BIN
data/flmsg.png
BIN
data/flmsg.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 4.1 KiB |
1744
data/flmsg.xpm
1744
data/flmsg.xpm
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 12 KiB |
|
|
@ -54,6 +54,7 @@
|
|||
#include "fileselect.h"
|
||||
#include "wrap.h"
|
||||
#include "status.h"
|
||||
#include "pixmaps.h"
|
||||
|
||||
#ifdef WIN32
|
||||
# include "flmsgrc.h"
|
||||
|
|
@ -367,6 +368,29 @@ void set_main_label()
|
|||
mainwindow->label(main_label.c_str());
|
||||
}
|
||||
|
||||
|
||||
#define KNAME "fllog"
|
||||
#if !defined(__WIN32__) && !defined(__APPLE__)
|
||||
Pixmap flmsg_icon_pixmap;
|
||||
|
||||
void make_pixmap(Pixmap *xpm, const char **data)
|
||||
{
|
||||
Fl_Window w(0,0, KNAME);
|
||||
w.xclass(KNAME);
|
||||
w.show();
|
||||
w.make_current();
|
||||
Fl_Pixmap icon(data);
|
||||
int maxd = (icon.w() > icon.h()) ? icon.w() : icon.h();
|
||||
*xpm = fl_create_offscreen(maxd, maxd);
|
||||
fl_begin_offscreen(*xpm);
|
||||
fl_color(FL_BACKGROUND_COLOR);
|
||||
fl_rectf(0, 0, maxd, maxd);
|
||||
icon.draw(maxd - icon.w(), maxd - icon.h());
|
||||
fl_end_offscreen();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
if (argc > 1) {
|
||||
|
|
@ -420,12 +444,20 @@ char dirbuf[FL_PATH_MAX + 1];
|
|||
|
||||
tab_ics213->show();
|
||||
|
||||
#ifdef WIN32
|
||||
#if defined(__WOE32__)
|
||||
# ifndef IDI_ICON
|
||||
# define IDI_ICON 101
|
||||
# endif
|
||||
mainwindow->icon((char*)LoadIcon(fl_display, MAKEINTRESOURCE(IDI_ICON)));
|
||||
mainwindow->show(1, argv);
|
||||
mainwindow->show (argc, argv);
|
||||
#elif !defined(__APPLE__)
|
||||
make_pixmap(&flmsg_icon_pixmap, flmsg_icon);
|
||||
mainwindow->icon((char *)flmsg_icon_pixmap);
|
||||
mainwindow->show(argc, argv);
|
||||
#else
|
||||
mainwindow->show(argc, argv);
|
||||
#endif
|
||||
|
||||
set_main_label();
|
||||
show_filename(defFileName);
|
||||
|
||||
|
|
|
|||
0
src/flmsg_dialog.fl
Executable file → Normal file
0
src/flmsg_dialog.fl
Executable file → Normal file
|
|
@ -81,10 +81,9 @@ extern const char *rx2_icon[];
|
|||
extern const char *tx2_icon[];
|
||||
extern const char *rx_icon[];
|
||||
extern const char *tx_icon[];
|
||||
extern const char *fldigi_icon[];
|
||||
extern const char *flarq_icon[];
|
||||
extern const char *waterfall_icon[];
|
||||
extern const char *dice_icon[];
|
||||
extern const char *pskr_icon[];
|
||||
extern const char *flmsg_icon[];
|
||||
|
||||
#endif // PIXMAPS_H_
|
||||
|
|
|
|||
2325
src/pixmaps.cxx
2325
src/pixmaps.cxx
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue