示例#1
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mVideoView(NULL),
	mEditBox(NULL),
	mSetUrl(NULL),
	mPlay(NULL),
	mPause(NULL),
	mStop(NULL),
	mGetDuration(NULL),
	mDuration(NULL),
	mSeekTo(NULL),
	mCurrentTime(NULL),
	mTime(NULL),
	mVideoControl(NULL)
{
	createMainLayout();

	mSetUrl->addButtonListener(this);
	mPlay->addButtonListener(this);
	mPause->addButtonListener(this);
	mStop->addButtonListener(this);
	mGetDuration->addButtonListener(this);
	mSeekTo->addButtonListener(this);
	mCurrentTime->addButtonListener(this);
	mVideoControl->addButtonListener(this);

	mVideoView->addVideoViewListener(this);
	mEditBox->addEditBoxListener(this);
}
示例#2
0
/**
 * Constructor.
 */
VideoScreen::VideoScreen() :
	Screen(),
	mMainLayout(NULL),
	mMiddleSpacerLayout(NULL),
	mVideoView(NULL),
	mSourceStatus(NULL),
	mButtonsLayout(NULL),
	mPlay(NULL),
	mPause(NULL),
	mStop(NULL),
	mDuration(NULL),
	mEditBox(NULL),
	mLoadLayout(NULL),
	mSetUrl(NULL),
	mSetPath(NULL),
	mSpacerBottomLayout(NULL)
{
	// Initialize the UI and set the listeners.

	setTitle("Video");

	MAExtent screenSize = maGetScrSize();
	mScreenWidth = EXTENT_X(screenSize);
	mScreenHeight = EXTENT_Y(screenSize);

	createMainLayout();

	mVideoView->addVideoViewListener(this);
	mPlay->addButtonListener(this);
	mPause->addButtonListener(this);
	mStop->addButtonListener(this);
	mSetUrl->addButtonListener(this);
	mSetPath->addButtonListener(this);
	mExitButton->addButtonListener(this);
}
示例#3
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mBuyButton(NULL),
	mAvailableItemsList(NULL),
	mProductToBuy(-1),
	mPurchasedItemsList(NULL),
	mReceiptDialog(NULL),
	mReceiptProductId(NULL),
	mReceiptAppId(NULL),
	mReceiptTransactionDate(NULL),
	mReceiptTransactionId(NULL),
	mReceiptVersionExternalId(NULL),
	mReceiptBid(NULL),
	mReceiptOkButton(NULL)
{
	createProductIdList();
	createMainLayout();
	createReceiptDialog();
	mBuyButton->addButtonListener(this);
	mReceiptOkButton->addButtonListener(this);
	for (int i=0; i < mItemsCheckBoxes.size(); i++)
	{
		mItemsCheckBoxes[i]->addCheckBoxListener(this);
	}
}
示例#4
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mSetDate(NULL),
	mGetDate(NULL),
	mDisplayedDate(NULL),
	mSetMaxDate(NULL),
	mGetMaxDate(NULL),
	mGetMaxDateValue(NULL),
	mGetMinDateValue(NULL),
	mSetMinDate(NULL),
	mGetMinDate(NULL),
	mDatePicker(NULL)
{
	createMainLayout();

	mDatePicker->addDatePickerListener(this);

	mSetDate->addButtonListener(this);
	mGetDate->addButtonListener(this);
	mSetMaxDate->addButtonListener(this);
	mGetMaxDate->addButtonListener(this);
	mSetMinDate->addButtonListener(this);
	mGetMinDate->addButtonListener(this);
}
示例#5
0
SaveScreen::SaveScreen(Screen *previous) : previous(previous) {
	Label *label;

	/* Create the main work/text area */
	mainLayout = createMainLayout("", LANG_BACK);
	listBox = (TouchListBox*) mainLayout->getChildren()[FIRSTCHILD];

	/* Create the different label/input fields */

	/* ---------------------------------- */
	label = createLabel(LANG_SAVE_TRUCK, FONTHEIGHT);
	checkBox.add(new CheckBox(scrWidth - 50, 2, 16, 16, label));
	checkBox[0]->setResources(RES_CHECKBOX_UNCHECKED, RES_CHECKBOX_CHECKED);
	listBox->add(label);

	/* ---------------------------------- */
	label = createLabel(LANG_SAVE_TRAILER, FONTHEIGHT);
	checkBox.add(new CheckBox(scrWidth - 50, 2, 16, 16, label));
	checkBox[1]->setResources(RES_CHECKBOX_UNCHECKED, RES_CHECKBOX_CHECKED);
	listBox->add(label);

	/* ---------------------------------- */
	listBox->setWrapping(WRAPPING);

	this->setMain(mainLayout);
}
示例#6
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mLayout(NULL),
	mLabel(NULL)
{
	createMainLayout();

}
示例#7
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	TabScreen(),
	mMainLayout(NULL)
{
	createMainLayout();

    this->addTabScreenListener(this);
    this->setActiveTab(0);
}
示例#8
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mImageButton(NULL),
	mEvents(NULL)
{
	createMainLayout();
	mImageButton->addButtonListener(this);
}
示例#9
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mGLView(NULL)
{
	createMainLayout();

	mGLView->addGLViewListener(this);
}
示例#10
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mLabel(NULL),
	mEventsList(NULL),
	mEditBox(NULL)
{
	createMainLayout();
	mEditBox->addEditBoxListener(this);
}
KisGmicInputOutputWidget::KisGmicInputOutputWidget(QWidget * parent):
    QWidget(parent),
    m_inputMode(ACTIVE_LAYER),
    m_outputMode(IN_PLACE),
    m_previewMode(FIRST),
    m_previewSize(TINY)
{
    setupUi(this);
    createMainLayout();
}
示例#12
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mButton(NULL),
	mEvents(NULL)
{
	createMainLayout();
	mButton->addEventListener(this);
	mButton->addButtonListener(this);
	mTestFontLabel->addButtonListener(this);
}
示例#13
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mLabel(NULL),
	nrFontsLabel(NULL),
	fontLoadedName(NULL),
	testFontLabel(NULL)
{
	createMainLayout();

}
示例#14
0
/**
 * Layout the widgets (portrait mode).
 */
void NativeScreen::setupUI()
{
	// Create the main screen
	mScreen = maWidgetCreate(MAW_SCREEN);

	// Create the main layout.
	mMainLayout = createMainLayout();

	// Add the main layout to the screen
	maWidgetAddChild(mScreen, mMainLayout);
}
/**
 * Constructor.
 */
ButtonSettingsLayout::ButtonSettingsLayout():
	VerticalLayout(),
	setTextButton(NULL),
	setTextEditBox(NULL),
	getTextButton(NULL),
	getTextLabel(NULL)
{
	createMainLayout();

	setTextButton->addButtonListener(this);
	getTextButton->addButtonListener(this);
}
示例#16
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mCheckBox(NULL),
	mCheckBoxButton(NULL),
	mCheckBoxState(false)
{
	createMainLayout();

	mCheckBoxButton->addButtonListener(this);
	mCheckBox->addCheckBoxListener(this);
}
示例#17
0
/**
 * Constructor.
 * @param os The current os.
 * @param orientation The current device orientation.
 */
WorkspaceLayout::WorkspaceLayout(MAUtil::String os, int orientation) :
	VerticalLayout()
{

	mSelectedProject = -1;
	mSelectedProjectName = "";
	mOS = os;
	mCurrentOrientation = orientation;

	setScreenValues();

	createMainLayout();
}
示例#18
0
MainDeb::MainDeb(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainDeb)
{
    ui->setupUi(this);
    animTime=500;
    createGuiControlComponents();
    createSubSlidingWidgets();
    createSlidingStackedWidget();
    createMainLayout();
    createConnections();
    //add item
}
示例#19
0
CustomScreen::CustomScreen(Screen *previous) : previous(previous) {
	mainLayout = createMainLayout("", "Back");
	listBox = (ListBox*) mainLayout->getChildren()[0];
	
	digClock = new Clock(0, 0, scrWidth-PADDING*2, 32, listBox, gFont);
	digClock->setType(Clock::DIGITAL);

	anaClock = new Clock(0, 0, scrWidth-PADDING*2, 128-32, listBox, 0);
	anaClock->setType(Clock::ANALOGUE);

	softKeys = mainLayout->getChildren()[1];

	setMain(mainLayout);
}
示例#20
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mProgressBar(NULL),
	mProgressBarValue(NULL),
	mSetProgressValueButton(NULL),
	mGetProgressValueButton(NULL),
	mIncreaseValueButton(NULL)
{
	createMainLayout();

	mSetProgressValueButton->addButtonListener(this);
    mGetProgressValueButton->addButtonListener(this);
	mIncreaseValueButton->addButtonListener(this);
}
示例#21
0
CameraWidget::CameraWidget(QWidget* parent, QStringList* POISemanticTypes, VideoController* videoController, vector<AbstractCamera*>* cameras/*, MainWindow* parent2*/) :
    QWidget(parent), _POISemanticTypesRef(POISemanticTypes), _videoController(videoController) {

    QString windowTitle = QString(_videoController->getCamera()->getName().c_str());
    setWindowTitle(windowTitle);
    createMainLayout();
    createActions();

    _videoController->setPOIsImageWidget(_POIsImageWidget);

    _camerasRef = cameras;

    //_parent = parent2;

    //parent->ggetMocapRef()->getTrackingAlgorithm();
}
示例#22
0
CamTab::CamTab(CamSettings * set, QWidget *parent) :
    QWidget(parent)
{
    settings = set;
    createMainLayout();

    QString suffix(settings->getExt());
    suffix.prepend("*.");
    frameList = QDir(settings->getDir()).entryInfoList(QStringList(suffix), QDir::Files, QDir::Name);
    if (!frameList.isEmpty()) {
        currentFile = frameList.last().absoluteFilePath();
        updateViewPort();
    }

    timer = new QTimer(this);
    connect(&manager, SIGNAL(finished(QNetworkReply*)), SLOT(downloadFinished(QNetworkReply*)));
    connect(timer, SIGNAL(timeout()), this, SLOT(execute()));
    connect(settings, SIGNAL(intChanged()), this, SLOT(updateInterval()));
}
示例#23
0
/**
 * Constructor.
 */
ListScreen::ListScreen() :
	Screen(),
	mMainLayout(NULL),
	mListView(NULL),
	mRemoveFirstSection(NULL),
	mAddItem(NULL),
	mRemoveItem(NULL),
	mReloadData(NULL)
{
	createMainLayout();

	mListView->addListViewListener(this);
	mRemoveFirstSection->addButtonListener(this);
	mAddItem->addButtonListener(this);
	mRemoveItem->addButtonListener(this);
	if (isIOS() || isAndroid())
	{
		mReloadData->addButtonListener(this);
	}
}
示例#24
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mSlider(NULL),
	mEditBox(NULL),
	mSetValueButton(NULL),
	mGetValueButton(NULL),
	mGetValueLabel(NULL),
	mIncreaseValueButton(NULL),
	mDecreseValueButton(NULL)
{
	createMainLayout();

	mSetValueButton->addButtonListener(this);
    mGetValueButton->addButtonListener(this);
    mIncreaseValueButton->addButtonListener(this);
    mDecreseValueButton->addButtonListener(this);
    mSlider->addSliderListener(this);
    mEditBox->addEditBoxListener(this);
}
示例#25
0
	/**
	 * Constructor.
	 */
	TestScreen::TestScreen() :
		Screen(),
		mMainLayout(NULL),
		mImage(NULL),
		mGetImageAlpha(NULL),
		mImageAlpha(NULL),
		mImageSlider(NULL),
		mLayout(NULL),
		mGetLayoutAlpha(NULL),
		mLayoutAlpha(NULL),
		mLayoutSlider(NULL)
	{
		this->setTitle(SCREEN_TITLE);

		createMainLayout();
		mGetImageAlpha->addButtonListener(this);
		mGetLayoutAlpha->addButtonListener(this);
		mImageSlider->addSliderListener(this);
		mLayoutSlider->addSliderListener(this);
	}
示例#26
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	myGender(NULL),
	mButtonForm(NULL),
	mDialog(NULL),
	mGenderFemale(NULL),
	mGenderMale(NULL),
	myAge(NULL),
	mDialogDismiss(NULL)
{
	createMainLayout();
	createDialogMainLayout();

	mButtonForm->addButtonListener(this);
	mDialogDismiss->addButtonListener(this);
	mGenderFemale->addCheckBoxListener(this);
	mGenderMale->addCheckBoxListener(this);
	mAge->addSliderListener(this);
}
示例#27
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mWebView(NULL),
	mHookReceived(NULL),
	mLoadingState(NULL),
	mEnableVerticalScroll(NULL),
	mEnableHorizontalScroll(NULL),
	mOpenUrl(NULL),
	mSetHardHook(NULL),
	mSetSoftHook(NULL)
{
	createMainLayout();

	mWebView->addWebViewListener(this);
	mEnableHorizontalScroll->addButtonListener(this);
	mEnableVerticalScroll->addButtonListener(this);
	mOpenUrl->addButtonListener(this);
	mSetSoftHook->addButtonListener(this);
	mSetHardHook->addButtonListener(this);
}
示例#28
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mBanner(NULL),
	mBannerMessage(NULL),
	mEnableCheckBox(NULL),
	mRefreshEnableButton(NULL),
	mIsBannerEnabled(NULL),
	mGetSizeButton(NULL),
	mSizeLabel(NULL),
	mRefreshVisibleButton(NULL),
	mIsBannerVisible(NULL)
{
	createMainLayout();

	mEnableCheckBox->addCheckBoxListener(this);
	mShowBannerCheckBox->addCheckBoxListener(this);
	mBanner->addBannerListener(this);
	mGetSizeButton->addButtonListener(this);
	mRefreshEnableButton->addButtonListener(this);
	mRefreshVisibleButton->addButtonListener(this);
}
示例#29
0
/**
 * Constructor.
 */
MainScreen::MainScreen() :
	Screen(),
	mMainLayout(NULL),
	mGetVisibleAreaButton(NULL),
	mSetVisibleAreaButton(NULL),
	mAddPinToMap(NULL),
	mRemovePinFromMap(NULL),
	mSetZoomLevel(NULL),
	mSetCenterButton(NULL),
	mMap(NULL)
{
	createMainLayout();

	mMap->addMapListener(this);
	mGetVisibleAreaButton->addButtonListener(this);
	mSetVisibleAreaButton->addButtonListener(this);
	mAddPinToMap->addButtonListener(this);
	mRemovePinFromMap->addButtonListener(this);
	mSetZoomLevel->addButtonListener(this);
	mSetCenterButton->addButtonListener(this);
}
示例#30
0
ContactScreen::ContactScreen(Screen *previous, Feed *feed) : previous(previous), feed(feed) {

	mainLayout = createMainLayout(back, select, "" , true);

	listBox = (KineticListBox*) mainLayout->getChildren()[0]->getChildren()[2];
	notice = (Label*) mainLayout->getChildren()[0]->getChildren()[1];
	notice->setCaption("Looking up Contact info");
	found = false;

	lbl = createSubLabel("Empty");
	lbl->addWidgetListener(this);
	listBox->add(lbl);

	//listBox->setSelectedIndex(0);

	pim = PIM::PIM();
	pim.addListener(this);
	pim.getContacts();

	this->setMain(mainLayout);
}