Rev 4680 | Rev 5496 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4680 | Rev 4696 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | #define _WIN32 |
2 | #define _WIN32 |
3 | #include "fitz.h" |
3 | #include "fitz.h" |
4 | #include "mupdf.h" |
4 | #include "mupdf.h" |
5 | #include "muxps.h" |
5 | #include "muxps.h" |
6 | #include "pdfapp.h" |
6 | #include "pdfapp.h" |
- | 7 | #include "icons/allbtns.h" |
|
Line 7... | Line 8... | ||
7 | 8 | ||
8 | 9 | ||
Line 144... | Line 145... | ||
144 | int x0 = gapp.panx; |
145 | int x0 = gapp.panx; |
145 | int y0 = gapp.pany; |
146 | int y0 = gapp.pany; |
146 | int x1 = gapp.panx + gapp.image->w; |
147 | int x1 = gapp.panx + gapp.image->w; |
147 | int y1 = gapp.pany + gapp.image->h; |
148 | int y1 = gapp.pany + gapp.image->h; |
148 | __menuet__debug_out(" Window blit\n"); |
149 | __menuet__debug_out(" Window blit\n"); |
- | 150 | __menuet__bar(0,0,598,370,0xababab); //background of pics |
|
149 | /* |
151 | /* |
150 | XSetForeground(xdpy, xgc, xbgcolor.pixel); |
152 | XSetForeground(xdpy, xgc, xbgcolor.pixel); |
151 | fillrect(0, 0, x0, gapp.winh); |
153 | fillrect(0, 0, x0, gapp.winh); |
152 | fillrect(x1, 0, gapp.winw - x1, gapp.winh); |
154 | fillrect(x1, 0, gapp.winw - x1, gapp.winh); |
153 | fillrect(0, 0, gapp.winw, y0); |
155 | fillrect(0, 0, gapp.winw, y0); |
Line 206... | Line 208... | ||
206 | free(color); |
208 | free(color); |
207 | } |
209 | } |
208 | } |
210 | } |
Line 209... | Line -... | ||
209 | - | ||
210 | 211 | ||
211 | __menuet__bar(0,0,600,20,0xFFFFFF); |
212 | |
Line 212... | Line 213... | ||
212 | __menuet__make_button(0,0,40,20,7,0x404040FF); //(posirion x, position y, width, height, id, color) |
213 | __menuet__bar(0,0,598,34,0xe1e1e1); // bar on the top (buttons holder) |
213 | __menuet__write_text(5,4,0xFFFFFF,"Open",4); |
214 | __menuet__bar(590,0,5,400,0xe1e1e1); // sidebar for scrolling |
Line 214... | Line 215... | ||
214 | 215 | ||
215 | __menuet__make_button(550,0,20,20,2,0x404040FF); //prev page |
216 | __menuet__make_button(8,5,26,24,7,0xe1e1e1); //(posirion x, position y, width, height, id, color) |
Line 216... | Line 217... | ||
216 | __menuet__write_text(555,3,0xFFFFFF,"<",1); |
217 | __menuet__putimage(8,5,26,24,folder.pixel_data); |
217 | 218 | ||
Line 218... | Line -... | ||
218 | __menuet__make_button(570,0,20,20,3,0x404040FF); //nex page |
- | |
219 | __menuet__write_text(575,3,0xFFFFFF,">",1); |
- | |
Line 220... | Line 219... | ||
220 | 219 | __menuet__make_button(42,5,26,24,6,0xe1e1e1); //magnify - |
|
221 | __menuet__make_button(40,0,20,20,4,0x404040FF); //show help |
220 | __menuet__putimage(42,5,26,24,minus.pixel_data); |
Line 222... | Line 221... | ||
222 | __menuet__write_text(45,3,0xFFFFFF,"?",1); |
221 | |
223 | 222 | __menuet__make_button(68,5,26,24,5,0xe1e1e1); //magnify + |
|
Line 224... | Line 223... | ||
224 | __menuet__make_button(60,0,20,20,5,0x404040FF); //magnify + |
223 | __menuet__putimage(68,5,26,24,plus.pixel_data); |
225 | __menuet__write_text(65,3,0xFFFFFF,"+",1); |
224 | |
Line 226... | Line 225... | ||
226 | 225 | ||
227 | __menuet__make_button(80,0,20,20,6,0x404040FF); //magnify - |
226 | /* __menuet__make_button(100,0,20,20,10,0xe1e1e1); // rotate + 15 deg |
Line 228... | Line 227... | ||
228 | __menuet__write_text(85,3,0xFFFFFF,"-",1); |
227 | __menuet__write_text(105,3,0xFFFFFF,"p",1); |
229 | 228 | ||
- | 229 | __menuet__make_button(120,0,20,20,11,0xe1e1e1); // rotate - 15 deg |
|
- | 230 | __menuet__write_text(125,3,0xFFFFFF,"q",1); */ |
|
- | 231 | ||
- | 232 | __menuet__make_button(500,5,26,24,4,0xe1e1e1); //show help |
|
- | 233 | __menuet__putimage(500,5,26,24,help.pixel_data); |
|
- | 234 | ||
Line 230... | Line 235... | ||
230 | __menuet__make_button(570,20,20,20,8,0x404040FF); // move up |
235 | __menuet__make_button(534,5,24,24,2,0xe1e1e1); //prev page |
Line 231... | Line 236... | ||
231 | __menuet__write_text(575,3,0xFFFFFF,"^",1); |
236 | __menuet__putimage(534,5,24,24,prev.pixel_data); |
Line 264... | Line 269... | ||
264 | } |
269 | } |
Line 265... | Line 270... | ||
265 | 270 | ||
266 | 271 | ||
- | 272 | int main (void) |
|
267 | int main (void) |
273 | { |
268 | { |
274 | |
Line 269... | Line 275... | ||
269 | char* original_command_line = *(char**)0x1C; |
275 | char* original_command_line = *(char**)0x1C; |
270 | __menuet__debug_out(original_command_line); |
276 | __menuet__debug_out(original_command_line); |