mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-10-24 15:38:30 -04:00
Fixed scrolling problems in list view.
This commit is contained in:
1 parent
4dccaf3370
commit
0208d065c3
8 files changed
+127
-130
No files matched your search
@@ -40,67 +40,22 @@ void NotesMainWindow::buildInterface() {
|
||||
list = new gui::ListView(this, 16, 104, 480-32, 440 );
|
||||
list->setMaxElements(3);
|
||||
list->setPageSize(3);
|
||||
list->setProvider( notesModel );
|
||||
|
||||
setFocusItem(list);
|
||||
|
||||
// bottomBar->setActive( BottomBar::Side::CENTER, true );
|
||||
// bottomBar->setActive( BottomBar::Side::RIGHT, true );
|
||||
// bottomBar->setText( BottomBar::Side::CENTER, utils::localize.get("common_open"));
|
||||
// bottomBar->setText( BottomBar::Side::RIGHT, utils::localize.get("common_back"));
|
||||
//
|
||||
// topBar->setActive(TopBar::Elements::SIGNAL, true );
|
||||
// topBar->setActive(TopBar::Elements::BATTERY, true );
|
||||
//
|
||||
// title = new gui::Label(this, 0, 50, 480, 50 );
|
||||
// title->setFilled( false );
|
||||
// title->setBorderColor( gui::ColorNoColor );
|
||||
// title->setFont("gt_pressura_bold_24");
|
||||
// title->setText(utils::localize.get("app_settings_title_main"));
|
||||
// title->setAlignement( gui::Alignment(gui::Alignment::ALIGN_HORIZONTAL_CENTER, gui::Alignment::ALIGN_VERTICAL_CENTER));
|
||||
//
|
||||
// //add option connectivity option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_connectivity"), [=] (gui::Item& item){ return true; }) );
|
||||
//
|
||||
// //add option date and time option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_date_and_time"), [=](gui::Item&){ return true;}) );
|
||||
//
|
||||
// //add option display option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_display"), [=](gui::Item&){ return true;} ));
|
||||
//
|
||||
// //add option phone mode option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_phone_modes"), [=](gui::Item&){ return true;} ));
|
||||
//
|
||||
// //add option security option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_security"), [=](gui::Item&){ return true;} ));
|
||||
//
|
||||
// //add option language option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_language"), [=](gui::Item&){
|
||||
// LOG_INFO("switching to language page" );
|
||||
// application->switchWindow("Languages", 0, nullptr );
|
||||
// return true;} ));
|
||||
//
|
||||
// //add option security option
|
||||
// options.push_back( addOptionLabel( utils::localize.get("app_settings_about"), [=](gui::Item&){ return true;} ));
|
||||
//
|
||||
// //set position and navigation for labels
|
||||
// uint32_t posY = 100;
|
||||
// uint32_t size = options.size();
|
||||
// for( uint32_t i=0; i<options.size(); i++ ){
|
||||
// options[i]->setPosition(17,posY);
|
||||
// posY += 60;
|
||||
// options[i]->setNavigationItem( NavigationDirection::DOWN, options[(i+1)%size]);
|
||||
// options[i]->setNavigationItem( NavigationDirection::UP, options[(size+i-1)%size]);
|
||||
// }
|
||||
bottomBar->setActive( BottomBar::Side::CENTER, true );
|
||||
bottomBar->setActive( BottomBar::Side::RIGHT, true );
|
||||
bottomBar->setText( BottomBar::Side::CENTER, utils::localize.get("common_open"));
|
||||
bottomBar->setText( BottomBar::Side::RIGHT, utils::localize.get("common_back"));
|
||||
|
||||
topBar->setActive(TopBar::Elements::TIME, true );
|
||||
|
||||
}
|
||||
void NotesMainWindow::destroyInterface() {
|
||||
AppWindow::destroyInterface();
|
||||
// delete title;
|
||||
// for( uint32_t i=0; i<options.size(); i++ )
|
||||
// delete options[i];
|
||||
// options.clear();
|
||||
// this->focusItem = nullptr;
|
||||
// LOG_INFO("options size: %d", options.size());
|
||||
children.clear();
|
||||
delete notesModel;
|
||||
}
|
||||
|
||||
NotesMainWindow::~NotesMainWindow() {
|
||||
|
||||
Reference in new issue
Block a user