mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
CComponentsForm provides page scroll if found more
than one pre defined page and is working with all derivated sub classes from CComponentsForm .
Pages are defined with setPageNumber(0...n) in items (1st page = 0). The item page number property is
defined in variable cc_page_number. The highest page number sets the
count of pages inside container to required value. Thats compellingly!
To show a page, we can use setCurrentPage(0...n ) and paintCurPage() or use directly paintPage(0...n).
Note: global paint() will show the current page. Default page is 0 (as first).
Use setCurrentPage(0...n) to change this before first call of paint().
Note: In CComponentsWindow class, these methods are applied to window body.
For examples, take a look into CTestMenu
Origin commit data
------------------
Commit: 672757606c
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-06-26 (Thu, 26 Jun 2014)
59 lines
1.6 KiB
C
59 lines
1.6 KiB
C
/*
|
|
Based up Neutrino-GUI - Tuxbox-Project
|
|
Copyright (C) 2001 by Steffen Hehn 'McClean'
|
|
|
|
Classes for generic GUI-related components.
|
|
Copyright (C) 2013, Thilo Graf 'dbt'
|
|
|
|
License: GPL
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2 of the License, or (at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public
|
|
License along with this program; if not, write to the
|
|
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
/// Basic CComponent class header.
|
|
/*!
|
|
Basic attributes and member functions for component sub classes
|
|
*/
|
|
|
|
#ifndef __N_COMPONENTS__
|
|
#define __N_COMPONENTS__
|
|
|
|
#include "cc_types.h"
|
|
#include "cc_base.h"
|
|
|
|
#include "cc_item_infobox.h"
|
|
#include "cc_item_picture.h"
|
|
#include "cc_item_progressbar.h"
|
|
#include "cc_item_shapes.h"
|
|
#include "cc_item_tvpic.h"
|
|
|
|
#include "cc_detailsline.h"
|
|
|
|
#include "cc_frm_scrollbar.h"
|
|
#include "cc_frm.h"
|
|
#include "cc_frm_chain.h"
|
|
#include "cc_frm_button.h"
|
|
#include "cc_frm_clock.h"
|
|
#include "cc_frm_ext_text.h"
|
|
#include "cc_frm_header.h"
|
|
#include "cc_frm_icons.h"
|
|
#include "cc_frm_signalbars.h"
|
|
#include "cc_frm_slider.h"
|
|
#include "cc_frm_window.h"
|
|
|
|
|
|
#endif /*__N_COMPONENTS__*/
|