Refactoring of the FListBox mouse event handler

This commit is contained in:
Markus Gans 2017-12-30 03:54:05 +01:00
parent a880684432
commit 61f824f54d
4 changed files with 413 additions and 403 deletions

View File

@ -1,3 +1,6 @@
2017-12-30 Markus Gans <guru.mail@muenster.de>
* Refactoring of the FListBox mouse event handler
2017-12-29 Markus Gans <guru.mail@muenster.de>
* Refactoring of the FDialog mouse event handler

View File

@ -255,6 +255,22 @@ class FListBox : public FWidget
void updateDrawing (bool, bool);
void recalculateHorizontalBar (int, bool);
void recalculateVerticalBar (int);
void getWidgetFocus();
void multiSelection (int);
void multiSelectionUpTo (int);
void wheelUp (int);
void wheelDown (int);
bool dragScrollUp();
bool dragScrollDown();
void dragUp (int);
void dragDown (int);
void stopDragScroll();
void prevListItem (int);
void nextListItem (int);
void scrollToX (int);
void scrollToY (int);
void scrollLeft (int);
void scrollRight (int);
void keyUp();
void keyDown();
void keyLeft();

File diff suppressed because it is too large Load Diff

View File

@ -3189,6 +3189,8 @@ char* FTerm::parseSecDA (char current_termtype[])
if ( std::strncmp(termtype, "rxvt-", 5) != 0
&& std::strncmp(termtype, "rxvt-cygwin-native", 18) == 0 )
new_termtype = C_STR("rxvt-16color");
else
new_termtype = termtype;
break;
case 85: // rxvt-unicode
@ -3202,11 +3204,20 @@ char* FTerm::parseSecDA (char current_termtype[])
else
new_termtype = C_STR("rxvt");
}
else
new_termtype = termtype;
break;
default:
break;
}
// Correct false assumptions
if ( gnome_terminal && terminal_id_type != 1 )
gnome_terminal = false;
if ( kde_konsole && terminal_id_type != 0 )
kde_konsole = false;
}
}
}