JANITORIAL: Protected few GridWidget members as appropriate

This commit is contained in:
av-dx 2021-07-27 13:08:32 +05:30 committed by Eugene Sandulenko
parent cdc62b6aca
commit 85fa7a26ff
2 changed files with 10 additions and 11 deletions

View File

@ -176,7 +176,6 @@ void GridItemWidget::handleMouseDown(int x, int y, int button, int clickCount) {
_grid->draw();
}
_grid->openTray(oldX, oldY - offsetY + _h, _activeEntry->entryID);
_grid->_tray->runModal();
}
}
@ -624,6 +623,7 @@ void GridWidget::reflowLayout() {
void GridWidget::openTray(int x, int y, int entryId) {
_tray = new GridItemTray(this, x - _gridXSpacing / 3, y, _gridItemWidth + 2 * (_gridXSpacing / 3), _trayHeight, entryId, this);
_tray->runModal();
}
void GridWidget::scrollBarRecalc() {

View File

@ -107,30 +107,29 @@ protected:
int _scrollWindowWidth;
int _scrollSpeed;
int _scrollPos;
public:
int _innerHeight;
int _innerWidth;
int _thumbnailHeight;
int _thumbnailWidth;
int _gridItemHeight;
int _gridItemWidth;
int _minGridXSpacing;
int _minGridYSpacing;
int _gridXSpacing;
int _gridYSpacing;
int _trayHeight;
int _rows;
int _itemsPerRow;
int _firstVisibleItem;
int _itemsOnScreen;
GridItemTray *_tray;
String _iconDir;
public:
int _gridItemHeight;
int _gridItemWidth;
int _gridXSpacing;
int _gridYSpacing;
int _trayHeight;
bool _isTitlesVisible;
int _selectedEntry;
GridItemTray *_tray;
String _iconDir;
GridWidget(GuiObject *boss, int x, int y, int w, int h);
GridWidget(GuiObject *boss, const String &name);