kopia lustrzana https://github.com/jamescoxon/dl-fldigi
Upstream version 2.10Z
rodzic
78fc91593f
commit
122cac96e8
|
@ -9,7 +9,7 @@ dnl major and minor must be integers; patch may
|
|||
dnl contain other characters or be empty
|
||||
m4_define(FLDIGI_MAJOR, [2])
|
||||
m4_define(FLDIGI_MINOR, [10])
|
||||
m4_define(FLDIGI_PATCH, [Y])
|
||||
m4_define(FLDIGI_PATCH, [Z])
|
||||
|
||||
AC_INIT([fldigi], FLDIGI_MAJOR.FLDIGI_MINOR[FLDIGI_PATCH], [w1hkj AT w1hkj DOT com])
|
||||
|
||||
|
|
|
@ -440,6 +440,7 @@ void init_modem_sync(trx_mode m)
|
|||
wait_modem_ready_prep();
|
||||
init_modem(m);
|
||||
wait_modem_ready_cmpl();
|
||||
REQ_FLUSH();
|
||||
}
|
||||
|
||||
void cb_init_mode(Fl_Widget *, void *mode)
|
||||
|
|
|
@ -201,19 +201,21 @@ void FTextBase::saveFile(void)
|
|||
tbuf->outputfile(fn, 0, tbuf->length());
|
||||
}
|
||||
|
||||
/// Returns a character string containing the word at (\a x, \a y) relative to
|
||||
/// the widget's \c x() and \c y().
|
||||
/// Returns a character string containing the selected text, if any,
|
||||
/// or the word at (\a x, \a y) relative to the widget's \c x() and \c y().
|
||||
///
|
||||
/// @param x
|
||||
/// @param y
|
||||
///
|
||||
/// @return The word text at (x,y). <b>Must be freed by the caller</b>.
|
||||
/// @return The selection, or the word text at (x,y). <b>Must be freed by the caller</b>.
|
||||
///
|
||||
char *FTextBase::get_word(int x, int y)
|
||||
{
|
||||
int p = xy_to_position(x + this->x(), y + this->y(),
|
||||
Fl_Text_Display_mod::CURSOR_POS);
|
||||
tbuf->select(word_start(p), word_end(p));
|
||||
if (!tbuf->selected()) {
|
||||
int p = xy_to_position(x + this->x(), y + this->y(),
|
||||
Fl_Text_Display_mod::CURSOR_POS);
|
||||
tbuf->select(word_start(p), word_end(p));
|
||||
}
|
||||
char *s = tbuf->selection_text();
|
||||
tbuf->unselect();
|
||||
|
||||
|
@ -754,7 +756,17 @@ int FTextEdit::nextChar(void)
|
|||
int FTextEdit::handle_key(int key)
|
||||
{
|
||||
switch (key) {
|
||||
case FL_Escape:
|
||||
case FL_Escape: // set stop flag and clear
|
||||
{
|
||||
static time_t t[2] = { 0, 0 };
|
||||
static unsigned char i = 0;
|
||||
if (t[i] == time(&t[!i])) { // two presses in a second: reset modem
|
||||
trx_start_modem(active_modem);
|
||||
t[i = !i] = 0;
|
||||
return 1;
|
||||
}
|
||||
i = !i;
|
||||
}
|
||||
clear();
|
||||
active_modem->set_stopflag(true);
|
||||
return 1;
|
||||
|
|
Ładowanie…
Reference in New Issue