internal->SetCommandLineOptions(argc, argv);
internal->SetStyleSheet(stylesheet);
- internal->GetWindow().SetTransparency((windowMode == Application::TRANSPARENT));
+ internal->GetWindow().SetTransparency((windowMode == Application::OPAQUE ? false : true));
- // Store only the value before adaptor is created
+ //Store only the value before adaptor is created
internal->StoreWindowPositionSize(positionSize);
}
else
{
- WindowData windowData;
- windowData.SetPositionSize(positionSize);
- windowData.SetTransparency(windowMode == Application::TRANSPARENT);
- windowData.SetWindowType(type);
-
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, false, windowData);
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, windowMode, positionSize, Internal::Adaptor::Framework::NORMAL, type, false);
}
return Application(internal.Get());
}
ApplicationPtr Application::gPreInitializedApplication(NULL);
ApplicationPtr Application::New(
- int* argc,
- char** argv[],
- const std::string& stylesheet,
- Framework::Type applicationType,
- bool useUiThread,
- WindowData& windowData)
-{
- ApplicationPtr application(new Application(argc, argv, stylesheet, applicationType, useUiThread, windowData));
+ int* argc,
+ char** argv[],
+ const std::string& stylesheet,
+ Dali::Application::WINDOW_MODE windowMode,
+ const PositionSize& positionSize,
+ Framework::Type applicationType,
+ WindowType type,
+ bool useUiThread)
+{
+ ApplicationPtr application(new Application(argc, argv, stylesheet, windowMode, positionSize, applicationType, type, useUiThread));
return application;
}
if(!gPreInitializedApplication)
{
Dali::TextAbstraction::FontClientPreInitialize();
- WindowData windowData;
- gPreInitializedApplication = new Application(argc, argv, "", Framework::NORMAL, false, windowData);
+
+ gPreInitializedApplication = new Application(argc, argv, "", Dali::Application::OPAQUE, PositionSize(), Framework::NORMAL, WindowType::NORMAL, false);
gPreInitializedApplication->mLaunchpadState = Launchpad::PRE_INITIALIZED;
gPreInitializedApplication->CreateWindow(); // Only create window
}
}
-Application::Application(int* argc, char** argv[], const std::string& stylesheet, Framework::Type applicationType, bool useUiThread, WindowData& windowData)
+Application::Application(int* argc, char** argv[], const std::string& stylesheet, Dali::Application::WINDOW_MODE windowMode, const PositionSize& positionSize, Framework::Type applicationType, WindowType type, bool useUiThread)
: mInitSignal(),
mTerminateSignal(),
mPauseSignal(),
mAdaptor(nullptr),
mEnvironmentOptions(nullptr),
mMainWindow(),
- mMainWindowMode(windowData.GetTransparency() ? WINDOW_MODE::TRANSPARENT : WINDOW_MODE::OPAQUE),
+ mMainWindowMode(windowMode),
mMainWindowName(),
mStylesheet(stylesheet),
- mWindowPositionSize(windowData.GetPositionSize()),
+ mWindowPositionSize(positionSize),
mLaunchpadState(Launchpad::NONE),
- mDefaultWindowType(windowData.GetWindowType()),
+ mDefaultWindowType(type),
mUseUiThread(useUiThread),
mSlotDelegate(this)
{
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
+ * @param[in] windowMode A member of Dali::Application::WINDOW_MODE
+ * @param[in] positionSize A position and a size of the window
* @param[in] applicationType A member of Dali::Framework::Type
+ * @param[in] type It is window type for default window.
* @param[in] useUiThread True if the application would create a UI thread
- * @param[in] windowData The window data
- *
*/
- static ApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, Framework::Type applicationType, bool useUiThread, WindowData& windowData);
+ static ApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WINDOW_MODE windowMode, const PositionSize& positionSize, Framework::Type applicationType, WindowType type, bool useUiThread);
/**
* @copydoc Dali::DevelApplication::PreInitialize()
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
+ * @param[in] windowMode A member of Dali::Application::WINDOW_MODE
+ * @param[in] positionSize A position and a size of the window
* @param[in] applicationType A member of Dali::Framework::Type
- * @param[in] useUiThread True if the application would create UI thread
- * @param[in] windowData The WindowData
+ * @param[in] type The default window's type.
+ * @param[in] useUiThread True if the application would create UI thread
*/
- Application(int* argc, char** argv[], const std::string& stylesheet, Framework::Type applicationType, bool useUiThread, WindowData& windowData);
+ Application(int* argc, char** argv[], const std::string& stylesheet, WINDOW_MODE windowMode, const PositionSize& positionSize, Framework::Type applicationType, WindowType type, bool useUiThread);
/**
* Destructor
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
namespace Adaptor
{
ComponentApplicationPtr ComponentApplication::New(
- int* argc,
- char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ int* argc,
+ char** argv[],
+ const std::string& stylesheet,
+ Dali::Application::WINDOW_MODE windowMode)
{
- ComponentApplicationPtr application(new ComponentApplication(argc, argv, stylesheet, windowData));
+ ComponentApplicationPtr application(new ComponentApplication(argc, argv, stylesheet, windowMode));
return application;
}
-ComponentApplication::ComponentApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: Application(argc, argv, stylesheet, Framework::COMPONENT, false, windowData)
+ComponentApplication::ComponentApplication(int* argc, char** argv[], const std::string& stylesheet, Dali::Application::WINDOW_MODE windowMode)
+: Application(argc, argv, stylesheet, windowMode, PositionSize(), Framework::COMPONENT, WindowType::NORMAL, false)
{
}
#define DALI_INTERNAL_COMPONENT_APPLICATION_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
+ * @param[in] windowMode A member of WINDOW_MODE
* @return A handle to the ComponentApplication
*/
- static ComponentApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static ComponentApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WINDOW_MODE windowMode);
/**
* @brief The default constructor.
*/
- ComponentApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ ComponentApplication(int* argc, char** argv[], const std::string& stylesheet, WINDOW_MODE windowMode);
/**
* @brief Undefined copy constructor.
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
ComponentApplication ComponentApplication::New(int* argc, char** argv[], const std::string& stylesheet)
{
- WindowData windowData;
- Internal::Adaptor::ComponentApplicationPtr internal = Internal::Adaptor::ComponentApplication::New(argc, argv, stylesheet, windowData);
+ Internal::Adaptor::ComponentApplicationPtr internal = Internal::Adaptor::ComponentApplication::New(argc, argv, stylesheet, TRANSPARENT);
return ComponentApplication(internal.Get());
}
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
} // unnamed namespace
WatchApplicationPtr WatchApplication::New(
- int* argc,
- char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ int* argc,
+ char** argv[],
+ const std::string& stylesheet,
+ Dali::WatchApplication::WINDOW_MODE windowMode)
{
- WatchApplicationPtr watch(new WatchApplication(argc, argv, stylesheet, windowData));
+ WatchApplicationPtr watch(new WatchApplication(argc, argv, stylesheet, windowMode));
return watch;
}
-WatchApplication::WatchApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: Application(argc, argv, stylesheet, Framework::WATCH, false, windowData),
+WatchApplication::WatchApplication(int* argc, char** argv[], const std::string& stylesheet, Dali::Application::WINDOW_MODE windowMode)
+: Application(argc, argv, stylesheet, windowMode, PositionSize(), Framework::WATCH, WindowType::NORMAL, false),
mState(UNINITIALIZED)
{
}
#define DALI_INTERNAL_WATCH_APPLICATION_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
+ * @param[in] windowMode A member of Dali::Watch::WINDOW_MODE
*/
- static WatchApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static WatchApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WINDOW_MODE windowMode);
/**
* Private Constructor
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
+ * @param[in] windowMode A member of Dali::Watch::WINDOW_MODE
*/
- WatchApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ WatchApplication(int* argc, char** argv[], const std::string& stylesheet, WINDOW_MODE windowMode);
/**
* Destructor
WatchApplication WatchApplication::New(int* argc, char** argv[])
{
- WindowData windowData;
- windowData.SetTransparency(false);
- Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New(argc, argv, "", windowData);
+ Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New(argc, argv, "", OPAQUE);
return WatchApplication(internal.Get());
}
WatchApplication WatchApplication::New(int* argc, char** argv[], const std::string& stylesheet)
{
- WindowData windowData;
- windowData.SetTransparency(false);
- Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New(argc, argv, stylesheet, windowData);
+ Internal::Adaptor::WatchApplicationPtr internal = Internal::Adaptor::WatchApplication::New(argc, argv, stylesheet, OPAQUE);
return WatchApplication(internal.Get());
}
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
WidgetApplicationPtr WidgetApplicationAndroid::New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ const std::string& stylesheet)
{
- return new WidgetApplicationAndroid(argc, argv, stylesheet, windowData);
+ return new WidgetApplicationAndroid(argc, argv, stylesheet);
}
-WidgetApplicationAndroid::WidgetApplicationAndroid(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: WidgetApplication(argc, argv, stylesheet, windowData)
+WidgetApplicationAndroid::WidgetApplicationAndroid(int* argc, char** argv[], const std::string& stylesheet)
+: WidgetApplication(argc, argv, stylesheet)
{
DALI_LOG_ERROR("WidgetApplication is not implemented in Android profile.\n");
}
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
-WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
+WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet)
{
- return WidgetApplicationAndroid::New(argc, argv, stylesheet, windowData);
+ return WidgetApplicationAndroid::New(argc, argv, stylesheet);
}
} // namespace WidgetApplicationFactory
#define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_ANDROID_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet);
public:
/**
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- WidgetApplicationAndroid(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ WidgetApplicationAndroid(int* argc, char** argv[], const std::string& stylesheet);
/**
* Destructor
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
-WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet);
} // namespace WidgetApplicationFactory
WidgetApplicationPtr WidgetApplication::New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ const std::string& stylesheet)
{
- // WidgetApplicationPtr //widgetApplication( new WidgetApplication (argc, argv, stylesheet ) );
- return WidgetApplicationFactory::Create(argc, argv, stylesheet, windowData);
+ //WidgetApplicationPtr //widgetApplication( new WidgetApplication (argc, argv, stylesheet ) );
+ return WidgetApplicationFactory::Create(argc, argv, stylesheet);
}
-WidgetApplication::WidgetApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: Application(argc, argv, stylesheet, Framework::WIDGET, false, windowData)
+WidgetApplication::WidgetApplication(int* argc, char** argv[], const std::string& stylesheet)
+: Application(argc, argv, stylesheet, Dali::WidgetApplication::OPAQUE, PositionSize(), Framework::WIDGET, WindowType::NORMAL, false)
{
DALI_LOG_ERROR("WidgetApplication is not implemented in UBUNTU profile.\n");
}
#define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet);
public:
/**
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
*/
- WidgetApplication(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ WidgetApplication(int* argc, char** argv[], const std::string& stylesheet);
/**
* Destructor
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
WidgetApplicationPtr WidgetApplicationCocoa::New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ const std::string& stylesheet)
{
- return new WidgetApplicationCocoa(argc, argv, stylesheet, windowData);
+ return new WidgetApplicationCocoa(argc, argv, stylesheet);
}
WidgetApplicationCocoa::WidgetApplicationCocoa(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
-: WidgetApplication(argc, argv, stylesheet, windowData)
+ const std::string& stylesheet)
+: WidgetApplication(argc, argv, stylesheet)
{
DALI_LOG_ERROR("WidgetApplication is not implemented in MACOS profile.\n");
}
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
-WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
+WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet)
{
- return WidgetApplicationCocoa::New(argc, argv, stylesheet, windowData);
+ return WidgetApplicationCocoa::New(argc, argv, stylesheet);
}
} // namespace WidgetApplicationFactory
#define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_WIN_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
static WidgetApplicationPtr New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData);
+ const std::string& stylesheet);
public:
/**
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- WidgetApplicationCocoa(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ WidgetApplicationCocoa(int* argc, char** argv[], const std::string& stylesheet);
/**
* Destructor
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <dali/internal/system/tizen-wayland/widget-application-impl-tizen.h>
// INTERNAL INCLUDE
-#include <dali/devel-api/events/key-event-devel.h>
#include <dali/internal/adaptor/common/adaptor-impl.h>
#include <dali/internal/system/common/environment-variables.h>
#include <dali/internal/system/tizen-wayland/widget-controller-tizen.h>
#include <dali/public-api/adaptor-framework/widget-impl.h>
#include <dali/public-api/adaptor-framework/widget.h>
+#include <dali/devel-api/events/key-event-devel.h>
// EXTERNAL INCLUDES
#include <bundle.h>
* Finally widget framework receive feedback from widget.
*/
#ifdef OVER_TIZEN_VERSION_7
-bool OnKeyEventCallback(const char* id, screen_connector_event_type_e eventType, int keyCode, const char* keyName, long long cls, long long subcls, const char* identifier, long long timestamp, void* userData)
+bool OnKeyEventCallback(const char *id, screen_connector_event_type_e eventType, int keyCode, const char *keyName, long long cls, long long subcls, const char* identifier, long long timestamp, void *userData)
{
Dali::Internal::Adaptor::WidgetApplicationTizen* application = static_cast<Dali::Internal::Adaptor::WidgetApplicationTizen*>(userData);
state = Dali::KeyEvent::UP;
}
- bool consumed = true;
- std::string keyEventName = std::string(keyName);
- Dali::KeyEvent event = Dali::DevelKeyEvent::New(keyEventName, "", "", keyCode, 0, timestamp, state, "", "", Device::Class::NONE, Device::Subclass::NONE);
+ bool consumed = true;
+ std::string keyEventName = std::string(keyName);
+ Dali::KeyEvent event = Dali::DevelKeyEvent::New(keyEventName, "", "", keyCode, 0, timestamp, state, "", "", Device::Class::NONE, Device::Subclass::NONE);
if(application)
{
- std::string widgetId = std::string(id);
+ std::string widgetId = std::string(id);
widget_base_instance_h instanceHandle = application->GetWidgetInstanceFromWidgetId(widgetId);
if(instanceHandle)
{
WidgetApplicationPtr WidgetApplicationTizen::New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ const std::string& stylesheet)
{
- return new WidgetApplicationTizen(argc, argv, stylesheet, windowData);
+ return new WidgetApplicationTizen(argc, argv, stylesheet);
}
-WidgetApplicationTizen::WidgetApplicationTizen(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: WidgetApplication(argc, argv, stylesheet, windowData),
+WidgetApplicationTizen::WidgetApplicationTizen(int* argc, char** argv[], const std::string& stylesheet)
+: WidgetApplication(argc, argv, stylesheet),
mConnectedKeyEvent(false),
mReceivedKeyEvent(false)
{
void WidgetApplicationTizen::OnWindowKeyEvent(const Dali::KeyEvent& event)
{
- // If Widget Application consume key event, this api is not called.
+ //If Widget Application consume key event, this api is not called.
mReceivedKeyEvent = true;
}
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
-Dali::Internal::Adaptor::WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
+Dali::Internal::Adaptor::WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet)
{
- return WidgetApplicationTizen::New(argc, argv, stylesheet, windowData);
+ return WidgetApplicationTizen::New(argc, argv, stylesheet);
}
} // namespace WidgetApplicationFactory
#define DALI_INTERNAL_WIDGET_APPLICATION_TIZEN_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*/
// EXTERNAL INCLUDES
-#include <screen_connector_provider.h>
#include <widget_base.h>
+#include <screen_connector_provider.h>
// INTERNAL INCLUDES
#include <dali/devel-api/adaptor-framework/window-devel.h>
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet);
public:
/**
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- WidgetApplicationTizen(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ WidgetApplicationTizen(int* argc, char** argv[], const std::string& stylesheet);
/**
* Destructor
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
WidgetApplicationPtr WidgetApplicationUbuntu::New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ const std::string& stylesheet)
{
- return new WidgetApplicationUbuntu(argc, argv, stylesheet, windowData);
+ return new WidgetApplicationUbuntu(argc, argv, stylesheet);
}
-WidgetApplicationUbuntu::WidgetApplicationUbuntu(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: WidgetApplication(argc, argv, stylesheet, windowData)
+WidgetApplicationUbuntu::WidgetApplicationUbuntu(int* argc, char** argv[], const std::string& stylesheet)
+: WidgetApplication(argc, argv, stylesheet)
{
DALI_LOG_ERROR("WidgetApplication is not implemented in UBUNTU profile.\n");
}
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
-WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
+WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet)
{
- return WidgetApplicationUbuntu::New(argc, argv, stylesheet, windowData);
+ return WidgetApplicationUbuntu::New(argc, argv, stylesheet);
}
} // namespace WidgetApplicationFactory
#define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_UBUNTU_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet);
public:
/**
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- WidgetApplicationUbuntu(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ WidgetApplicationUbuntu(int* argc, char** argv[], const std::string& stylesheet);
/**
* Destructor
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
WidgetApplicationPtr WidgetApplicationWin::New(
int* argc,
char** argv[],
- const std::string& stylesheet,
- WindowData& windowData)
+ const std::string& stylesheet)
{
- return new WidgetApplicationWin(argc, argv, stylesheet, windowData);
+ return new WidgetApplicationWin(argc, argv, stylesheet);
}
-WidgetApplicationWin::WidgetApplicationWin(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
-: WidgetApplication(argc, argv, stylesheet, windowData)
+WidgetApplicationWin::WidgetApplicationWin(int* argc, char** argv[], const std::string& stylesheet)
+: WidgetApplication(argc, argv, stylesheet)
{
DALI_LOG_ERROR("WidgetApplication is not implemented in UBUNTU profile.\n");
}
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
-WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData)
+WidgetApplicationPtr Create(int* argc, char** argv[], const std::string& stylesheet)
{
- return WidgetApplicationWin::New(argc, argv, stylesheet, windowData);
+ return WidgetApplicationWin::New(argc, argv, stylesheet);
}
} // namespace WidgetApplicationFactory
#define DALI_INTERNAL_WIDGET_APPLICATION_IMPL_WIN_H
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet, WindowData& windowData);
+ static WidgetApplicationPtr New(int* argc, char** argv[], const std::string& stylesheet);
public:
/**
* @param[in] argc A pointer to the number of arguments
* @param[in] argv A pointer to the argument list
* @param[in] stylesheet The path to user defined theme file
- * @param[in] windowData The window data
*/
- WidgetApplicationWin(int* argc, char** argv[], const std::string& stylesheet WindowData& windowData);
+ WidgetApplicationWin(int* argc, char** argv[], const std::string& stylesheet);
/**
* Destructor
}
else
{
- WindowData windowData;
- windowData.SetTransparency(false);
-
- internal = Internal::Adaptor::Application::New(argc, argv, "", Internal::Adaptor::Framework::NORMAL, false, windowData);
+ internal = Internal::Adaptor::Application::New(argc, argv, "", OPAQUE, PositionSize(), Internal::Adaptor::Framework::NORMAL, WindowType::NORMAL, false);
}
return Application(internal.Get());
}
}
else
{
- WindowData windowData;
- windowData.SetTransparency(false);
-
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, false, windowData);
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, OPAQUE, PositionSize(), Internal::Adaptor::Framework::NORMAL, WindowType::NORMAL, false);
}
return Application(internal.Get());
}
internal->SetCommandLineOptions(argc, argv);
internal->SetStyleSheet(stylesheet);
- internal->GetWindow().SetTransparency((windowMode == Application::TRANSPARENT));
+ internal->GetWindow().SetTransparency((windowMode == Application::OPAQUE ? false : true));
}
else
{
- WindowData windowData;
- windowData.SetTransparency(windowMode == Application::TRANSPARENT);
-
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, false, windowData);
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, windowMode, PositionSize(), Internal::Adaptor::Framework::NORMAL, WindowType::NORMAL, false);
}
return Application(internal.Get());
}
internal->SetCommandLineOptions(argc, argv);
internal->SetStyleSheet(stylesheet);
- internal->GetWindow().SetTransparency(windowMode == Application::TRANSPARENT);
+ internal->GetWindow().SetTransparency((windowMode == Application::OPAQUE ? false : true));
- // Store only the value before adaptor is created
+ //Store only the value before adaptor is created
internal->StoreWindowPositionSize(positionSize);
}
else
{
- WindowData windowData;
- windowData.SetPositionSize(positionSize);
- windowData.SetTransparency(windowMode == Application::TRANSPARENT);
-
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, false, windowData);
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, windowMode, positionSize, Internal::Adaptor::Framework::NORMAL, WindowType::NORMAL, false);
}
return Application(internal.Get());
}
internal->SetCommandLineOptions(argc, argv);
internal->SetStyleSheet(stylesheet);
- internal->GetWindow().SetTransparency(windowMode == Application::TRANSPARENT);
+ internal->GetWindow().SetTransparency((windowMode == Application::OPAQUE ? false : true));
- // Store only the value before adaptor is created
+ //Store only the value before adaptor is created
internal->StoreWindowPositionSize(positionSize);
}
else
{
- WindowData windowData;
- windowData.SetPositionSize(positionSize);
- windowData.SetTransparency(windowMode == Application::TRANSPARENT);
-
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, useUiThread, windowData);
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, windowMode, positionSize, Internal::Adaptor::Framework::NORMAL, WindowType::NORMAL, useUiThread);
}
return Application(internal.Get());
}
}
else
{
- internal = Internal::Adaptor::Application::New(argc, argv, stylesheet, Internal::Adaptor::Framework::NORMAL, useUiThread, windowData);
+ // clang-format off
+ internal = Internal::Adaptor::Application::New(argc, argv, stylesheet,
+ windowData.GetTransparency() ? WINDOW_MODE::TRANSPARENT : WINDOW_MODE::OPAQUE,
+ windowData.GetPositionSize(), Internal::Adaptor::Framework::NORMAL,
+ windowData.GetWindowType(), useUiThread);
+ // clang-format on
}
return Application(internal.Get());
}
/*
- * Copyright (c) 2023 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
preInitializedApplication.Reset();
}
- WindowData windowData;
- Internal::Adaptor::WidgetApplicationPtr internal = Internal::Adaptor::WidgetApplication::New(argc, argv, stylesheet, windowData);
+ Internal::Adaptor::WidgetApplicationPtr internal = Internal::Adaptor::WidgetApplication::New(argc, argv, stylesheet);
return WidgetApplication(internal.Get());
}