~israeldahl/jwm-settings-manager/trunk

« back to all changes in this revision

Viewing changes to fltk/jwm-mouse.cxx

  • Committer: Israel Dahl
  • Date: 2019-01-27 00:36:26 UTC
  • Revision ID: israeldahl@gmail.com-20190127003626-jtbab6d1d8d9whem
fix window title for Mouse/Touchpad (thanks zleap)

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * You may redistribute this, but you must keep this comment in place
22
22
 * Jesus is my Lord, and if you don't like it feel free to ignore it.
23
23
 */
24
 
// generated by Fast Light User Interface Designer (fluid) version 1.0303
 
24
// generated by Fast Light User Interface Designer (fluid) version 1.0304
25
25
 
26
26
#include <libintl.h>
27
27
#include "jwm-mouse.h"
135
135
 
136
136
unsigned char MouseUI::menu_TouchpadOff_i18n_done = 0;
137
137
Fl_Menu_Item MouseUI::menu_TouchpadOff[] = {
138
 
 {"ON", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 12, 0},
139
 
 {"Off", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 12, 0},
140
 
 {"Tap Off", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 12, 0},
 
138
 {"ON", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 12, 0},
 
139
 {"Off", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 12, 0},
 
140
 {"Tap Off", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 12, 0},
141
141
 {0,0,0,0,0,0,0,0,0}
142
142
};
143
143
 
186
186
 
187
187
unsigned char MouseUI::menu_TapButton1_i18n_done = 0;
188
188
Fl_Menu_Item MouseUI::menu_TapButton1[] = {
189
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
190
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
191
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
192
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
193
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
194
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
195
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
196
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
189
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
190
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
191
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
192
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
193
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
194
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
195
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
196
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
197
197
 {0,0,0,0,0,0,0,0,0}
198
198
};
199
199
 
206
206
 
207
207
unsigned char MouseUI::menu_TapButton2_i18n_done = 0;
208
208
Fl_Menu_Item MouseUI::menu_TapButton2[] = {
209
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
210
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
211
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
212
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
213
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
214
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
215
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
216
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
209
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
210
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
211
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
212
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
213
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
214
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
215
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
216
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
217
217
 {0,0,0,0,0,0,0,0,0}
218
218
};
219
219
 
226
226
 
227
227
unsigned char MouseUI::menu_TapButton3_i18n_done = 0;
228
228
Fl_Menu_Item MouseUI::menu_TapButton3[] = {
229
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
230
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
231
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
232
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
233
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
234
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
235
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
236
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
229
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
230
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
231
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
232
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
233
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
234
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
235
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
236
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
237
237
 {0,0,0,0,0,0,0,0,0}
238
238
};
239
239
 
246
246
 
247
247
unsigned char MouseUI::menu_LTCornerButton_i18n_done = 0;
248
248
Fl_Menu_Item MouseUI::menu_LTCornerButton[] = {
249
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
250
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
251
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
252
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
253
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
254
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
255
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
256
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
249
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
250
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
251
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
252
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
253
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
254
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
255
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
256
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
257
257
 {0,0,0,0,0,0,0,0,0}
258
258
};
259
259
 
266
266
 
267
267
unsigned char MouseUI::menu_RTCornerButton_i18n_done = 0;
268
268
Fl_Menu_Item MouseUI::menu_RTCornerButton[] = {
269
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
270
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
271
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
272
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
273
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
274
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
275
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
276
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
269
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
270
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
271
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
272
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
273
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
274
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
275
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
276
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
277
277
 {0,0,0,0,0,0,0,0,0}
278
278
};
279
279
 
286
286
 
287
287
unsigned char MouseUI::menu_LBCornerButton_i18n_done = 0;
288
288
Fl_Menu_Item MouseUI::menu_LBCornerButton[] = {
289
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
290
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
291
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
292
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
293
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
294
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
295
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
296
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
289
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
290
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
291
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
292
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
293
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
294
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
295
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
296
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
297
297
 {0,0,0,0,0,0,0,0,0}
298
298
};
299
299
 
306
306
 
307
307
unsigned char MouseUI::menu_RBCornerButton_i18n_done = 0;
308
308
Fl_Menu_Item MouseUI::menu_RBCornerButton[] = {
309
 
 {"disable", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
310
 
 {"left button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
311
 
 {"center button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
312
 
 {"right button", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
313
 
 {"up wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
314
 
 {"down wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
315
 
 {"left wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
316
 
 {"right wheel", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
309
 {"disable", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
310
 {"left button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
311
 {"center button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
312
 {"right button", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
313
 {"up wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
314
 {"down wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
315
 {"left wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
316
 {"right wheel", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
317
317
 {0,0,0,0,0,0,0,0,0}
318
318
};
319
319
 
403
403
 
404
404
unsigned char MouseUI::menu_CircScrollTrigger_i18n_done = 0;
405
405
Fl_Menu_Item MouseUI::menu_CircScrollTrigger[] = {
406
 
 {"Everywhere", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
407
 
 {"Top", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
408
 
 {"Top Right", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
409
 
 {"Right", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
410
 
 {"Bottom Right", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
411
 
 {"Bottom", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
412
 
 {"Bottom Left", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
413
 
 {"Left", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
414
 
 {"Top Left", 0,  0, 0, 0, FL_NORMAL_LABEL, 0, 14, 0},
 
406
 {"Everywhere", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
407
 {"Top", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
408
 {"Top Right", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
409
 {"Right", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
410
 {"Bottom Right", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
411
 {"Bottom", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
412
 {"Bottom Left", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
413
 {"Left", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
 
414
 {"Top Left", 0,  0, 0, 0, (uchar)FL_NORMAL_LABEL, 0, 14, 0},
415
415
 {0,0,0,0,0,0,0,0,0}
416
416
};
417
417
 
604
604
Fl_Double_Window* MouseUI::error_window() {
605
605
  Fl_Double_Window* w;
606
606
  { Fl_Double_Window* o = new Fl_Double_Window(230, 110, gettext("ERROR"));
607
 
    w = o;
 
607
    w = o; if (w) {/* empty */}
608
608
    o->user_data((void*)(this));
609
609
    { Fl_Button* o = new Fl_Button(75, 65, 60, 30, gettext("QUIT"));
610
610
      o->box(FL_FLAT_BOX);
623
623
Fl_Double_Window* MouseUI::jwm_window() {
624
624
  Fl_Double_Window* w;
625
625
  { Fl_Double_Window* o = new Fl_Double_Window(400, 115, gettext("JWM Mouse Settings"));
626
 
    w = o;
 
626
    w = o; if (w) {/* empty */}
627
627
    o->user_data((void*)(this));
628
628
    { double_click_slider2 = new Fl_Slider(150, 10, 90, 25, gettext("Double Click Speed"));
629
629
      double_click_slider2->tooltip(gettext("This sets how fast you must click to Double Click"));
709
709
  JWM=isJWM();
710
710
  deltaChanged = false;
711
711
  doubleChanged = false;
712
 
  { Fl_Double_Window* o = mouse_window = new Fl_Double_Window(370, 345, gettext("Touchpad Settings"));
 
712
  { Fl_Double_Window* o = mouse_window = new Fl_Double_Window(370, 345, gettext("Mouse/Touchpad Settings"));
713
713
    mouse_window->color(FL_DARK1);
714
714
    mouse_window->user_data((void*)(this));
715
715
    { Fl_Scroll* o = new Fl_Scroll(-5, 0, 545, 520);