Mercurial > vim
comparison src/gui_kde_widget.cc @ 16:3ba373b54370 v7.0008
updated for version 7.0008
author | vimboss |
---|---|
date | Mon, 12 Jul 2004 15:53:54 +0000 |
parents | 4424b47a0797 |
children |
comparison
equal
deleted
inserted
replaced
15:631143ac4a01 | 16:3ba373b54370 |
---|---|
350 * The main widget (everything but toolbar/menubar) | 350 * The main widget (everything but toolbar/menubar) |
351 */ | 351 */ |
352 VimWidget::VimWidget( QWidget *parent, const char *name, WFlags f )//{{{ | 352 VimWidget::VimWidget( QWidget *parent, const char *name, WFlags f )//{{{ |
353 :QWidget(parent, name, f) | 353 :QWidget(parent, name, f) |
354 ,DCOPObject("KVim") | 354 ,DCOPObject("KVim") |
355 #ifdef FEAT_MZSCHEME | |
356 ,mzscheme_timer_id(-1) | |
357 #endif | |
355 { | 358 { |
356 //to be able to show/hide the cursor when moving the mouse | 359 //to be able to show/hide the cursor when moving the mouse |
357 setMouseTracking(true); | 360 setMouseTracking(true); |
358 painter=new QPainter(this); | 361 painter=new QPainter(this); |
359 | 362 |
878 if (blink_state == BLINK_OFF) | 881 if (blink_state == BLINK_OFF) |
879 gui_update_cursor(TRUE, FALSE); | 882 gui_update_cursor(TRUE, FALSE); |
880 | 883 |
881 blink_state = BLINK_NONE; | 884 blink_state = BLINK_NONE; |
882 }//}}} | 885 }//}}} |
886 | |
887 #ifdef FEAT_MZSCHEME | |
888 void VimWidget::timerEvent( QTimerEvent * evnt)//{{{ | |
889 { | |
890 if (evnt->timerId() == mzscheme_timer_id) | |
891 timer_proc(); | |
892 }//}}} | |
893 | |
894 void VimWidget::enable_mzscheme_threads()//{{{ | |
895 { | |
896 mzscheme_timer_id = startTimer(p_mzq); | |
897 }//}}} | |
898 | |
899 void VimWidget::disable_mzscheme_threads()//{{{ | |
900 { | |
901 killTimer(mzscheme_timer_id); | |
902 }//}}} | |
903 #endif | |
883 | 904 |
884 void VimWidget::flash()//{{{ | 905 void VimWidget::flash()//{{{ |
885 { | 906 { |
886 QPainter p(this); | 907 QPainter p(this); |
887 | 908 |