text
stringlengths 8
6.88M
|
|---|
#pragma once
#include "Definitions.h"
#include "IJKSize.h"
#include <memory>
#include <vector>
#include "SimpleStorage.h"
#include "SimpleSwappableStorage.h"
class Repository {
DISALLOW_COPY_AND_ASSIGN(Repository);
public:
Repository(const IJKSize& domain);
~Repository();
const IJKSize domain;
SimpleSwappableStorage< Real >& field(size_t i) {
return *fields_[i];
}
SimpleStorage< Real >& in(size_t i) {
return field(i).in;
}
SimpleStorage< Real >& out(size_t i) {
return field(i).out;
}
void swap();
private:
std::vector< std::unique_ptr< SimpleSwappableStorage< Real > > > fields_;
};
|
class Solution {
public:
bool searchMatrix(vector<vector<int>>& matrix, int target) { // 二分法,核心思想是把矩阵拉成一条数组。
// 可行的原因是每一行开头的数值比上一行末尾的大。可以把下一行拼接到上一行,最后将矩阵变成一行。
int m = matrix.size(), n = matrix[0].size(); // 得到矩阵行和列
int left = 0, right = m * n - 1; // 左边位置和右边位置
while (left <= right) { // 二分法套路
int mid = (right - left) / 2 + left; // 这样设置防止溢出的风险
int x = matrix[mid / n][mid % n]; // 善于利用矩阵位置和除法运算与取模运算的关系
if (x < target) { // 目标数值太大
left = mid + 1;
} else if (x > target) { // 目标数值小
right = mid - 1;
} else {
return true; // 找到了
}
}
return false; // 没找到
}
};
// reference https://leetcode-cn.com/problems/search-a-2d-matrix/solution/sou-suo-er-wei-ju-zhen-by-leetcode-solut-vxui/
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define fr1(i,n) for(ll i=1;i<=n;i++)
#define fr(i,n) for (ll i=0;i<n;i++)
ll k, ans, a,b,n,m,c;
ll find_k(ll n)
{
ll tmp=n-a%n;
ll lcm=((a+tmp)*(b+tmp) / __gcd((a+tmp),(b+tmp) ));
if(lcm<ans) ans=lcm, k=tmp;
}
int main()
{
while(cin>>a>>b)
{
ll div=abs(b-a);
ans=(a*b)/__gcd(a,b);
fr1(i, sqrt(div))
{
if(div % i ==0)
{
find_k(i), find_k(div/i);
}
}
cout<<k<<endl;
ans=0,k=0;
}
}
|
#include<stdio.h>
int main()
{
int a,s=0;
for(a=1; a<=100; a++)
{ if(a%3==0||a%5==0) s+=a;
}
printf("%d ",s);
return 0;
}
|
#include "main.h"
// For iterating through directories.
#include <dirent.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
// For reading and writing to files.
#include <sstream>
#include <fstream>
#include "UI.h"
#include "Chat.h"
#include "Sound.h"
#include "Chunk.h"
#include "Blocks.h"
#include "Camera.h"
#include "Entity.h"
#include "Player.h"
#include "Shader.h"
#include "Worlds.h"
#include "Network.h"
#include "Interface.h"
#include "Inventory.h"
#include "../BlockScripts/Block_Scripts.h"
#ifdef WIN32
#include <cstdarg>
#include <Windows.h>
int __cdecl Print_Debug(const char *format, ...) {
char str[1024];
va_list argptr;
va_start(argptr, format);
int ret = vsnprintf(str, 1024, format, argptr);
va_end(argptr);
OutputDebugStringA(str);
return ret;
}
#endif
// Setting default values for variables.
std::string WORLD_NAME = "";
int WORLD_SEED = 0;
std::string PLAYER_NAME = "Player";
double DeltaTime = 0.0;
double LastFrame = 0.0;
bool Wireframe = false;
bool GamePaused = true;
bool Multiplayer = false;
bool MouseEnabled = false;
bool ToggleWireframe = false;
std::atomic_flag ChunkMapBusy = ATOMIC_FLAG_INIT;
static bool WindowFocused = true;
static bool TakeScreenshot = false;
static bool WindowMinimized = false;
static double LastNetworkPositionUpdate = 0.0;
// Initializing objects.
Camera Cam = Camera();
Player player = Player();
Listener listener = Listener();
UniformBuffer UBO = UniformBuffer();
// Defining buffers.
static Buffer OutlineBuffer;
// The main window which everything is rendered in.
GLFWwindow* Window = nullptr;
// The map where all the chunks are stored.
// Keys are the chunk's 3D-position.
// Values are pointers to the chunks.
std::unordered_map<glm::vec3, Chunk*, VectorHasher> ChunkMap;
// Setting default option values.
bool AMBIENT_OCCLUSION = false;
bool FULLSCREEN = true;
bool VSYNC = true;
int FOV = 90;
int MIPMAP_LEVEL = 4;
int SCREEN_HEIGHT = 1080;
int SCREEN_WIDTH = 1920;
int RENDER_DISTANCE = 4;
int ANISOTROPIC_FILTERING = 16;
// List of option references.
static std::map<std::string, bool*> BoolOptions = {
{"AmbientOcclusion", &AMBIENT_OCCLUSION},
{"FullScreen", &FULLSCREEN},
{"VSync", &VSYNC}
};
static std::map<std::string, int*> IntOptions = {
{"AnisotropicFiltering", &ANISOTROPIC_FILTERING},
{"RenderDistance", &RENDER_DISTANCE},
{"WindowResY", &SCREEN_HEIGHT},
{"WindowResX", &SCREEN_WIDTH},
{"MipmapLevel", &MIPMAP_LEVEL},
{"FOV", &FOV}
};
// Defining shaders.
Shader* shader = nullptr;
Shader* mobShader = nullptr;
Shader* modelShader = nullptr;
Shader* outlineShader = nullptr;
// Sets settings according to the config file.
void Parse_Config();
// Initialize different objects and states.
void Init_GL();
void Init_Shaders();
void Init_Outline();
void Init_Textures();
void Init_Rendering();
// Renders the main scene.
void Render_Scene();
// The background thread that handles chunk generation.
void Background_Thread();
// Proxy functions that send events to other functions.
void Text_Proxy(GLFWwindow* window, unsigned int codepoint);
void Mouse_Proxy(GLFWwindow* window, double posX, double posY);
void Scroll_Proxy(GLFWwindow* window, double xoffset, double yoffset);
void Click_Proxy(GLFWwindow* window, int button, int action, int mods);
void Key_Proxy(GLFWwindow* window, int key, int scancode, int action, int mods);
void Window_Focused(GLFWwindow* window, int focused);
void Window_Minimized(GLFWwindow* window, int iconified);
int main() {
// Initialize GLFW, the library responsible for windowing, events, etc...
glfwInit();
Parse_Config();
Blocks::Init();
Chunks::Load_Structures();
Init_GL();
Init_Textures();
Init_Shaders();
Init_Outline();
Init_Rendering();
UI::Init();
player.Init();
Init_Block_Scripts();
// Start the background thread.
std::thread chunkGeneration(Background_Thread);
Network::Init();
// The main loop.
// Runs until window is closed.
while (!glfwWindowShouldClose(Window)) {
if (WindowMinimized || !WindowFocused) {
glfwWaitEvents();
continue;
}
// Clear the screen buffer from the last frame.
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
// Get the time difference between this frame and the last one.
double currentFrame = glfwGetTime();
DeltaTime = currentFrame - LastFrame;
LastFrame = currentFrame;
// Polls and processes received events.
glfwPollEvents();
if (Multiplayer) {
if (currentFrame - LastNetworkPositionUpdate >= 0.1) {
LastNetworkPositionUpdate = currentFrame;
Network::Send_Player_Position();
}
Network::Update();
Network::Update_Players();
Network::Render_Players();
}
if (!GamePaused) {
for (auto const &func : BlockUpdate) {
func.second();
}
// Check if any sounds should be removed.
listener.Poll_Sounds();
if (!MouseEnabled && !Chat::Focused) {
player.Update();
Entity::Update();
}
Render_Scene();
Entity::Draw();
player.Draw();
}
UI::Draw();
if (TakeScreenshot) {
TakeScreenshot = false;
Take_Screenshot();
}
// Swap the newly rendered frame with the old one.
glfwSwapBuffers(Window);
}
if (WORLD_NAME != "") {
Worlds::Save_World();
}
if (Multiplayer) {
Network::Disconnect();
Network::Update(1000);
}
// On shutting down, join the chunk generation thread with the main thread.
chunkGeneration.join();
// Shut down the graphics library, and return.
glfwTerminate();
return 0;
}
void Parse_Config() {
nlohmann::json config;
std::ifstream file("settings.json");
if (!file.good()) {
file.close();
Write_Config();
return;
}
config << file;
file.close();
for (auto it = config.begin(); it != config.end(); ++it) {
if (it.value().is_boolean()) {
*BoolOptions[it.key()] = it.value();
}
else if (it.value().is_number()) {
*IntOptions[it.key()] = it.value();
}
}
}
void Write_Config() {
nlohmann::json config;
// For each option, write it and its value to the file.
for (auto const &option : BoolOptions) {
config[option.first] = *option.second;
}
for (auto const &option : IntOptions) {
config[option.first] = *option.second;
}
// Open the config file for writing.
std::ofstream file("settings.json");
file << config;
file.close();
}
void Init_GL() {
// Set the OpenGL version.
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, true);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_RESIZABLE, false);
glfwWindowHint(GLFW_AUTO_ICONIFY, false);
if (FULLSCREEN) {
// Stops the window from having any decoration, such as a title bar.
glfwWindowHint(GLFW_DECORATED, false);
GLFWmonitor* monitor = glfwGetPrimaryMonitor();
// Get the video mode of the monitor.
const GLFWvidmode* videoMode = glfwGetVideoMode(monitor);
// Set SCREEN_WIDTH and SCREEN_HEIGHT to the resolution of the primary monitor.
SCREEN_WIDTH = videoMode->width;
SCREEN_HEIGHT = videoMode->height;
glfwWindowHint(GLFW_REFRESH_RATE, videoMode->refreshRate);
// Create a fullscreen window.
Window = glfwCreateWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Craftmine", monitor, nullptr);
}
else {
// Set the window to be decorated, allowing users to close it.
glfwWindowHint(GLFW_DECORATED, true);
// Create a windowed window.
Window = glfwCreateWindow(SCREEN_WIDTH, SCREEN_HEIGHT, "Craftmine", nullptr, nullptr);
}
// Set the window's position to the upper left corner.
glfwSetWindowPos(Window, 0, 0);
// Set the window to be used for future OpenGL calls.
glfwMakeContextCurrent(Window);
// Set whether to use VSync based on the value in the config file.
glfwSwapInterval(VSYNC);
// Set GLEW to experimental mode (doesn't work otherwise D:)
glewExperimental = GL_TRUE;
// Initializes GLEW, which enables vendor-specific OpenGL extensions.
glewInit();
// Set all the callback functions for events to the appropiate proxy functions.
glfwSetKeyCallback(Window, Key_Proxy);
glfwSetCharCallback(Window, Text_Proxy);
glfwSetScrollCallback(Window, Scroll_Proxy);
glfwSetCursorPosCallback(Window, Mouse_Proxy);
glfwSetMouseButtonCallback(Window, Click_Proxy);
glfwSetWindowIconifyCallback(Window, Window_Minimized);
// Enable Blending, which makes transparency work.
glEnable(GL_BLEND);
// Enable Fade Culling, which disables rendering of hidden faces.
glEnable(GL_CULL_FACE);
// Enable Depth Testing,
// which chooses which elements to draw based on their depth, thus allowing 3D to work.
glEnable(GL_DEPTH_TEST);
// Set the proper function for evaluating blending.
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// Specify the size of the OpenGL view port.
glViewport(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
// Set the color that the window gets filled with when the color buffer gets cleared.
glClearColor(CLEAR_COLOR.r, CLEAR_COLOR.g, CLEAR_COLOR.b, 1.0f);
}
void Init_Textures() {
glActiveTexture(GL_TEXTURE0);
// Load the texture atlas into a texture array, with mipmapping enabled,
// and store it in the active Texture Unit.
glBindTexture(
GL_TEXTURE_2D_ARRAY,
Load_Array_Texture(
"atlas.png", {16, 32},
MIPMAP_LEVEL, static_cast<float>(ANISOTROPIC_FILTERING)
)
);
}
void Init_Shaders() {
// Load the shaders.
shader = new Shader("shader");
mobShader = new Shader("model2DTex");
modelShader = new Shader("model");
outlineShader = new Shader("outline");
// Create the frustrum projection matrix for the camera.
glm::mat4 projection = glm::perspective(
glm::radians(static_cast<float>(FOV)),
static_cast<float>(SCREEN_WIDTH) / SCREEN_HEIGHT,
Z_NEAR_LIMIT, Z_FAR_LIMIT
);
// Create a matrix storage block in the shaders referenced in the last argument.
UBO.Create("Matrices", 0, 2 * sizeof(glm::mat4),
{shader, outlineShader, modelShader, mobShader}
);
UBO.Upload(1, projection);
}
void Init_Outline() {
// Vector for holding vertex data.
Data data;
// The X and Z-values for the vertices.
int points[4][2] = { {0, 0}, {1, 0}, {1, 1}, {0, 1} };
// The normal vector components,
// that helps offset the lines from the surface in order to avoid Z-fighting.
float n[2] {-1 / sqrtf(3), 1 / sqrtf(3)};
// Iterate through the Y-values.
for (int y = 0; y < 3; y++) {
// Switch from horizontal to vertical lines if y is equal to 2.
glm::ivec2 yVec = (y == 2) ? glm::ivec2(0, 1) : glm::ivec2(y);
// Iterate over the vertices.
for (int i = 0; i < 4; i++) {
// If y is equal to 2, increment the index by 1, with overflow protection.
int index = (y == 2) ? i : (i + 1) % 4;
// Store the data in the vector.
Extend(data,
points[i][0], yVec.x, points[i][1],
n[points[i][0]], n[yVec.x], n[points[i][1]],
points[index][0], yVec.y, points[index][1],
n[points[index][0]], n[yVec.y], n[points[index][1]]
);
}
}
OutlineBuffer.Init(outlineShader);
OutlineBuffer.Create(3, 3, data);
OutlineBuffer.VertexType = GL_LINES;
}
void Init_Rendering() {
// Default identity matrix, does nothing.
glm::mat4 model;
// Upload the empty matrix.
shader->Upload("model", model);
// Upload the light level of an unlit block.
shader->Upload("ambient", AMBIENT_LIGHT);
// Upload the max light level of a block.
shader->Upload("diffuse", DIFFUSE_LIGHT);
// Upload the texture unit index of the main textures.
shader->Upload("diffTex", 0);
modelShader->Upload("tex", 0);
}
void Render_Scene() {
UBO.Upload(0, Cam.GetViewMatrix());
if (ToggleWireframe) {
Wireframe = !Wireframe;
ToggleWireframe = false;
// Toggle rendering mode.
glPolygonMode(GL_FRONT_AND_BACK, Wireframe ? GL_LINE : GL_FILL);
// If using wireframe,
// upload an invalid texture unit to make wireframe lines black.
shader->Upload("diffTex", Wireframe ? 50 : 0);
}
// Set the first rendering pass to discard any transparent fragments.
shader->Upload("RenderTransparent", false);
for (auto const &chunk : ChunkMap) {
chunk.second->Draw();
}
// Set the second rendering pass to discard any opaque fragments.
shader->Upload("RenderTransparent", true);
for (auto const &chunk : ChunkMap) {
chunk.second->Draw(true);
}
if (!player.LookingAtBlock || player.LookingBlockType == nullptr) {
return;
}
// Start with an empty identity matrix.
glm::mat4 model;
// Translate the outline, and scale it to the block size.
model = glm::translate(
model, Get_World_Pos(player.LookingChunk, player.LookingTile) + player.LookingBlockType->ScaleOffset
);
model = glm::scale(model, player.LookingBlockType->Scale);
// Upload the matrix, and draw the outline.
outlineShader->Upload("model", model);
OutlineBuffer.Draw();
}
void Background_Thread() {
while (true) {
if (glfwWindowShouldClose(Window)) {
return;
}
if (GamePaused) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
continue;
}
bool queueEmpty = true;
// Waits for the chunk map to be available for reading.
while (ChunkMapBusy.test_and_set(std::memory_order_acquire)) {
;
}
// Get the XZ-location of the player.
glm::vec2 playerPos = player.CurrentChunk.xz();
float nearestDistance = static_cast<float>(RENDER_DISTANCE);
Chunk* nearestChunk = nullptr;
for (auto const &chunk : ChunkMap) {
// Get the distance between the chunk and the player's position.
float dist = glm::distance(chunk.first.xz(), playerPos);
// If the distance is smaller than the smallest so far,
// set the chunk to be the nearest chunk.
if (dist >= RENDER_DISTANCE) {
continue;
}
if (chunk.second->Meshed) {
continue;
}
if (dist < nearestDistance) {
nearestDistance = dist;
nearestChunk = chunk.second;
}
else if (dist == nearestDistance) {
if (chunk.first.y > nearestChunk->Position.y) {
nearestChunk = chunk.second;
}
}
}
// Checks if there's a chunk to be rendered.
if (nearestChunk != nullptr) {
if (!nearestChunk->Generated) {
nearestChunk->Generate();
}
nearestChunk->Light();
nearestChunk->Mesh();
nearestChunk->Meshed = true;
nearestChunk->DataUploaded = false;
queueEmpty = false;
}
// Show that the thread is no longer using the chunk map.
ChunkMapBusy.clear(std::memory_order_release);
// Sleep for 1 ms if there's still chunks to be generated, else sleep for 100 ms.
std::this_thread::sleep_for(std::chrono::milliseconds(queueEmpty ? 100 : 1));
}
}
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-parameter"
#elif _MSC_VER
#pragma warning(push)
#pragma warning(disable: 4100)
#endif
void Key_Proxy(GLFWwindow* window, int key, int scancode, int action, int mods) {
if (GamePaused) {
UI::Key_Handler(key, action);
}
else {
if (Chat::Focused) {
player.Clear_Keys();
}
else {
if (key == GLFW_KEY_L && action == GLFW_PRESS) {
TakeScreenshot = true;
}
UI::Key_Handler(key, action);
player.Key_Handler(key, action);
if (Multiplayer && action != GLFW_REPEAT) {
Network::Send_Key_Event(key, action);
}
}
if (action != GLFW_RELEASE) {
Chat::Key_Handler(key);
}
}
}
void Mouse_Proxy(GLFWwindow* window, double posX, double posY) {
UI::Mouse_Handler(
static_cast<int>(posX),
static_cast<int>(posY)
);
}
// Proxy for receiving Unicode codepoints, very useful for getting text input.
void Text_Proxy(GLFWwindow* window, unsigned int codepoint) { UI::Text_Handler(codepoint); }
void Scroll_Proxy(GLFWwindow* window, double offsetX, double offsetY) { if (!GamePaused) { player.Scroll_Handler(offsetY); } }
void Click_Proxy(GLFWwindow* window, int button, int action, int mods) { UI::Click(action, button); }
void Window_Focused(GLFWwindow* window, int focused) { WindowFocused = focused > 0; }
void Window_Minimized(GLFWwindow* window, int iconified) { WindowMinimized = iconified > 0; }
void Exit(void* caller) { glfwSetWindowShouldClose(Window, true); }
#ifdef __clang__
#pragma clang diagnostic pop
#elif _MSC_VER
#pragma warning(pop)
#endif
|
#pragma once
#include "data/node.h"
#include "data/datafactory.h"
#include "data/minmax_map.h"
namespace nodes
{
struct inspector_result : nodes::result
{
data::minmax_map minmax_map;
data::minmax_map tdd_minmax_map;
};
class inspector : public node
{
public:
inspector();
~inspector();
virtual void setup(process::hostsetup&);
virtual process::processor* create_processor();
void restart();
private:
struct config : process::config
{
} config_;
struct processor;
};
}
|
//
// my_su.cpp
// CRsim
//
// Created by Ji on 14-10-7.
// Copyright (c) 2014年 lj. All rights reserved.
//
#include "my_su.h"
MySU::MySU() : SU() {
getMyHopSeq();
getTransSeq();
return;
}
void MySU::getTransSeq() {
transSeq = "";
int m = global::TOTAL_CHAN_NUM;
for (int i = 0; i < m + 2; i++) transSeq += '0';
vI tmp = CRmath::generateDiffRandIntDiffSeed(m / 2, 0, m - 1);
for (auto x: tmp) {
transSeq[x] = '1';
}
transSeqLen = m;
}
void MySU::getMyHopSeq() {
int n = totalAccessChan;
if (n % 4 == 2) n += 2;
if (n % 4 == 3) n += 1;
seqLen = 2 * n;
MyHop tmp(n, 0);
chanHopSeq.clear();
for (auto x: tmp.hopSequence) {
int x1 = x;
if (x1 > totalAccessChan) x1 %= totalAccessChan;
chanHopSeq.push_back(x1);
}
}
void MySU::getMySendRevHopSeq() {
int m = totalAccessChan * 2;
int n = m;
if (n % 4 == 2) n += 2;
seqLen = 2 * n;
MyHop tmp(n, 0);
chanHopSeq.clear();
for (auto x: tmp.hopSequence) {
int x1 = x;
if (x1 > m) x1 %= m;
chanHopSeq.push_back(x1);
}
bool vis[1000] = {0};
for (int j = 1; j <= seqLen; j++) {
if (!vis[chanHopSeq[j]]) {
vis[chanHopSeq[j]] = 1;
} else {
vis[chanHopSeq[j]] = 0;
if (chanHopSeq[j] > totalAccessChan) chanHopSeq[j] -= totalAccessChan;
else chanHopSeq[j] += totalAccessChan;
}
}
}
void MySU::initAllStartIndexes() {
allStartIndexes = CRmath::generateDiffRandIntDiffSeed(seqLen, 1, seqLen);
}
|
/*
Copyright (c) 2005-2023, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of Oxford nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef _TESTCHASTEPOINT_HPP_
#define _TESTCHASTEPOINT_HPP_
#include <boost/archive/text_oarchive.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <cxxtest/TestSuite.h>
#include "OutputFileHandler.hpp"
#include "ChastePoint.hpp"
//This test is always run sequentially (never in parallel)
#include "FakePetscSetup.hpp"
class TestChastePoint : public CxxTest::TestSuite
{
public:
/**
* Test that values set at a coordinate are the same when accessed.
* Also check constructors.
* We only test dimensions from 1 to 3 inclusive.
*/
void TestSetAndGetCoordinate()
{
ChastePoint<1> point1;
double value = 12.0;
int index = 0;
point1.SetCoordinate(index, value);
TS_ASSERT_DELTA(value, point1[index], 1e-12);
TS_ASSERT_DELTA(value, point1.GetWithDefault(index), 1e-12);
TS_ASSERT_DELTA(0.0, point1.GetWithDefault(1), 1e-12);
TS_ASSERT_DELTA(0.0, point1.GetWithDefault(2), 1e-12);
ChastePoint<2> point2;
point2.SetCoordinate(index, value);
TS_ASSERT_DELTA(value, point2[index], 1e-12);
index = 1;
value = -13.56;
point2.SetCoordinate(index, value);
TS_ASSERT_DELTA(value, point2[index], 1e-12);
TS_ASSERT_DELTA(0.0, point2.GetWithDefault(2), 1e-12);
ChastePoint<3> point3;
index = 0;
point3.SetCoordinate(index, value);
TS_ASSERT_DELTA(value, point3[index], 1e-12);
index = 1;
value = 1e5;
point3.SetCoordinate(index, value);
TS_ASSERT_DELTA(value, point3[index], 1e-12);
index = 2;
value = 1e-5;
point3.SetCoordinate(index, value);
TS_ASSERT_DELTA(value, point3[index], 1e-12);
TS_ASSERT_DELTA(0.0, point1.GetWithDefault(3), 1e-12);
ChastePoint<1> point4(1);
TS_ASSERT_DELTA(point4[0], 1, 1e-12);
ChastePoint<2> point5(2,3);
TS_ASSERT_DELTA(point5[0], 2, 1e-12);
TS_ASSERT_DELTA(point5[1], 3, 1e-12);
ChastePoint<3> point6(4,5,6);
TS_ASSERT_DELTA(point6[0], 4, 1e-12);
TS_ASSERT_DELTA(point6[1], 5, 1e-12);
TS_ASSERT_DELTA(point6[2], 6, 1e-12);
ChastePoint<1> point7;
TS_ASSERT_DELTA(point7[0], 0, 1e-12);
}
void TestGetLocation()
{
ChastePoint<3> point(1.0, 2.0, 3.0);
c_vector<double, 3>& point_location = point.rGetLocation();
TS_ASSERT_EQUALS(point_location(1), 2.0);
point_location(0) = 0;
const c_vector<double, 3>& const_point_location = point.rGetLocation();
for (int i=0; i<3; i++)
{
TS_ASSERT_DELTA(const_point_location[i], point[i], 1e-7);
}
}
void TestSameChastePoints()
{
ChastePoint<3> point1(4,5,6);
ChastePoint<3> point2(4,5,6);
ChastePoint<3> point3(12,5,6);
TS_ASSERT(point1.IsSamePoint(point2));
TS_ASSERT(!point1.IsSamePoint(point3));
}
void TestZeroDimPoint()
{
ChastePoint<0> zero_dim_point;
TS_ASSERT_THROWS_THIS(zero_dim_point[0], "Zero-dimensional point has no data");
}
void TestCreateFromCvector()
{
c_vector<double, 1> location;
location[0] = 34.0;
ChastePoint<1> point(location);
TS_ASSERT_EQUALS(point[0], 34.0);
}
void TestCreateFromStdVector()
{
std::vector<double> location;
location.push_back(10.0);
location.push_back(20.0);
location.push_back(30.0);
ChastePoint<3> point(location);
TS_ASSERT_EQUALS(point[0], 10.0);
TS_ASSERT_EQUALS(point[1], 20.0);
TS_ASSERT_EQUALS(point[2], 30.0);
}
void TestArchivingPoint()
{
OutputFileHandler handler("archive",false);
std::string archive_filename;
archive_filename = handler.GetOutputDirectoryFullPath() + "points.arch";
// Create and archive
{
std::ofstream ofs(archive_filename.c_str());
boost::archive::text_oarchive output_arch(ofs);
ChastePoint<3>* const p_point_3d = new ChastePoint<3>(-3.0, -2.0, -1.0);
ChastePoint<2>* const p_point_2d = new ChastePoint<2>(-33.0, -22.0);
ChastePoint<1>* const p_point_1d = new ChastePoint<1>(-185.0);
// Should always archive a pointer
output_arch << p_point_3d;
output_arch << p_point_2d;
output_arch << p_point_1d;
delete p_point_3d;
delete p_point_2d;
delete p_point_1d;
}
// Restore
{
std::ifstream ifs(archive_filename.c_str(), std::ios::binary);
boost::archive::text_iarchive input_arch(ifs);
// Create pointer to regions
ChastePoint<3>* p_point_3d;
ChastePoint<2>* p_point_2d;
ChastePoint<1>* p_point_1d;
input_arch >> p_point_3d;
input_arch >> p_point_2d;
input_arch >> p_point_1d;
TS_ASSERT_EQUALS((*p_point_3d)[0], -3.0);
TS_ASSERT_EQUALS((*p_point_3d)[1], -2.0);
TS_ASSERT_EQUALS((*p_point_3d)[2], -1.0);
TS_ASSERT_EQUALS((*p_point_2d)[0], -33.0);
TS_ASSERT_EQUALS((*p_point_2d)[1], -22.0);
TS_ASSERT_EQUALS((*p_point_1d)[0], -185.0);
delete p_point_3d;
delete p_point_2d;
delete p_point_1d;
}
}
};
#endif //_TESTCHASTEPOINT_HPP_
|
/**********************************************************************
** Mie Calculations are listed in this file. This far field solution is
** based on Bohren and Huffman's (John Wiley 1983) BHMIE code
**********************************************************************/
#include "miesimulation.h"
#include <cmath>
#include <cstdlib>
#include <ctime>
#define max(a,b) (((a) > (b)) ? (a) : (b))
MieSimulation::MieSimulation(void)
{
}
MieSimulation::~MieSimulation(void)
{
}
//This function provides S1,S2, qSca, qExt and qBack for given xParameter, relativeRefIndex and mu(cos(angle))
//cS1 - complex S1
//cS2 - complex S2
//qSca - scattering effieicncy
//qSca - extinction effieicncy
//qBack - backscattering effieicncy
//xPara - x Parameter (2*pi*rad*refmed/wavel)
//refRel - relative refractive index
//mu - cos(angle)
void MieSimulation::FarFieldSolutionForRealRefIndex(std::complex<double> *cS1, std::complex<double> *cS2,
double *qSca, double *qExt, double *qBack,
double xPara, double relRef, double mu)
{
utilities util;
//use conventional symbols
double x = xPara;
double m = relRef;
double mx = m*x;
double xstop = x+4.05*(pow(x,(1.0/3.0)))+2.0;
int nstop = ceil(xstop);
int ymod = ceil(fabs(mx));
int nmx = max(xstop,ymod)+15;
int arraySize = nstop+1;
double x2 = x*x;
double *Dn_mx = new double [nmx];
Dn_mx[nmx-1]=0;
for (int N = nmx-1; N>0; N--)
Dn_mx[N-1] = (double(N)/mx)-(1.0/(Dn_mx[N]+double(N)/mx));
// Legendre Polynomials
double dPCost0 = 0.0; //pi0
double dPCost1 = 1.0; //pi1
// at the sphere boundary
double j_x0 = cos(x); // phi(-1)
double y_x0 = -sin(x); // kai(-1)
double j_x1 = sin(x); // phi(0)
double y_x1 = cos(x); // kai(0)
double *j_x = new double [arraySize];
double *y_x = new double [arraySize];
std::complex<double> *xi_x = new std::complex<double> [arraySize];
j_x[0] = j_x1;
y_x[0] = y_x1;
xi_x[0]=std::complex<double> (j_x1,-y_x1); // xi(1)
//Initialize temp holders
std::complex<double> tempS1 = std::complex<double> (0.0, 0.0);
std::complex<double> tempS2 = std::complex<double> (0.0, 0.0);
std::complex<double> tempQback = 0.0;
double tempQsca = 0.0;
double tempQext = 0.0;
double *piCost = new double [arraySize];
double *tauCost = new double [arraySize];
int n=1;
while ((n-1-nstop) < 0)
{
double fac0 = double(n); // n
double fac1 = fac0+1.0; // n+1
double fac2 = 2.0*fac1 -1.0; // 2n+1
double fac3 = fac2 -2.0; // 2n-1
double fac4 = fac2/(fac0*fac1); // (2n+1)/(n*(n+1))
//Update Legrendre polynomials (Array indices = n)
piCost[n-1] = dPCost1;
tauCost[n-1] = (fac0*mu*dPCost1) - (fac1*dPCost0);
dPCost1 = (fac2*mu*dPCost1/fac0) - (fac1*dPCost0/fac0);
dPCost0 = piCost[n-1];
//Update riccati Bessel functions for x (Array indices = n+1)
j_x[n] = fac3*j_x1/x-j_x0; // phi recurrence
y_x[n] = fac3*y_x1/x-y_x0; // kai recurrence
xi_x[n] = std::complex<double> (j_x[n],-y_x[n]);
j_x0 = j_x1;
j_x1 = j_x[n];
y_x0 = y_x1;
y_x1 = y_x[n];
// Calculate an and bn (According to Bohren and Huffman book)
// Remark: GouGouesbet uses size parameter as "ka" instead of "kx"
double dervDn1 = (Dn_mx[n]/m) + (double(n)/x);
double dervDn2 = (m*Dn_mx[n]) + (double(n)/x);
std::complex<double> an = (dervDn1*j_x[n]-j_x[n-1])/ (dervDn1*xi_x[n]-xi_x[n-1]);
std::complex<double> bn = (dervDn2*j_x[n]-j_x[n-1])/ (dervDn2*xi_x[n]-xi_x[n-1]);
tempQback += fac2*pow(-1.0,(n-1.0))*(an-bn);
tempQsca += fac2*(util.ComplexAbs(an)*util.ComplexAbs(an) + util.ComplexAbs(bn)*util.ComplexAbs(bn));
tempQext += fac2*(an+bn).real();
// Calculate cS1 and cS2
tempS1 += fac4*(an*piCost[n-1]+bn*tauCost[n-1]);
tempS2 += fac4*(an*tauCost[n-1]+bn*piCost[n-1]);
n = n+1;
}
*qBack = util.ComplexAbsSquared(tempQback)/x2; //back scattering efficiency
*qSca = 2.0 * tempQsca/x2; //scattering efficiency
*qExt= 2.0 * tempQext/x2; //extinction efficiency
*cS1 = tempS1;
*cS2 = tempS2;
delete[] Dn_mx;
delete[] tauCost;
delete[] piCost;
delete[] y_x;
delete[] j_x;
delete[] xi_x;
}
//This function provides S1,S2, qSca, qExt and qBack for given xParameter, complex relativeRefIndex and mu(cos(angle))
//cS1 - complex S1
//cS2 - complex S2
//qSca - scattering effieicncy
//qSca - extinction effieicncy
//qBack - backscattering effieicncy
//xPara - x Parameter (2*pi*rad*refmed/wavel)
//cRefRel - complex relative refractive index
//mu - cos(angle)
void MieSimulation::FarFieldSolutionForComplexRefIndex(std::complex<double> *cS1, std::complex<double> *cS2,
double *qSca, double *qExt, double *qBack, double xPara, std::complex<double> cRelRef,
double mu)
{
utilities util;
//use conventional symbols
double x = xPara;
std::complex<double> m = cRelRef;
std::complex<double> mx = m*x;
double xstop = x+4.05*(pow(x,(1.0/3.0)))+2.0;
int nstop = ceil(xstop);
int ymod = ceil(util.ComplexAbs(mx));
int nmx = max(xstop,ymod)+15;
int arraySize = nstop+1;
double x2 = x*x;
std::complex<double> *Dn_mx = new std::complex<double> [nmx];
Dn_mx[nmx-1] = 0;
for (int N = nmx-1; N>0; N--)
Dn_mx[N-1] = (double(N)/mx)-(1.0/(Dn_mx[N]+double(N)/mx));
// Legendre Polynomials
double dPCost0 = 0.0; //pi0
double dPCost1 = 1.0; //pi1
// at the sphere boundary
double j_x0 = cos(x); // phi(-1)
double y_x0 = -sin(x); // kai(-1)
double j_x1 = sin(x); // phi(0)
double y_x1 = cos(x); // kai(0)
double *j_x = new double [arraySize];
double *y_x = new double [arraySize];
std::complex<double> *xi_x = new std::complex<double> [arraySize];
j_x[0] = j_x1;
y_x[0] = y_x1;
xi_x[0]=std::complex<double> (j_x1,-y_x1); // xi(1)
std::complex<double> tempS1 = std::complex<double> (0.0, 0.0);
std::complex<double> tempS2 = std::complex<double> (0.0, 0.0);
std::complex<double> tempQback = 0.0;
double tempQsca = 0.0;
double tempQext = 0.0;
double *piCost = new double [arraySize];
double *tauCost = new double [arraySize];
int n=1;
while ((n-1-nstop) < 0)
{
double fac0 = double(n); // n
double fac1 = fac0+1.0; // n+1
double fac2 = 2.0*fac1 -1.0; // 2n+1
double fac3 = fac2 -2.0; // 2n-1
double fac4 = fac2/(fac0*fac1);// (2n+1)/(n*(n+1))
//Update Legrendre polynomials (Array indices = n)
piCost[n-1]=dPCost1;
tauCost[n-1]=(fac0*mu*dPCost1) - (fac1*dPCost0);
dPCost1 = (fac2*mu*dPCost1/fac0) - (fac1*dPCost0/fac0);
dPCost0 = piCost[n-1];
//Update riccati Bessel functions for x (Array indices = n+1)
j_x[n] = fac3*j_x1/x-j_x0; // phi recurrence
y_x[n] = fac3*y_x1/x-y_x0; // kai recurrence
xi_x[n] = std::complex<double> (j_x[n],-y_x[n]);
j_x0 = j_x1;
j_x1 = j_x[n];
y_x0 = y_x1;
y_x1 = y_x[n];
// Calculate an and bn (According to Bohren and Huffman book)
// Remark: GouGouesbet uses size parameter as "ka" instead of "kx"
std::complex<double> dervDn1 = (Dn_mx[n]/m) + (double(n)/x);
std::complex<double> dervDn2 = (m*Dn_mx[n]) + (double(n)/x);
std::complex<double> an = (dervDn1*j_x[n]-j_x[n-1])/ (dervDn1*xi_x[n]-xi_x[n-1]);
std::complex<double> bn = (dervDn2*j_x[n]-j_x[n-1])/ (dervDn2*xi_x[n]-xi_x[n-1]);
tempQback += fac2*pow(-1.0,(n-1.0))*(an-bn);
tempQsca += fac2*(util.ComplexAbs(an)*util.ComplexAbs(an) + util.ComplexAbs(bn)*util.ComplexAbs(bn));
tempQext += fac2*(an+bn).real();
// Calculate cS1 and cS2
tempS1 += fac4*(an*piCost[n-1]+bn*tauCost[n-1]);
tempS2 += fac4*(an*tauCost[n-1]+bn*piCost[n-1]);
n = n+1;
}
*qBack = util.ComplexAbsSquared(tempQback)/x2; //back scattering efficiency
*qSca= 2.0 * tempQsca/x2; //scattering efficiency
*qExt= 2.0 * tempQext/x2; //extinction efficiency
*cS1 = tempS1;
*cS2 = tempS2;
delete[] Dn_mx;
delete[] tauCost;
delete[] piCost;
delete[] y_x;
delete[] j_x;
delete[] xi_x;
}
|
/*
BAEKJOON
17406. 배열 돌리기 4
*/
#include <iostream>
#include <vector>
#include <algorithm>
#define MAX 51
using namespace std;
struct rotation
{
int r, c, s;
};
int N, M, K, R, C, S, Answer = 987654321;
vector<rotation> V;
int map[MAX][MAX];
int c_map[MAX][MAX];
int operation[6];
bool selected[6] = { false };
void input()
{
cin >> N >> M >> K;
for(int i = 1; i <= N; i++)
{
for(int j = 1; j <= M; j++)
{
cin >> map[i][j];
}
}
for(int i = 0; i < K; i++)
{
cin >> R >> C >> S;
rotation r;
r.r = R; r.c = C; r.s = S;
V.push_back(r);
}
}
void copy_map()
{
for(int i = 1; i <= N; i++)
{
for(int j = 1; j <= M; j++)
{
c_map[i][j] = map[i][j];
}
}
}
void print_map()
{
for(int i = 1; i <= N; i++)
{
for(int j = 1; j <= M; j++)
{
cout << c_map[i][j] << ' ';
}
cout << endl;
}
cout << endl << endl;
}
void rotate()
{
for(int p = 0; p < K; p++)
{
int idx = operation[p];
int r = V[idx].r;
int c = V[idx].c;
int s = V[idx].s;
for(int d = 1; d <= s; d++)
{
int first = c_map[r - d][c - d];
for(int i = 0; i < d * 2; i++)
{
c_map[r - d + i][c - d] = c_map[r - d + i + 1][c - d];
}
for(int i = 0; i < d * 2; i++)
{
c_map[r + d][c - d + i] = c_map[r + d][c - d + i + 1];
}
for(int i = 0; i < d * 2; i++)
{
c_map[r + d - i][c + d] = c_map[r + d - i - 1][c + d];
}
for(int i = 0; i < d * 2 -1; i++)
{
c_map[r - d][c + d - i] = c_map[r - d][c + d - i - 1];
}
c_map[r - d][c - d + 1] = first;
}
// print_map();
}
}
void find_min()
{
int min_temp = 987654321;
for(int i = 1; i <= N; i++)
{
int sum = 0;
for(int j = 1; j <= M; j++)
{
sum += c_map[i][j];
}
min_temp = min(min_temp, sum);
}
Answer = min(Answer, min_temp);
}
void DFS(int idx, int cnt)
{
if(cnt == K)
{
copy_map();
rotate();
find_min();
return;
}
for(int i = 0; i < K; i++)
{
if(selected[i] == true) continue;
operation[cnt] = i;
selected[i] = true;
DFS(idx + 1, cnt + 1);
selected[i] = false;
}
}
void solve()
{
DFS(0, 0);
cout << Answer << endl;
}
int main()
{
input();
solve();
return 0;
}
|
#include "CodeGen/SourceFileWriter.h"
#include <cassert>
#include <sstream>
#include <iostream>
namespace vazgen {
SourceFileWriter::SourceFileWriter(const SourceFile& sourceFile)
: m_writer(sourceFile.getName())
, m_sourceFile(sourceFile)
, m_indent(0)
{
}
void SourceFileWriter::write()
{
beginFile();
writeSourceScope(m_sourceFile);
}
void SourceFileWriter::beginFile()
{
writeMacros();
writeIncludes();
}
void SourceFileWriter::beginScope()
{
++m_indent;
}
void SourceFileWriter::endScope()
{
--m_indent;
}
void SourceFileWriter::writeMacros()
{
for (const auto& macro : m_sourceFile.getMacros()) {
m_writer.write(macro);
}
if (!m_sourceFile.getMacros().empty()) {
m_writer.writeNewLine();
}
}
void SourceFileWriter::writeIncludes()
{
for (const auto& include : m_sourceFile.getIncludes()) {
m_writer.write("#include " + include);
}
m_writer.writeNewLine();
}
void SourceFileWriter::writeSourceScope(const SourceScope& scope)
{
writeClasses(scope.getClasses());
writeFunctions(scope.getFunctions());
writeGlobals(scope.getGlobalVariables());
for (const auto& subScope : scope.getSubScopes()) {
m_writer.write("namespace " + subScope->getName() + " {\n");
writeSourceScope(*subScope);
m_writer.write("} // namespace " + subScope->getName());
}
}
void SourceFileWriter::writeClasses(const std::vector<Class>& classes)
{
std::cout << "writing classes\n";
if (m_sourceFile.isHeader()) {
writeClassDeclarations(classes);
} else {
writeClassDefinitions(classes);
}
}
void SourceFileWriter::writeFunctions(const std::vector<Function>& functions)
{
std::cout << "Writing functions\n";
if (m_sourceFile.isHeader()) {
writeFunctionDeclarations(functions);
} else {
writeFunctionDefinitions(functions);
}
}
void SourceFileWriter::writeGlobals(const std::vector<SourceScope::VariableValue>& globals)
{
std::cout << "Writing globals\n";
for (const auto& [global, value] : globals) {
std::stringstream globalStrm;
globalStrm << "static "
<< global.getAsString();
if (!value.empty()) {
globalStrm << " = " << value;
}
globalStrm << ";";
m_writer.write(globalStrm.str(), m_indent);
}
}
void SourceFileWriter::writeClassDeclarations(const std::vector<Class>& classes)
{
for (const auto& class_ : classes) {
writeClassDeclaration(class_);
}
}
void SourceFileWriter::writeClassDefinitions(const std::vector<Class>& classes)
{
for (const auto& class_ : classes) {
writeClassDefinition(class_);
}
}
void SourceFileWriter::writeClassDeclaration(const Class& class_)
{
std::cout << "writing class decl " << class_.getName() << "\n";
m_writer.write(class_.getClassDeclarationAsString() + "{");
beginScope();
writeClassFunctionsDeclarations(class_);
writeClassMembers(class_);
endScope();
m_writer.write("}; // class " + class_.getName());
}
void SourceFileWriter::writeClassDefinition(const Class& class_)
{
for (const auto& [access, functions] : class_.getMemberFunctions()) {
for (const auto& function : functions) {
m_writer.write(function.getDefinitionAsString(class_.getName()) + "\n", m_indent);
}
}
}
void SourceFileWriter::writeClassFunctionsDeclarations(const Class& class_)
{
bool pub = false;
bool priv = false;
bool prot = false;
for (const auto& [access, functions] : class_.getMemberFunctions()) {
for (const auto& F : functions) {
if (access == Class::PUBLIC) {
if (!pub) {
m_writer.write("public");
pub = true;
}
} else if (access == Class::PRIVATE) {
if (!priv) {
m_writer.write("private:");
priv = true;
}
} else if (access == Class::PROTECTED) {
if (!prot) {
m_writer.write("protected:");
prot = true;
}
} else {
assert(false);
}
m_writer.write(F.getDeclarationAsString(), m_indent);
}
}
}
void SourceFileWriter::writeClassMembers(const Class& class_)
{
std::stringstream publicFStr;
std::stringstream privateFStr;
std::stringstream protectedFStr;
for (const auto& [access, mems] : class_.getMembers()) {
for (const auto& mem : mems) {
if (access == Class::PUBLIC) {
publicFStr << mem.getAsString() << "\n";
} else if (access == Class::PRIVATE) {
privateFStr << mem.getAsString() << "\n";
} else if (access == Class::PROTECTED) {
protectedFStr << mem.getAsString() << "\n";
} else {
assert(false);
}
}
}
if (!publicFStr.str().empty()) {
m_writer.write("public:");
m_writer.write(publicFStr.str(), m_indent);
}
if (!protectedFStr.str().empty()) {
m_writer.write("protected:");
m_writer.write(protectedFStr.str(), m_indent);
}
if (!privateFStr.str().empty()) {
m_writer.write("private:");
m_writer.write(privateFStr.str(), m_indent);
}
}
void SourceFileWriter::writeFunctionDeclarations(const std::vector<Function>& functions)
{
for (const auto& F : functions) {
writeFunctionDeclaration(F);
}
}
void SourceFileWriter::writeFunctionDefinitions(const std::vector<Function>& functions)
{
for (const auto& F : functions) {
writeFunctionDefinition(F);
}
}
void SourceFileWriter::writeFunctionDeclaration(const Function& F)
{
m_writer.write(F.getDeclarationAsString(), m_indent);
}
void SourceFileWriter::writeFunctionDefinition(const Function& F)
{
m_writer.write(F.getDefinitionAsString() + "\n", m_indent);
}
} // namespace vazgen
|
#ifndef POLYGON_H_
#define POLYGON_H_
#include "../Include/Graph.h"
class Polygon : public Graph
{
public:
Polygon();
void setRefPoint(int x, int y, int num);
Point getRefPoint(int num);
void draw();
void move(int x, int y);
bool isGrabbed(int x, int y);
void setMaxRefNum(int x);
int getMaxRefNum();
private:
double getTriangleArea(Point p0, Point p1, Point p2);
float points[30][2];
int n;
};
#endif // !POLYGON_H_
#pragma once
|
/***************************************************************************
Copyright (c) 2015 Philip Fortier
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.
***************************************************************************/
#include "stdafx.h"
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
#include "ImageUtil.h"
#include "PaletteOperations.h"
#include "View.h"
#include "ResourceContainer.h"
#include "ResourceSources.h"
#include "ResourceMapOperations.h"
#include "PatchResourceSource.h"
#include "PicDrawManager.h"
#include "Pic.h"
#include "ResourceEntity.h"
#include "ResourceSourceFlags.h"
#include "format.h"
#include "Helper.h"
#include "GameFolderHelper.h"
std::unique_ptr<Cel> CelFromBitmapFile(const std::string &filename)
{
std::unique_ptr<Cel> cel;
// GDI+ only deals with unicode.
int a = filename.length();
BSTR unicodestr = SysAllocStringLen(nullptr, a);
MultiByteToWideChar(CP_ACP, 0, filename.c_str(), a, unicodestr, a);
std::unique_ptr<Gdiplus::Bitmap> bitmap(Gdiplus::Bitmap::FromFile(unicodestr, TRUE));
if (bitmap)
{
// T color doesn't matter.
std::vector<Cel> cels;
PaletteComponent palette;
if (GetCelsAndPaletteFromGdiplus(*bitmap, 255, cels, palette))
{
cel = std::make_unique<Cel>(cels[0]);
FlipImageData(&cel->Data[0], cel->size.cx, cel->size.cy, cel->GetStride());
}
}
return cel;
}
bool CompareCels(Cel &one, Cel &two, size_t &index, uint8_t &oneFound, uint8_t &twoFound)
{
index = 0xffffffff;
if (one.Data.size() != two.Data.size())
{
oneFound = twoFound = 0;
return false;
}
else
{
for (index = 0; index < one.Data.size(); index++)
{
if (one.Data[index] != two.Data[index])
{
oneFound = one.Data[index];
twoFound = two.Data[index];
return false;
}
}
}
return true;
}
void VerifyPic(PicDrawManager &pdm, PicScreen screen, const std::string &fileName)
{
std::unique_ptr<Cel> celCreated = pdm.MakeCelFromPic(screen, PicPosition::Final);
std::unique_ptr<Cel> celBitmap = CelFromBitmapFile(fileName);
if (!celBitmap)
{
std::wstring message = fmt::format(L"Unable to load bitmap file {}.", fileName);
Logger::WriteMessage(message.c_str());
}
Assert::IsNotNull(celBitmap.get());
if (celBitmap)
{
size_t offset;
uint8_t found, expected;
bool result = CompareCels(*celCreated, *celBitmap, offset, found, expected);
if (!result)
{
std::wstring message = fmt::format(L"Difference in offset {0} ({2},{3}) of pic {1}.\nExpected {4:02x} and got {5:02x}", offset, fileName, offset % celCreated->size.cx, offset / celCreated->size.cy, (int)expected, (int)found);
Logger::WriteMessage(message.c_str());
}
Assert::IsTrue(result);
}
}
void VerifyFileWorker(ResourceEntity &resource, const std::string &filenameRaw)
{
PicDrawManager pdm(resource.TryGetComponent<PicComponent>(), resource.TryGetComponent<PaletteComponent>());
VerifyPic(pdm, PicScreen::Visual, filenameRaw + "-vis.bmp");
VerifyPic(pdm, PicScreen::Priority, filenameRaw + "-pri.bmp");
std::string filenameCtl = filenameRaw + "-ctl.bmp";
// SCI2 doesn't have ctl, so check first.
if (PathFileExists(filenameCtl.c_str()))
{
VerifyPic(pdm, PicScreen::Control, filenameCtl);
}
}
void VerifyFilesInFolder(bool saveAndReload, SCIVersion version, const std::string &folder)
{
std::unique_ptr<ResourceSourceArray> mapAndVolumes = std::make_unique<ResourceSourceArray>();
mapAndVolumes->push_back(std::make_unique<PatchFilesResourceSource>(ResourceTypeFlags::Pic, version, folder, ResourceSourceFlags::PatchFile));
std::unique_ptr<ResourceContainer> resourceContainer(
new ResourceContainer(
folder,
move(mapAndVolumes),
ResourceTypeFlags::Pic,
ResourceEnumFlags::None,
nullptr)
);
bool foundSome = false;
for (auto blob : *resourceContainer)
{
foundSome = true;
std::unique_ptr<ResourceEntity> resource = CreateResourceFromResourceData(*blob);
std::string filenameRaw = folder + "\\" + GetFileNameFor(*blob);
if (saveAndReload)
{
// Save it to a stream
sci::ostream savedStream;
std::map<BlobKey, uint32_t> propertyBag;
resource->WriteTo(savedStream, true, resource->ResourceNumber, propertyBag);
// Load it back
sci::istream loadStream(savedStream.GetInternalPointer(), savedStream.GetDataSize());
ResourceBlob blob;
GameFolderHelper dummyHelper;
blob.CreateFromBits(dummyHelper, "whatever", resource->GetType(), &loadStream, resource->PackageNumber, resource->ResourceNumber, resource->Base36Number, version, ResourceSourceFlags::PatchFile);
std::unique_ptr<ResourceEntity> resourceReloaded = CreateResourceFromResourceData(blob, false);
// Veirfy
VerifyFileWorker(*resourceReloaded, filenameRaw);
}
else
{
VerifyFileWorker(*resource, filenameRaw);
}
}
if (!foundSome)
{
std::wstring message = fmt::format(L"Found no test files in {0}", folder);
Logger::WriteMessage(message.c_str());
Assert::IsTrue(foundSome);
}
}
void TestPicsHelper(bool saveAndReload)
{
std::string folder = GetTestFileDirectory("Pics");
VerifyFilesInFolder(saveAndReload, sciVersion0, folder + "\\SCI0");
VerifyFilesInFolder(saveAndReload, sciVersion1_EarlyEGA, folder + "\\SCI1.0\\EGA");
VerifyFilesInFolder(saveAndReload, sciVersion1_Early, folder + "\\SCI1.0\\Early");
VerifyFilesInFolder(saveAndReload, sciVersion1_Mid, folder + "\\SCI1.0\\Mid");
VerifyFilesInFolder(saveAndReload, sciVersion1_1, folder + "\\SCI1.1");
VerifyFilesInFolder(saveAndReload, sciVersion2, folder + "\\SCI2");
}
namespace UnitTests
{
TEST_CLASS(TextPicDraw)
{
public:
TEST_CLASS_INITIALIZE(ClassSetup)
{
if (Gdiplus::Ok != Gdiplus::GdiplusStartup(&_gdiplusToken, &_gdiplusStartupInput, nullptr))
{
Assert::IsFalse(true);
}
}
TEST_CLASS_CLEANUP(ClassCleanup)
{
Gdiplus::GdiplusShutdown(_gdiplusToken);
}
TEST_METHOD(TestPics)
{
TestPicsHelper(true);
}
TEST_METHOD(TestPicsSaveReload)
{
TestPicsHelper(false);
}
private:
static Gdiplus::GdiplusStartupInput _gdiplusStartupInput;
static ULONG_PTR _gdiplusToken;
};
Gdiplus::GdiplusStartupInput TextPicDraw::_gdiplusStartupInput;
ULONG_PTR TextPicDraw::_gdiplusToken;
}
|
#include "sdltest2.h"
#include "CValuteEntry.h"
bool SDLTest2::OnInit() {
if (SDL_Init(SDL_INIT_VIDEO) < 0) {
return false;
}
// SDL_image init
int imgFlags = IMG_INIT_PNG;
if (!(IMG_Init(imgFlags) && imgFlags)) {
return false;
}
// SDL_ttf init
if (TTF_Init() == -1) {
return false;
}
if ((Window = SDL_CreateWindow("SDL Test 2", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, WindowWidth, WindowHeight, SDL_WINDOW_SHOWN)) == NULL) {
return false;
}
PrimarySurface = SDL_GetWindowSurface(Window);
SDL_FillRect(PrimarySurface, NULL, SDL_MapRGB(PrimarySurface->format, 0xFF, 0xFF, 0xFF));
LoadExchangeRates();
PostExchangeRates();
return true;
}
|
#ifndef _COMPONENTMANAGER_H
#define _COMPONENTMANAGER_H
#include "ComponetInterface.h"
#include <atlstr.h>
#include <map>
//////////////////////////////////////////////////////////////////////////
// 组件管理器
class CComponentManager: public IComponentManagerVSDK
{
public:
BOOL RegisterComponent(IComponent *pComponent)
{
if (pComponent == NULL)
return false;
m_mapNameComponent[pComponent->GetName()] = pComponent;
return true;
}
// 按名称查询已注册组件
IComponent *QueryComponent(LPCTSTR lpName)
{
MapNameComponent::iterator it = m_mapNameComponent.find(lpName);
if (m_mapNameComponent.end() == it) return NULL;
return it->second;
}
// 释放已注册组件
void Release()
{
for (MapNameComponent::const_iterator it = m_mapNameComponent.begin();
it != m_mapNameComponent.end(); it++)
{
it->second->Release();
}
}
CComponentManager()
{
m_it = m_mapNameComponent.begin();
}
public:
IComponent *GetFirstComponent()
{
m_it = m_mapNameComponent.begin();
return m_it->second;
}
IComponent *GetNextComponent()
{
if (m_it == m_mapNameComponent.end())
return NULL;
if (++m_it == m_mapNameComponent.end())
return NULL;
return m_it->second;
}
private:
typedef std::map<CString, IComponent*> MapNameComponent;
MapNameComponent m_mapNameComponent;
MapNameComponent::const_iterator m_it;
};
#endif//_COMPONENTMANAGER_H
|
#include <iostream>
using namespace std;
int main() {
int x, r1, r2;
cin >> r1 >> r2;
x = ((r1*12)-(r2*3))/3;
cout << "Lightning Little Marcos:\n\n\n";
cout << r1+r2 << ".0 -> " << x << endl;
return 0;
}
|
/*
* Copyright (c) 2009-2012 André Tupinambá (andrelrt@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
//-----------------------------------------------------------------------------
#ifndef _DCL_CONTEXT_H_
#define _DCL_CONTEXT_H_
#if (defined _MSC_VER) && (_MSC_VER >= 1200)
#pragma once
#endif
#include "distributedcl_internal.h"
#include "opencl_single.h"
#include "info/dcl_objects.h"
#include "info/context_info.h"
//-----------------------------------------------------------------------------
namespace dcl {
namespace single {
//-----------------------------------------------------------------------------
class platform;
//-----------------------------------------------------------------------------
class context :
public dcl::info::generic_context,
public opencl_object< cl_context >
{
public:
context( const context& ctx );
context( const platform& platform_ref, const devices_t& devices_ref );
context( const platform& platform_ref, cl_device_type device_type );
virtual ~context();
//void add( command_queue& queue );
//inline context& operator<<( command_queue& cmd_queue )
//{
// add( cmd_queue );
// return *this;
//}
inline const image_formats_t& get_image2d_formats()
{
if( image2d_formats_.empty() )
{
load_image_formats( image2d_formats_, CL_MEM_OBJECT_IMAGE2D );
}
return( image2d_formats_ );
}
inline const image_formats_t& get_image3d_formats()
{
if( image3d_formats_.empty() )
{
load_image_formats( image3d_formats_, CL_MEM_OBJECT_IMAGE3D );
}
return( image3d_formats_ );
}
private:
virtual void load_devices();
void load_image_formats( image_formats_t& image_formats, cl_mem_object_type image_type );
virtual dcl::info::generic_program* do_create_program( const std::string& source_code );
virtual dcl::info::generic_program* do_create_program( const dcl::devices_t& devs, const size_t* lengths,
const unsigned char** binaries, cl_int* binary_status );
virtual dcl::info::generic_command_queue*
do_create_command_queue( const dcl::info::generic_device* device_ptr,
cl_command_queue_properties properties );
virtual dcl::info::generic_memory*
do_create_buffer( const void* host_ptr, size_t size, cl_mem_flags flags );
virtual dcl::info::generic_image*
do_create_image( const void* host_ptr, cl_mem_flags flags, const cl_image_format* format,
size_t width, size_t height, size_t row_pitch );
virtual dcl::info::generic_sampler*
do_create_sampler( cl_bool normalized_coords, cl_addressing_mode addressing_mode,
cl_filter_mode filter_mode );
image_formats_t image2d_formats_;
image_formats_t image3d_formats_;
};
//-----------------------------------------------------------------------------
}} // namespace dcl::single
//-----------------------------------------------------------------------------
#endif //_DCL_CONTEXT_H_
|
////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2006-2010 MStar Semiconductor, Inc.
// All rights reserved.
//
// Unless otherwise stipulated in writing, any and all information contained
// herein regardless in any format shall remain the sole proprietary of
// MStar Semiconductor Inc. and be kept in strict confidence
// (''MStar Confidential Information'') by the recipient.
// Any unauthorized act including without limitation unauthorized disclosure,
// copying, use, reproduction, sale, distribution, modification, disassembling,
// reverse engineering and compiling of the contents of MStar Confidential
// Information is unlawful and strictly prohibited. MStar hereby reserves the
// rights to any and all damages, losses, costs and expenses resulting therefrom.
//
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// This file is automatically generated by SkinTool [Version:0.2.3][Build:Dec 28 2015 14:35:41]
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////
// MAINFRAME styles..
/////////////////////////////////////////////////////
// MENU_TRANSPARENT_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Transparent_Bg_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_0 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_MASK_BACKGROUND styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Mask_Background_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_1 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_MAIN_BOTTON_INFO_BAR styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Main_Botton_Info_Bar_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_0 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Main_Botton_Info_Bar_Focus_DrawStyle _Zui_Menu_Main_Botton_Info_Bar_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SW_VERSION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sw_Version_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_0 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SW_BUILD_TIME_TEXT styles..
#define _Zui_Menu_Sw_Build_Time_Text_Normal_DrawStyle _Zui_Menu_Sw_Version_Text_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_CHANNEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_Channel_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_1 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_CHANNEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_Channel_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_2 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_Channel_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_Channel_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_PICTURE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_Picture_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_3 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_PICTURE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_Picture_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_4 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_Picture_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_Picture_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_SOUND styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_Sound_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_5 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_SOUND styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_Sound_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_6 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_Sound_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_Sound_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_Time_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_7 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_Time_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_8 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_Time_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_Time_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_Option_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_9 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_Option_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_10 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_Option_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_LOCK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_Lock_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_11 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_LOCK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_Lock_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_12 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_Lock_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_Lock_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_NORMAL_APP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Normal_App_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_13 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_BOTTOM_BALL_FOCUS_APP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Bottom_Ball_Focus_App_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_14 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Bottom_Ball_Focus_App_Focus_DrawStyle _Zui_Menu_Bottom_Ball_Focus_App_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_MAIN_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Main_Left_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_15 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Main_Left_Arrow_Focus_DrawStyle _Zui_Menu_Main_Left_Arrow_Normal_DrawStyle
#define _Zui_Menu_Main_Left_Arrow_Disabled_DrawStyle _Zui_Menu_Main_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_MAIN_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Main_Right_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_16 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Main_Right_Arrow_Focus_DrawStyle _Zui_Menu_Main_Right_Arrow_Normal_DrawStyle
#define _Zui_Menu_Main_Right_Arrow_Disabled_DrawStyle _Zui_Menu_Main_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_MAIN_UP_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Main_Up_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_17 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_MAIN_DOWN_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Main_Down_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_18 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_PAGE styles..
/////////////////////////////////////////////////////
// MENU_CHANNEL_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_1 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Channel_Title_Focus_DrawStyle _Zui_Menu_Channel_Title_Normal_DrawStyle
#define _Zui_Menu_Channel_Title_Disabled_DrawStyle _Zui_Menu_Channel_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_CHANNEL_AUTOTUNE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Autotune_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_19 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_AUTOTUNE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Autotune_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_2 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Autotune_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_3 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Autotune_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_4 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_ANTENNA styles..
#define _Zui_Menu_Channel_Antenna_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_ANTENNA_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Antenna_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_5 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Antenna_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_6 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Antenna_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_7 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_ANTENNA_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Antenna_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_8 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Antenna_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_9 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_DTV_MAN_TUNE styles..
#define _Zui_Menu_Channel_Dtv_Man_Tune_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_DTV_MAN_TUNE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Dtv_Man_Tune_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_10 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Dtv_Man_Tune_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_11 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Dtv_Man_Tune_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_12 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_CADTV_MAN_TUNE styles..
#define _Zui_Menu_Channel_Cadtv_Man_Tune_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_CADTV_MAN_TUNE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Cadtv_Man_Tune_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_13 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Cadtv_Man_Tune_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_14 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Cadtv_Man_Tune_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_15 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_ATV_MAN_TUNE styles..
#define _Zui_Menu_Channel_Atv_Man_Tune_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_ATV_MAN_TUNE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Atv_Man_Tune_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_16 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Atv_Man_Tune_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_17 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Atv_Man_Tune_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_18 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_PROGRAM_EDIT styles..
#define _Zui_Menu_Channel_Program_Edit_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_PROGRAM_EDIT_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Program_Edit_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_19 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Program_Edit_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_20 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Program_Edit_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_21 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_SIGNAL_INFORMAT styles..
#define _Zui_Menu_Channel_Signal_Informat_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_SIGNAL_INFORMAT_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Signal_Informat_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_22 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Signal_Informat_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_23 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Signal_Informat_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_24 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_CI_INFORMATION styles..
#define _Zui_Menu_Channel_Ci_Information_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_CI_INFORMATION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Ci_Information_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_25 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Ci_Information_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_26 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Ci_Information_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_27 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_CI_INFORMATION_OPTION styles..
/////////////////////////////////////////////////////
// MENU_CHANNEL_5V_ANTENNA styles..
#define _Zui_Menu_Channel_5v_Antenna_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_5V_ANTENNA_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_5v_Antenna_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_28 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_5v_Antenna_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_29 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_5v_Antenna_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_30 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_5V_ANTENNA_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_31 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_32 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_33 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_OAD_UPGRADE styles..
#define _Zui_Menu_Channel_Sw_Oad_Upgrade_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_OAD_UPGRADE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Oad_Upgrade_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_34 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Oad_Upgrade_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_35 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Oad_Upgrade_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_36 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_OAD_UPGRADE_OPTION styles..
#define _Zui_Menu_Channel_Sw_Oad_Upgrade_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Channel_Sw_Oad_Upgrade_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Channel_Sw_Oad_Upgrade_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_OAD_TUNING styles..
#define _Zui_Menu_Channel_Sw_Oad_Tuning_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_OAD_TUNING_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Oad_Tuning_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_37 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Oad_Tuning_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_38 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Oad_Tuning_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_39 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_USB_UPGRADE styles..
#define _Zui_Menu_Channel_Sw_Usb_Upgrade_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_SW_USB_UPGRADE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Usb_Upgrade_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_40 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Usb_Upgrade_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_41 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Sw_Usb_Upgrade_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_42 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_CHANNEL_DISHSETUP styles..
#define _Zui_Menu_Channel_Dishsetup_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_DISHSETUP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Dishsetup_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_43 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Dishsetup_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_44 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Channel_Dishsetup_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_45 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_ICON_CHANNEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_Channel_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_20 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_Channel_Focus_DrawStyle _Zui_Menu_Icon_Channel_Normal_DrawStyle
#define _Zui_Menu_Icon_Channel_Disabled_DrawStyle _Zui_Menu_Icon_Channel_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_PAGE styles..
/////////////////////////////////////////////////////
// MENU_PICTURE_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_46 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Picture_Title_Focus_DrawStyle _Zui_Menu_Picture_Title_Normal_DrawStyle
#define _Zui_Menu_Picture_Title_Disabled_DrawStyle _Zui_Menu_Picture_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_PICTURE_PICMODE styles..
#define _Zui_Menu_Picture_Picmode_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_PICMODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Picmode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_47 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Picmode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_48 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Picmode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_49 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_PICMODE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Picmode_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_50 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Picmode_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_51 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Picmode_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_52 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_COLOR_TEMP styles..
#define _Zui_Menu_Picture_Color_Temp_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_COLOR_TEMP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Color_Temp_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_53 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Color_Temp_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_54 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Color_Temp_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_55 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_COLOR_TEMP_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Color_Temp_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_56 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Color_Temp_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_57 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Color_Temp_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_58 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_ASPECT_RATIO styles..
#define _Zui_Menu_Picture_Aspect_Ratio_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_ASPECT_RATIO_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Aspect_Ratio_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_59 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Aspect_Ratio_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_60 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Aspect_Ratio_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_61 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_ASPECT_RATIO_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Aspect_Ratio_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_62 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Aspect_Ratio_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_63 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Aspect_Ratio_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_64 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_NOISE_REDUCTION styles..
#define _Zui_Menu_Picture_Noise_Reduction_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_NOISE_REDUCTION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Noise_Reduction_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_65 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Noise_Reduction_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_66 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Noise_Reduction_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_67 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_NOISE_REDUCTION_OPTION styles..
#define _Zui_Menu_Picture_Noise_Reduction_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Picture_Noise_Reduction_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Picture_Noise_Reduction_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_MPEG_NOISE_REDUCTION styles..
#define _Zui_Menu_Picture_Mpeg_Noise_Reduction_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_MPEG_NOISE_REDUCTION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Mpeg_Noise_Reduction_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_68 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Mpeg_Noise_Reduction_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_69 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Mpeg_Noise_Reduction_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_70 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_MPEG_NOISE_REDUCTION_OPTION styles..
#define _Zui_Menu_Picture_Mpeg_Noise_Reduction_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Picture_Mpeg_Noise_Reduction_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Picture_Mpeg_Noise_Reduction_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_PC_ADJUST styles..
#define _Zui_Menu_Picture_Pc_Adjust_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_PC_ADJUST_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Pc_Adjust_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_71 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Pc_Adjust_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_72 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Pc_Adjust_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_73 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_PIP styles..
#define _Zui_Menu_Picture_Pip_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PICTURE_PIP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Pip_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_74 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Pip_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_75 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Picture_Pip_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_76 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PICTURE_PIP_OPTION styles..
#define _Zui_Menu_Picture_Pip_Option_Normal_DrawStyle _Zui_Menu_Picture_Color_Temp_Option_Normal_DrawStyle
#define _Zui_Menu_Picture_Pip_Option_Focus_DrawStyle _Zui_Menu_Picture_Color_Temp_Option_Focus_DrawStyle
#define _Zui_Menu_Picture_Pip_Option_Disabled_DrawStyle _Zui_Menu_Picture_Color_Temp_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_ICON_PICTURE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_Picture_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_21 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_Picture_Focus_DrawStyle _Zui_Menu_Icon_Picture_Normal_DrawStyle
#define _Zui_Menu_Icon_Picture_Disabled_DrawStyle _Zui_Menu_Icon_Picture_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_PAGE styles..
/////////////////////////////////////////////////////
// MENU_SOUND_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_77 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Sound_Title_Focus_DrawStyle _Zui_Menu_Sound_Title_Normal_DrawStyle
#define _Zui_Menu_Sound_Title_Disabled_DrawStyle _Zui_Menu_Sound_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_SOUND_SNDMODE styles..
#define _Zui_Menu_Sound_Sndmode_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_SNDMODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Sndmode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_78 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Sndmode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_79 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Sndmode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_80 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_SNDMODE_OPTION styles..
#define _Zui_Menu_Sound_Sndmode_Option_Normal_DrawStyle _Zui_Menu_Picture_Picmode_Option_Normal_DrawStyle
#define _Zui_Menu_Sound_Sndmode_Option_Focus_DrawStyle _Zui_Menu_Picture_Picmode_Option_Focus_DrawStyle
#define _Zui_Menu_Sound_Sndmode_Option_Disabled_DrawStyle _Zui_Menu_Picture_Picmode_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_BALANCE styles..
#define _Zui_Menu_Sound_Balance_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_BALANCE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Balance_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_81 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Balance_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_82 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Balance_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_83 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_BALANCE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Balance_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_84 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Balance_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_85 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Balance_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_86 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_AUTO_VOLUME styles..
#define _Zui_Menu_Sound_Auto_Volume_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_AUTO_VOLUME_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Auto_Volume_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_87 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Auto_Volume_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_88 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Auto_Volume_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_89 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_AUTO_VOLUME_OPTION styles..
#define _Zui_Menu_Sound_Auto_Volume_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Sound_Auto_Volume_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Sound_Auto_Volume_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_SURROUND styles..
#define _Zui_Menu_Sound_Surround_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_SURROUND_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Surround_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_90 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Surround_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_91 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Surround_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_92 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_SURROUND_OPTION styles..
#define _Zui_Menu_Sound_Surround_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Sound_Surround_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Sound_Surround_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_AD_SWITCH styles..
#define _Zui_Menu_Sound_Ad_Switch_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_AD_SWITCH_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Ad_Switch_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_93 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Ad_Switch_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_94 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Ad_Switch_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_95 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_AD_SWITCH_OPTION styles..
#define _Zui_Menu_Sound_Ad_Switch_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Sound_Ad_Switch_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Sound_Ad_Switch_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_SPDIF_MODE styles..
#define _Zui_Menu_Sound_Spdif_Mode_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_SPDIF_MODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Spdif_Mode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_96 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Spdif_Mode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_97 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Spdif_Mode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_98 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_SPDIF_MODE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Spdif_Mode_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_99 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Spdif_Mode_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_100 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Spdif_Mode_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_101 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_AUDIO_DELAY styles..
#define _Zui_Menu_Sound_Audio_Delay_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_AUDIO_DELAY_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Audio_Delay_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_102 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Audio_Delay_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_103 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Audio_Delay_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_104 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_AUDIO_DELAY_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Audio_Delay_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_105 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Sound_Audio_Delay_Option_Focus_DrawStyle _Zui_Menu_Sound_Balance_Option_Focus_DrawStyle
#define _Zui_Menu_Sound_Audio_Delay_Option_Disabled_DrawStyle _Zui_Menu_Sound_Balance_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_TV_SPEAKER styles..
#define _Zui_Menu_Sound_Tv_Speaker_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_TV_SPEAKER_TEX styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Tv_Speaker_Tex_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_106 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Tv_Speaker_Tex_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_107 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sound_Tv_Speaker_Tex_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_108 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SOUND_TV_SPEAKER_OPTION styles..
#define _Zui_Menu_Sound_Tv_Speaker_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Sound_Tv_Speaker_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Sound_Tv_Speaker_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_ICON_SOUND styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_Sound_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_22 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_Sound_Focus_DrawStyle _Zui_Menu_Icon_Sound_Normal_DrawStyle
#define _Zui_Menu_Icon_Sound_Disabled_DrawStyle _Zui_Menu_Icon_Sound_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_PAGE styles..
/////////////////////////////////////////////////////
// MENU_TIME_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_109 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Time_Title_Focus_DrawStyle _Zui_Menu_Time_Title_Normal_DrawStyle
#define _Zui_Menu_Time_Title_Disabled_DrawStyle _Zui_Menu_Time_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_TIME_SET_CLOCK styles..
#define _Zui_Menu_Time_Set_Clock_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_CLOCK_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Clock_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_110 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Clock_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_111 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Time_Set_Clock_Text_Disabled_DrawStyle _Zui_Menu_Time_Set_Clock_Text_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_CLOCK_OPTION styles..
#define _Zui_Menu_Time_Set_Clock_Option_Normal_DrawStyle _Zui_Menu_Sound_Balance_Option_Normal_DrawStyle
#define _Zui_Menu_Time_Set_Clock_Option_Focus_DrawStyle _Zui_Menu_Sound_Balance_Option_Focus_DrawStyle
#define _Zui_Menu_Time_Set_Clock_Option_Disabled_DrawStyle _Zui_Menu_Sound_Balance_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_OFFTIME styles..
#define _Zui_Menu_Time_Set_Offtime_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_OFFTIME_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Offtime_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_112 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Offtime_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_113 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Offtime_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_114 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_OFFTIME_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Offtime_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_115 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Offtime_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_116 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Offtime_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_117 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_ONTIME styles..
#define _Zui_Menu_Time_Set_Ontime_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_ONTIME_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Ontime_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_118 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Ontime_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_119 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Ontime_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_120 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_ONTIME_OPTION styles..
#define _Zui_Menu_Time_Set_Ontime_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Offtime_Option_Normal_DrawStyle
#define _Zui_Menu_Time_Set_Ontime_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Offtime_Option_Focus_DrawStyle
#define _Zui_Menu_Time_Set_Ontime_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Offtime_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_SLEEP_TIMER styles..
#define _Zui_Menu_Time_Set_Sleep_Timer_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_SLEEP_TIMER_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Sleep_Timer_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_121 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Sleep_Timer_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_122 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Sleep_Timer_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_123 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_SLEEP_TIMER_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_124 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_125 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_126 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_AUTO_SLEEP styles..
#define _Zui_Menu_Time_Set_Auto_Sleep_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_AUTO_SLEEP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Auto_Sleep_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_127 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Auto_Sleep_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_128 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Auto_Sleep_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_129 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_AUTO_SLEEP_OPTION styles..
#define _Zui_Menu_Time_Set_Auto_Sleep_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Time_Set_Auto_Sleep_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Time_Set_Auto_Sleep_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_TIMEZONE styles..
#define _Zui_Menu_Time_Set_Timezone_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_SET_TIMEZONE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Timezone_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_130 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Timezone_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_131 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Timezone_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_132 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_SET_TIMEZONE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Timezone_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_133 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Timezone_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_134 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Set_Timezone_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_135 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_ICON_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_Time_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_23 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_Time_Focus_DrawStyle _Zui_Menu_Icon_Time_Normal_DrawStyle
#define _Zui_Menu_Icon_Time_Disabled_DrawStyle _Zui_Menu_Icon_Time_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_PAGE styles..
/////////////////////////////////////////////////////
// MENU_OPTION_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_136 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_Title_Focus_DrawStyle _Zui_Menu_Option_Title_Normal_DrawStyle
#define _Zui_Menu_Option_Title_Disabled_DrawStyle _Zui_Menu_Option_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_OPTION_OSD_LANG styles..
#define _Zui_Menu_Option_Osd_Lang_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSD_LANG_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Lang_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_137 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Lang_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_138 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Lang_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_139 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_OSD_LANG_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Lang_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_140 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Lang_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_141 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Lang_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_142 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIO_LANG styles..
#define _Zui_Menu_Option_Audio_Lang_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIO_LANG_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audio_Lang_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_143 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audio_Lang_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_144 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audio_Lang_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_145 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIO_LANG_OPTION styles..
#define _Zui_Menu_Option_Audio_Lang_Option_Normal_DrawStyle _Zui_Menu_Option_Osd_Lang_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Audio_Lang_Option_Focus_DrawStyle _Zui_Menu_Option_Osd_Lang_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Audio_Lang_Option_Disabled_DrawStyle _Zui_Menu_Option_Osd_Lang_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBTITLE_LANG styles..
#define _Zui_Menu_Option_Subtitle_Lang_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBTITLE_LANG_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Subtitle_Lang_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_146 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Subtitle_Lang_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_147 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Subtitle_Lang_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_148 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_SUBTITLE_LANG_OPTION styles..
#define _Zui_Menu_Option_Subtitle_Lang_Option_Normal_DrawStyle _Zui_Menu_Option_Osd_Lang_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Subtitle_Lang_Option_Focus_DrawStyle _Zui_Menu_Option_Osd_Lang_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Subtitle_Lang_Option_Disabled_DrawStyle _Zui_Menu_Option_Osd_Lang_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_HARD_HEARING styles..
#define _Zui_Menu_Option_Hard_Hearing_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_HARD_HEARING_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hard_Hearing_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_149 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hard_Hearing_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_150 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hard_Hearing_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_151 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_HARD_HEARING_OPTION styles..
#define _Zui_Menu_Option_Hard_Hearing_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Hard_Hearing_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Hard_Hearing_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBTITLE_ONOFF styles..
#define _Zui_Menu_Option_Subtitle_Onoff_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBTITLE_ONOFF_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Subtitle_Onoff_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_152 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Subtitle_Onoff_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_153 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Subtitle_Onoff_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_154 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_SUBTITLE_ONOFF_OPTION styles..
#define _Zui_Menu_Option_Subtitle_Onoff_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Subtitle_Onoff_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_PVR_FILE_SYSTEM styles..
#define _Zui_Menu_Option_Pvr_File_System_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_PVR_FILE_SYSTEM_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Pvr_File_System_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_155 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Pvr_File_System_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_156 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Pvr_File_System_Txt_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_157 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_COUNTRY styles..
#define _Zui_Menu_Option_Country_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_COUNTRY_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Country_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_158 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Country_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_159 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Country_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_160 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_COUNTRY_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Country_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_161 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Country_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_162 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Country_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_163 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_RSS styles..
#define _Zui_Menu_Option_Rss_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_RSS_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Rss_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_164 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Rss_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_165 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Rss_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_166 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_RSS_OPTION styles..
#define _Zui_Menu_Option_Rss_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Rss_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Rss_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_EXTENSION styles..
#define _Zui_Menu_Option_Extension_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_EXTENSION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Extension_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_167 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Extension_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_168 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Extension_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_169 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_EXTENSION_OPTION styles..
#define _Zui_Menu_Option_Extension_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Extension_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Extension_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_CAPTION styles..
#define _Zui_Menu_Option_Caption_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_CAPTION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Caption_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_170 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Caption_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_171 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Caption_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_172 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_CAPTION_OPTION styles..
#define _Zui_Menu_Option_Caption_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Caption_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Caption_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_FACTORY_RESET styles..
#define _Zui_Menu_Option_Factory_Reset_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_FACTORY_RESET_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Factory_Reset_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_173 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Factory_Reset_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_174 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Factory_Reset_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_175 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_HDMI_CEC styles..
#define _Zui_Menu_Option_Hdmi_Cec_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_HDMI_CEC_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hdmi_Cec_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_176 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hdmi_Cec_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_177 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hdmi_Cec_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_178 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_HDMI_CEC_OPTION styles..
#define _Zui_Menu_Option_Hdmi_Cec_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Hdmi_Cec_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Hdmi_Cec_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_HDMI_ARC styles..
#define _Zui_Menu_Option_Hdmi_Arc_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_HDMI_ARC_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hdmi_Arc_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_179 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hdmi_Arc_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_180 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Hdmi_Arc_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_181 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_HDMI_ARC_OPTION styles..
#define _Zui_Menu_Option_Hdmi_Arc_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Hdmi_Arc_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Hdmi_Arc_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSD_EFFECT styles..
#define _Zui_Menu_Option_Osd_Effect_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSD_EFFECT_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Effect_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_182 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Effect_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_183 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osd_Effect_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_184 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_OSD_EFFECT_OPTION styles..
#define _Zui_Menu_Option_Osd_Effect_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Osd_Effect_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Osd_Effect_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_DIVX styles..
#define _Zui_Menu_Option_Divx_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_DIVX_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Divx_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_185 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Divx_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_186 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Divx_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_187 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_CC_MODE styles..
#define _Zui_Menu_Option_Cc_Mode_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_CC_MODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Mode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_189 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Mode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_190 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Mode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_191 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_CC_MODE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Mode_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_192 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Mode_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_193 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Mode_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_194 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_CC_OPTION styles..
#define _Zui_Menu_Option_Cc_Option_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_CC_OPTION_TEXT styles..
#define _Zui_Menu_Option_Cc_Option_Text_Normal_DrawStyle _Zui_Menu_Option_Caption_Text_Normal_DrawStyle
#define _Zui_Menu_Option_Cc_Option_Text_Focus_DrawStyle _Zui_Menu_Option_Caption_Text_Focus_DrawStyle
#define _Zui_Menu_Option_Cc_Option_Text_Disabled_DrawStyle _Zui_Menu_Option_Caption_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_CC_OPTION_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Option_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_196 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Option_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_197 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Cc_Option_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_198 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_COLOR_RANGE styles..
#define _Zui_Menu_Option_Color_Range_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_COLOR_RANGE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Color_Range_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_199 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Color_Range_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_200 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Color_Range_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_201 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_COLOR_RANGE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Color_Range_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_202 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Color_Range_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_203 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Color_Range_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_204 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_TYPE styles..
#define _Zui_Menu_Option_3d_Type_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_TYPE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Type_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_205 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Type_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_206 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Type_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_207 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_TYPE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_208 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_209 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_210 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_TO_2D styles..
#define _Zui_Menu_Option_3d_To_2d_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_TO_2D_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_To_2d_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_211 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_To_2d_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_212 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_To_2d_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_213 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_TO_2D_OPTION styles..
#define _Zui_Menu_Option_3d_To_2d_Option_Normal_DrawStyle _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle
#define _Zui_Menu_Option_3d_To_2d_Option_Focus_DrawStyle _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle
#define _Zui_Menu_Option_3d_To_2d_Option_Disabled_DrawStyle _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_DETECT styles..
#define _Zui_Menu_Option_3d_Detect_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_DETECT_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Detect_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_214 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Detect_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_215 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Detect_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_216 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_DETECT_OPTION styles..
#define _Zui_Menu_Option_3d_Detect_Option_Normal_DrawStyle _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle
#define _Zui_Menu_Option_3d_Detect_Option_Focus_DrawStyle _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle
#define _Zui_Menu_Option_3d_Detect_Option_Disabled_DrawStyle _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_LR styles..
#define _Zui_Menu_Option_3d_Lr_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_LR_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Lr_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_217 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Lr_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_218 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Lr_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_219 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_LR_OPTION styles..
#define _Zui_Menu_Option_3d_Lr_Option_Normal_DrawStyle _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle
#define _Zui_Menu_Option_3d_Lr_Option_Focus_DrawStyle _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle
#define _Zui_Menu_Option_3d_Lr_Option_Disabled_DrawStyle _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_HSHIFT styles..
#define _Zui_Menu_Option_3d_Hshift_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_HSHIFT_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Hshift_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_220 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Hshift_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_221 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_Hshift_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_222 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_HSHIFT_OPTION styles..
#define _Zui_Menu_Option_3d_Hshift_Option_Normal_DrawStyle _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle
#define _Zui_Menu_Option_3d_Hshift_Option_Focus_DrawStyle _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle
#define _Zui_Menu_Option_3d_Hshift_Option_Disabled_DrawStyle _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_VIEW_POINT styles..
#define _Zui_Menu_Option_3d_View_Point_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_3D_VIEW_POINT_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_View_Point_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_223 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_View_Point_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_224 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_3d_View_Point_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_225 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_3D_VIEW_POINT_OPTION styles..
#define _Zui_Menu_Option_3d_View_Point_Option_Normal_DrawStyle _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle
#define _Zui_Menu_Option_3d_View_Point_Option_Focus_DrawStyle _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle
#define _Zui_Menu_Option_3d_View_Point_Option_Disabled_DrawStyle _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_MFC styles..
#define _Zui_Menu_Option_Mfc_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_MFC_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Mfc_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_226 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Mfc_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_227 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Mfc_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_228 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_6M30_MIRROR styles..
#define _Zui_Menu_Option_6m30_Mirror_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_6M30_MIRROR_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Mirror_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_229 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Mirror_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_230 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Mirror_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_231 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_6M30_MIRROR_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Mirror_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_232 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Mirror_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_233 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Mirror_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_234 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_6M30_VERSION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Version_Normal_DrawStyle[] =
{
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_0 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_6m30_Version_Focus_DrawStyle _Zui_Menu_Option_6m30_Version_Normal_DrawStyle
#define _Zui_Menu_Option_6m30_Version_Disabled_DrawStyle _Zui_Menu_Option_6m30_Version_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_6M30_VERSION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Version_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_235 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_6m30_Version_Text_Focus_DrawStyle _Zui_Menu_Option_6m30_Version_Text_Normal_DrawStyle
#define _Zui_Menu_Option_6m30_Version_Text_Disabled_DrawStyle _Zui_Menu_Option_6m30_Version_Text_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_6M30_VERSION_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_6m30_Version_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_236 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_6m30_Version_Option_Focus_DrawStyle _Zui_Menu_Option_6m30_Version_Option_Normal_DrawStyle
#define _Zui_Menu_Option_6m30_Version_Option_Disabled_DrawStyle _Zui_Menu_Option_6m30_Version_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_EPOP styles..
#define _Zui_Menu_Option_Epop_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_EPOP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Epop_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_237 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Epop_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_238 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Epop_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_239 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_EPOP_OPTION styles..
#define _Zui_Menu_Option_Epop_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Epop_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SCART_IN styles..
#define _Zui_Menu_Option_Scart_In_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SCART_IN_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Scart_In_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_240 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Scart_In_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_241 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Scart_In_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_242 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_SCART_IN_OPTION styles..
#define _Zui_Menu_Option_Scart_In_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Scart_In_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Scart_In_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_KTS styles..
#define _Zui_Menu_Option_Kts_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_KTS_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Kts_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_243 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Kts_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_244 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Kts_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_245 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_KTS_TEXT_OPTION styles..
#define _Zui_Menu_Option_Kts_Text_Option_Normal_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Kts_Text_Option_Focus_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Kts_Text_Option_Disabled_DrawStyle _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_ICON_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_Option_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_24 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_Option_Focus_DrawStyle _Zui_Menu_Icon_Option_Normal_DrawStyle
#define _Zui_Menu_Icon_Option_Disabled_DrawStyle _Zui_Menu_Icon_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_PAGE styles..
/////////////////////////////////////////////////////
// MENU_LOCK_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_246 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Title_Focus_DrawStyle[] =
{
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_1 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_246 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Lock_Title_Disabled_DrawStyle _Zui_Menu_Lock_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_LOCK_SYSTEM styles..
#define _Zui_Menu_Lock_System_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_SYSTEM_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_System_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_247 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_System_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_248 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_System_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_249 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_LOCK_SYSTEM_OPTION styles..
#define _Zui_Menu_Lock_System_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Lock_System_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Lock_System_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_SET_PASSWORD styles..
#define _Zui_Menu_Lock_Set_Password_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_SET_PASSWORD_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Set_Password_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_250 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Set_Password_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_251 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Set_Password_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_252 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_LOCK_BLOCK_PROGRAM styles..
#define _Zui_Menu_Lock_Block_Program_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_BLOCK_PROGRAM_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Block_Program_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_253 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Block_Program_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_254 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Block_Program_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_255 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_LOCK_PARENTAL_GUIDANCE styles..
#define _Zui_Menu_Lock_Parental_Guidance_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOCK_PARENTAL_GUIDANCE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Parental_Guidance_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_256 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Parental_Guidance_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_257 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Lock_Parental_Guidance_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_258 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_LOCK_PARENTAL_GUIDANCE_OPTION styles..
#define _Zui_Menu_Lock_Parental_Guidance_Option_Normal_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle
#define _Zui_Menu_Lock_Parental_Guidance_Option_Focus_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle
#define _Zui_Menu_Lock_Parental_Guidance_Option_Disabled_DrawStyle _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_ICON_LOCK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_Lock_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_25 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_Lock_Focus_DrawStyle _Zui_Menu_Icon_Lock_Normal_DrawStyle
#define _Zui_Menu_Icon_Lock_Disabled_DrawStyle _Zui_Menu_Icon_Lock_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_APP_PAGE styles..
/////////////////////////////////////////////////////
// MENU_APP_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_App_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_259 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_App_Title_Focus_DrawStyle _Zui_Menu_App_Title_Normal_DrawStyle
#define _Zui_Menu_App_Title_Disabled_DrawStyle _Zui_Menu_App_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_APP_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_APP_DMP styles..
#define _Zui_Menu_App_Dmp_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_APP_DMP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_App_Dmp_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_260 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_App_Dmp_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_261 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_App_Dmp_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_262 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_ICON_APP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Icon_App_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_26 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Icon_App_Focus_DrawStyle _Zui_Menu_Icon_App_Normal_DrawStyle
#define _Zui_Menu_Icon_App_Disabled_DrawStyle _Zui_Menu_Icon_App_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PAGE styles..
/////////////////////////////////////////////////////
// MENU_PCMODE_PAGE_BG_TOP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_27 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_PAGE_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_28 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_PAGE_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_29 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_PAGE_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_30 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// PCMODE_UP_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Pcmode_Up_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_31 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// PCMODE_DOWN_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Pcmode_Down_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_32 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// PCMODE_MENU styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Pcmode_Menu_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_33 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_PCMODE_AUTO_ADJUST styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_34 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_AUTO_ADJUST_COVER styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Auto_Adjust_Cover_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_35 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_AUTO_ADJUST_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Auto_Adjust_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_263 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Auto_Adjust_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_264 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Auto_Adjust_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_265 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_AUTO_ADJUST_OK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_36 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_HPOS styles..
#define _Zui_Menu_Pcmode_Hpos_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_HPOS_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_266 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_267 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_268 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_HPOS_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_37 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_HPOS_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_38 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_HPOS_INC styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_39 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_HPOS_DEC styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_40 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_VPOS styles..
#define _Zui_Menu_Pcmode_Vpos_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_VPOS_OPTION styles..
#define _Zui_Menu_Pcmode_Vpos_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Pcmode_Vpos_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Pcmode_Vpos_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_VPOS_LEFT_ARROW styles..
#define _Zui_Menu_Pcmode_Vpos_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_VPOS_RIGHT_ARROW styles..
#define _Zui_Menu_Pcmode_Vpos_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_VPOS_INC styles..
#define _Zui_Menu_Pcmode_Vpos_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_VPOS_DEC styles..
#define _Zui_Menu_Pcmode_Vpos_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_SIZE styles..
#define _Zui_Menu_Pcmode_Size_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_SIZE_OPTION styles..
#define _Zui_Menu_Pcmode_Size_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Pcmode_Size_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Pcmode_Size_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_SIZE_LEFT_ARROW styles..
#define _Zui_Menu_Pcmode_Size_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_SIZE_RIGHT_ARROW styles..
#define _Zui_Menu_Pcmode_Size_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_SIZE_INC styles..
#define _Zui_Menu_Pcmode_Size_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_SIZE_DEC styles..
#define _Zui_Menu_Pcmode_Size_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PHASE styles..
#define _Zui_Menu_Pcmode_Phase_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PHASE_OPTION styles..
#define _Zui_Menu_Pcmode_Phase_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Pcmode_Phase_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Pcmode_Phase_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PHASE_LEFT_ARROW styles..
#define _Zui_Menu_Pcmode_Phase_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PHASE_RIGHT_ARROW styles..
#define _Zui_Menu_Pcmode_Phase_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PHASE_INC styles..
#define _Zui_Menu_Pcmode_Phase_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_PHASE_DEC styles..
#define _Zui_Menu_Pcmode_Phase_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PCMODE_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Title_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_41 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PCMODE_TITLE_TEXT styles..
#define _Zui_Menu_Pcmode_Title_Text_Normal_DrawStyle _Zui_Menu_Picture_Pc_Adjust_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pcmode_Title_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_269 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Pcmode_Title_Text_Disabled_DrawStyle _Zui_Menu_Picture_Pc_Adjust_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BG styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BG_TOP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Bg_Top_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_42 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_NEW_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_New_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_43 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_NEW_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_New_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_44 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_NEW_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_New_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_45 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BG_C_SETPW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Bg_C_Setpw_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_46 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_47 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_48 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_49 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_DIVX_YES styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Divx_Yes_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_270 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Divx_Yes_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_271 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_DIVX_NO styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Divx_No_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_272 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Divx_No_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_273 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_DIVX_DONE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Divx_Done_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_274 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Divx_Done_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_275 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_ICON styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Text1_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_276 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT2 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_277 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT3 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Text3_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_278 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT4 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Text4_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_279 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT5 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Text5_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_280 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT6 styles..
#define _Zui_Menu_Dlg_Common_Text6_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text5_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT7 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Text7_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_281 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT8 styles..
#define _Zui_Menu_Dlg_Common_Text8_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT9 styles..
#define _Zui_Menu_Dlg_Common_Text9_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT10 styles..
#define _Zui_Menu_Dlg_Common_Text10_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT11 styles..
#define _Zui_Menu_Dlg_Common_Text11_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_TEXT12 styles..
#define _Zui_Menu_Dlg_Common_Text12_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BAR styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PANE0 styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT0_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input0_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_282 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input0_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_283 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT0_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_50 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_51 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_52 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT0_2 styles..
#define _Zui_Menu_Dlg_Password_Input0_2_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input0_2_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input0_2_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT0_3 styles..
#define _Zui_Menu_Dlg_Password_Input0_3_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input0_3_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input0_3_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT0_4 styles..
#define _Zui_Menu_Dlg_Password_Input0_4_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input0_4_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input0_4_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE0 styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE0_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_53 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Disabled_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_54 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE0_2 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane0_2_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Pressed_Pane0_2_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE0_3 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane0_3_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Pressed_Pane0_3_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE0_4 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane0_4_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Pressed_Pane0_4_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PANE1 styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT1_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input1_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_284 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input1_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_285 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT1_1 styles..
#define _Zui_Menu_Dlg_Password_Input1_1_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_1_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_1_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT1_2 styles..
#define _Zui_Menu_Dlg_Password_Input1_2_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_2_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_2_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT1_3 styles..
#define _Zui_Menu_Dlg_Password_Input1_3_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_3_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_3_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT1_4 styles..
#define _Zui_Menu_Dlg_Password_Input1_4_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_4_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input1_4_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE1 styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE1_1 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane1_1_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE1_2 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane1_2_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE1_3 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane1_3_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE1_4 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane1_4_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PANE2 styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT2_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input2_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_286 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Password_Input2_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_287 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT2_1 styles..
#define _Zui_Menu_Dlg_Password_Input2_1_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_1_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_1_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT2_2 styles..
#define _Zui_Menu_Dlg_Password_Input2_2_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_2_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_2_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT2_3 styles..
#define _Zui_Menu_Dlg_Password_Input2_3_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_3_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_3_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_INPUT2_4 styles..
#define _Zui_Menu_Dlg_Password_Input2_4_Normal_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_4_Focus_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle
#define _Zui_Menu_Dlg_Password_Input2_4_Disabled_DrawStyle _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE2 styles..
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE2_1 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane2_1_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE2_2 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane2_2_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE2_3 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane2_3_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_PASSWORD_PRESSED_PANE2_4 styles..
#define _Zui_Menu_Dlg_Password_Pressed_Pane2_4_Normal_DrawStyle _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_PANE styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_YES styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_YES_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Yes_Left_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_55 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Yes_Left_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_56 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_YES_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Yes_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_288 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Yes_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_289 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_NO styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_NO_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_No_Right_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_57 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_No_Right_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_58 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_NO_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_No_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_290 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_No_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_291 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_OK styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_OK_LEFT_ARROW styles..
#define _Zui_Menu_Dlg_Common_Btn_Ok_Left_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Common_Btn_Yes_Left_Arrow_Normal_DrawStyle
#define _Zui_Menu_Dlg_Common_Btn_Ok_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Common_Btn_Yes_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_OK_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Ok_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_292 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Ok_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_293 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_CANCEL styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_CANCEL_RIGHT_ARROW styles..
#define _Zui_Menu_Dlg_Common_Btn_Cancel_Right_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Common_Btn_No_Right_Arrow_Normal_DrawStyle
#define _Zui_Menu_Dlg_Common_Btn_Cancel_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Common_Btn_No_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_BTN_CANCEL_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Cancel_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_294 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Btn_Cancel_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_295 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_Bg_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_59 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_Bg_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION styles..
#define _Zui_Menu_Dlg_Common_Loadanimation_Normal_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM styles..
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_BG_TOP styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Bg_Top_Focus_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_60 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_61 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_62 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_BAR1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_63 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Tune_Confirm_Bar1_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_BAR2 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Bar2_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Bar2_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID styles..
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_01 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_2 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_296 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_01_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_01_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_64 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_65 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_03 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_03_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_03_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04_UP_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_66 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_67 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_05 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_05_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_05_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06_DOWN_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_68 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_69 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_07 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_07_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_07_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_70 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_71 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_09 styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_09_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_09_OK styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Ok_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_297 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_298 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_299 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_300 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_LEFT_ARROW styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_RIGHT_ARROW styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_DOWN_ARROW styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Down_Arrow_Focus_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_MENU styles..
#define _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Menu_Focus_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_MENU styles..
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_MENU_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_72 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_MENU_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_73 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_MENU_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_74 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_TUNE_TYPE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Tune_Type_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_301 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// SELECTED_DVBT_BG styles..
#define _Zui_Selected_Dvbt_Bg_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_DVBT_TYPE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Dvbt_Type_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_302 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Dvbt_Type_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_303 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// SELECTED_DVBC_BG styles..
#define _Zui_Selected_Dvbc_Bg_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVB_SELECT_DVBC_TYPE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Dvbc_Type_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_304 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvb_Select_Dvbc_Type_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_305 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU styles..
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU_BG_C styles..
#define _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Menu_Bg_C_Normal_DrawStyle _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU_BG_L styles..
#define _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Menu_Bg_L_Normal_DrawStyle _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Menu_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_75 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_TUNE_TYPE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Tune_Type_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_306 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// SELECTED_BANDWIDTH_7M_BG styles..
#define _Zui_Selected_Bandwidth_7m_Bg_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_7M_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_7m_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_307 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_7m_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_308 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// SELECTED_BANDWIDTH_8M_BG styles..
#define _Zui_Selected_Bandwidth_8m_Bg_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_DVBT_BANDWIDTH_SELECT_8M_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_8m_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_309 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_8m_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_310 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_BG styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_BG_TOP styles..
#define _Zui_Menu_Dlg_Signal_Informat_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_BG_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Bg_1_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_3 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_BG_2 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Bg_2_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_76 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_BG_3 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Bg_3_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_77 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_BG_4 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Bg_4_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_78 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_TITLE styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_TITLE_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Title_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_311 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Signal_Informat_Title_Txt_Focus_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Title_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_CHANNEL styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_CHANNEL_NAME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_312 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Focus_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_CHANNEL_UHF styles..
#define _Zui_Menu_Dlg_Signal_Informat_Channel_Uhf_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_CHANNEL_FREQ styles..
#define _Zui_Menu_Dlg_Signal_Informat_Channel_Freq_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_NETWORK styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_NETWORK_NAME styles..
#define _Zui_Menu_Dlg_Signal_Informat_Network_Name_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Dlg_Signal_Informat_Network_Name_Focus_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_MODULATION styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_MODULATION_NAME styles..
#define _Zui_Menu_Dlg_Signal_Informat_Modulation_Name_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Dlg_Signal_Informat_Modulation_Name_Focus_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_QUALITY styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_QUALITY_PERCENT_VAL styles..
#define _Zui_Menu_Dlg_Signal_Informat_Quality_Percent_Val_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_QUALITY_INDEX_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Signal_Informat_Quality_Index_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_313 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_STRENGTH styles..
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_STRENGTH_PERCENT_VAL styles..
#define _Zui_Menu_Dlg_Signal_Informat_Strength_Percent_Val_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_SIGNAL_INFORMAT_STRENGTH_INDEX_STRING styles..
#define _Zui_Menu_Dlg_Signal_Informat_Strength_Index_String_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Quality_Index_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_PAGE styles..
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_PAGE_BG_TOP styles..
#define _Zui_Menu_Common_Adj_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_PAGE_BG_L styles..
#define _Zui_Menu_Common_Adj_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_PAGE_BG_C styles..
#define _Zui_Menu_Common_Adj_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_PAGE_BG_R styles..
#define _Zui_Menu_Common_Adj_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// COMMON_ADJ_UP_ARROW styles..
#define _Zui_Common_Adj_Up_Arrow_Normal_DrawStyle _Zui_Pcmode_Up_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// COMMON_ADJ_DOWN_ARROW styles..
#define _Zui_Common_Adj_Down_Arrow_Normal_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// COMMON_ADJ_MENU styles..
#define _Zui_Common_Adj_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM1 styles..
#define _Zui_Menu_Common_Adj_Item1_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM1_TEXT styles..
#define _Zui_Menu_Common_Adj_Item1_Text_Normal_DrawStyle _Zui_Menu_Picture_Picmode_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Common_Adj_Item1_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_314 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Common_Adj_Item1_Text_Disabled_DrawStyle _Zui_Menu_Picture_Picmode_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM1_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Common_Adj_Item1_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_315 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Common_Adj_Item1_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_316 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Common_Adj_Item1_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_317 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM1_LEFT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item1_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM1_RIGHT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item1_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM1_COVER styles..
#define _Zui_Menu_Common_Adj_Item1_Cover_Focus_DrawStyle _Zui_Menu_Transparent_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM2 styles..
#define _Zui_Menu_Common_Adj_Item2_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM2_OPTION styles..
#define _Zui_Menu_Common_Adj_Item2_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Common_Adj_Item2_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Common_Adj_Item2_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM2_LEFT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item2_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM2_RIGHT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item2_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM2_INC styles..
#define _Zui_Menu_Common_Adj_Item2_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM2_DEC styles..
#define _Zui_Menu_Common_Adj_Item2_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM3 styles..
#define _Zui_Menu_Common_Adj_Item3_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM3_OPTION styles..
#define _Zui_Menu_Common_Adj_Item3_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Common_Adj_Item3_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Common_Adj_Item3_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM3_LEFT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item3_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM3_RIGHT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item3_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM3_INC styles..
#define _Zui_Menu_Common_Adj_Item3_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM3_DEC styles..
#define _Zui_Menu_Common_Adj_Item3_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM4 styles..
#define _Zui_Menu_Common_Adj_Item4_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM4_OPTION styles..
#define _Zui_Menu_Common_Adj_Item4_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Common_Adj_Item4_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Common_Adj_Item4_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM4_LEFT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item4_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM4_RIGHT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item4_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM4_INC styles..
#define _Zui_Menu_Common_Adj_Item4_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM4_DEC styles..
#define _Zui_Menu_Common_Adj_Item4_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM5 styles..
#define _Zui_Menu_Common_Adj_Item5_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM5_OPTION styles..
#define _Zui_Menu_Common_Adj_Item5_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Common_Adj_Item5_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Common_Adj_Item5_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM5_LEFT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item5_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM5_RIGHT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item5_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM5_INC styles..
#define _Zui_Menu_Common_Adj_Item5_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM5_DEC styles..
#define _Zui_Menu_Common_Adj_Item5_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM6 styles..
#define _Zui_Menu_Common_Adj_Item6_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM6_OPTION styles..
#define _Zui_Menu_Common_Adj_Item6_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Common_Adj_Item6_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Common_Adj_Item6_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM6_LEFT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item6_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM6_RIGHT_ARROW styles..
#define _Zui_Menu_Common_Adj_Item6_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM6_INC styles..
#define _Zui_Menu_Common_Adj_Item6_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_COMMON_ADJ_ITEM6_DEC styles..
#define _Zui_Menu_Common_Adj_Item6_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PAGE styles..
/////////////////////////////////////////////////////
// MENU_PIP_PAGE_BG_TOP styles..
#define _Zui_Menu_Pip_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PAGE_BG_L styles..
#define _Zui_Menu_Pip_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PAGE_BG_C styles..
#define _Zui_Menu_Pip_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PAGE_BG_R styles..
#define _Zui_Menu_Pip_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// PIP_UP_ARROW styles..
#define _Zui_Pip_Up_Arrow_Normal_DrawStyle _Zui_Pcmode_Up_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// PIP_DOWN_ARROW styles..
#define _Zui_Pip_Down_Arrow_Normal_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// PIPMODE_MENU styles..
#define _Zui_Pipmode_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_PIP_PIPMODE styles..
#define _Zui_Menu_Pip_Pipmode_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PIPMODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Pipmode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_318 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Pipmode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_319 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Pipmode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_320 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_PIPMODE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Pipmode_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_321 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Pipmode_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_322 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Pipmode_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_323 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_PIPMODE_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Pipmode_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PIPMODE_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Pipmode_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_PIPMODE_COVER styles..
#define _Zui_Menu_Pip_Pipmode_Cover_Focus_DrawStyle _Zui_Menu_Transparent_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SUBSRC styles..
#define _Zui_Menu_Pip_Subsrc_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SUBSRC_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Subsrc_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_324 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Subsrc_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_325 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Subsrc_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_326 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_SUBSRC_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Subsrc_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SUBSRC_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Subsrc_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SUBSRC_INC styles..
#define _Zui_Menu_Pip_Subsrc_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SUBSRC_DEC styles..
#define _Zui_Menu_Pip_Subsrc_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SIZE styles..
#define _Zui_Menu_Pip_Size_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SIZE_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Size_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_327 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Size_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_328 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Size_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_329 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_SIZE_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Size_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SIZE_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Size_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SIZE_INC styles..
#define _Zui_Menu_Pip_Size_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SIZE_DEC styles..
#define _Zui_Menu_Pip_Size_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_POSITION styles..
#define _Zui_Menu_Pip_Position_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_POSITION_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Position_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_330 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Position_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_331 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Position_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_332 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_POSITION_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Position_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_POSITION_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Position_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_POSITION_INC styles..
#define _Zui_Menu_Pip_Position_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_POSITION_DEC styles..
#define _Zui_Menu_Pip_Position_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_BORDER styles..
#define _Zui_Menu_Pip_Border_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_BORDER_OPTION styles..
#define _Zui_Menu_Pip_Border_Option_Normal_DrawStyle _Zui_Menu_Pip_Pipmode_Option_Normal_DrawStyle
#define _Zui_Menu_Pip_Border_Option_Focus_DrawStyle _Zui_Menu_Pip_Pipmode_Option_Focus_DrawStyle
#define _Zui_Menu_Pip_Border_Option_Disabled_DrawStyle _Zui_Menu_Pip_Pipmode_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_BORDER_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Border_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_BORDER_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Border_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_BORDER_INC styles..
#define _Zui_Menu_Pip_Border_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_BORDER_DEC styles..
#define _Zui_Menu_Pip_Border_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SOUND_SRC styles..
#define _Zui_Menu_Pip_Sound_Src_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SOUND_SRC_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Sound_Src_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_333 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Sound_Src_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_334 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Sound_Src_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_335 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_SOUND_SRC_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Sound_Src_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SOUND_SRC_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Sound_Src_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SOUND_SRC_INC styles..
#define _Zui_Menu_Pip_Sound_Src_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SOUND_SRC_DEC styles..
#define _Zui_Menu_Pip_Sound_Src_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SWAP styles..
#define _Zui_Menu_Pip_Swap_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SWAP_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Swap_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_336 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Swap_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_337 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Pip_Swap_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_338 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_PIP_SWAP_LEFT_ARROW styles..
#define _Zui_Menu_Pip_Swap_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SWAP_RIGHT_ARROW styles..
#define _Zui_Menu_Pip_Swap_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SWAP_INC styles..
#define _Zui_Menu_Pip_Swap_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_PIP_SWAP_DEC styles..
#define _Zui_Menu_Pip_Swap_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_MODE_PAGE styles..
/////////////////////////////////////////////////////
// MENU_SOUND_MODE_PAGE_BG_TOP styles..
#define _Zui_Menu_Sound_Mode_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_MODE_PAGE_BG_L styles..
#define _Zui_Menu_Sound_Mode_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_MODE_PAGE_BG_C styles..
#define _Zui_Menu_Sound_Mode_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_MODE_PAGE_BG_R styles..
#define _Zui_Menu_Sound_Mode_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// SNDMODE_UP_ARROW styles..
#define _Zui_Sndmode_Up_Arrow_Normal_DrawStyle _Zui_Pcmode_Up_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// SNDMODE_DOWN_ARROW styles..
#define _Zui_Sndmode_Down_Arrow_Normal_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// SNDMODE_MENU styles..
#define _Zui_Sndmode_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SOUND_MODE_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE styles..
#define _Zui_Menu_Sndmode_Sndmode_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sndmode_Sndmode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_339 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sndmode_Sndmode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_340 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Sndmode_Sndmode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_341 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE_OPTION styles..
#define _Zui_Menu_Sndmode_Sndmode_Option_Normal_DrawStyle _Zui_Menu_Common_Adj_Item1_Option_Normal_DrawStyle
#define _Zui_Menu_Sndmode_Sndmode_Option_Focus_DrawStyle _Zui_Menu_Common_Adj_Item1_Option_Focus_DrawStyle
#define _Zui_Menu_Sndmode_Sndmode_Option_Disabled_DrawStyle _Zui_Menu_Common_Adj_Item1_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE_LEFT_ARROW styles..
#define _Zui_Menu_Sndmode_Sndmode_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE_RIGHT_ARROW styles..
#define _Zui_Menu_Sndmode_Sndmode_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE_COVER styles..
#define _Zui_Menu_Sndmode_Sndmode_Cover_Focus_DrawStyle _Zui_Menu_Transparent_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_120_HZ styles..
#define _Zui_Menu_Sndeq_120_Hz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_120_HZ_OPTION styles..
#define _Zui_Menu_Sndeq_120_Hz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_120_Hz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_120_Hz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_120_HZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_120_Hz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_120_HZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_120_Hz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_120_HZ_INC styles..
#define _Zui_Menu_Sndeq_120_Hz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_120_HZ_DEC styles..
#define _Zui_Menu_Sndeq_120_Hz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_200_HZ styles..
#define _Zui_Menu_Sndeq_200_Hz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_200_HZ_OPTION styles..
#define _Zui_Menu_Sndeq_200_Hz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_200_Hz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_200_Hz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_200_HZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_200_Hz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_200_HZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_200_Hz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_200_HZ_INC styles..
#define _Zui_Menu_Sndeq_200_Hz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_200_HZ_DEC styles..
#define _Zui_Menu_Sndeq_200_Hz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_500_HZ styles..
#define _Zui_Menu_Sndeq_500_Hz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_500_HZ_OPTION styles..
#define _Zui_Menu_Sndeq_500_Hz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_500_Hz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_500_Hz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_500_HZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_500_Hz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_500_HZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_500_Hz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_500_HZ_INC styles..
#define _Zui_Menu_Sndeq_500_Hz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_500_HZ_DEC styles..
#define _Zui_Menu_Sndeq_500_Hz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_1_2_KHZ styles..
#define _Zui_Menu_Sndeq_1_2_Khz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_1_2_KHZ_OPTION styles..
#define _Zui_Menu_Sndeq_1_2_Khz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_1_2_Khz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_1_2_Khz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_1_2_KHZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_1_2_Khz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_1_2_KHZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_1_2_Khz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_1_2_KHZ_INC styles..
#define _Zui_Menu_Sndeq_1_2_Khz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_1_2_KHZ_DEC styles..
#define _Zui_Menu_Sndeq_1_2_Khz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_3_KHZ styles..
#define _Zui_Menu_Sndeq_3_Khz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_3_KHZ_OPTION styles..
#define _Zui_Menu_Sndeq_3_Khz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_3_Khz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_3_Khz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_3_KHZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_3_Khz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_3_KHZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_3_Khz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_3_KHZ_INC styles..
#define _Zui_Menu_Sndeq_3_Khz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_3_KHZ_DEC styles..
#define _Zui_Menu_Sndeq_3_Khz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_7_5_KHZ styles..
#define _Zui_Menu_Sndeq_7_5_Khz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_7_5_KHZ_OPTION styles..
#define _Zui_Menu_Sndeq_7_5_Khz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_7_5_Khz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_7_5_Khz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_7_5_KHZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_7_5_Khz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_7_5_KHZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_7_5_Khz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_7_5_KHZ_INC styles..
#define _Zui_Menu_Sndeq_7_5_Khz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_7_5_KHZ_DEC styles..
#define _Zui_Menu_Sndeq_7_5_Khz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_12_KHZ styles..
#define _Zui_Menu_Sndeq_12_Khz_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_12_KHZ_OPTION styles..
#define _Zui_Menu_Sndeq_12_Khz_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndeq_12_Khz_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndeq_12_Khz_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_12_KHZ_LEFT_ARROW styles..
#define _Zui_Menu_Sndeq_12_Khz_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_12_KHZ_RIGHT_ARROW styles..
#define _Zui_Menu_Sndeq_12_Khz_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_12_KHZ_INC styles..
#define _Zui_Menu_Sndeq_12_Khz_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDEQ_12_KHZ_DEC styles..
#define _Zui_Menu_Sndeq_12_Khz_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_TREBLE styles..
#define _Zui_Menu_Sndmode_Treble_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_TREBLE_OPTION styles..
#define _Zui_Menu_Sndmode_Treble_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndmode_Treble_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndmode_Treble_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_TREBLE_LEFT_ARROW styles..
#define _Zui_Menu_Sndmode_Treble_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_TREBLE_RIGHT_ARROW styles..
#define _Zui_Menu_Sndmode_Treble_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_TREBLE_INC styles..
#define _Zui_Menu_Sndmode_Treble_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_TREBLE_DEC styles..
#define _Zui_Menu_Sndmode_Treble_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_SNDMODE_EMPTY styles..
#define _Zui_Menu_Sndmode_Sndmode_Empty_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_BASS styles..
#define _Zui_Menu_Sndmode_Bass_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_BASS_OPTION styles..
#define _Zui_Menu_Sndmode_Bass_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Sndmode_Bass_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Sndmode_Bass_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_BASS_LEFT_ARROW styles..
#define _Zui_Menu_Sndmode_Bass_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_BASS_RIGHT_ARROW styles..
#define _Zui_Menu_Sndmode_Bass_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MMENU_SNDMODE_BASS_INC styles..
#define _Zui_Mmenu_Sndmode_Bass_Inc_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SNDMODE_BASS_DEC styles..
#define _Zui_Menu_Sndmode_Bass_Dec_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE styles..
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_BG_TOP styles..
#define _Zui_Menu_Option_Audiolang_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Bg_Top_Focus_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_BG_L styles..
#define _Zui_Menu_Option_Audiolang_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Bg_L_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_BG_C styles..
#define _Zui_Menu_Option_Audiolang_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Bg_C_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_BG_R styles..
#define _Zui_Menu_Option_Audiolang_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Bg_R_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_BAR1 styles..
#define _Zui_Menu_Option_Audiolang_Page_Bar1_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Bar1_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_BAR2 styles..
#define _Zui_Menu_Option_Audiolang_Page_Bar2_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Bar2_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_MENU styles..
#define _Zui_Menu_Option_Audiolang_Page_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_GRID styles..
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_01 styles..
#define _Zui_Menu_Option_Audiolang_01_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_01_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_02 styles..
#define _Zui_Menu_Option_Audiolang_02_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_02_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_LEFT_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Page_Left_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_03 styles..
#define _Zui_Menu_Option_Audiolang_03_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_03_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_04 styles..
#define _Zui_Menu_Option_Audiolang_04_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_04_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_UP_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Page_Up_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Up_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_05 styles..
#define _Zui_Menu_Option_Audiolang_05_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_05_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_06 styles..
#define _Zui_Menu_Option_Audiolang_06_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_06_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_DOWN_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Page_Down_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Down_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_07 styles..
#define _Zui_Menu_Option_Audiolang_07_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_07_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_08 styles..
#define _Zui_Menu_Option_Audiolang_08_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_08_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PAGE_RIGHT_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Page_Right_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_Page_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_09 styles..
#define _Zui_Menu_Option_Audiolang_09_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Audiolang_09_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PRIMARY styles..
#define _Zui_Menu_Option_Audiolang_Primary_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PRIMARY_TEXT styles..
#define _Zui_Menu_Option_Audiolang_Primary_Text_Normal_DrawStyle _Zui_Menu_Option_Audio_Lang_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audiolang_Primary_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_342 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_Audiolang_Primary_Text_Disabled_DrawStyle _Zui_Menu_Option_Audio_Lang_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PRIMARY_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audiolang_Primary_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_343 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audiolang_Primary_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_344 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Audiolang_Primary_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_345 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PRIMARY_LEFT_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Primary_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PRIMARY_RIGHT_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Primary_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_AUDIOLANG_PRIMARY_DOWN_ARROW styles..
#define _Zui_Menu_Option_Audiolang_Primary_Down_Arrow_Focus_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE styles..
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_BG_TOP styles..
#define _Zui_Menu_Option_Sublang_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Bg_Top_Focus_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_BG_L styles..
#define _Zui_Menu_Option_Sublang_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Bg_L_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_BG_C styles..
#define _Zui_Menu_Option_Sublang_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Bg_C_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_BG_R styles..
#define _Zui_Menu_Option_Sublang_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Bg_R_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_BAR1 styles..
#define _Zui_Menu_Option_Sublang_Page_Bar1_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Bar1_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_BAR2 styles..
#define _Zui_Menu_Option_Sublang_Page_Bar2_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Bar2_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_MENU styles..
#define _Zui_Menu_Option_Sublang_Page_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID styles..
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_01 styles..
#define _Zui_Menu_Option_Sublang_Grid_01_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_01_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_02 styles..
#define _Zui_Menu_Option_Sublang_Grid_02_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_02_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_LEFT_ARROW styles..
#define _Zui_Menu_Option_Sublang_Page_Left_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_03 styles..
#define _Zui_Menu_Option_Sublang_Grid_03_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_03_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_04 styles..
#define _Zui_Menu_Option_Sublang_Grid_04_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_04_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_UP_ARROW styles..
#define _Zui_Menu_Option_Sublang_Page_Up_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Up_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_05 styles..
#define _Zui_Menu_Option_Sublang_Grid_05_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_05_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_06 styles..
#define _Zui_Menu_Option_Sublang_Grid_06_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_06_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_DOWN_ARROW styles..
#define _Zui_Menu_Option_Sublang_Page_Down_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Down_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_07 styles..
#define _Zui_Menu_Option_Sublang_Grid_07_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_07_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_08 styles..
#define _Zui_Menu_Option_Sublang_Grid_08_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_08_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PAGE_RIGHT_ARROW styles..
#define _Zui_Menu_Option_Sublang_Page_Right_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Page_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_GRID_09 styles..
#define _Zui_Menu_Option_Sublang_Grid_09_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Grid_09_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PRIMARY styles..
#define _Zui_Menu_Option_Sublang_Primary_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PRIMARY_TEXT styles..
#define _Zui_Menu_Option_Sublang_Primary_Text_Normal_DrawStyle _Zui_Menu_Option_Subtitle_Lang_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Sublang_Primary_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_346 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_Sublang_Primary_Text_Disabled_DrawStyle _Zui_Menu_Option_Subtitle_Lang_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PRIMARY_OPTION styles..
#define _Zui_Menu_Option_Sublang_Primary_Option_Normal_DrawStyle _Zui_Menu_Option_Audiolang_Primary_Option_Normal_DrawStyle
#define _Zui_Menu_Option_Sublang_Primary_Option_Focus_DrawStyle _Zui_Menu_Option_Audiolang_Primary_Option_Focus_DrawStyle
#define _Zui_Menu_Option_Sublang_Primary_Option_Disabled_DrawStyle _Zui_Menu_Option_Audiolang_Primary_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PRIMARY_LEFT_ARROW styles..
#define _Zui_Menu_Option_Sublang_Primary_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PRIMARY_RIGHT_ARROW styles..
#define _Zui_Menu_Option_Sublang_Primary_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_SUBLANG_PRIMARY_DOWN_ARROW styles..
#define _Zui_Menu_Option_Sublang_Primary_Down_Arrow_Focus_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE styles..
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_BG_TOP styles..
#define _Zui_Menu_Option_Osdlang_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Bg_Top_Focus_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_BG_L styles..
#define _Zui_Menu_Option_Osdlang_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Bg_L_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_BG_C styles..
#define _Zui_Menu_Option_Osdlang_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Bg_C_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_BG_R styles..
#define _Zui_Menu_Option_Osdlang_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Bg_R_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_MENU styles..
#define _Zui_Menu_Option_Osdlang_Page_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_TITLE styles..
#define _Zui_Menu_Option_Osdlang_Title_Normal_DrawStyle _Zui_Menu_Option_Osd_Lang_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Option_Osdlang_Title_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_347 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Option_Osdlang_Title_Disabled_DrawStyle _Zui_Menu_Option_Osd_Lang_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_BAR1 styles..
#define _Zui_Menu_Option_Osdlang_Bar1_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Bar1_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_BAR2 styles..
#define _Zui_Menu_Option_Osdlang_Bar2_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Bar2_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_GRID styles..
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_01 styles..
#define _Zui_Menu_Option_Osdlang_01_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_01_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_02 styles..
#define _Zui_Menu_Option_Osdlang_02_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_02_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_LEFT_ARROW styles..
#define _Zui_Menu_Option_Osdlang_Page_Left_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_03 styles..
#define _Zui_Menu_Option_Osdlang_03_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_03_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_04 styles..
#define _Zui_Menu_Option_Osdlang_04_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_04_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_UP_ARROW styles..
#define _Zui_Menu_Option_Osdlang_Page_Up_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Up_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_05 styles..
#define _Zui_Menu_Option_Osdlang_05_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_05_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_06 styles..
#define _Zui_Menu_Option_Osdlang_06_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_06_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_DOWN_ARROW styles..
#define _Zui_Menu_Option_Osdlang_Page_Down_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Down_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_07 styles..
#define _Zui_Menu_Option_Osdlang_07_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_07_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_08 styles..
#define _Zui_Menu_Option_Osdlang_08_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_08_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_PAGE_RIGHT_ARROW styles..
#define _Zui_Menu_Option_Osdlang_Page_Right_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_Page_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_OPTION_OSDLANG_09 styles..
#define _Zui_Menu_Option_Osdlang_09_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Option_Osdlang_09_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_COMMON_PAGE styles..
/////////////////////////////////////////////////////
// MENU_SINGLELIST_COMMON_PAGE_BG_TOP styles..
#define _Zui_Menu_Singlelist_Common_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_COMMON_PAGE_BG_L styles..
#define _Zui_Menu_Singlelist_Common_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_COMMON_PAGE_BG_C styles..
#define _Zui_Menu_Singlelist_Common_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_COMMON_PAGE_BG_R styles..
#define _Zui_Menu_Singlelist_Common_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// SINGLELIST_COMMON_UP_ARROW styles..
#define _Zui_Singlelist_Common_Up_Arrow_Normal_DrawStyle _Zui_Pcmode_Up_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// SINGLELIST_COMMON_DOWN_ARROW styles..
#define _Zui_Singlelist_Common_Down_Arrow_Normal_DrawStyle _Zui_Pcmode_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// SINGLELIST_COMMON_MENU styles..
#define _Zui_Singlelist_Common_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_COMMON_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM1 styles..
#define _Zui_Menu_Singlelist_Item1_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM1_OPTION styles..
#define _Zui_Menu_Singlelist_Item1_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item1_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item1_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM2 styles..
#define _Zui_Menu_Singlelist_Item2_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM2_OPTION styles..
#define _Zui_Menu_Singlelist_Item2_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item2_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item2_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM3 styles..
#define _Zui_Menu_Singlelist_Item3_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM3_OPTION styles..
#define _Zui_Menu_Singlelist_Item3_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item3_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item3_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM4 styles..
#define _Zui_Menu_Singlelist_Item4_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM4_OPTION styles..
#define _Zui_Menu_Singlelist_Item4_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item4_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item4_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM5 styles..
#define _Zui_Menu_Singlelist_Item5_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM5_OPTION styles..
#define _Zui_Menu_Singlelist_Item5_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item5_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item5_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM6 styles..
#define _Zui_Menu_Singlelist_Item6_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM6_OPTION styles..
#define _Zui_Menu_Singlelist_Item6_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item6_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item6_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM7 styles..
#define _Zui_Menu_Singlelist_Item7_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM7_OPTION styles..
#define _Zui_Menu_Singlelist_Item7_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item7_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item7_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM8 styles..
#define _Zui_Menu_Singlelist_Item8_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM8_OPTION styles..
#define _Zui_Menu_Singlelist_Item8_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item8_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item8_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM9 styles..
#define _Zui_Menu_Singlelist_Item9_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM9_OPTION styles..
#define _Zui_Menu_Singlelist_Item9_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item9_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item9_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM10 styles..
#define _Zui_Menu_Singlelist_Item10_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM10_OPTION styles..
#define _Zui_Menu_Singlelist_Item10_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item10_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item10_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM11 styles..
#define _Zui_Menu_Singlelist_Item11_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM11_OPTION styles..
#define _Zui_Menu_Singlelist_Item11_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item11_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item11_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM12 styles..
#define _Zui_Menu_Singlelist_Item12_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM12_OPTION styles..
#define _Zui_Menu_Singlelist_Item12_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item12_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item12_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM13 styles..
#define _Zui_Menu_Singlelist_Item13_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM13_OPTION styles..
#define _Zui_Menu_Singlelist_Item13_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item13_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item13_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM14 styles..
#define _Zui_Menu_Singlelist_Item14_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM14_OPTION styles..
#define _Zui_Menu_Singlelist_Item14_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item14_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item14_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM15 styles..
#define _Zui_Menu_Singlelist_Item15_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM15_OPTION styles..
#define _Zui_Menu_Singlelist_Item15_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item15_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item15_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM16 styles..
#define _Zui_Menu_Singlelist_Item16_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM16_OPTION styles..
#define _Zui_Menu_Singlelist_Item16_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item16_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item16_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM17 styles..
#define _Zui_Menu_Singlelist_Item17_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_ITEM17_OPTION styles..
#define _Zui_Menu_Singlelist_Item17_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Menu_Singlelist_Item17_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle
#define _Zui_Menu_Singlelist_Item17_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_TITLE styles..
#define _Zui_Menu_Singlelist_Title_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_SINGLELIST_TITLE_OPTION styles..
#define _Zui_Menu_Singlelist_Title_Option_Normal_DrawStyle _Zui_Menu_Sound_Balance_Option_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Singlelist_Title_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_348 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Singlelist_Title_Option_Disabled_DrawStyle _Zui_Menu_Sound_Balance_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE styles..
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_BG_TOP styles..
#define _Zui_Menu_Time_Timezone_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_Page_Bg_Top_Focus_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_BG_L styles..
#define _Zui_Menu_Time_Timezone_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_Page_Bg_L_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_BG_C styles..
#define _Zui_Menu_Time_Timezone_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_Page_Bg_C_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_BG_R styles..
#define _Zui_Menu_Time_Timezone_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_Page_Bg_R_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_MENU styles..
#define _Zui_Menu_Time_Timezone_Page_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_TITLE styles..
#define _Zui_Menu_Time_Timezone_Page_Title_Normal_DrawStyle _Zui_Menu_Time_Set_Timezone_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Timezone_Page_Title_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_349 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Time_Timezone_Page_Title_Disabled_DrawStyle _Zui_Menu_Time_Set_Timezone_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_BAR1 styles..
#define _Zui_Menu_Time_Timezone_Page_Bar1_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_Page_Bar1_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_PAGE_BAR2 styles..
#define _Zui_Menu_Time_Timezone_Page_Bar2_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_Page_Bar2_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_GRID styles..
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_01 styles..
#define _Zui_Menu_Time_Timezone_01_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_01_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_01_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_2 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_02 styles..
#define _Zui_Menu_Time_Timezone_02_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_02_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_02_LEFT_ARROW styles..
#define _Zui_Menu_Time_Timezone_02_Left_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_02_Left_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_02_BG styles..
#define _Zui_Menu_Time_Timezone_02_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_03 styles..
#define _Zui_Menu_Time_Timezone_03_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_03_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_03_BG styles..
#define _Zui_Menu_Time_Timezone_03_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_04 styles..
#define _Zui_Menu_Time_Timezone_04_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_04_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_04_UP_ARROW styles..
#define _Zui_Menu_Time_Timezone_04_Up_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_04_Up_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_04_BG styles..
#define _Zui_Menu_Time_Timezone_04_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_05 styles..
#define _Zui_Menu_Time_Timezone_05_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_05_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_05_BG styles..
#define _Zui_Menu_Time_Timezone_05_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_06 styles..
#define _Zui_Menu_Time_Timezone_06_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_06_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_06_DOWN_ARROW styles..
#define _Zui_Menu_Time_Timezone_06_Down_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_06_Down_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_06_BG styles..
#define _Zui_Menu_Time_Timezone_06_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_07 styles..
#define _Zui_Menu_Time_Timezone_07_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_07_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_07_BG styles..
#define _Zui_Menu_Time_Timezone_07_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_08 styles..
#define _Zui_Menu_Time_Timezone_08_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_08_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_08_RIGHT_ARROW styles..
#define _Zui_Menu_Time_Timezone_08_Right_Arrow_Normal_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_08_Right_Arrow_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_08_BG styles..
#define _Zui_Menu_Time_Timezone_08_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_09 styles..
#define _Zui_Menu_Time_Timezone_09_Normal_DrawStyle _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle
#define _Zui_Menu_Time_Timezone_09_Focus_DrawStyle _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TIME_TIMEZONE_09_BG styles..
#define _Zui_Menu_Time_Timezone_09_Bg_Focus_DrawStyle _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_LOADING_ANIMATION styles..
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_0 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_0_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_79 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_0_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_0_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_1_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_80 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_1_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_2 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_2_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_81 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_2_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_2_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_3 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_3_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_82 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_3_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_3_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_4 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_4_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_83 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_4_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_4_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_5 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_5_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_84 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_5_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_5_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_6 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_6_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_85 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_6_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_6_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_DLG_COMMON_LOADANIMATION_7 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Dlg_Common_Loadanimation_7_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_86 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Dlg_Common_Loadanimation_7_Focus_DrawStyle _Zui_Menu_Dlg_Common_Loadanimation_7_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_ALERT_WINDOW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Alert_Window_Normal_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_0 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Alert_Window_Focus_DrawStyle _Zui_Menu_Alert_Window_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_ALERT_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Alert_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_87 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Alert_Icon_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_88 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_ALERT_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Alert_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_350 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Alert_String_Focus_DrawStyle _Zui_Menu_Alert_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_CHANNEL_SET_TARGET_REGION_PAGE_TEST styles..
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE styles..
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE_BG_TOP styles..
#define _Zui_Menu_Hdmi_Cec_Page_Bg_Top_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE_BG_L styles..
#define _Zui_Menu_Hdmi_Cec_Page_Bg_L_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE_BG_C styles..
#define _Zui_Menu_Hdmi_Cec_Page_Bg_C_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE_BG_R styles..
#define _Zui_Menu_Hdmi_Cec_Page_Bg_R_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_MENU styles..
#define _Zui_Menu_Hdmi_Cec_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_TITTLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Tittle_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_351 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Hdmi_Cec_Tittle_Focus_DrawStyle _Zui_Menu_Pcmode_Title_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_HDMI styles..
#define _Zui_Menu_Hdmi_Cec_Hdmi_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_HDMI_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Hdmi_Text_Normal_DrawStyle _Zui_Menu_Option_Hdmi_Cec_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Hdmi_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_352 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Hdmi_Cec_Hdmi_Text_Disabled_DrawStyle _Zui_Menu_Option_Hdmi_Cec_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_HDMI_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Hdmi_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_353 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Hdmi_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_354 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Hdmi_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_355 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_ARC styles..
#define _Zui_Menu_Hdmi_Cec_Arc_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_ARC_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Arc_Text_Normal_DrawStyle _Zui_Menu_Option_Hdmi_Arc_Text_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Arc_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_356 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Hdmi_Cec_Arc_Text_Disabled_DrawStyle _Zui_Menu_Option_Hdmi_Arc_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_ARC_OPTION styles..
#define _Zui_Menu_Hdmi_Cec_Arc_Option_Normal_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Arc_Option_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Focus_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Arc_Option_Disabled_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_AUTO_STANDBY styles..
#define _Zui_Menu_Hdmi_Cec_Auto_Standby_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_AUTO_STANDBY_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Auto_Standby_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_357 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Auto_Standby_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_358 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Auto_Standby_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_359 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_AUTO_STANDBY_OPTION styles..
#define _Zui_Menu_Hdmi_Cec_Auto_Standby_Option_Normal_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Auto_Standby_Option_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Focus_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Auto_Standby_Option_Disabled_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_AUTO_TV_ON styles..
#define _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_AUTO_TV_ON_TEST styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Test_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_360 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Test_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_361 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Test_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_362 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_AUTO_TV_ON_OPTION styles..
#define _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Option_Normal_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Option_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Focus_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Option_Disabled_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_CONTROL styles..
#define _Zui_Menu_Hdmi_Cec_Device_Control_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_CONTROL_TEST styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_Control_Test_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_363 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_Control_Test_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_364 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_Control_Test_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_365 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_CONTROL_OPTION styles..
#define _Zui_Menu_Hdmi_Cec_Device_Control_Option_Normal_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_Control_Option_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Focus_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_Control_Option_Disabled_DrawStyle _Zui_Menu_Hdmi_Cec_Hdmi_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_Focus_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_366 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_367 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_368 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_PAGE_WAIT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Page_Wait_Normal_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_1 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_369 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE styles..
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_LEFT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Left_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_89 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_MID styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Mid_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_90 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_RIGHT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Right_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_91 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_Page_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_370 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Hdmi_Cec_Device_List_Page_Title_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_Page_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_MENU styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_PAGE_LIST styles..
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_A styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_A_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_A_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_19 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_371 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_A_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_A_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_A_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_B styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_B_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_B_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_B_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_B_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_B_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_B_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_B_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_C styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_C_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_C_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_C_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_C_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_C_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_C_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_C_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_D styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_D_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_D_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_D_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_D_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_D_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_D_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_D_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_E styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_E_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_E_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_E_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_E_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_E_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_E_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_E_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_F styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_F_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_F_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_F_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_F_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_F_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_F_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_F_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_G styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_G_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_G_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_G_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_G_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_G_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_G_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_G_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_H styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_H_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_H_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_H_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_H_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_H_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_H_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_H_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_I styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_I_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_I_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_I_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_I_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_I_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_I_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_I_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_J styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_J_Focus_DrawStyle _Zui_Menu_Channel_Autotune_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_J_PORT_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_J_Port_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_J_Port_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_LIST_J_TEXT styles..
#define _Zui_Menu_Hdmi_Cec_Device_List_J_Text_Normal_DrawStyle _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle
#define _Zui_Menu_Hdmi_Cec_Device_List_J_Text_Focus_DrawStyle _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_HDMI_CEC_DEVICE_SEARCHING styles..
#define _Zui_Menu_Hdmi_Cec_Device_Searching_Normal_DrawStyle _Zui_Menu_Hdmi_Cec_Page_Wait_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_PAGE styles..
/////////////////////////////////////////////////////
// MENU_TEST_TTS_BACKGOUND styles..
/////////////////////////////////////////////////////
// MENU_TEST_TTS_BACKGOUND_BG_L styles..
#define _Zui_Menu_Test_Tts_Backgound_Bg_L_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_BACKGOUND_BG_C styles..
#define _Zui_Menu_Test_Tts_Backgound_Bg_C_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_BACKGOUND_BG_R styles..
#define _Zui_Menu_Test_Tts_Backgound_Bg_R_Normal_DrawStyle _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_BACKGOUND_MENU styles..
#define _Zui_Menu_Test_Tts_Backgound_Menu_Normal_DrawStyle _Zui_Pcmode_Menu_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_BACKGOUND_OK styles..
#define _Zui_Menu_Test_Tts_Backgound_Ok_Normal_DrawStyle _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_MAIN_PAGE styles..
/////////////////////////////////////////////////////
// MENU_TEST_TTS_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Menu_Test_Tts_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_372 },
{ CP_NOON, 0 },
};
#define _Zui_Menu_Test_Tts_Title_Focus_DrawStyle _Zui_Menu_Test_Tts_Title_Normal_DrawStyle
#define _Zui_Menu_Test_Tts_Title_Disabled_DrawStyle _Zui_Menu_Test_Tts_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// MENU_TEST_TTS_MIAN_PAGE_STRING styles..
/////////////////////////////////////////////////////
// MENU_TEST_TTS_STRING styles..
/////////////////////////////////////////////////////
// TEST_TTS_MIAN_PAGE_STRINGE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Stringe_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_373 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Stringe_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_374 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Stringe_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_375 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// TEST_TTS_MIAN_PAGE_STRING_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_String_Option_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_34 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_376 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_String_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_377 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_String_Option_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_378 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// MENU_TEST_TTS_TRANSL styles..
/////////////////////////////////////////////////////
// TEST_TTS_MIAN_PAGE_TRANSL_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Transl_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_379 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Transl_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_380 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Transl_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_381 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// TEST_TTS_MIAN_PAGE_TRANSL_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Mian_Page_Transl_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_376 },
{ CP_NOON, 0 },
};
#define _Zui_Test_Tts_Mian_Page_Transl_Option_Focus_DrawStyle _Zui_Test_Tts_Mian_Page_String_Option_Focus_DrawStyle
#define _Zui_Test_Tts_Mian_Page_Transl_Option_Disabled_DrawStyle _Zui_Test_Tts_Mian_Page_String_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_GROUP styles..
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle[] =
{
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_2 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM1_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item1_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_92 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item1_Icon_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM1_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item1_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_382 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item1_String_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM2 styles..
#define _Zui_Tts_Test_Playback_Infobar_Item2_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM2_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item2_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_93 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item2_Icon_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item2_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM2_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item2_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_383 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item2_String_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item2_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM3 styles..
#define _Zui_Tts_Test_Playback_Infobar_Item3_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM3_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item3_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_94 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item3_Icon_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item3_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM3_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item3_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_384 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item3_String_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item3_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM4 styles..
#define _Zui_Tts_Test_Playback_Infobar_Item4_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM4_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item4_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_95 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item4_Icon_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item4_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM4_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item4_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_385 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item4_String_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item4_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM5 styles..
#define _Zui_Tts_Test_Playback_Infobar_Item5_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM5_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item5_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_96 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item5_Icon_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item5_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PLAYBACK_INFOBAR_ITEM5_STRING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Tts_Test_Playback_Infobar_Item5_String_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_386 },
{ CP_NOON, 0 },
};
#define _Zui_Tts_Test_Playback_Infobar_Item5_String_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item5_String_Normal_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_SPEED_ADJ_ITEM1 styles..
#define _Zui_Tts_Test_Speed_Adj_Item1_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_SPEED_ADJ_ITEM1_OPTION styles..
#define _Zui_Tts_Test_Speed_Adj_Item1_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Tts_Test_Speed_Adj_Item1_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Tts_Test_Speed_Adj_Item1_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_SPEED_ADJ_ITEM1_LEFT_ARROW styles..
#define _Zui_Tts_Test_Speed_Adj_Item1_Left_Arrow_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
#define _Zui_Tts_Test_Speed_Adj_Item1_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_SPEED_ADJ_ITEM1_RIGHT_ARROW styles..
#define _Zui_Tts_Test_Speed_Adj_Item1_Right_Arrow_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
#define _Zui_Tts_Test_Speed_Adj_Item1_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PITCH_ADJ_ITEM2 styles..
#define _Zui_Tts_Test_Pitch_Adj_Item2_Focus_DrawStyle _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PITCH_ADJ_ITEM2_OPTION styles..
#define _Zui_Tts_Test_Pitch_Adj_Item2_Option_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Tts_Test_Pitch_Adj_Item2_Option_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle
#define _Zui_Tts_Test_Pitch_Adj_Item2_Option_Disabled_DrawStyle _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PITCH_ADJ_ITEM2_LEFT_ARROW styles..
#define _Zui_Tts_Test_Pitch_Adj_Item2_Left_Arrow_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
#define _Zui_Tts_Test_Pitch_Adj_Item2_Left_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// TTS_TEST_PITCH_ADJ_ITEM2_RIGHT_ARROW styles..
#define _Zui_Tts_Test_Pitch_Adj_Item2_Right_Arrow_Normal_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
#define _Zui_Tts_Test_Pitch_Adj_Item2_Right_Arrow_Focus_DrawStyle _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// TEST_TTS_OPTION_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Option_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_387 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Option_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_388 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Test_Tts_Option_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_389 },
{ CP_NOON, 0 },
};
//////////////////////////////////////////////////////
// Window Draw Style List (normal, focused, disable)
WINDOWDRAWSTYLEDATA _MP_TBLSEG _GUI_WindowsDrawStyleList_Zui_Main_Menu[] =
{
// HWND_MAINFRAME
{ NULL, NULL, NULL },
// HWND_MENU_TRANSPARENT_BG
{ _Zui_Menu_Transparent_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_MASK_BACKGROUND
{ _Zui_Menu_Mask_Background_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_MAIN_BOTTON_INFO_BAR
{ _Zui_Menu_Main_Botton_Info_Bar_Normal_DrawStyle, _Zui_Menu_Main_Botton_Info_Bar_Focus_DrawStyle, NULL },
// HWND_MENU_SW_VERSION_TEXT
{ _Zui_Menu_Sw_Version_Text_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SW_BUILD_TIME_TEXT
{ _Zui_Menu_Sw_Build_Time_Text_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_CHANNEL
{ _Zui_Menu_Bottom_Ball_Normal_Channel_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_CHANNEL
{ _Zui_Menu_Bottom_Ball_Focus_Channel_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_Channel_Focus_DrawStyle, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_PICTURE
{ _Zui_Menu_Bottom_Ball_Normal_Picture_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_PICTURE
{ _Zui_Menu_Bottom_Ball_Focus_Picture_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_Picture_Focus_DrawStyle, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_SOUND
{ _Zui_Menu_Bottom_Ball_Normal_Sound_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_SOUND
{ _Zui_Menu_Bottom_Ball_Focus_Sound_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_Sound_Focus_DrawStyle, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_TIME
{ _Zui_Menu_Bottom_Ball_Normal_Time_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_TIME
{ _Zui_Menu_Bottom_Ball_Focus_Time_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_Time_Focus_DrawStyle, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_OPTION
{ _Zui_Menu_Bottom_Ball_Normal_Option_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_OPTION
{ _Zui_Menu_Bottom_Ball_Focus_Option_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_Option_Focus_DrawStyle, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_LOCK
{ _Zui_Menu_Bottom_Ball_Normal_Lock_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_LOCK
{ _Zui_Menu_Bottom_Ball_Focus_Lock_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_Lock_Focus_DrawStyle, NULL },
// HWND_MENU_BOTTOM_BALL_NORMAL_APP
{ _Zui_Menu_Bottom_Ball_Normal_App_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_BOTTOM_BALL_FOCUS_APP
{ _Zui_Menu_Bottom_Ball_Focus_App_Normal_DrawStyle, _Zui_Menu_Bottom_Ball_Focus_App_Focus_DrawStyle, NULL },
// HWND_MENU_MAIN_LEFT_ARROW
{ _Zui_Menu_Main_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Main_Left_Arrow_Focus_DrawStyle, _Zui_Menu_Main_Left_Arrow_Disabled_DrawStyle },
// HWND_MENU_MAIN_RIGHT_ARROW
{ _Zui_Menu_Main_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Main_Right_Arrow_Focus_DrawStyle, _Zui_Menu_Main_Right_Arrow_Disabled_DrawStyle },
// HWND_MENU_MAIN_UP_ARROW
{ _Zui_Menu_Main_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_MAIN_DOWN_ARROW
{ _Zui_Menu_Main_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_CHANNEL_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_CHANNEL_TITLE
{ _Zui_Menu_Channel_Title_Normal_DrawStyle, _Zui_Menu_Channel_Title_Focus_DrawStyle, _Zui_Menu_Channel_Title_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_CHANNEL_AUTOTUNE
{ NULL, _Zui_Menu_Channel_Autotune_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_AUTOTUNE_TEXT
{ _Zui_Menu_Channel_Autotune_Text_Normal_DrawStyle, _Zui_Menu_Channel_Autotune_Text_Focus_DrawStyle, _Zui_Menu_Channel_Autotune_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_ANTENNA
{ NULL, _Zui_Menu_Channel_Antenna_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_ANTENNA_TEXT
{ _Zui_Menu_Channel_Antenna_Text_Normal_DrawStyle, _Zui_Menu_Channel_Antenna_Text_Focus_DrawStyle, _Zui_Menu_Channel_Antenna_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_ANTENNA_OPTION
{ _Zui_Menu_Channel_Antenna_Option_Normal_DrawStyle, _Zui_Menu_Channel_Antenna_Option_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_DTV_MAN_TUNE
{ NULL, _Zui_Menu_Channel_Dtv_Man_Tune_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_DTV_MAN_TUNE_TEXT
{ _Zui_Menu_Channel_Dtv_Man_Tune_Text_Normal_DrawStyle, _Zui_Menu_Channel_Dtv_Man_Tune_Text_Focus_DrawStyle, _Zui_Menu_Channel_Dtv_Man_Tune_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_CADTV_MAN_TUNE
{ NULL, _Zui_Menu_Channel_Cadtv_Man_Tune_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_CADTV_MAN_TUNE_TEXT
{ _Zui_Menu_Channel_Cadtv_Man_Tune_Text_Normal_DrawStyle, _Zui_Menu_Channel_Cadtv_Man_Tune_Text_Focus_DrawStyle, _Zui_Menu_Channel_Cadtv_Man_Tune_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_ATV_MAN_TUNE
{ NULL, _Zui_Menu_Channel_Atv_Man_Tune_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_ATV_MAN_TUNE_TEXT
{ _Zui_Menu_Channel_Atv_Man_Tune_Text_Normal_DrawStyle, _Zui_Menu_Channel_Atv_Man_Tune_Text_Focus_DrawStyle, _Zui_Menu_Channel_Atv_Man_Tune_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_PROGRAM_EDIT
{ NULL, _Zui_Menu_Channel_Program_Edit_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_PROGRAM_EDIT_TEXT
{ _Zui_Menu_Channel_Program_Edit_Text_Normal_DrawStyle, _Zui_Menu_Channel_Program_Edit_Text_Focus_DrawStyle, _Zui_Menu_Channel_Program_Edit_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_SIGNAL_INFORMAT
{ NULL, _Zui_Menu_Channel_Signal_Informat_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_SIGNAL_INFORMAT_TEXT
{ _Zui_Menu_Channel_Signal_Informat_Text_Normal_DrawStyle, _Zui_Menu_Channel_Signal_Informat_Text_Focus_DrawStyle, _Zui_Menu_Channel_Signal_Informat_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_CI_INFORMATION
{ NULL, _Zui_Menu_Channel_Ci_Information_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_CI_INFORMATION_TEXT
{ _Zui_Menu_Channel_Ci_Information_Text_Normal_DrawStyle, _Zui_Menu_Channel_Ci_Information_Text_Focus_DrawStyle, _Zui_Menu_Channel_Ci_Information_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_CI_INFORMATION_OPTION
{ NULL, NULL, NULL },
// HWND_MENU_CHANNEL_5V_ANTENNA
{ NULL, _Zui_Menu_Channel_5v_Antenna_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_5V_ANTENNA_TEXT
{ _Zui_Menu_Channel_5v_Antenna_Text_Normal_DrawStyle, _Zui_Menu_Channel_5v_Antenna_Text_Focus_DrawStyle, _Zui_Menu_Channel_5v_Antenna_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_5V_ANTENNA_OPTION
{ _Zui_Menu_Channel_5v_Antenna_Option_Normal_DrawStyle, _Zui_Menu_Channel_5v_Antenna_Option_Focus_DrawStyle, _Zui_Menu_Channel_5v_Antenna_Option_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_SW_OAD_UPGRADE
{ NULL, _Zui_Menu_Channel_Sw_Oad_Upgrade_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_SW_OAD_UPGRADE_TEXT
{ _Zui_Menu_Channel_Sw_Oad_Upgrade_Text_Normal_DrawStyle, _Zui_Menu_Channel_Sw_Oad_Upgrade_Text_Focus_DrawStyle, _Zui_Menu_Channel_Sw_Oad_Upgrade_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_SW_OAD_UPGRADE_OPTION
{ _Zui_Menu_Channel_Sw_Oad_Upgrade_Option_Normal_DrawStyle, _Zui_Menu_Channel_Sw_Oad_Upgrade_Option_Focus_DrawStyle, _Zui_Menu_Channel_Sw_Oad_Upgrade_Option_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_SW_OAD_TUNING
{ NULL, _Zui_Menu_Channel_Sw_Oad_Tuning_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_SW_OAD_TUNING_TEXT
{ _Zui_Menu_Channel_Sw_Oad_Tuning_Text_Normal_DrawStyle, _Zui_Menu_Channel_Sw_Oad_Tuning_Text_Focus_DrawStyle, _Zui_Menu_Channel_Sw_Oad_Tuning_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_SW_USB_UPGRADE
{ NULL, _Zui_Menu_Channel_Sw_Usb_Upgrade_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_SW_USB_UPGRADE_TEXT
{ _Zui_Menu_Channel_Sw_Usb_Upgrade_Text_Normal_DrawStyle, _Zui_Menu_Channel_Sw_Usb_Upgrade_Text_Focus_DrawStyle, _Zui_Menu_Channel_Sw_Usb_Upgrade_Text_Disabled_DrawStyle },
// HWND_MENU_CHANNEL_DISHSETUP
{ NULL, _Zui_Menu_Channel_Dishsetup_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_DISHSETUP_TEXT
{ _Zui_Menu_Channel_Dishsetup_Text_Normal_DrawStyle, _Zui_Menu_Channel_Dishsetup_Text_Focus_DrawStyle, _Zui_Menu_Channel_Dishsetup_Text_Disabled_DrawStyle },
// HWND_MENU_ICON_CHANNEL
{ _Zui_Menu_Icon_Channel_Normal_DrawStyle, _Zui_Menu_Icon_Channel_Focus_DrawStyle, _Zui_Menu_Icon_Channel_Disabled_DrawStyle },
// HWND_MENU_PICTURE_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_PICTURE_TITLE
{ _Zui_Menu_Picture_Title_Normal_DrawStyle, _Zui_Menu_Picture_Title_Focus_DrawStyle, _Zui_Menu_Picture_Title_Disabled_DrawStyle },
// HWND_MENU_PICTURE_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_PICTURE_PICMODE
{ NULL, _Zui_Menu_Picture_Picmode_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_PICMODE_TEXT
{ _Zui_Menu_Picture_Picmode_Text_Normal_DrawStyle, _Zui_Menu_Picture_Picmode_Text_Focus_DrawStyle, _Zui_Menu_Picture_Picmode_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_PICMODE_OPTION
{ _Zui_Menu_Picture_Picmode_Option_Normal_DrawStyle, _Zui_Menu_Picture_Picmode_Option_Focus_DrawStyle, _Zui_Menu_Picture_Picmode_Option_Disabled_DrawStyle },
// HWND_MENU_PICTURE_COLOR_TEMP
{ NULL, _Zui_Menu_Picture_Color_Temp_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_COLOR_TEMP_TEXT
{ _Zui_Menu_Picture_Color_Temp_Text_Normal_DrawStyle, _Zui_Menu_Picture_Color_Temp_Text_Focus_DrawStyle, _Zui_Menu_Picture_Color_Temp_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_COLOR_TEMP_OPTION
{ _Zui_Menu_Picture_Color_Temp_Option_Normal_DrawStyle, _Zui_Menu_Picture_Color_Temp_Option_Focus_DrawStyle, _Zui_Menu_Picture_Color_Temp_Option_Disabled_DrawStyle },
// HWND_MENU_PICTURE_ASPECT_RATIO
{ NULL, _Zui_Menu_Picture_Aspect_Ratio_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_ASPECT_RATIO_TEXT
{ _Zui_Menu_Picture_Aspect_Ratio_Text_Normal_DrawStyle, _Zui_Menu_Picture_Aspect_Ratio_Text_Focus_DrawStyle, _Zui_Menu_Picture_Aspect_Ratio_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_ASPECT_RATIO_OPTION
{ _Zui_Menu_Picture_Aspect_Ratio_Option_Normal_DrawStyle, _Zui_Menu_Picture_Aspect_Ratio_Option_Focus_DrawStyle, _Zui_Menu_Picture_Aspect_Ratio_Option_Disabled_DrawStyle },
// HWND_MENU_PICTURE_NOISE_REDUCTION
{ NULL, _Zui_Menu_Picture_Noise_Reduction_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_NOISE_REDUCTION_TEXT
{ _Zui_Menu_Picture_Noise_Reduction_Text_Normal_DrawStyle, _Zui_Menu_Picture_Noise_Reduction_Text_Focus_DrawStyle, _Zui_Menu_Picture_Noise_Reduction_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_NOISE_REDUCTION_OPTION
{ _Zui_Menu_Picture_Noise_Reduction_Option_Normal_DrawStyle, _Zui_Menu_Picture_Noise_Reduction_Option_Focus_DrawStyle, _Zui_Menu_Picture_Noise_Reduction_Option_Disabled_DrawStyle },
// HWND_MENU_PICTURE_MPEG_NOISE_REDUCTION
{ NULL, _Zui_Menu_Picture_Mpeg_Noise_Reduction_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_MPEG_NOISE_REDUCTION_TEXT
{ _Zui_Menu_Picture_Mpeg_Noise_Reduction_Text_Normal_DrawStyle, _Zui_Menu_Picture_Mpeg_Noise_Reduction_Text_Focus_DrawStyle, _Zui_Menu_Picture_Mpeg_Noise_Reduction_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_MPEG_NOISE_REDUCTION_OPTION
{ _Zui_Menu_Picture_Mpeg_Noise_Reduction_Option_Normal_DrawStyle, _Zui_Menu_Picture_Mpeg_Noise_Reduction_Option_Focus_DrawStyle, _Zui_Menu_Picture_Mpeg_Noise_Reduction_Option_Disabled_DrawStyle },
// HWND_MENU_PICTURE_PC_ADJUST
{ NULL, _Zui_Menu_Picture_Pc_Adjust_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_PC_ADJUST_TEXT
{ _Zui_Menu_Picture_Pc_Adjust_Text_Normal_DrawStyle, _Zui_Menu_Picture_Pc_Adjust_Text_Focus_DrawStyle, _Zui_Menu_Picture_Pc_Adjust_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_PIP
{ NULL, _Zui_Menu_Picture_Pip_Focus_DrawStyle, NULL },
// HWND_MENU_PICTURE_PIP_TEXT
{ _Zui_Menu_Picture_Pip_Text_Normal_DrawStyle, _Zui_Menu_Picture_Pip_Text_Focus_DrawStyle, _Zui_Menu_Picture_Pip_Text_Disabled_DrawStyle },
// HWND_MENU_PICTURE_PIP_OPTION
{ _Zui_Menu_Picture_Pip_Option_Normal_DrawStyle, _Zui_Menu_Picture_Pip_Option_Focus_DrawStyle, _Zui_Menu_Picture_Pip_Option_Disabled_DrawStyle },
// HWND_MENU_ICON_PICTURE
{ _Zui_Menu_Icon_Picture_Normal_DrawStyle, _Zui_Menu_Icon_Picture_Focus_DrawStyle, _Zui_Menu_Icon_Picture_Disabled_DrawStyle },
// HWND_MENU_SOUND_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_SOUND_TITLE
{ _Zui_Menu_Sound_Title_Normal_DrawStyle, _Zui_Menu_Sound_Title_Focus_DrawStyle, _Zui_Menu_Sound_Title_Disabled_DrawStyle },
// HWND_MENU_SOUND_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_SOUND_SNDMODE
{ NULL, _Zui_Menu_Sound_Sndmode_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_SNDMODE_TEXT
{ _Zui_Menu_Sound_Sndmode_Text_Normal_DrawStyle, _Zui_Menu_Sound_Sndmode_Text_Focus_DrawStyle, _Zui_Menu_Sound_Sndmode_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_SNDMODE_OPTION
{ _Zui_Menu_Sound_Sndmode_Option_Normal_DrawStyle, _Zui_Menu_Sound_Sndmode_Option_Focus_DrawStyle, _Zui_Menu_Sound_Sndmode_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_BALANCE
{ NULL, _Zui_Menu_Sound_Balance_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_BALANCE_TEXT
{ _Zui_Menu_Sound_Balance_Text_Normal_DrawStyle, _Zui_Menu_Sound_Balance_Text_Focus_DrawStyle, _Zui_Menu_Sound_Balance_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_BALANCE_OPTION
{ _Zui_Menu_Sound_Balance_Option_Normal_DrawStyle, _Zui_Menu_Sound_Balance_Option_Focus_DrawStyle, _Zui_Menu_Sound_Balance_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_AUTO_VOLUME
{ NULL, _Zui_Menu_Sound_Auto_Volume_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_AUTO_VOLUME_TEXT
{ _Zui_Menu_Sound_Auto_Volume_Text_Normal_DrawStyle, _Zui_Menu_Sound_Auto_Volume_Text_Focus_DrawStyle, _Zui_Menu_Sound_Auto_Volume_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_AUTO_VOLUME_OPTION
{ _Zui_Menu_Sound_Auto_Volume_Option_Normal_DrawStyle, _Zui_Menu_Sound_Auto_Volume_Option_Focus_DrawStyle, _Zui_Menu_Sound_Auto_Volume_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_SURROUND
{ NULL, _Zui_Menu_Sound_Surround_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_SURROUND_TEXT
{ _Zui_Menu_Sound_Surround_Text_Normal_DrawStyle, _Zui_Menu_Sound_Surround_Text_Focus_DrawStyle, _Zui_Menu_Sound_Surround_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_SURROUND_OPTION
{ _Zui_Menu_Sound_Surround_Option_Normal_DrawStyle, _Zui_Menu_Sound_Surround_Option_Focus_DrawStyle, _Zui_Menu_Sound_Surround_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_AD_SWITCH
{ NULL, _Zui_Menu_Sound_Ad_Switch_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_AD_SWITCH_TEXT
{ _Zui_Menu_Sound_Ad_Switch_Text_Normal_DrawStyle, _Zui_Menu_Sound_Ad_Switch_Text_Focus_DrawStyle, _Zui_Menu_Sound_Ad_Switch_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_AD_SWITCH_OPTION
{ _Zui_Menu_Sound_Ad_Switch_Option_Normal_DrawStyle, _Zui_Menu_Sound_Ad_Switch_Option_Focus_DrawStyle, _Zui_Menu_Sound_Ad_Switch_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_SPDIF_MODE
{ NULL, _Zui_Menu_Sound_Spdif_Mode_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_SPDIF_MODE_TEXT
{ _Zui_Menu_Sound_Spdif_Mode_Text_Normal_DrawStyle, _Zui_Menu_Sound_Spdif_Mode_Text_Focus_DrawStyle, _Zui_Menu_Sound_Spdif_Mode_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_SPDIF_MODE_OPTION
{ _Zui_Menu_Sound_Spdif_Mode_Option_Normal_DrawStyle, _Zui_Menu_Sound_Spdif_Mode_Option_Focus_DrawStyle, _Zui_Menu_Sound_Spdif_Mode_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_AUDIO_DELAY
{ NULL, _Zui_Menu_Sound_Audio_Delay_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_AUDIO_DELAY_TEXT
{ _Zui_Menu_Sound_Audio_Delay_Text_Normal_DrawStyle, _Zui_Menu_Sound_Audio_Delay_Text_Focus_DrawStyle, _Zui_Menu_Sound_Audio_Delay_Text_Disabled_DrawStyle },
// HWND_MENU_SOUND_AUDIO_DELAY_OPTION
{ _Zui_Menu_Sound_Audio_Delay_Option_Normal_DrawStyle, _Zui_Menu_Sound_Audio_Delay_Option_Focus_DrawStyle, _Zui_Menu_Sound_Audio_Delay_Option_Disabled_DrawStyle },
// HWND_MENU_SOUND_TV_SPEAKER
{ NULL, _Zui_Menu_Sound_Tv_Speaker_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_TV_SPEAKER_TEX
{ _Zui_Menu_Sound_Tv_Speaker_Tex_Normal_DrawStyle, _Zui_Menu_Sound_Tv_Speaker_Tex_Focus_DrawStyle, _Zui_Menu_Sound_Tv_Speaker_Tex_Disabled_DrawStyle },
// HWND_MENU_SOUND_TV_SPEAKER_OPTION
{ _Zui_Menu_Sound_Tv_Speaker_Option_Normal_DrawStyle, _Zui_Menu_Sound_Tv_Speaker_Option_Focus_DrawStyle, _Zui_Menu_Sound_Tv_Speaker_Option_Disabled_DrawStyle },
// HWND_MENU_ICON_SOUND
{ _Zui_Menu_Icon_Sound_Normal_DrawStyle, _Zui_Menu_Icon_Sound_Focus_DrawStyle, _Zui_Menu_Icon_Sound_Disabled_DrawStyle },
// HWND_MENU_TIME_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_TIME_TITLE
{ _Zui_Menu_Time_Title_Normal_DrawStyle, _Zui_Menu_Time_Title_Focus_DrawStyle, _Zui_Menu_Time_Title_Disabled_DrawStyle },
// HWND_MENU_TIME_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_TIME_SET_CLOCK
{ NULL, _Zui_Menu_Time_Set_Clock_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_SET_CLOCK_TEXT
{ _Zui_Menu_Time_Set_Clock_Text_Normal_DrawStyle, _Zui_Menu_Time_Set_Clock_Text_Focus_DrawStyle, _Zui_Menu_Time_Set_Clock_Text_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_CLOCK_OPTION
{ _Zui_Menu_Time_Set_Clock_Option_Normal_DrawStyle, _Zui_Menu_Time_Set_Clock_Option_Focus_DrawStyle, _Zui_Menu_Time_Set_Clock_Option_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_OFFTIME
{ NULL, _Zui_Menu_Time_Set_Offtime_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_SET_OFFTIME_TEXT
{ _Zui_Menu_Time_Set_Offtime_Text_Normal_DrawStyle, _Zui_Menu_Time_Set_Offtime_Text_Focus_DrawStyle, _Zui_Menu_Time_Set_Offtime_Text_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_OFFTIME_OPTION
{ _Zui_Menu_Time_Set_Offtime_Option_Normal_DrawStyle, _Zui_Menu_Time_Set_Offtime_Option_Focus_DrawStyle, _Zui_Menu_Time_Set_Offtime_Option_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_ONTIME
{ NULL, _Zui_Menu_Time_Set_Ontime_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_SET_ONTIME_TEXT
{ _Zui_Menu_Time_Set_Ontime_Text_Normal_DrawStyle, _Zui_Menu_Time_Set_Ontime_Text_Focus_DrawStyle, _Zui_Menu_Time_Set_Ontime_Text_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_ONTIME_OPTION
{ _Zui_Menu_Time_Set_Ontime_Option_Normal_DrawStyle, _Zui_Menu_Time_Set_Ontime_Option_Focus_DrawStyle, _Zui_Menu_Time_Set_Ontime_Option_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_SLEEP_TIMER
{ NULL, _Zui_Menu_Time_Set_Sleep_Timer_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_SET_SLEEP_TIMER_TEXT
{ _Zui_Menu_Time_Set_Sleep_Timer_Text_Normal_DrawStyle, _Zui_Menu_Time_Set_Sleep_Timer_Text_Focus_DrawStyle, _Zui_Menu_Time_Set_Sleep_Timer_Text_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_SLEEP_TIMER_OPTION
{ _Zui_Menu_Time_Set_Sleep_Timer_Option_Normal_DrawStyle, _Zui_Menu_Time_Set_Sleep_Timer_Option_Focus_DrawStyle, _Zui_Menu_Time_Set_Sleep_Timer_Option_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_AUTO_SLEEP
{ NULL, _Zui_Menu_Time_Set_Auto_Sleep_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_SET_AUTO_SLEEP_TEXT
{ _Zui_Menu_Time_Set_Auto_Sleep_Text_Normal_DrawStyle, _Zui_Menu_Time_Set_Auto_Sleep_Text_Focus_DrawStyle, _Zui_Menu_Time_Set_Auto_Sleep_Text_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_AUTO_SLEEP_OPTION
{ _Zui_Menu_Time_Set_Auto_Sleep_Option_Normal_DrawStyle, _Zui_Menu_Time_Set_Auto_Sleep_Option_Focus_DrawStyle, _Zui_Menu_Time_Set_Auto_Sleep_Option_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_TIMEZONE
{ NULL, _Zui_Menu_Time_Set_Timezone_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_SET_TIMEZONE_TEXT
{ _Zui_Menu_Time_Set_Timezone_Text_Normal_DrawStyle, _Zui_Menu_Time_Set_Timezone_Text_Focus_DrawStyle, _Zui_Menu_Time_Set_Timezone_Text_Disabled_DrawStyle },
// HWND_MENU_TIME_SET_TIMEZONE_OPTION
{ _Zui_Menu_Time_Set_Timezone_Option_Normal_DrawStyle, _Zui_Menu_Time_Set_Timezone_Option_Focus_DrawStyle, _Zui_Menu_Time_Set_Timezone_Option_Disabled_DrawStyle },
// HWND_MENU_ICON_TIME
{ _Zui_Menu_Icon_Time_Normal_DrawStyle, _Zui_Menu_Icon_Time_Focus_DrawStyle, _Zui_Menu_Icon_Time_Disabled_DrawStyle },
// HWND_MENU_OPTION_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_TITLE
{ _Zui_Menu_Option_Title_Normal_DrawStyle, _Zui_Menu_Option_Title_Focus_DrawStyle, _Zui_Menu_Option_Title_Disabled_DrawStyle },
// HWND_MENU_OPTION_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_OSD_LANG
{ NULL, _Zui_Menu_Option_Osd_Lang_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSD_LANG_TEXT
{ _Zui_Menu_Option_Osd_Lang_Text_Normal_DrawStyle, _Zui_Menu_Option_Osd_Lang_Text_Focus_DrawStyle, _Zui_Menu_Option_Osd_Lang_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_OSD_LANG_OPTION
{ _Zui_Menu_Option_Osd_Lang_Option_Normal_DrawStyle, _Zui_Menu_Option_Osd_Lang_Option_Focus_DrawStyle, _Zui_Menu_Option_Osd_Lang_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_AUDIO_LANG
{ NULL, _Zui_Menu_Option_Audio_Lang_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIO_LANG_TEXT
{ _Zui_Menu_Option_Audio_Lang_Text_Normal_DrawStyle, _Zui_Menu_Option_Audio_Lang_Text_Focus_DrawStyle, _Zui_Menu_Option_Audio_Lang_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_AUDIO_LANG_OPTION
{ _Zui_Menu_Option_Audio_Lang_Option_Normal_DrawStyle, _Zui_Menu_Option_Audio_Lang_Option_Focus_DrawStyle, _Zui_Menu_Option_Audio_Lang_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_SUBTITLE_LANG
{ NULL, _Zui_Menu_Option_Subtitle_Lang_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBTITLE_LANG_TEXT
{ _Zui_Menu_Option_Subtitle_Lang_Text_Normal_DrawStyle, _Zui_Menu_Option_Subtitle_Lang_Text_Focus_DrawStyle, _Zui_Menu_Option_Subtitle_Lang_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_SUBTITLE_LANG_OPTION
{ _Zui_Menu_Option_Subtitle_Lang_Option_Normal_DrawStyle, _Zui_Menu_Option_Subtitle_Lang_Option_Focus_DrawStyle, _Zui_Menu_Option_Subtitle_Lang_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_HARD_HEARING
{ NULL, _Zui_Menu_Option_Hard_Hearing_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_HARD_HEARING_TEXT
{ _Zui_Menu_Option_Hard_Hearing_Text_Normal_DrawStyle, _Zui_Menu_Option_Hard_Hearing_Text_Focus_DrawStyle, _Zui_Menu_Option_Hard_Hearing_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_HARD_HEARING_OPTION
{ _Zui_Menu_Option_Hard_Hearing_Option_Normal_DrawStyle, _Zui_Menu_Option_Hard_Hearing_Option_Focus_DrawStyle, _Zui_Menu_Option_Hard_Hearing_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_SUBTITLE_ONOFF
{ NULL, _Zui_Menu_Option_Subtitle_Onoff_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBTITLE_ONOFF_TEXT
{ _Zui_Menu_Option_Subtitle_Onoff_Text_Normal_DrawStyle, _Zui_Menu_Option_Subtitle_Onoff_Text_Focus_DrawStyle, _Zui_Menu_Option_Subtitle_Onoff_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_SUBTITLE_ONOFF_OPTION
{ NULL, _Zui_Menu_Option_Subtitle_Onoff_Option_Focus_DrawStyle, _Zui_Menu_Option_Subtitle_Onoff_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_PVR_FILE_SYSTEM
{ NULL, _Zui_Menu_Option_Pvr_File_System_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_PVR_FILE_SYSTEM_TXT
{ _Zui_Menu_Option_Pvr_File_System_Txt_Normal_DrawStyle, _Zui_Menu_Option_Pvr_File_System_Txt_Focus_DrawStyle, _Zui_Menu_Option_Pvr_File_System_Txt_Disabled_DrawStyle },
// HWND_MENU_OPTION_COUNTRY
{ NULL, _Zui_Menu_Option_Country_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_COUNTRY_TEXT
{ _Zui_Menu_Option_Country_Text_Normal_DrawStyle, _Zui_Menu_Option_Country_Text_Focus_DrawStyle, _Zui_Menu_Option_Country_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_COUNTRY_OPTION
{ _Zui_Menu_Option_Country_Option_Normal_DrawStyle, _Zui_Menu_Option_Country_Option_Focus_DrawStyle, _Zui_Menu_Option_Country_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_RSS
{ NULL, _Zui_Menu_Option_Rss_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_RSS_TEXT
{ _Zui_Menu_Option_Rss_Text_Normal_DrawStyle, _Zui_Menu_Option_Rss_Text_Focus_DrawStyle, _Zui_Menu_Option_Rss_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_RSS_OPTION
{ _Zui_Menu_Option_Rss_Option_Normal_DrawStyle, _Zui_Menu_Option_Rss_Option_Focus_DrawStyle, _Zui_Menu_Option_Rss_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_EXTENSION
{ NULL, _Zui_Menu_Option_Extension_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_EXTENSION_TEXT
{ _Zui_Menu_Option_Extension_Text_Normal_DrawStyle, _Zui_Menu_Option_Extension_Text_Focus_DrawStyle, _Zui_Menu_Option_Extension_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_EXTENSION_OPTION
{ _Zui_Menu_Option_Extension_Option_Normal_DrawStyle, _Zui_Menu_Option_Extension_Option_Focus_DrawStyle, _Zui_Menu_Option_Extension_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_CAPTION
{ NULL, _Zui_Menu_Option_Caption_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_CAPTION_TEXT
{ _Zui_Menu_Option_Caption_Text_Normal_DrawStyle, _Zui_Menu_Option_Caption_Text_Focus_DrawStyle, _Zui_Menu_Option_Caption_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_CAPTION_OPTION
{ _Zui_Menu_Option_Caption_Option_Normal_DrawStyle, _Zui_Menu_Option_Caption_Option_Focus_DrawStyle, _Zui_Menu_Option_Caption_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_FACTORY_RESET
{ NULL, _Zui_Menu_Option_Factory_Reset_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_FACTORY_RESET_TEXT
{ _Zui_Menu_Option_Factory_Reset_Text_Normal_DrawStyle, _Zui_Menu_Option_Factory_Reset_Text_Focus_DrawStyle, _Zui_Menu_Option_Factory_Reset_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_HDMI_CEC
{ NULL, _Zui_Menu_Option_Hdmi_Cec_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_HDMI_CEC_TEXT
{ _Zui_Menu_Option_Hdmi_Cec_Text_Normal_DrawStyle, _Zui_Menu_Option_Hdmi_Cec_Text_Focus_DrawStyle, _Zui_Menu_Option_Hdmi_Cec_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_HDMI_CEC_OPTION
{ _Zui_Menu_Option_Hdmi_Cec_Option_Normal_DrawStyle, _Zui_Menu_Option_Hdmi_Cec_Option_Focus_DrawStyle, _Zui_Menu_Option_Hdmi_Cec_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_HDMI_ARC
{ NULL, _Zui_Menu_Option_Hdmi_Arc_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_HDMI_ARC_TEXT
{ _Zui_Menu_Option_Hdmi_Arc_Text_Normal_DrawStyle, _Zui_Menu_Option_Hdmi_Arc_Text_Focus_DrawStyle, _Zui_Menu_Option_Hdmi_Arc_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_HDMI_ARC_OPTION
{ _Zui_Menu_Option_Hdmi_Arc_Option_Normal_DrawStyle, _Zui_Menu_Option_Hdmi_Arc_Option_Focus_DrawStyle, _Zui_Menu_Option_Hdmi_Arc_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_OSD_EFFECT
{ NULL, _Zui_Menu_Option_Osd_Effect_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSD_EFFECT_TEXT
{ _Zui_Menu_Option_Osd_Effect_Text_Normal_DrawStyle, _Zui_Menu_Option_Osd_Effect_Text_Focus_DrawStyle, _Zui_Menu_Option_Osd_Effect_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_OSD_EFFECT_OPTION
{ _Zui_Menu_Option_Osd_Effect_Option_Normal_DrawStyle, _Zui_Menu_Option_Osd_Effect_Option_Focus_DrawStyle, _Zui_Menu_Option_Osd_Effect_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_DIVX
{ NULL, _Zui_Menu_Option_Divx_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_DIVX_TEXT
{ _Zui_Menu_Option_Divx_Text_Normal_DrawStyle, _Zui_Menu_Option_Divx_Text_Focus_DrawStyle, _Zui_Menu_Option_Divx_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_CC_MODE
{ NULL, _Zui_Menu_Option_Cc_Mode_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_CC_MODE_TEXT
{ _Zui_Menu_Option_Cc_Mode_Text_Normal_DrawStyle, _Zui_Menu_Option_Cc_Mode_Text_Focus_DrawStyle, _Zui_Menu_Option_Cc_Mode_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_CC_MODE_OPTION
{ _Zui_Menu_Option_Cc_Mode_Option_Normal_DrawStyle, _Zui_Menu_Option_Cc_Mode_Option_Focus_DrawStyle, _Zui_Menu_Option_Cc_Mode_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_CC_OPTION
{ NULL, _Zui_Menu_Option_Cc_Option_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_CC_OPTION_TEXT
{ _Zui_Menu_Option_Cc_Option_Text_Normal_DrawStyle, _Zui_Menu_Option_Cc_Option_Text_Focus_DrawStyle, _Zui_Menu_Option_Cc_Option_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_CC_OPTION_OPTION
{ _Zui_Menu_Option_Cc_Option_Option_Normal_DrawStyle, _Zui_Menu_Option_Cc_Option_Option_Focus_DrawStyle, _Zui_Menu_Option_Cc_Option_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_COLOR_RANGE
{ NULL, _Zui_Menu_Option_Color_Range_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_COLOR_RANGE_TEXT
{ _Zui_Menu_Option_Color_Range_Text_Normal_DrawStyle, _Zui_Menu_Option_Color_Range_Text_Focus_DrawStyle, _Zui_Menu_Option_Color_Range_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_COLOR_RANGE_OPTION
{ _Zui_Menu_Option_Color_Range_Option_Normal_DrawStyle, _Zui_Menu_Option_Color_Range_Option_Focus_DrawStyle, _Zui_Menu_Option_Color_Range_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_TYPE
{ NULL, _Zui_Menu_Option_3d_Type_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_3D_TYPE_TEXT
{ _Zui_Menu_Option_3d_Type_Text_Normal_DrawStyle, _Zui_Menu_Option_3d_Type_Text_Focus_DrawStyle, _Zui_Menu_Option_3d_Type_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_TYPE_OPTION
{ _Zui_Menu_Option_3d_Type_Option_Normal_DrawStyle, _Zui_Menu_Option_3d_Type_Option_Focus_DrawStyle, _Zui_Menu_Option_3d_Type_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_TO_2D
{ NULL, _Zui_Menu_Option_3d_To_2d_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_3D_TO_2D_TEXT
{ _Zui_Menu_Option_3d_To_2d_Text_Normal_DrawStyle, _Zui_Menu_Option_3d_To_2d_Text_Focus_DrawStyle, _Zui_Menu_Option_3d_To_2d_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_TO_2D_OPTION
{ _Zui_Menu_Option_3d_To_2d_Option_Normal_DrawStyle, _Zui_Menu_Option_3d_To_2d_Option_Focus_DrawStyle, _Zui_Menu_Option_3d_To_2d_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_DETECT
{ NULL, _Zui_Menu_Option_3d_Detect_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_3D_DETECT_TEXT
{ _Zui_Menu_Option_3d_Detect_Text_Normal_DrawStyle, _Zui_Menu_Option_3d_Detect_Text_Focus_DrawStyle, _Zui_Menu_Option_3d_Detect_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_DETECT_OPTION
{ _Zui_Menu_Option_3d_Detect_Option_Normal_DrawStyle, _Zui_Menu_Option_3d_Detect_Option_Focus_DrawStyle, _Zui_Menu_Option_3d_Detect_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_LR
{ NULL, _Zui_Menu_Option_3d_Lr_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_3D_LR_TEXT
{ _Zui_Menu_Option_3d_Lr_Text_Normal_DrawStyle, _Zui_Menu_Option_3d_Lr_Text_Focus_DrawStyle, _Zui_Menu_Option_3d_Lr_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_LR_OPTION
{ _Zui_Menu_Option_3d_Lr_Option_Normal_DrawStyle, _Zui_Menu_Option_3d_Lr_Option_Focus_DrawStyle, _Zui_Menu_Option_3d_Lr_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_HSHIFT
{ NULL, _Zui_Menu_Option_3d_Hshift_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_3D_HSHIFT_TEXT
{ _Zui_Menu_Option_3d_Hshift_Text_Normal_DrawStyle, _Zui_Menu_Option_3d_Hshift_Text_Focus_DrawStyle, _Zui_Menu_Option_3d_Hshift_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_HSHIFT_OPTION
{ _Zui_Menu_Option_3d_Hshift_Option_Normal_DrawStyle, _Zui_Menu_Option_3d_Hshift_Option_Focus_DrawStyle, _Zui_Menu_Option_3d_Hshift_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_VIEW_POINT
{ NULL, _Zui_Menu_Option_3d_View_Point_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_3D_VIEW_POINT_TEXT
{ _Zui_Menu_Option_3d_View_Point_Text_Normal_DrawStyle, _Zui_Menu_Option_3d_View_Point_Text_Focus_DrawStyle, _Zui_Menu_Option_3d_View_Point_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_3D_VIEW_POINT_OPTION
{ _Zui_Menu_Option_3d_View_Point_Option_Normal_DrawStyle, _Zui_Menu_Option_3d_View_Point_Option_Focus_DrawStyle, _Zui_Menu_Option_3d_View_Point_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_MFC
{ NULL, _Zui_Menu_Option_Mfc_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_MFC_TEXT
{ _Zui_Menu_Option_Mfc_Text_Normal_DrawStyle, _Zui_Menu_Option_Mfc_Text_Focus_DrawStyle, _Zui_Menu_Option_Mfc_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_6M30_MIRROR
{ NULL, _Zui_Menu_Option_6m30_Mirror_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_6M30_MIRROR_TEXT
{ _Zui_Menu_Option_6m30_Mirror_Text_Normal_DrawStyle, _Zui_Menu_Option_6m30_Mirror_Text_Focus_DrawStyle, _Zui_Menu_Option_6m30_Mirror_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_6M30_MIRROR_OPTION
{ _Zui_Menu_Option_6m30_Mirror_Option_Normal_DrawStyle, _Zui_Menu_Option_6m30_Mirror_Option_Focus_DrawStyle, _Zui_Menu_Option_6m30_Mirror_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_6M30_VERSION
{ _Zui_Menu_Option_6m30_Version_Normal_DrawStyle, _Zui_Menu_Option_6m30_Version_Focus_DrawStyle, _Zui_Menu_Option_6m30_Version_Disabled_DrawStyle },
// HWND_MENU_OPTION_6M30_VERSION_TEXT
{ _Zui_Menu_Option_6m30_Version_Text_Normal_DrawStyle, _Zui_Menu_Option_6m30_Version_Text_Focus_DrawStyle, _Zui_Menu_Option_6m30_Version_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_6M30_VERSION_OPTION
{ _Zui_Menu_Option_6m30_Version_Option_Normal_DrawStyle, _Zui_Menu_Option_6m30_Version_Option_Focus_DrawStyle, _Zui_Menu_Option_6m30_Version_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_EPOP
{ NULL, _Zui_Menu_Option_Epop_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_EPOP_TEXT
{ _Zui_Menu_Option_Epop_Text_Normal_DrawStyle, _Zui_Menu_Option_Epop_Text_Focus_DrawStyle, _Zui_Menu_Option_Epop_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_EPOP_OPTION
{ NULL, _Zui_Menu_Option_Epop_Option_Focus_DrawStyle, _Zui_Menu_Option_Epop_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_SCART_IN
{ NULL, _Zui_Menu_Option_Scart_In_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SCART_IN_TEXT
{ _Zui_Menu_Option_Scart_In_Text_Normal_DrawStyle, _Zui_Menu_Option_Scart_In_Text_Focus_DrawStyle, _Zui_Menu_Option_Scart_In_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_SCART_IN_OPTION
{ _Zui_Menu_Option_Scart_In_Option_Normal_DrawStyle, _Zui_Menu_Option_Scart_In_Option_Focus_DrawStyle, _Zui_Menu_Option_Scart_In_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_KTS
{ NULL, _Zui_Menu_Option_Kts_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_KTS_TEXT
{ _Zui_Menu_Option_Kts_Text_Normal_DrawStyle, _Zui_Menu_Option_Kts_Text_Focus_DrawStyle, _Zui_Menu_Option_Kts_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_KTS_TEXT_OPTION
{ _Zui_Menu_Option_Kts_Text_Option_Normal_DrawStyle, _Zui_Menu_Option_Kts_Text_Option_Focus_DrawStyle, _Zui_Menu_Option_Kts_Text_Option_Disabled_DrawStyle },
// HWND_MENU_ICON_OPTION
{ _Zui_Menu_Icon_Option_Normal_DrawStyle, _Zui_Menu_Icon_Option_Focus_DrawStyle, _Zui_Menu_Icon_Option_Disabled_DrawStyle },
// HWND_MENU_LOCK_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_LOCK_TITLE
{ _Zui_Menu_Lock_Title_Normal_DrawStyle, _Zui_Menu_Lock_Title_Focus_DrawStyle, _Zui_Menu_Lock_Title_Disabled_DrawStyle },
// HWND_MENU_LOCK_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_LOCK_SYSTEM
{ NULL, _Zui_Menu_Lock_System_Focus_DrawStyle, NULL },
// HWND_MENU_LOCK_SYSTEM_TEXT
{ _Zui_Menu_Lock_System_Text_Normal_DrawStyle, _Zui_Menu_Lock_System_Text_Focus_DrawStyle, _Zui_Menu_Lock_System_Text_Disabled_DrawStyle },
// HWND_MENU_LOCK_SYSTEM_OPTION
{ _Zui_Menu_Lock_System_Option_Normal_DrawStyle, _Zui_Menu_Lock_System_Option_Focus_DrawStyle, _Zui_Menu_Lock_System_Option_Disabled_DrawStyle },
// HWND_MENU_LOCK_SET_PASSWORD
{ NULL, _Zui_Menu_Lock_Set_Password_Focus_DrawStyle, NULL },
// HWND_MENU_LOCK_SET_PASSWORD_TEXT
{ _Zui_Menu_Lock_Set_Password_Text_Normal_DrawStyle, _Zui_Menu_Lock_Set_Password_Text_Focus_DrawStyle, _Zui_Menu_Lock_Set_Password_Text_Disabled_DrawStyle },
// HWND_MENU_LOCK_BLOCK_PROGRAM
{ NULL, _Zui_Menu_Lock_Block_Program_Focus_DrawStyle, NULL },
// HWND_MENU_LOCK_BLOCK_PROGRAM_TEXT
{ _Zui_Menu_Lock_Block_Program_Text_Normal_DrawStyle, _Zui_Menu_Lock_Block_Program_Text_Focus_DrawStyle, _Zui_Menu_Lock_Block_Program_Text_Disabled_DrawStyle },
// HWND_MENU_LOCK_PARENTAL_GUIDANCE
{ NULL, _Zui_Menu_Lock_Parental_Guidance_Focus_DrawStyle, NULL },
// HWND_MENU_LOCK_PARENTAL_GUIDANCE_TEXT
{ _Zui_Menu_Lock_Parental_Guidance_Text_Normal_DrawStyle, _Zui_Menu_Lock_Parental_Guidance_Text_Focus_DrawStyle, _Zui_Menu_Lock_Parental_Guidance_Text_Disabled_DrawStyle },
// HWND_MENU_LOCK_PARENTAL_GUIDANCE_OPTION
{ _Zui_Menu_Lock_Parental_Guidance_Option_Normal_DrawStyle, _Zui_Menu_Lock_Parental_Guidance_Option_Focus_DrawStyle, _Zui_Menu_Lock_Parental_Guidance_Option_Disabled_DrawStyle },
// HWND_MENU_ICON_LOCK
{ _Zui_Menu_Icon_Lock_Normal_DrawStyle, _Zui_Menu_Icon_Lock_Focus_DrawStyle, _Zui_Menu_Icon_Lock_Disabled_DrawStyle },
// HWND_MENU_APP_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_APP_TITLE
{ _Zui_Menu_App_Title_Normal_DrawStyle, _Zui_Menu_App_Title_Focus_DrawStyle, _Zui_Menu_App_Title_Disabled_DrawStyle },
// HWND_MENU_APP_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_APP_DMP
{ NULL, _Zui_Menu_App_Dmp_Focus_DrawStyle, NULL },
// HWND_MENU_APP_DMP_TEXT
{ _Zui_Menu_App_Dmp_Text_Normal_DrawStyle, _Zui_Menu_App_Dmp_Text_Focus_DrawStyle, _Zui_Menu_App_Dmp_Text_Disabled_DrawStyle },
// HWND_MENU_ICON_APP
{ _Zui_Menu_Icon_App_Normal_DrawStyle, _Zui_Menu_Icon_App_Focus_DrawStyle, _Zui_Menu_Icon_App_Disabled_DrawStyle },
// HWND_MENU_PCMODE_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_PCMODE_PAGE_BG_TOP
{ _Zui_Menu_Pcmode_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PCMODE_PAGE_BG_L
{ _Zui_Menu_Pcmode_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PCMODE_PAGE_BG_C
{ _Zui_Menu_Pcmode_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PCMODE_PAGE_BG_R
{ _Zui_Menu_Pcmode_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_PCMODE_UP_ARROW
{ _Zui_Pcmode_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_PCMODE_DOWN_ARROW
{ _Zui_Pcmode_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_PCMODE_MENU
{ _Zui_Pcmode_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PCMODE_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_PCMODE_AUTO_ADJUST
{ NULL, _Zui_Menu_Pcmode_Auto_Adjust_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_AUTO_ADJUST_COVER
{ NULL, _Zui_Menu_Pcmode_Auto_Adjust_Cover_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_AUTO_ADJUST_TEXT
{ _Zui_Menu_Pcmode_Auto_Adjust_Text_Normal_DrawStyle, _Zui_Menu_Pcmode_Auto_Adjust_Text_Focus_DrawStyle, _Zui_Menu_Pcmode_Auto_Adjust_Text_Disabled_DrawStyle },
// HWND_MENU_PCMODE_AUTO_ADJUST_OK
{ NULL, _Zui_Menu_Pcmode_Auto_Adjust_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_HPOS
{ NULL, _Zui_Menu_Pcmode_Hpos_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_HPOS_OPTION
{ _Zui_Menu_Pcmode_Hpos_Option_Normal_DrawStyle, _Zui_Menu_Pcmode_Hpos_Option_Focus_DrawStyle, _Zui_Menu_Pcmode_Hpos_Option_Disabled_DrawStyle },
// HWND_MENU_PCMODE_HPOS_LEFT_ARROW
{ NULL, _Zui_Menu_Pcmode_Hpos_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_HPOS_RIGHT_ARROW
{ NULL, _Zui_Menu_Pcmode_Hpos_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_HPOS_INC
{ NULL, _Zui_Menu_Pcmode_Hpos_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_HPOS_DEC
{ NULL, _Zui_Menu_Pcmode_Hpos_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_VPOS
{ NULL, _Zui_Menu_Pcmode_Vpos_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_VPOS_OPTION
{ _Zui_Menu_Pcmode_Vpos_Option_Normal_DrawStyle, _Zui_Menu_Pcmode_Vpos_Option_Focus_DrawStyle, _Zui_Menu_Pcmode_Vpos_Option_Disabled_DrawStyle },
// HWND_MENU_PCMODE_VPOS_LEFT_ARROW
{ NULL, _Zui_Menu_Pcmode_Vpos_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_VPOS_RIGHT_ARROW
{ NULL, _Zui_Menu_Pcmode_Vpos_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_VPOS_INC
{ NULL, _Zui_Menu_Pcmode_Vpos_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_VPOS_DEC
{ NULL, _Zui_Menu_Pcmode_Vpos_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_SIZE
{ NULL, _Zui_Menu_Pcmode_Size_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_SIZE_OPTION
{ _Zui_Menu_Pcmode_Size_Option_Normal_DrawStyle, _Zui_Menu_Pcmode_Size_Option_Focus_DrawStyle, _Zui_Menu_Pcmode_Size_Option_Disabled_DrawStyle },
// HWND_MENU_PCMODE_SIZE_LEFT_ARROW
{ NULL, _Zui_Menu_Pcmode_Size_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_SIZE_RIGHT_ARROW
{ NULL, _Zui_Menu_Pcmode_Size_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_SIZE_INC
{ NULL, _Zui_Menu_Pcmode_Size_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_SIZE_DEC
{ NULL, _Zui_Menu_Pcmode_Size_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_PHASE
{ NULL, _Zui_Menu_Pcmode_Phase_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_PHASE_OPTION
{ _Zui_Menu_Pcmode_Phase_Option_Normal_DrawStyle, _Zui_Menu_Pcmode_Phase_Option_Focus_DrawStyle, _Zui_Menu_Pcmode_Phase_Option_Disabled_DrawStyle },
// HWND_MENU_PCMODE_PHASE_LEFT_ARROW
{ NULL, _Zui_Menu_Pcmode_Phase_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_PHASE_RIGHT_ARROW
{ NULL, _Zui_Menu_Pcmode_Phase_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_PHASE_INC
{ NULL, _Zui_Menu_Pcmode_Phase_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_PHASE_DEC
{ NULL, _Zui_Menu_Pcmode_Phase_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_TITLE
{ NULL, _Zui_Menu_Pcmode_Title_Focus_DrawStyle, NULL },
// HWND_MENU_PCMODE_TITLE_TEXT
{ _Zui_Menu_Pcmode_Title_Text_Normal_DrawStyle, _Zui_Menu_Pcmode_Title_Text_Focus_DrawStyle, _Zui_Menu_Pcmode_Title_Text_Disabled_DrawStyle },
// HWND_MENU_DLG_COMMON
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BG
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BG_TOP
{ _Zui_Menu_Dlg_Common_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_NEW_BG_L
{ _Zui_Menu_Dlg_Common_New_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_NEW_BG_C
{ _Zui_Menu_Dlg_Common_New_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_NEW_BG_R
{ _Zui_Menu_Dlg_Common_New_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BG_C_SETPW
{ _Zui_Menu_Dlg_Common_Bg_C_Setpw_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BG_L
{ _Zui_Menu_Dlg_Common_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BG_C
{ _Zui_Menu_Dlg_Common_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BG_R
{ _Zui_Menu_Dlg_Common_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_DIVX_YES
{ _Zui_Menu_Dlg_Common_Btn_Divx_Yes_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Divx_Yes_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_DIVX_NO
{ _Zui_Menu_Dlg_Common_Btn_Divx_No_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Divx_No_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_DIVX_DONE
{ _Zui_Menu_Dlg_Common_Btn_Divx_Done_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Divx_Done_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_ICON
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT1
{ _Zui_Menu_Dlg_Common_Text1_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT2
{ _Zui_Menu_Dlg_Common_Text2_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT3
{ _Zui_Menu_Dlg_Common_Text3_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT4
{ _Zui_Menu_Dlg_Common_Text4_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT5
{ _Zui_Menu_Dlg_Common_Text5_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT6
{ _Zui_Menu_Dlg_Common_Text6_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT7
{ _Zui_Menu_Dlg_Common_Text7_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT8
{ _Zui_Menu_Dlg_Common_Text8_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT9
{ _Zui_Menu_Dlg_Common_Text9_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT10
{ _Zui_Menu_Dlg_Common_Text10_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT11
{ _Zui_Menu_Dlg_Common_Text11_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_TEXT12
{ _Zui_Menu_Dlg_Common_Text12_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BAR
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PANE0
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_INPUT0_TEXT
{ _Zui_Menu_Dlg_Password_Input0_Text_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Input0_Text_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT0_1
{ _Zui_Menu_Dlg_Password_Input0_1_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input0_1_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input0_1_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT0_2
{ _Zui_Menu_Dlg_Password_Input0_2_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input0_2_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input0_2_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT0_3
{ _Zui_Menu_Dlg_Password_Input0_3_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input0_3_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input0_3_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT0_4
{ _Zui_Menu_Dlg_Password_Input0_4_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input0_4_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input0_4_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE0
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE0_1
{ _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Pressed_Pane0_1_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE0_2
{ _Zui_Menu_Dlg_Password_Pressed_Pane0_2_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Pressed_Pane0_2_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE0_3
{ _Zui_Menu_Dlg_Password_Pressed_Pane0_3_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Pressed_Pane0_3_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE0_4
{ _Zui_Menu_Dlg_Password_Pressed_Pane0_4_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Pressed_Pane0_4_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PANE1
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_INPUT1_TEXT
{ _Zui_Menu_Dlg_Password_Input1_Text_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Input1_Text_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT1_1
{ _Zui_Menu_Dlg_Password_Input1_1_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input1_1_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input1_1_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT1_2
{ _Zui_Menu_Dlg_Password_Input1_2_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input1_2_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input1_2_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT1_3
{ _Zui_Menu_Dlg_Password_Input1_3_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input1_3_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input1_3_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT1_4
{ _Zui_Menu_Dlg_Password_Input1_4_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input1_4_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input1_4_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE1
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE1_1
{ _Zui_Menu_Dlg_Password_Pressed_Pane1_1_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE1_2
{ _Zui_Menu_Dlg_Password_Pressed_Pane1_2_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE1_3
{ _Zui_Menu_Dlg_Password_Pressed_Pane1_3_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE1_4
{ _Zui_Menu_Dlg_Password_Pressed_Pane1_4_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PANE2
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_INPUT2_TEXT
{ _Zui_Menu_Dlg_Password_Input2_Text_Normal_DrawStyle, NULL, _Zui_Menu_Dlg_Password_Input2_Text_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT2_1
{ _Zui_Menu_Dlg_Password_Input2_1_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input2_1_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input2_1_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT2_2
{ _Zui_Menu_Dlg_Password_Input2_2_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input2_2_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input2_2_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT2_3
{ _Zui_Menu_Dlg_Password_Input2_3_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input2_3_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input2_3_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_INPUT2_4
{ _Zui_Menu_Dlg_Password_Input2_4_Normal_DrawStyle, _Zui_Menu_Dlg_Password_Input2_4_Focus_DrawStyle, _Zui_Menu_Dlg_Password_Input2_4_Disabled_DrawStyle },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE2
{ NULL, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE2_1
{ _Zui_Menu_Dlg_Password_Pressed_Pane2_1_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE2_2
{ _Zui_Menu_Dlg_Password_Pressed_Pane2_2_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE2_3
{ _Zui_Menu_Dlg_Password_Pressed_Pane2_3_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_PASSWORD_PRESSED_PANE2_4
{ _Zui_Menu_Dlg_Password_Pressed_Pane2_4_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_PANE
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_YES
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_YES_LEFT_ARROW
{ _Zui_Menu_Dlg_Common_Btn_Yes_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Yes_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_YES_TEXT
{ _Zui_Menu_Dlg_Common_Btn_Yes_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Yes_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_NO
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_NO_RIGHT_ARROW
{ _Zui_Menu_Dlg_Common_Btn_No_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_No_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_NO_TEXT
{ _Zui_Menu_Dlg_Common_Btn_No_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_No_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_OK
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_OK_LEFT_ARROW
{ _Zui_Menu_Dlg_Common_Btn_Ok_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Ok_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_OK_TEXT
{ _Zui_Menu_Dlg_Common_Btn_Ok_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Ok_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_CANCEL
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_BTN_CANCEL_RIGHT_ARROW
{ _Zui_Menu_Dlg_Common_Btn_Cancel_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Cancel_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_BTN_CANCEL_TEXT
{ _Zui_Menu_Dlg_Common_Btn_Cancel_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Btn_Cancel_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_BG
{ _Zui_Menu_Dlg_Common_Loadanimation_Bg_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION
{ _Zui_Menu_Dlg_Common_Loadanimation_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM
{ NULL, NULL, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_BG_TOP
{ _Zui_Menu_Dlg_Tune_Confirm_Bg_Top_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Bg_Top_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_BG_L
{ _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Bg_L_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_BG_C
{ _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Bg_C_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_BG_R
{ _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Bg_R_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_BAR1
{ _Zui_Menu_Dlg_Tune_Confirm_Bar1_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Bar1_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_BAR2
{ _Zui_Menu_Dlg_Tune_Confirm_Bar2_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Bar2_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID
{ NULL, NULL, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_01
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_01_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_01_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_01_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02_LEFT_ARROW
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_02_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_02_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_03
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_03_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_03_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_03_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04_UP_ARROW
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Up_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_04_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_04_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_05
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_05_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_05_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_05_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06_DOWN_ARROW
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_06_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_06_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_07
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_07_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_07_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_07_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08_RIGHT_ARROW
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_08_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_08_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_09
{ _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_09_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_COUNTRY_GRID_09_OK
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Country_Grid_09_Ok_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_TEXT
{ _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_OPTION
{ _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Option_Normal_DrawStyle, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Option_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_LEFT_ARROW
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_RIGHT_ARROW
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_DOWN_ARROW
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_TUNE_CONFIRM_TUNE_TYPE_MENU
{ NULL, _Zui_Menu_Dlg_Tune_Confirm_Tune_Type_Menu_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_DVB_SELECT_MENU
{ NULL, NULL, NULL },
// HWND_MENU_DLG_DVB_SELECT_MENU_BG_C
{ _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_DVB_SELECT_MENU_BG_L
{ _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_DVB_SELECT_MENU_BG_R
{ _Zui_Menu_Dlg_Dvb_Select_Menu_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_DVB_SELECT_TUNE_TYPE_TEXT
{ _Zui_Menu_Dlg_Dvb_Select_Tune_Type_Text_Normal_DrawStyle, NULL, NULL },
// HWND_SELECTED_DVBT_BG
{ NULL, _Zui_Selected_Dvbt_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_DVB_SELECT_DVBT_TYPE_TEXT
{ _Zui_Menu_Dlg_Dvb_Select_Dvbt_Type_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Dvb_Select_Dvbt_Type_Text_Focus_DrawStyle, NULL },
// HWND_SELECTED_DVBC_BG
{ NULL, _Zui_Selected_Dvbc_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_DVB_SELECT_DVBC_TYPE_TEXT
{ _Zui_Menu_Dlg_Dvb_Select_Dvbc_Type_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Dvb_Select_Dvbc_Type_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU
{ NULL, NULL, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU_BG_C
{ _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Menu_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU_BG_L
{ _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Menu_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_MENU_BG_R
{ _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Menu_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_TUNE_TYPE_TEXT
{ _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_Tune_Type_Text_Normal_DrawStyle, NULL, NULL },
// HWND_SELECTED_BANDWIDTH_7M_BG
{ NULL, _Zui_Selected_Bandwidth_7m_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_7M_TEXT
{ _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_7m_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_7m_Text_Focus_DrawStyle, NULL },
// HWND_SELECTED_BANDWIDTH_8M_BG
{ NULL, _Zui_Selected_Bandwidth_8m_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_DVBT_BANDWIDTH_SELECT_8M_TEXT
{ _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_8m_Text_Normal_DrawStyle, _Zui_Menu_Dlg_Dvbt_Bandwidth_Select_8m_Text_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_BG
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_BG_TOP
{ _Zui_Menu_Dlg_Signal_Informat_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_BG_1
{ _Zui_Menu_Dlg_Signal_Informat_Bg_1_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_BG_2
{ _Zui_Menu_Dlg_Signal_Informat_Bg_2_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_BG_3
{ _Zui_Menu_Dlg_Signal_Informat_Bg_3_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_BG_4
{ _Zui_Menu_Dlg_Signal_Informat_Bg_4_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_TITLE
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_TITLE_TXT
{ _Zui_Menu_Dlg_Signal_Informat_Title_Txt_Normal_DrawStyle, _Zui_Menu_Dlg_Signal_Informat_Title_Txt_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_CHANNEL
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_CHANNEL_NAME
{ _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Normal_DrawStyle, _Zui_Menu_Dlg_Signal_Informat_Channel_Name_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_CHANNEL_UHF
{ _Zui_Menu_Dlg_Signal_Informat_Channel_Uhf_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_CHANNEL_FREQ
{ _Zui_Menu_Dlg_Signal_Informat_Channel_Freq_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_NETWORK
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_NETWORK_NAME
{ _Zui_Menu_Dlg_Signal_Informat_Network_Name_Normal_DrawStyle, _Zui_Menu_Dlg_Signal_Informat_Network_Name_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_MODULATION
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_MODULATION_NAME
{ _Zui_Menu_Dlg_Signal_Informat_Modulation_Name_Normal_DrawStyle, _Zui_Menu_Dlg_Signal_Informat_Modulation_Name_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_QUALITY
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_QUALITY_PERCENT_VAL
{ _Zui_Menu_Dlg_Signal_Informat_Quality_Percent_Val_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_QUALITY_INDEX_STRING
{ _Zui_Menu_Dlg_Signal_Informat_Quality_Index_String_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_STRENGTH
{ NULL, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_STRENGTH_PERCENT_VAL
{ _Zui_Menu_Dlg_Signal_Informat_Strength_Percent_Val_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_DLG_SIGNAL_INFORMAT_STRENGTH_INDEX_STRING
{ _Zui_Menu_Dlg_Signal_Informat_Strength_Index_String_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_COMMON_ADJ_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_COMMON_ADJ_PAGE_BG_TOP
{ _Zui_Menu_Common_Adj_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_COMMON_ADJ_PAGE_BG_L
{ _Zui_Menu_Common_Adj_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_COMMON_ADJ_PAGE_BG_C
{ _Zui_Menu_Common_Adj_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_COMMON_ADJ_PAGE_BG_R
{ _Zui_Menu_Common_Adj_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_COMMON_ADJ_UP_ARROW
{ _Zui_Common_Adj_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_COMMON_ADJ_DOWN_ARROW
{ _Zui_Common_Adj_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_COMMON_ADJ_MENU
{ _Zui_Common_Adj_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_COMMON_ADJ_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_COMMON_ADJ_ITEM1
{ NULL, _Zui_Menu_Common_Adj_Item1_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM1_TEXT
{ _Zui_Menu_Common_Adj_Item1_Text_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item1_Text_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item1_Text_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM1_OPTION
{ _Zui_Menu_Common_Adj_Item1_Option_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item1_Option_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item1_Option_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM1_LEFT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item1_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM1_RIGHT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item1_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM1_COVER
{ NULL, _Zui_Menu_Common_Adj_Item1_Cover_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM2
{ NULL, _Zui_Menu_Common_Adj_Item2_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM2_OPTION
{ _Zui_Menu_Common_Adj_Item2_Option_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item2_Option_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item2_Option_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM2_LEFT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item2_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM2_RIGHT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item2_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM2_INC
{ NULL, _Zui_Menu_Common_Adj_Item2_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM2_DEC
{ NULL, _Zui_Menu_Common_Adj_Item2_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM3
{ NULL, _Zui_Menu_Common_Adj_Item3_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM3_OPTION
{ _Zui_Menu_Common_Adj_Item3_Option_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item3_Option_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item3_Option_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM3_LEFT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item3_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM3_RIGHT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item3_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM3_INC
{ NULL, _Zui_Menu_Common_Adj_Item3_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM3_DEC
{ NULL, _Zui_Menu_Common_Adj_Item3_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM4
{ NULL, _Zui_Menu_Common_Adj_Item4_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM4_OPTION
{ _Zui_Menu_Common_Adj_Item4_Option_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item4_Option_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item4_Option_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM4_LEFT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item4_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM4_RIGHT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item4_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM4_INC
{ NULL, _Zui_Menu_Common_Adj_Item4_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM4_DEC
{ NULL, _Zui_Menu_Common_Adj_Item4_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM5
{ NULL, _Zui_Menu_Common_Adj_Item5_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM5_OPTION
{ _Zui_Menu_Common_Adj_Item5_Option_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item5_Option_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item5_Option_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM5_LEFT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item5_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM5_RIGHT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item5_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM5_INC
{ NULL, _Zui_Menu_Common_Adj_Item5_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM5_DEC
{ NULL, _Zui_Menu_Common_Adj_Item5_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM6
{ NULL, _Zui_Menu_Common_Adj_Item6_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM6_OPTION
{ _Zui_Menu_Common_Adj_Item6_Option_Normal_DrawStyle, _Zui_Menu_Common_Adj_Item6_Option_Focus_DrawStyle, _Zui_Menu_Common_Adj_Item6_Option_Disabled_DrawStyle },
// HWND_MENU_COMMON_ADJ_ITEM6_LEFT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item6_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM6_RIGHT_ARROW
{ NULL, _Zui_Menu_Common_Adj_Item6_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM6_INC
{ NULL, _Zui_Menu_Common_Adj_Item6_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_COMMON_ADJ_ITEM6_DEC
{ NULL, _Zui_Menu_Common_Adj_Item6_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_PIP_PAGE_BG_TOP
{ _Zui_Menu_Pip_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PIP_PAGE_BG_L
{ _Zui_Menu_Pip_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PIP_PAGE_BG_C
{ _Zui_Menu_Pip_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PIP_PAGE_BG_R
{ _Zui_Menu_Pip_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_PIP_UP_ARROW
{ _Zui_Pip_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_PIP_DOWN_ARROW
{ _Zui_Pip_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_PIPMODE_MENU
{ _Zui_Pipmode_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_PIP_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_PIP_PIPMODE
{ NULL, _Zui_Menu_Pip_Pipmode_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_PIPMODE_TEXT
{ _Zui_Menu_Pip_Pipmode_Text_Normal_DrawStyle, _Zui_Menu_Pip_Pipmode_Text_Focus_DrawStyle, _Zui_Menu_Pip_Pipmode_Text_Disabled_DrawStyle },
// HWND_MENU_PIP_PIPMODE_OPTION
{ _Zui_Menu_Pip_Pipmode_Option_Normal_DrawStyle, _Zui_Menu_Pip_Pipmode_Option_Focus_DrawStyle, _Zui_Menu_Pip_Pipmode_Option_Disabled_DrawStyle },
// HWND_MENU_PIP_PIPMODE_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Pipmode_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_PIPMODE_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Pipmode_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_PIPMODE_COVER
{ NULL, _Zui_Menu_Pip_Pipmode_Cover_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SUBSRC
{ NULL, _Zui_Menu_Pip_Subsrc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SUBSRC_OPTION
{ _Zui_Menu_Pip_Subsrc_Option_Normal_DrawStyle, _Zui_Menu_Pip_Subsrc_Option_Focus_DrawStyle, _Zui_Menu_Pip_Subsrc_Option_Disabled_DrawStyle },
// HWND_MENU_PIP_SUBSRC_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Subsrc_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SUBSRC_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Subsrc_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SUBSRC_INC
{ NULL, _Zui_Menu_Pip_Subsrc_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SUBSRC_DEC
{ NULL, _Zui_Menu_Pip_Subsrc_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SIZE
{ NULL, _Zui_Menu_Pip_Size_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SIZE_OPTION
{ _Zui_Menu_Pip_Size_Option_Normal_DrawStyle, _Zui_Menu_Pip_Size_Option_Focus_DrawStyle, _Zui_Menu_Pip_Size_Option_Disabled_DrawStyle },
// HWND_MENU_PIP_SIZE_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Size_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SIZE_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Size_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SIZE_INC
{ NULL, _Zui_Menu_Pip_Size_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SIZE_DEC
{ NULL, _Zui_Menu_Pip_Size_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_POSITION
{ NULL, _Zui_Menu_Pip_Position_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_POSITION_OPTION
{ _Zui_Menu_Pip_Position_Option_Normal_DrawStyle, _Zui_Menu_Pip_Position_Option_Focus_DrawStyle, _Zui_Menu_Pip_Position_Option_Disabled_DrawStyle },
// HWND_MENU_PIP_POSITION_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Position_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_POSITION_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Position_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_POSITION_INC
{ NULL, _Zui_Menu_Pip_Position_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_POSITION_DEC
{ NULL, _Zui_Menu_Pip_Position_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_BORDER
{ NULL, _Zui_Menu_Pip_Border_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_BORDER_OPTION
{ _Zui_Menu_Pip_Border_Option_Normal_DrawStyle, _Zui_Menu_Pip_Border_Option_Focus_DrawStyle, _Zui_Menu_Pip_Border_Option_Disabled_DrawStyle },
// HWND_MENU_PIP_BORDER_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Border_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_BORDER_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Border_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_BORDER_INC
{ NULL, _Zui_Menu_Pip_Border_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_BORDER_DEC
{ NULL, _Zui_Menu_Pip_Border_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SOUND_SRC
{ NULL, _Zui_Menu_Pip_Sound_Src_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SOUND_SRC_OPTION
{ _Zui_Menu_Pip_Sound_Src_Option_Normal_DrawStyle, _Zui_Menu_Pip_Sound_Src_Option_Focus_DrawStyle, _Zui_Menu_Pip_Sound_Src_Option_Disabled_DrawStyle },
// HWND_MENU_PIP_SOUND_SRC_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Sound_Src_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SOUND_SRC_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Sound_Src_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SOUND_SRC_INC
{ NULL, _Zui_Menu_Pip_Sound_Src_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SOUND_SRC_DEC
{ NULL, _Zui_Menu_Pip_Sound_Src_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SWAP
{ NULL, _Zui_Menu_Pip_Swap_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SWAP_TEXT
{ _Zui_Menu_Pip_Swap_Text_Normal_DrawStyle, _Zui_Menu_Pip_Swap_Text_Focus_DrawStyle, _Zui_Menu_Pip_Swap_Text_Disabled_DrawStyle },
// HWND_MENU_PIP_SWAP_LEFT_ARROW
{ NULL, _Zui_Menu_Pip_Swap_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SWAP_RIGHT_ARROW
{ NULL, _Zui_Menu_Pip_Swap_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SWAP_INC
{ NULL, _Zui_Menu_Pip_Swap_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_PIP_SWAP_DEC
{ NULL, _Zui_Menu_Pip_Swap_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SOUND_MODE_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_SOUND_MODE_PAGE_BG_TOP
{ _Zui_Menu_Sound_Mode_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SOUND_MODE_PAGE_BG_L
{ _Zui_Menu_Sound_Mode_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SOUND_MODE_PAGE_BG_C
{ _Zui_Menu_Sound_Mode_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SOUND_MODE_PAGE_BG_R
{ _Zui_Menu_Sound_Mode_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_SNDMODE_UP_ARROW
{ _Zui_Sndmode_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_SNDMODE_DOWN_ARROW
{ _Zui_Sndmode_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_SNDMODE_MENU
{ _Zui_Sndmode_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SOUND_MODE_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_SNDMODE_SNDMODE
{ NULL, _Zui_Menu_Sndmode_Sndmode_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_SNDMODE_TEXT
{ _Zui_Menu_Sndmode_Sndmode_Text_Normal_DrawStyle, _Zui_Menu_Sndmode_Sndmode_Text_Focus_DrawStyle, _Zui_Menu_Sndmode_Sndmode_Text_Disabled_DrawStyle },
// HWND_MENU_SNDMODE_SNDMODE_OPTION
{ _Zui_Menu_Sndmode_Sndmode_Option_Normal_DrawStyle, _Zui_Menu_Sndmode_Sndmode_Option_Focus_DrawStyle, _Zui_Menu_Sndmode_Sndmode_Option_Disabled_DrawStyle },
// HWND_MENU_SNDMODE_SNDMODE_LEFT_ARROW
{ NULL, _Zui_Menu_Sndmode_Sndmode_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_SNDMODE_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndmode_Sndmode_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_SNDMODE_COVER
{ NULL, _Zui_Menu_Sndmode_Sndmode_Cover_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_120_HZ
{ NULL, _Zui_Menu_Sndeq_120_Hz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_120_HZ_OPTION
{ _Zui_Menu_Sndeq_120_Hz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_120_Hz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_120_Hz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_120_HZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_120_Hz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_120_HZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_120_Hz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_120_HZ_INC
{ NULL, _Zui_Menu_Sndeq_120_Hz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_120_HZ_DEC
{ NULL, _Zui_Menu_Sndeq_120_Hz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_200_HZ
{ NULL, _Zui_Menu_Sndeq_200_Hz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_200_HZ_OPTION
{ _Zui_Menu_Sndeq_200_Hz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_200_Hz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_200_Hz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_200_HZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_200_Hz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_200_HZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_200_Hz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_200_HZ_INC
{ NULL, _Zui_Menu_Sndeq_200_Hz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_200_HZ_DEC
{ NULL, _Zui_Menu_Sndeq_200_Hz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_500_HZ
{ NULL, _Zui_Menu_Sndeq_500_Hz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_500_HZ_OPTION
{ _Zui_Menu_Sndeq_500_Hz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_500_Hz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_500_Hz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_500_HZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_500_Hz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_500_HZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_500_Hz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_500_HZ_INC
{ NULL, _Zui_Menu_Sndeq_500_Hz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_500_HZ_DEC
{ NULL, _Zui_Menu_Sndeq_500_Hz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_1_2_KHZ
{ NULL, _Zui_Menu_Sndeq_1_2_Khz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_1_2_KHZ_OPTION
{ _Zui_Menu_Sndeq_1_2_Khz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_1_2_Khz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_1_2_Khz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_1_2_KHZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_1_2_Khz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_1_2_KHZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_1_2_Khz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_1_2_KHZ_INC
{ NULL, _Zui_Menu_Sndeq_1_2_Khz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_1_2_KHZ_DEC
{ NULL, _Zui_Menu_Sndeq_1_2_Khz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_3_KHZ
{ NULL, _Zui_Menu_Sndeq_3_Khz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_3_KHZ_OPTION
{ _Zui_Menu_Sndeq_3_Khz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_3_Khz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_3_Khz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_3_KHZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_3_Khz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_3_KHZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_3_Khz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_3_KHZ_INC
{ NULL, _Zui_Menu_Sndeq_3_Khz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_3_KHZ_DEC
{ NULL, _Zui_Menu_Sndeq_3_Khz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_7_5_KHZ
{ NULL, _Zui_Menu_Sndeq_7_5_Khz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_7_5_KHZ_OPTION
{ _Zui_Menu_Sndeq_7_5_Khz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_7_5_Khz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_7_5_Khz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_7_5_KHZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_7_5_Khz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_7_5_KHZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_7_5_Khz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_7_5_KHZ_INC
{ NULL, _Zui_Menu_Sndeq_7_5_Khz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_7_5_KHZ_DEC
{ NULL, _Zui_Menu_Sndeq_7_5_Khz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_12_KHZ
{ NULL, _Zui_Menu_Sndeq_12_Khz_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_12_KHZ_OPTION
{ _Zui_Menu_Sndeq_12_Khz_Option_Normal_DrawStyle, _Zui_Menu_Sndeq_12_Khz_Option_Focus_DrawStyle, _Zui_Menu_Sndeq_12_Khz_Option_Disabled_DrawStyle },
// HWND_MENU_SNDEQ_12_KHZ_LEFT_ARROW
{ NULL, _Zui_Menu_Sndeq_12_Khz_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_12_KHZ_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndeq_12_Khz_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_12_KHZ_INC
{ NULL, _Zui_Menu_Sndeq_12_Khz_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDEQ_12_KHZ_DEC
{ NULL, _Zui_Menu_Sndeq_12_Khz_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_TREBLE
{ NULL, _Zui_Menu_Sndmode_Treble_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_TREBLE_OPTION
{ _Zui_Menu_Sndmode_Treble_Option_Normal_DrawStyle, _Zui_Menu_Sndmode_Treble_Option_Focus_DrawStyle, _Zui_Menu_Sndmode_Treble_Option_Disabled_DrawStyle },
// HWND_MENU_SNDMODE_TREBLE_LEFT_ARROW
{ NULL, _Zui_Menu_Sndmode_Treble_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_TREBLE_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndmode_Treble_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_TREBLE_INC
{ NULL, _Zui_Menu_Sndmode_Treble_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_TREBLE_DEC
{ NULL, _Zui_Menu_Sndmode_Treble_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_SNDMODE_EMPTY
{ NULL, _Zui_Menu_Sndmode_Sndmode_Empty_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_BASS
{ NULL, _Zui_Menu_Sndmode_Bass_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_BASS_OPTION
{ _Zui_Menu_Sndmode_Bass_Option_Normal_DrawStyle, _Zui_Menu_Sndmode_Bass_Option_Focus_DrawStyle, _Zui_Menu_Sndmode_Bass_Option_Disabled_DrawStyle },
// HWND_MENU_SNDMODE_BASS_LEFT_ARROW
{ NULL, _Zui_Menu_Sndmode_Bass_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_BASS_RIGHT_ARROW
{ NULL, _Zui_Menu_Sndmode_Bass_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MMENU_SNDMODE_BASS_INC
{ NULL, _Zui_Mmenu_Sndmode_Bass_Inc_Focus_DrawStyle, NULL },
// HWND_MENU_SNDMODE_BASS_DEC
{ NULL, _Zui_Menu_Sndmode_Bass_Dec_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_BG_TOP
{ _Zui_Menu_Option_Audiolang_Page_Bg_Top_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Bg_Top_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_BG_L
{ _Zui_Menu_Option_Audiolang_Page_Bg_L_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Bg_L_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_BG_C
{ _Zui_Menu_Option_Audiolang_Page_Bg_C_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Bg_C_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_BG_R
{ _Zui_Menu_Option_Audiolang_Page_Bg_R_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Bg_R_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_BAR1
{ _Zui_Menu_Option_Audiolang_Page_Bar1_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Bar1_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_BAR2
{ _Zui_Menu_Option_Audiolang_Page_Bar2_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Bar2_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_MENU
{ _Zui_Menu_Option_Audiolang_Page_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_OPTION_AUDIOLANG_GRID
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_AUDIOLANG_01
{ _Zui_Menu_Option_Audiolang_01_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_01_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_02
{ _Zui_Menu_Option_Audiolang_02_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_02_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_LEFT_ARROW
{ _Zui_Menu_Option_Audiolang_Page_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_03
{ _Zui_Menu_Option_Audiolang_03_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_03_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_04
{ _Zui_Menu_Option_Audiolang_04_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_04_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_UP_ARROW
{ _Zui_Menu_Option_Audiolang_Page_Up_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Up_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_05
{ _Zui_Menu_Option_Audiolang_05_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_05_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_06
{ _Zui_Menu_Option_Audiolang_06_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_06_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_DOWN_ARROW
{ _Zui_Menu_Option_Audiolang_Page_Down_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_07
{ _Zui_Menu_Option_Audiolang_07_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_07_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_08
{ _Zui_Menu_Option_Audiolang_08_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_08_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PAGE_RIGHT_ARROW
{ _Zui_Menu_Option_Audiolang_Page_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Page_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_09
{ _Zui_Menu_Option_Audiolang_09_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_09_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PRIMARY
{ NULL, _Zui_Menu_Option_Audiolang_Primary_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PRIMARY_TEXT
{ _Zui_Menu_Option_Audiolang_Primary_Text_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Primary_Text_Focus_DrawStyle, _Zui_Menu_Option_Audiolang_Primary_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_AUDIOLANG_PRIMARY_OPTION
{ _Zui_Menu_Option_Audiolang_Primary_Option_Normal_DrawStyle, _Zui_Menu_Option_Audiolang_Primary_Option_Focus_DrawStyle, _Zui_Menu_Option_Audiolang_Primary_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_AUDIOLANG_PRIMARY_LEFT_ARROW
{ NULL, _Zui_Menu_Option_Audiolang_Primary_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PRIMARY_RIGHT_ARROW
{ NULL, _Zui_Menu_Option_Audiolang_Primary_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_AUDIOLANG_PRIMARY_DOWN_ARROW
{ NULL, _Zui_Menu_Option_Audiolang_Primary_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_BG_TOP
{ _Zui_Menu_Option_Sublang_Page_Bg_Top_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Bg_Top_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_BG_L
{ _Zui_Menu_Option_Sublang_Page_Bg_L_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Bg_L_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_BG_C
{ _Zui_Menu_Option_Sublang_Page_Bg_C_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Bg_C_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_BG_R
{ _Zui_Menu_Option_Sublang_Page_Bg_R_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Bg_R_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_BAR1
{ _Zui_Menu_Option_Sublang_Page_Bar1_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Bar1_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_BAR2
{ _Zui_Menu_Option_Sublang_Page_Bar2_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Bar2_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_MENU
{ _Zui_Menu_Option_Sublang_Page_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_01
{ _Zui_Menu_Option_Sublang_Grid_01_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_01_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_02
{ _Zui_Menu_Option_Sublang_Grid_02_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_02_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_LEFT_ARROW
{ _Zui_Menu_Option_Sublang_Page_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_03
{ _Zui_Menu_Option_Sublang_Grid_03_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_03_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_04
{ _Zui_Menu_Option_Sublang_Grid_04_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_04_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_UP_ARROW
{ _Zui_Menu_Option_Sublang_Page_Up_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Up_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_05
{ _Zui_Menu_Option_Sublang_Grid_05_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_05_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_06
{ _Zui_Menu_Option_Sublang_Grid_06_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_06_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_DOWN_ARROW
{ _Zui_Menu_Option_Sublang_Page_Down_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_07
{ _Zui_Menu_Option_Sublang_Grid_07_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_07_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_08
{ _Zui_Menu_Option_Sublang_Grid_08_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_08_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PAGE_RIGHT_ARROW
{ _Zui_Menu_Option_Sublang_Page_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Page_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_GRID_09
{ _Zui_Menu_Option_Sublang_Grid_09_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Grid_09_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PRIMARY
{ NULL, _Zui_Menu_Option_Sublang_Primary_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PRIMARY_TEXT
{ _Zui_Menu_Option_Sublang_Primary_Text_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Primary_Text_Focus_DrawStyle, _Zui_Menu_Option_Sublang_Primary_Text_Disabled_DrawStyle },
// HWND_MENU_OPTION_SUBLANG_PRIMARY_OPTION
{ _Zui_Menu_Option_Sublang_Primary_Option_Normal_DrawStyle, _Zui_Menu_Option_Sublang_Primary_Option_Focus_DrawStyle, _Zui_Menu_Option_Sublang_Primary_Option_Disabled_DrawStyle },
// HWND_MENU_OPTION_SUBLANG_PRIMARY_LEFT_ARROW
{ NULL, _Zui_Menu_Option_Sublang_Primary_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PRIMARY_RIGHT_ARROW
{ NULL, _Zui_Menu_Option_Sublang_Primary_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_SUBLANG_PRIMARY_DOWN_ARROW
{ NULL, _Zui_Menu_Option_Sublang_Primary_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_BG_TOP
{ _Zui_Menu_Option_Osdlang_Page_Bg_Top_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Bg_Top_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_BG_L
{ _Zui_Menu_Option_Osdlang_Page_Bg_L_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Bg_L_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_BG_C
{ _Zui_Menu_Option_Osdlang_Page_Bg_C_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Bg_C_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_BG_R
{ _Zui_Menu_Option_Osdlang_Page_Bg_R_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Bg_R_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_MENU
{ _Zui_Menu_Option_Osdlang_Page_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_OPTION_OSDLANG_TITLE
{ _Zui_Menu_Option_Osdlang_Title_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Title_Focus_DrawStyle, _Zui_Menu_Option_Osdlang_Title_Disabled_DrawStyle },
// HWND_MENU_OPTION_OSDLANG_BAR1
{ _Zui_Menu_Option_Osdlang_Bar1_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Bar1_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_BAR2
{ _Zui_Menu_Option_Osdlang_Bar2_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Bar2_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_GRID
{ NULL, NULL, NULL },
// HWND_MENU_OPTION_OSDLANG_01
{ _Zui_Menu_Option_Osdlang_01_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_01_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_02
{ _Zui_Menu_Option_Osdlang_02_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_02_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_LEFT_ARROW
{ _Zui_Menu_Option_Osdlang_Page_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_03
{ _Zui_Menu_Option_Osdlang_03_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_03_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_04
{ _Zui_Menu_Option_Osdlang_04_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_04_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_UP_ARROW
{ _Zui_Menu_Option_Osdlang_Page_Up_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Up_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_05
{ _Zui_Menu_Option_Osdlang_05_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_05_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_06
{ _Zui_Menu_Option_Osdlang_06_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_06_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_DOWN_ARROW
{ _Zui_Menu_Option_Osdlang_Page_Down_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_07
{ _Zui_Menu_Option_Osdlang_07_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_07_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_08
{ _Zui_Menu_Option_Osdlang_08_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_08_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_PAGE_RIGHT_ARROW
{ _Zui_Menu_Option_Osdlang_Page_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_Page_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_OPTION_OSDLANG_09
{ _Zui_Menu_Option_Osdlang_09_Normal_DrawStyle, _Zui_Menu_Option_Osdlang_09_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_COMMON_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_SINGLELIST_COMMON_PAGE_BG_TOP
{ _Zui_Menu_Singlelist_Common_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SINGLELIST_COMMON_PAGE_BG_L
{ _Zui_Menu_Singlelist_Common_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SINGLELIST_COMMON_PAGE_BG_C
{ _Zui_Menu_Singlelist_Common_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SINGLELIST_COMMON_PAGE_BG_R
{ _Zui_Menu_Singlelist_Common_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_SINGLELIST_COMMON_UP_ARROW
{ _Zui_Singlelist_Common_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_SINGLELIST_COMMON_DOWN_ARROW
{ _Zui_Singlelist_Common_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_SINGLELIST_COMMON_MENU
{ _Zui_Singlelist_Common_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_SINGLELIST_COMMON_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_SINGLELIST_ITEM1
{ NULL, _Zui_Menu_Singlelist_Item1_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM1_OPTION
{ _Zui_Menu_Singlelist_Item1_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item1_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item1_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM2
{ NULL, _Zui_Menu_Singlelist_Item2_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM2_OPTION
{ _Zui_Menu_Singlelist_Item2_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item2_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item2_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM3
{ NULL, _Zui_Menu_Singlelist_Item3_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM3_OPTION
{ _Zui_Menu_Singlelist_Item3_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item3_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item3_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM4
{ NULL, _Zui_Menu_Singlelist_Item4_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM4_OPTION
{ _Zui_Menu_Singlelist_Item4_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item4_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item4_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM5
{ NULL, _Zui_Menu_Singlelist_Item5_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM5_OPTION
{ _Zui_Menu_Singlelist_Item5_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item5_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item5_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM6
{ NULL, _Zui_Menu_Singlelist_Item6_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM6_OPTION
{ _Zui_Menu_Singlelist_Item6_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item6_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item6_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM7
{ NULL, _Zui_Menu_Singlelist_Item7_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM7_OPTION
{ _Zui_Menu_Singlelist_Item7_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item7_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item7_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM8
{ NULL, _Zui_Menu_Singlelist_Item8_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM8_OPTION
{ _Zui_Menu_Singlelist_Item8_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item8_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item8_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM9
{ NULL, _Zui_Menu_Singlelist_Item9_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM9_OPTION
{ _Zui_Menu_Singlelist_Item9_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item9_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item9_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM10
{ NULL, _Zui_Menu_Singlelist_Item10_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM10_OPTION
{ _Zui_Menu_Singlelist_Item10_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item10_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item10_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM11
{ NULL, _Zui_Menu_Singlelist_Item11_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM11_OPTION
{ _Zui_Menu_Singlelist_Item11_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item11_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item11_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM12
{ NULL, _Zui_Menu_Singlelist_Item12_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM12_OPTION
{ _Zui_Menu_Singlelist_Item12_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item12_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item12_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM13
{ NULL, _Zui_Menu_Singlelist_Item13_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM13_OPTION
{ _Zui_Menu_Singlelist_Item13_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item13_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item13_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM14
{ NULL, _Zui_Menu_Singlelist_Item14_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM14_OPTION
{ _Zui_Menu_Singlelist_Item14_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item14_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item14_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM15
{ NULL, _Zui_Menu_Singlelist_Item15_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM15_OPTION
{ _Zui_Menu_Singlelist_Item15_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item15_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item15_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM16
{ NULL, _Zui_Menu_Singlelist_Item16_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM16_OPTION
{ _Zui_Menu_Singlelist_Item16_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item16_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item16_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_ITEM17
{ NULL, _Zui_Menu_Singlelist_Item17_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_ITEM17_OPTION
{ _Zui_Menu_Singlelist_Item17_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Item17_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Item17_Option_Disabled_DrawStyle },
// HWND_MENU_SINGLELIST_TITLE
{ NULL, _Zui_Menu_Singlelist_Title_Focus_DrawStyle, NULL },
// HWND_MENU_SINGLELIST_TITLE_OPTION
{ _Zui_Menu_Singlelist_Title_Option_Normal_DrawStyle, _Zui_Menu_Singlelist_Title_Option_Focus_DrawStyle, _Zui_Menu_Singlelist_Title_Option_Disabled_DrawStyle },
// HWND_MENU_TIME_TIMEZONE_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_BG_TOP
{ _Zui_Menu_Time_Timezone_Page_Bg_Top_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Bg_Top_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_BG_L
{ _Zui_Menu_Time_Timezone_Page_Bg_L_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Bg_L_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_BG_C
{ _Zui_Menu_Time_Timezone_Page_Bg_C_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Bg_C_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_BG_R
{ _Zui_Menu_Time_Timezone_Page_Bg_R_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Bg_R_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_MENU
{ _Zui_Menu_Time_Timezone_Page_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_TITLE
{ _Zui_Menu_Time_Timezone_Page_Title_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Title_Focus_DrawStyle, _Zui_Menu_Time_Timezone_Page_Title_Disabled_DrawStyle },
// HWND_MENU_TIME_TIMEZONE_PAGE_BAR1
{ _Zui_Menu_Time_Timezone_Page_Bar1_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Bar1_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_PAGE_BAR2
{ _Zui_Menu_Time_Timezone_Page_Bar2_Normal_DrawStyle, _Zui_Menu_Time_Timezone_Page_Bar2_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_GRID
{ NULL, NULL, NULL },
// HWND_MENU_TIME_TIMEZONE_01
{ _Zui_Menu_Time_Timezone_01_Normal_DrawStyle, _Zui_Menu_Time_Timezone_01_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_01_BG
{ NULL, _Zui_Menu_Time_Timezone_01_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_02
{ _Zui_Menu_Time_Timezone_02_Normal_DrawStyle, _Zui_Menu_Time_Timezone_02_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_02_LEFT_ARROW
{ _Zui_Menu_Time_Timezone_02_Left_Arrow_Normal_DrawStyle, _Zui_Menu_Time_Timezone_02_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_02_BG
{ NULL, _Zui_Menu_Time_Timezone_02_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_03
{ _Zui_Menu_Time_Timezone_03_Normal_DrawStyle, _Zui_Menu_Time_Timezone_03_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_03_BG
{ NULL, _Zui_Menu_Time_Timezone_03_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_04
{ _Zui_Menu_Time_Timezone_04_Normal_DrawStyle, _Zui_Menu_Time_Timezone_04_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_04_UP_ARROW
{ _Zui_Menu_Time_Timezone_04_Up_Arrow_Normal_DrawStyle, _Zui_Menu_Time_Timezone_04_Up_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_04_BG
{ NULL, _Zui_Menu_Time_Timezone_04_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_05
{ _Zui_Menu_Time_Timezone_05_Normal_DrawStyle, _Zui_Menu_Time_Timezone_05_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_05_BG
{ NULL, _Zui_Menu_Time_Timezone_05_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_06
{ _Zui_Menu_Time_Timezone_06_Normal_DrawStyle, _Zui_Menu_Time_Timezone_06_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_06_DOWN_ARROW
{ _Zui_Menu_Time_Timezone_06_Down_Arrow_Normal_DrawStyle, _Zui_Menu_Time_Timezone_06_Down_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_06_BG
{ NULL, _Zui_Menu_Time_Timezone_06_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_07
{ _Zui_Menu_Time_Timezone_07_Normal_DrawStyle, _Zui_Menu_Time_Timezone_07_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_07_BG
{ NULL, _Zui_Menu_Time_Timezone_07_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_08
{ _Zui_Menu_Time_Timezone_08_Normal_DrawStyle, _Zui_Menu_Time_Timezone_08_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_08_RIGHT_ARROW
{ _Zui_Menu_Time_Timezone_08_Right_Arrow_Normal_DrawStyle, _Zui_Menu_Time_Timezone_08_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_08_BG
{ NULL, _Zui_Menu_Time_Timezone_08_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_09
{ _Zui_Menu_Time_Timezone_09_Normal_DrawStyle, _Zui_Menu_Time_Timezone_09_Focus_DrawStyle, NULL },
// HWND_MENU_TIME_TIMEZONE_09_BG
{ NULL, _Zui_Menu_Time_Timezone_09_Bg_Focus_DrawStyle, NULL },
// HWND_MENU_LOADING_ANIMATION
{ NULL, NULL, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_0
{ _Zui_Menu_Dlg_Common_Loadanimation_0_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_0_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_1
{ _Zui_Menu_Dlg_Common_Loadanimation_1_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_1_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_2
{ _Zui_Menu_Dlg_Common_Loadanimation_2_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_2_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_3
{ _Zui_Menu_Dlg_Common_Loadanimation_3_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_3_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_4
{ _Zui_Menu_Dlg_Common_Loadanimation_4_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_4_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_5
{ _Zui_Menu_Dlg_Common_Loadanimation_5_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_5_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_6
{ _Zui_Menu_Dlg_Common_Loadanimation_6_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_6_Focus_DrawStyle, NULL },
// HWND_MENU_DLG_COMMON_LOADANIMATION_7
{ _Zui_Menu_Dlg_Common_Loadanimation_7_Normal_DrawStyle, _Zui_Menu_Dlg_Common_Loadanimation_7_Focus_DrawStyle, NULL },
// HWND_MENU_ALERT_WINDOW
{ _Zui_Menu_Alert_Window_Normal_DrawStyle, _Zui_Menu_Alert_Window_Focus_DrawStyle, NULL },
// HWND_MENU_ALERT_ICON
{ _Zui_Menu_Alert_Icon_Normal_DrawStyle, _Zui_Menu_Alert_Icon_Focus_DrawStyle, NULL },
// HWND_MENU_ALERT_STRING
{ _Zui_Menu_Alert_String_Normal_DrawStyle, _Zui_Menu_Alert_String_Focus_DrawStyle, NULL },
// HWND_MENU_CHANNEL_SET_TARGET_REGION_PAGE_TEST
{ NULL, NULL, NULL },
// HWND_MENU_HDMI_CEC_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_HDMI_CEC_PAGE_BG_TOP
{ _Zui_Menu_Hdmi_Cec_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_PAGE_BG_L
{ _Zui_Menu_Hdmi_Cec_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_PAGE_BG_C
{ _Zui_Menu_Hdmi_Cec_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_PAGE_BG_R
{ _Zui_Menu_Hdmi_Cec_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_MENU
{ _Zui_Menu_Hdmi_Cec_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_TITTLE
{ _Zui_Menu_Hdmi_Cec_Tittle_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Tittle_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_HDMI_CEC_HDMI
{ NULL, _Zui_Menu_Hdmi_Cec_Hdmi_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_HDMI_TEXT
{ _Zui_Menu_Hdmi_Cec_Hdmi_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Hdmi_Text_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Hdmi_Text_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_HDMI_OPTION
{ _Zui_Menu_Hdmi_Cec_Hdmi_Option_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Hdmi_Option_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Hdmi_Option_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_ARC
{ NULL, _Zui_Menu_Hdmi_Cec_Arc_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_ARC_TEXT
{ _Zui_Menu_Hdmi_Cec_Arc_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Arc_Text_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Arc_Text_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_ARC_OPTION
{ _Zui_Menu_Hdmi_Cec_Arc_Option_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Arc_Option_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Arc_Option_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_AUTO_STANDBY
{ NULL, _Zui_Menu_Hdmi_Cec_Auto_Standby_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_AUTO_STANDBY_TEXT
{ _Zui_Menu_Hdmi_Cec_Auto_Standby_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Standby_Text_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Standby_Text_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_AUTO_STANDBY_OPTION
{ _Zui_Menu_Hdmi_Cec_Auto_Standby_Option_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Standby_Option_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Standby_Option_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_AUTO_TV_ON
{ NULL, _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_AUTO_TV_ON_TEST
{ _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Test_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Test_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Test_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_AUTO_TV_ON_OPTION
{ _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Option_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Option_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Auto_Tv_On_Option_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_DEVICE_CONTROL
{ NULL, _Zui_Menu_Hdmi_Cec_Device_Control_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_CONTROL_TEST
{ _Zui_Menu_Hdmi_Cec_Device_Control_Test_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_Control_Test_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_Control_Test_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_DEVICE_CONTROL_OPTION
{ _Zui_Menu_Hdmi_Cec_Device_Control_Option_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_Control_Option_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_Control_Option_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_DEVICE_LIST
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_Text_Focus_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_Text_Disabled_DrawStyle },
// HWND_MENU_HDMI_CEC_PAGE_WAIT
{ _Zui_Menu_Hdmi_Cec_Page_Wait_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_LEFT
{ _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Left_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_MID
{ _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Mid_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_RIGHT
{ _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Right_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE_TITLE
{ _Zui_Menu_Hdmi_Cec_Device_List_Page_Title_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_Page_Title_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE_BG_MENU
{ _Zui_Menu_Hdmi_Cec_Device_List_Page_Bg_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_PAGE_LIST
{ NULL, NULL, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_A
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_A_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_A_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_A_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_A_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_A_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_A_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_B
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_B_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_B_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_B_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_B_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_B_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_B_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_B_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_C
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_C_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_C_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_C_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_C_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_C_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_C_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_C_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_D
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_D_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_D_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_D_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_D_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_D_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_D_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_D_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_E
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_E_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_E_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_E_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_E_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_E_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_E_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_E_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_F
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_F_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_F_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_F_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_F_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_F_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_F_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_F_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_G
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_G_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_G_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_G_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_G_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_G_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_G_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_G_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_H
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_H_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_H_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_H_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_H_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_H_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_H_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_H_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_I
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_I_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_I_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_I_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_I_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_I_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_I_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_I_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_J
{ NULL, _Zui_Menu_Hdmi_Cec_Device_List_J_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_J_PORT_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_J_Port_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_J_Port_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_LIST_J_TEXT
{ _Zui_Menu_Hdmi_Cec_Device_List_J_Text_Normal_DrawStyle, _Zui_Menu_Hdmi_Cec_Device_List_J_Text_Focus_DrawStyle, NULL },
// HWND_MENU_HDMI_CEC_DEVICE_SEARCHING
{ _Zui_Menu_Hdmi_Cec_Device_Searching_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TEST_TTS_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_TEST_TTS_BACKGOUND
{ NULL, NULL, NULL },
// HWND_MENU_TEST_TTS_BACKGOUND_BG_L
{ _Zui_Menu_Test_Tts_Backgound_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TEST_TTS_BACKGOUND_BG_C
{ _Zui_Menu_Test_Tts_Backgound_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TEST_TTS_BACKGOUND_BG_R
{ _Zui_Menu_Test_Tts_Backgound_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TEST_TTS_BACKGOUND_MENU
{ _Zui_Menu_Test_Tts_Backgound_Menu_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TEST_TTS_BACKGOUND_OK
{ _Zui_Menu_Test_Tts_Backgound_Ok_Normal_DrawStyle, NULL, NULL },
// HWND_MENU_TEST_TTS_MAIN_PAGE
{ NULL, NULL, NULL },
// HWND_MENU_TEST_TTS_TITLE
{ _Zui_Menu_Test_Tts_Title_Normal_DrawStyle, _Zui_Menu_Test_Tts_Title_Focus_DrawStyle, _Zui_Menu_Test_Tts_Title_Disabled_DrawStyle },
// HWND_MENU_TEST_TTS_MIAN_PAGE_STRING
{ NULL, NULL, NULL },
// HWND_MENU_TEST_TTS_STRING
{ NULL, NULL, NULL },
// HWND_TEST_TTS_MIAN_PAGE_STRINGE_TEXT
{ _Zui_Test_Tts_Mian_Page_Stringe_Text_Normal_DrawStyle, _Zui_Test_Tts_Mian_Page_Stringe_Text_Focus_DrawStyle, _Zui_Test_Tts_Mian_Page_Stringe_Text_Disabled_DrawStyle },
// HWND_TEST_TTS_MIAN_PAGE_STRING_OPTION
{ _Zui_Test_Tts_Mian_Page_String_Option_Normal_DrawStyle, _Zui_Test_Tts_Mian_Page_String_Option_Focus_DrawStyle, _Zui_Test_Tts_Mian_Page_String_Option_Disabled_DrawStyle },
// HWND_MENU_TEST_TTS_TRANSL
{ NULL, NULL, NULL },
// HWND_TEST_TTS_MIAN_PAGE_TRANSL_TEXT
{ _Zui_Test_Tts_Mian_Page_Transl_Text_Normal_DrawStyle, _Zui_Test_Tts_Mian_Page_Transl_Text_Focus_DrawStyle, _Zui_Test_Tts_Mian_Page_Transl_Text_Disabled_DrawStyle },
// HWND_TEST_TTS_MIAN_PAGE_TRANSL_OPTION
{ _Zui_Test_Tts_Mian_Page_Transl_Option_Normal_DrawStyle, _Zui_Test_Tts_Mian_Page_Transl_Option_Focus_DrawStyle, _Zui_Test_Tts_Mian_Page_Transl_Option_Disabled_DrawStyle },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_GROUP
{ NULL, NULL, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM1
{ NULL, _Zui_Tts_Test_Playback_Infobar_Item1_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM1_ICON
{ _Zui_Tts_Test_Playback_Infobar_Item1_Icon_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item1_Icon_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM1_STRING
{ _Zui_Tts_Test_Playback_Infobar_Item1_String_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item1_String_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM2
{ NULL, _Zui_Tts_Test_Playback_Infobar_Item2_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM2_ICON
{ _Zui_Tts_Test_Playback_Infobar_Item2_Icon_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item2_Icon_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM2_STRING
{ _Zui_Tts_Test_Playback_Infobar_Item2_String_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item2_String_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM3
{ NULL, _Zui_Tts_Test_Playback_Infobar_Item3_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM3_ICON
{ _Zui_Tts_Test_Playback_Infobar_Item3_Icon_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item3_Icon_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM3_STRING
{ _Zui_Tts_Test_Playback_Infobar_Item3_String_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item3_String_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM4
{ NULL, _Zui_Tts_Test_Playback_Infobar_Item4_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM4_ICON
{ _Zui_Tts_Test_Playback_Infobar_Item4_Icon_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item4_Icon_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM4_STRING
{ _Zui_Tts_Test_Playback_Infobar_Item4_String_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item4_String_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM5
{ NULL, _Zui_Tts_Test_Playback_Infobar_Item5_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM5_ICON
{ _Zui_Tts_Test_Playback_Infobar_Item5_Icon_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item5_Icon_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PLAYBACK_INFOBAR_ITEM5_STRING
{ _Zui_Tts_Test_Playback_Infobar_Item5_String_Normal_DrawStyle, _Zui_Tts_Test_Playback_Infobar_Item5_String_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_SPEED_ADJ_ITEM1
{ NULL, _Zui_Tts_Test_Speed_Adj_Item1_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_SPEED_ADJ_ITEM1_OPTION
{ _Zui_Tts_Test_Speed_Adj_Item1_Option_Normal_DrawStyle, _Zui_Tts_Test_Speed_Adj_Item1_Option_Focus_DrawStyle, _Zui_Tts_Test_Speed_Adj_Item1_Option_Disabled_DrawStyle },
// HWND_TTS_TEST_SPEED_ADJ_ITEM1_LEFT_ARROW
{ _Zui_Tts_Test_Speed_Adj_Item1_Left_Arrow_Normal_DrawStyle, _Zui_Tts_Test_Speed_Adj_Item1_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_SPEED_ADJ_ITEM1_RIGHT_ARROW
{ _Zui_Tts_Test_Speed_Adj_Item1_Right_Arrow_Normal_DrawStyle, _Zui_Tts_Test_Speed_Adj_Item1_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PITCH_ADJ_ITEM2
{ NULL, _Zui_Tts_Test_Pitch_Adj_Item2_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PITCH_ADJ_ITEM2_OPTION
{ _Zui_Tts_Test_Pitch_Adj_Item2_Option_Normal_DrawStyle, _Zui_Tts_Test_Pitch_Adj_Item2_Option_Focus_DrawStyle, _Zui_Tts_Test_Pitch_Adj_Item2_Option_Disabled_DrawStyle },
// HWND_TTS_TEST_PITCH_ADJ_ITEM2_LEFT_ARROW
{ _Zui_Tts_Test_Pitch_Adj_Item2_Left_Arrow_Normal_DrawStyle, _Zui_Tts_Test_Pitch_Adj_Item2_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_TTS_TEST_PITCH_ADJ_ITEM2_RIGHT_ARROW
{ _Zui_Tts_Test_Pitch_Adj_Item2_Right_Arrow_Normal_DrawStyle, _Zui_Tts_Test_Pitch_Adj_Item2_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_TEST_TTS_OPTION_TEXT
{ _Zui_Test_Tts_Option_Text_Normal_DrawStyle, _Zui_Test_Tts_Option_Text_Focus_DrawStyle, _Zui_Test_Tts_Option_Text_Disabled_DrawStyle },
};
|
#include <iostream>
#include "test.h"
using namespace std;
int main()
{
swapTest<int> oswapTest;
int a = 8;
int b = 4;
oswapTest.swap(a, b);
cout << "a=" << a << ",b=" << b<< endl;
cout << "the end" << endl;
}
|
#ifndef _HTTP_A_H
#define _HTTP_A_H
#include <vector>
#include <mysql++.h>
mysqlpp::Connection con;
int CrearEstadisticas(std::string &, std::string &);
int ParsearEstadisticas(std::string &, std::string &);
int RecuperarDominios(std::vector<std::string> &, std::vector<std::string> &, mysqlpp::Connection &);
#endif // _HTTP_A_H
|
// Copyright 2020-2021 Russ 'trdwll' Treadwell <trdwll.com>. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "Steam.h"
#include "SteamEnums.h"
#include "SteamStructs.h"
#include "UObject/NoExportTypes.h"
#include "SteamUGC.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnAddAppDependencyResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID, int32, AppID);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnAddUGCDependencyResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID, FPublishedFileId, ChildPublishedFileID);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnCreateItemResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID, bool, bUserNeedsToAcceptWorkshopLegalAgreement);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnDownloadItemResultDelegate, int32, AppID, FPublishedFileId, PublishedFileID, ESteamResult, Result);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams(FOnGetAppDependenciesResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID, TArray<int32>, AppID, int32, NumAppDependencies, int32, TotalNumAppDependencies);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnDeleteItemResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams(FOnGetUserItemVoteResultDelegate, FPublishedFileId, PublishedFileID, ESteamResult, Result, bool, bVotedUp, bool, bVotedDown, bool, bVoteSkipped);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnItemInstalledDelegate, int32, AppID, FPublishedFileId, PublishedFileID);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnRemoveAppDependencyResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID, int32, AppID);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnRemoveUGCDependencyResultDelegate, ESteamResult, Result, FPublishedFileId, PublishedFileID, FPublishedFileId, ChildPublishedFileID);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnSetUserItemVoteResultDelegate, FPublishedFileId, PublishedFileID, ESteamResult, Result, bool, bVoteUp);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnStartPlaytimeTrackingResultDelegate, ESteamResult, Result);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_FiveParams(FOnSteamUGCQueryCompletedDelegate, FUGCQueryHandle, Handle, ESteamResult, Result, int32, NumResultsReturned, int32, TotalMatchingResults, bool, bCachedData);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnStopPlaytimeTrackingResultDelegate, ESteamResult, Result);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnSubmitItemUpdateResultDelegate, ESteamResult, Result, bool, bUserNeedsToAcceptWorkshopLegalAgreement);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnUserFavoriteItemsListChangedDelegate, FPublishedFileId, PublishedFileID, ESteamResult, Result, bool, bWasAddRequest);
/**
* Functions to create, consume, and interact with the Steam Workshop.
* https://partner.steamgames.com/doc/api/ISteamUGC
*/
UCLASS()
class STEAMBRIDGE_API USteamUGC final : public UObject
{
GENERATED_BODY()
public:
USteamUGC();
~USteamUGC();
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore", meta = (DisplayName = "Steam UGC", CompactNodeTitle = "SteamUGC"))
static USteamUGC* GetSteamUGC() { return USteamUGC::StaticClass()->GetDefaultObject<USteamUGC>(); }
/**
* Adds a dependency between the given item and the appid. This list of dependencies can be retrieved by calling GetAppDependencies. This is a soft-dependency that is displayed on the web. It is up to the application to determine whether the item can actually be used or not.
*
* @param FPublishedFileId PublishedFileID - The item.
* @param int32 AppID - The required app/dlc.
* @return FSteamAPICall - SteamAPICall_t to be used with a AddAppDependencyResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall AddAppDependency(FPublishedFileId PublishedFileID, int32 AppID) const { return SteamUGC()->AddAppDependency(PublishedFileID, AppID); }
/**
* Adds a workshop item as a dependency to the specified item. If the nParentPublishedFileID item is of type k_EWorkshopFileTypeCollection, than the nChildPublishedFileID is simply added to that collection. Otherwise,
* the dependency is a soft one that is displayed on the web and can be retrieved via the ISteamUGC API using a combination of the m_unNumChildren member variable of the SteamUGCDetails_t struct and GetQueryUGCChildren.
*
* @param FPublishedFileId ParentPublishedFileID - The workshop item to add a dependency to.
* @param FPublishedFileId ChildPublishedFileID - The dependency to add to the parent.
* @return FSteamAPICall - SteamAPICall_t to be used with a AddUGCDependencyResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall AddDependency(FPublishedFileId ParentPublishedFileID, FPublishedFileId ChildPublishedFileID) const { return SteamUGC()->AddDependency(ParentPublishedFileID, ChildPublishedFileID); }
/**
* Adds a excluded tag to a pending UGC Query. This will only return UGC without the specified tag.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const FString & TagName - The tag that must NOT be attached to the UGC to receive it.
* @return bool - true upon success. false if the UGC query handle is invalid, if the UGC query handle is from CreateQueryUGCDetailsRequest, or pTagName was NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddExcludedTag(FUGCQueryHandle handle, const FString& TagName) const { return SteamUGC()->AddExcludedTag(handle, TCHAR_TO_UTF8(*TagName)); }
/**
* Adds a key-value tag pair to an item. Keys can map to multiple different values (1-to-many relationship).
* Key names are restricted to alpha-numeric characters and the '_' character.
* Both keys and values cannot exceed 255 characters in length.
* Key-value tags are searchable by exact match only.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & Key - The key to set on the item.
* @param const FString & Value - A value to map to the key.
* @return bool - true upon success. false if the UGC update handle is invalid, if pchKey or pchValue invalid because they are NULL or have exceeded the maximum length, or if you are trying to add more than 100 key-value tags in a single update.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddItemKeyValueTag(FUGCUpdateHandle handle, const FString& Key, const FString& Value) const { return SteamUGC()->AddItemKeyValueTag(handle, TCHAR_TO_UTF8(*Key), TCHAR_TO_UTF8(*Value)); }
/**
* Adds an additional preview file for the item.
* Then the format of the image should be one that both the web and the application (if necessary) can render, and must be under 1MB. Suggested formats include JPG, PNG and GIF.
* NOTE: Using k_EItemPreviewType_YouTubeVideo or k_EItemPreviewType_Sketchfab are not currently supported with this API. For YouTube videos you should use AddItemPreviewVideo.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & PreviewFile - Absolute path to the local image.
* @param ESteamItemPreviewType type - The type of this preview.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddItemPreviewFile(FUGCUpdateHandle handle, const FString& PreviewFile, ESteamItemPreviewType type) const { return SteamUGC()->AddItemPreviewFile(handle, TCHAR_TO_UTF8(*PreviewFile), (EItemPreviewType)type); }
/**
* Adds an additional video preview from YouTube for the item.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & VideoID - The YouTube video ID to add. (e.g. "jHgZh4GV9G0")
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddItemPreviewVideo(FUGCUpdateHandle handle, const FString& VideoID) const { return SteamUGC()->AddItemPreviewVideo(handle, TCHAR_TO_UTF8(*VideoID)); }
/**
* Adds a workshop item to the users favorites list.
*
* @param int32 AppId - The app ID that this item belongs to.
* @param FPublishedFileId PublishedFileID - The workshop item to add to the users favorites list.
* @return FSteamAPICall - SteamAPICall_t to be used with a UserFavoriteItemsListChanged_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall AddItemToFavorites(int32 AppId, FPublishedFileId PublishedFileID) const { return SteamUGC()->AddItemToFavorites(AppId, PublishedFileID); }
/**
* Adds a required key-value tag to a pending UGC Query. This will only return workshop items that have a key = pKey and a value = pValue.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const FString & Key - The key-value key that must be attached to the UGC to receive it.
* @param const FString & Value - The key-value value associated with pKey that must be attached to the UGC to receive it.
* @return bool - true upon success. false if the UGC query handle is invalid or if pKey or pValue are NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddRequiredKeyValueTag(FUGCQueryHandle handle, const FString& Key, const FString& Value) const { return SteamUGC()->AddRequiredKeyValueTag(handle, TCHAR_TO_UTF8(*Key), TCHAR_TO_UTF8(*Value)); }
/**
* Adds a required tag to a pending UGC Query. This will only return UGC with the specified tag.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const FString & TagName - The tag that must be attached to the UGC to receive it.
* @return bool - true upon success. false if the UGC query handle is invalid, if the UGC query handle is from CreateQueryUGCDetailsRequest, or pTagName was NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddRequiredTag(FUGCQueryHandle handle, const FString& TagName) const { return SteamUGC()->AddRequiredTag(handle, TCHAR_TO_UTF8(*TagName)); }
/**
* Adds the requirement that the returned items from the pending UGC Query have at least one of the tags in the given set (logical "or"). For each tag group that is added, at least one tag from each group is required to be on the matching items.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const TArray<FString> & Tags - A set of tags where at least one of the tags must attached to the UGC.
* @return bool - true upon success. false if the UGC query handle is invalid, if the UGC query handle is from CreateQueryUGCDetailsRequest, or pTagName was NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool AddRequiredTagGroup(FUGCQueryHandle handle, const TArray<FString>& Tags) const;
/**
* Lets game servers set a specific workshop folder before issuing any UGC commands.
* This is helpful if you want to support multiple game servers running out of the same install folder.
*
* @param int32 WorkshopDepotID - The depot ID of the game server.
* @param const FString & FolderName - The absolute path to store the workshop content.
* @return bool - true upon success; otherwise, false if the calling user is not a game server or if the workshop is currently updating it's content.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool BInitWorkshopForGameServer(int32 WorkshopDepotID, const FString& FolderName) const { return SteamUGC()->BInitWorkshopForGameServer(WorkshopDepotID, TCHAR_TO_UTF8(*FolderName)); }
/**
* Creates a new workshop item with no content attached yet.
*
* @param int32 ConsumerAppId - The App ID that will be using this item.
* @param ESteamWorkshopFileType FileType - The type of UGC to create.
* @return FSteamAPICall - SteamAPICall_t to be used with a CreateItemResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall CreateItem(int32 ConsumerAppId, ESteamWorkshopFileType FileType) const { return SteamUGC()->CreateItem(ConsumerAppId, (EWorkshopFileType)FileType); }
/**
* Query for all matching UGC. You can use this to list all of the available UGC for your app.
* This will return up to 50 results as declared by kNumUGCResultsPerPage. You can make subsequent calls to this function, increasing the unPage each time to get the next set of results.
* NOTE: Either nConsumerAppID or nCreatorAppID must have a valid AppID!
* NOTE: You must release the handle returned by this function by calling ReleaseQueryUGCRequest when you are done with it!
* To query for the UGC associated with a single user you can use CreateQueryUserUGCRequest instead.
*
* @param ESteamUGCQuery QueryType - Used to specify the sorting and filtering for this call.
* @param EUGCMatchingUGCType MatchingUGCTypeFileType - Used to specify the type of UGC queried for.
* @param int32 CreatorAppID - This should contain the App ID of the app where the item was created. This may be different than nConsumerAppID if your item creation tool is a seperate App ID.
* @param int32 ConsumerAppID - This should contain the App ID for the current game or application. Do not pass the App ID of the workshop item creation tool if that is a separate App ID!
* @param int32 Page - The page number of the results to receive. This should start at 1 on the first call.
* @return FUGCQueryHandle - Returns a new UGCQueryHandle_t upon success, and k_UGCQueryHandleInvalid in the following situations:
* Either nCreatorAppID or nConsumerAppID is not set to the currently running app.
* unPage was less than 1.
* An internal error occurred.
* This handle can be used to further customize the query before sending it out with SendQueryUGCRequest.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FUGCQueryHandle CreateQueryAllUGCRequest(ESteamUGCQuery QueryType, ESteamUGCMatchingUGCType MatchingUGCTypeFileType, int32 CreatorAppID, int32 ConsumerAppID, int32 Page) const;
/**
* Query for the details of specific workshop items.
* This will return up to 50 results as declared by kNumUGCResultsPerPage.
* NOTE: Either nConsumerAppID or nCreatorAppID must have a valid AppID!
* NOTE: You must release the handle returned by this function by calling ReleaseQueryUGCRequest when you are done with it!
* To query all the UGC for your app you can use CreateQueryAllUGCRequest instead.
*
* @param TArray<FPublishedFileId> & PublishedFileIDs - The list of workshop items to get the details for.
* @param int32 NumPublishedFileIDs - The number of items in pvecPublishedFileID.
* @return FUGCQueryHandle - Returns a new UGCQueryHandle_t upon success, and k_UGCQueryHandleInvalid in the following situations:
* unNumPublishedFileIDs is less than 1.
* An internal error occurred.
* This handle can be used to further customize the query before sending it out with SendQueryUGCRequest.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FUGCQueryHandle CreateQueryUGCDetailsRequest(TArray<FPublishedFileId> PublishedFileIDs, int32 NumPublishedFileIDs) const { return SteamUGC()->CreateQueryUGCDetailsRequest((PublishedFileId_t*)PublishedFileIDs.GetData(), NumPublishedFileIDs); }
/**
* Query UGC associated with a user. You can use this to list the UGC the user is subscribed to amongst other things.
* This will return up to 50 results as declared by kNumUGCResultsPerPage. You can make subsequent calls to this function, increasing the unPage each time to get the next set of results.
* NOTE: Either nConsumerAppID or nCreatorAppID must have a valid AppID!
* NOTE: You must release the handle returned by this function by calling ReleaseQueryUGCRequest when you are done with it!
* To query all the UGC for your app you can use CreateQueryAllUGCRequest instead.
*
* @param FAccountID AccountID - The Account ID to query the UGC for. You can use CSteamID.GetAccountID to get the Account ID from a Steam ID.
* @param ESteamUserUGCList ListType - Used to specify the type of list to get. If the currently logged in user is different than the user specified in unAccountID, then some options are not be allowed.
* (k_EUserUGCList_VotedOn, k_EUserUGCList_VotedUp, k_EUserUGCList_VotedDown, k_EUserUGCList_WillVoteLater, k_EUserUGCList_Subscribed)
* @param ESteamUGCMatchingUGCType MatchingUGCType - Used to specify the type of UGC queried for.
* @param ESteamUserUGCListSortOrder SortOrder - Used to specify the order that the list will be sorted in.
* @param int32 CreatorAppID - This should contain the App ID of the app where the item was created. This may be different than nConsumerAppID if your item creation tool is a seperate App ID.
* @param int32 ConsumerAppID - This should contain the App ID for the current game or application. Do not pass the App ID of the workshop item creation tool if that is a separate App ID!
* @param int32 Page - The page number of the results to receive. This should start at 1 on the first call.
* @return FUGCQueryHandle - Returns a new UGCQueryHandle_t upon success, and k_UGCQueryHandleInvalid in the following situations:
* Either nCreatorAppID or nConsumerAppID is not set to the currently running app.
* unPage was less than 1.
* The given eListType is not supported for users other than the one requesting the details.
* An internal error occurred.
* This handle can be used to further customize the query before sending it out with SendQueryUGCRequest.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FUGCQueryHandle CreateQueryUserUGCRequest(FAccountID AccountID, ESteamUserUGCList ListType, ESteamUGCMatchingUGCType MatchingUGCType, ESteamUserUGCListSortOrder SortOrder, int32 CreatorAppID, int32 ConsumerAppID, int32 Page) const;
/**
* Deletes the item without prompting the user.
*
* @param FPublishedFileId PublishedFileID - The item to delete.
* @return FSteamAPICall - SteamAPICall_t to be used with a DeleteItemResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall DeleteItem(FPublishedFileId PublishedFileID) const { return SteamUGC()->DeleteItem(PublishedFileID); }
/**
* Download or update a workshop item.
* If the return value is true then register and wait for the Callback DownloadItemResult_t before calling GetItemInstallInfo or accessing the workshop item on disk.
* If the user is not subscribed to the item (e.g. a Game Server using anonymous login), the workshop item will be downloaded and cached temporarily.
* If the workshop item has an item state of k_EItemStateNeedsUpdate, then this function can be called to initiate the update. Do not access the workshop item on disk until the Callback DownloadItemResult_t is called.
* The DownloadItemResult_t callback contains the app ID associated with the workshop item. It should be compared against the running app ID as the handler will be called for all item downloads regardless of the running application.
* Triggers a DownloadItemResult_t callback.
*
* @param FPublishedFileId PublishedFileID - The workshop item to download.
* @param bool bHighPriority - Start the download in high priority mode, pausing any existing in-progress Steam downloads and immediately begin downloading this workshop item.
* @return bool - true if the download was successfully started; otherwise, false if nPublishedFileID is invalid or the user is not logged on.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool DownloadItem(FPublishedFileId PublishedFileID, bool bHighPriority) const { return SteamUGC()->DownloadItem(PublishedFileID, bHighPriority); }
/**
* Get the app dependencies associated with the given PublishedFileId_t. These are "soft" dependencies that are shown on the web. It is up to the application to determine whether an item can be used or not.
*
* @param FPublishedFileId PublishedFileID - The workshop item to get app dependencies for.
* @return FSteamAPICall - SteamAPICall_t to be used with a GetAppDependenciesResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall GetAppDependencies(FPublishedFileId PublishedFileID) const { return SteamUGC()->GetAppDependencies(PublishedFileID); }
/**
* Get info about a pending download of a workshop item that has k_EItemStateNeedsUpdate set.
*
* @param FPublishedFileId PublishedFileID - The workshop item to get the download info for.
* @param int64 & BytesDownloaded - Returns the current bytes downloaded.
* @param int64 & BytesTotal - Returns the total bytes. This is only valid after the download has started.
* @return bool - true if the download information was available; otherwise, false.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetItemDownloadInfo(FPublishedFileId PublishedFileID, int64& BytesDownloaded, int64& BytesTotal) const { return SteamUGC()->GetItemDownloadInfo(PublishedFileID, (uint64*)&BytesDownloaded, (uint64*)&BytesTotal); }
/**
* Gets info about currently installed content on the disc for workshop items that have k_EItemStateInstalled set.
* Calling this sets the "used" flag on the workshop item for the current player and adds it to their k_EUserUGCList_UsedOrPlayed list.
* If k_EItemStateLegacyItem is set then pchFolder contains the path to the legacy file itself, not a folder.
*
* @param FPublishedFileId PublishedFileID - The workshop item to get the install info for.
* @param int64 & SizeOnDisk - Returns the size of the workshop item in bytes.
* @param FString & FolderName - Returns the absolute path to the folder containing the content by copying it.
* @param int32 FolderSize - The size of pchFolder in bytes.
* @param int32 & TimeStamp - Returns the time when the workshop item was last updated.
* @return bool - true if the workshop item is already installed. false in the following cases:
* cchFolderSize is 0.
* The workshop item has no content.
* The workshop item is not installed.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetItemInstallInfo(FPublishedFileId PublishedFileID, int64& SizeOnDisk, FString& FolderName, int32 FolderSize, int32& TimeStamp) const;
/**
* Gets the current state of a workshop item on this client.
*
* @param FPublishedFileId PublishedFileID - The workshop item to get the state for.
* @return int32 - Returns the item state. Should be used with the EItemState flags to determine the state of the workshop item.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
int32 GetItemState(FPublishedFileId PublishedFileID) const { return SteamUGC()->GetItemState(PublishedFileID); }
/**
* Gets the progress of an item update.
*
* @param FUGCUpdateHandle handle - The update handle to get the progress for.
* @param int64 & BytesProcessed - Returns the current number of bytes uploaded.
* @param int64 & BytesTotal - Returns the total number of bytes that will be uploaded.
* @return ESteamItemUpdateStatus - The current status.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
ESteamItemUpdateStatus GetItemUpdateProgress(FUGCUpdateHandle handle, int64& BytesProcessed, int64& BytesTotal) const { return (ESteamItemUpdateStatus)SteamUGC()->GetItemUpdateProgress(handle, (uint64*)BytesProcessed, (uint64*)BytesTotal); }
/**
* Gets the total number of items the current user is subscribed to for the game or application.
*
* @return int32 - Returns 0 if called from a game server.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
int32 GetNumSubscribedItems() const { return SteamUGC()->GetNumSubscribedItems(); }
/**
* Retrieve the details of an additional preview associated with an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
* Before calling this you should call GetQueryUGCNumAdditionalPreviews to get number of additional previews.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param int32 previewIndex - The index of the additional preview to get the details of.
* @param FString & URLOrVideoID - Returns a URL or Video ID by copying it into this string.
* @param int32 URLSize - The size of pchURLOrVideoID in bytes.
* @param FString & OriginalFileName - Returns the original file name. May be set to NULL to not receive this.
* @param int32 OriginalFileNameSize - The size of pchOriginalFileName in bytes.
* @param ESteamItemPreviewType & PreviewType - The type of preview that was returned.
* @return bool - true upon success, indicates that pchURLOrVideoID and pPreviewType have been filled out. Otherwise, false if the UGC query handle is invalid, the index is out of bounds, or previewIndex is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCAdditionalPreview(FUGCQueryHandle handle, int32 index, int32 previewIndex, FString& URLOrVideoID, int32 URLSize, FString& OriginalFileName, int32 OriginalFileNameSize, ESteamItemPreviewType& PreviewType) const;
/**
* Retrieve the ids of any child items of an individual workshop item after receiving a querying UGC call result. These items can either be a part of a collection or some other dependency (see AddDependency).
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
* You should create pvecPublishedFileID with m_unNumChildren provided in SteamUGCDetails_t after getting the UGC details with GetQueryUGCResult.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param TArray<FPublishedFileId> & PublishedFileIDs - Returns the UGC children by setting this array.
* @param int32 MaxEntries - The length of pvecPublishedFileID.
* @return bool - true upon success, indicates that pvecPublishedFileID has been filled out. Otherwise, false if the UGC query handle is invalid or the index is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCChildren(FUGCQueryHandle handle, int32 index, TArray<FPublishedFileId>& PublishedFileIDs, int32 MaxEntries) const;
// #TODO: GetQueryUGCNumTags (available in sdk 1.51)
// #TODO: GetQueryUGCTag (available in sdk 1.51)
// #TODO: GetQueryUGCTagDisplayName (available in sdk 1.51)
/**
* Retrieve the details of a key-value tag associated with an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
* Before calling this you should call GetQueryUGCNumKeyValueTags to get number of tags.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param int32 keyValueTagIndex - The index of the tag to get the details of.
* @param FString & Key - Returns the key by copying it into this string.
* @param int32 KeySize - The size of pchKey in bytes.
* @param FString & Value - Returns the value by copying it into this string.
* @param int32 ValueSize - The size of pchValue in bytes.
* @return bool - true upon success, indicates that pchKey and pchValue have been filled out. Otherwise, false if the UGC query handle is invalid, the index is out of bounds, or keyValueTagIndex is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCKeyValueTag(FUGCQueryHandle handle, int32 index, int32 keyValueTagIndex, FString& Key, int32 KeySize, FString& Value, int32 ValueSize) const;
/**
* Retrieve the developer set metadata of an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param FString & Metadata - Returns the url by copying it into this string.
* @param int32 Metadatasize - The size of pchMetadata in bytes.
* @return bool - true upon success, indicates that pchMetadata has been filled out. Otherwise, false if the UGC query handle is invalid or the index is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCMetadata(FUGCQueryHandle handle, int32 index, FString& Metadata, int32 Metadatasize) const;
/**
* Retrieve the number of additional previews of an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
* You can then call GetQueryUGCAdditionalPreview to get the details of each additional preview.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @return int32 - The number of additional previews associated with the specified workshop item. Returns 0 if the UGC query handle is invalid or the index is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
int32 GetQueryUGCNumAdditionalPreviews(FUGCQueryHandle handle, int32 index) const { return SteamUGC()->GetQueryUGCNumAdditionalPreviews(handle, index); }
/**
* Retrieve the number of key-value tags of an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
* You can then call GetQueryUGCKeyValueTag to get the details of each tag.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @return int32 - The number of key-value tags associated with the specified workshop item. Returns 0 if the UGC query handle is invalid or the index is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
int32 GetQueryUGCNumKeyValueTags(FUGCQueryHandle handle, int32 index) const { return SteamUGC()->GetQueryUGCNumKeyValueTags(handle, index); }
/**
* Retrieve the URL to the preview image of an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
* You can use this URL to download and display the preview image instead of having to download it using the m_hPreviewFile in the ISteamUGC::SteamUGCDetails_t struct.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param FString & URL - Returns the url by copying it into this string.
* @param int32 URLSize - The size of pchURL in bytes.
* @return bool - true upon success, indicates that pchURL has been filled out. Otherwise, false if the UGC query handle is invalid or the index is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCPreviewURL(FUGCQueryHandle handle, int32 index, FString& URL, int32 URLSize) const;
/**
* Retrieve the details of an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param FSteamUGCDetails & Details - Returns the the UGC details.
* @return bool - true upon success, indicates that pDetails has been filled out. Otherwise, false if the UGC query handle is invalid or the index is out of bounds.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCResult(FUGCQueryHandle handle, int32 index, FSteamUGCDetails& Details) const;
/**
* Retrieve various statistics of an individual workshop item after receiving a querying UGC call result.
* You should call this in a loop to get the details of all the workshop items returned.
* NOTE: This must only be called with the handle obtained from a successful SteamUGCQueryCompleted_t call result.
*
* @param FUGCQueryHandle handle - The UGC query handle to get the results from.
* @param int32 index - The index of the item to get the details of.
* @param ESteamItemStatistic StatType - The statistic to retrieve.
* @param int64 & StatValue - Returns the value associated with the specified statistic.
* @return bool - true upon success, indicates that pStatValue has been filled out. Otherwise, false if the UGC query handle is invalid, the index is out of bounds, or eStatType was invalid.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
bool GetQueryUGCStatistic(FUGCQueryHandle handle, int32 index, ESteamItemStatistic StatType, int64& StatValue) const { return SteamUGC()->GetQueryUGCStatistic(handle, index, (EItemStatistic)StatType, (uint64*)&StatValue); }
/**
* Gets a list of all of the items the current user is subscribed to for the current game.
* You create an array with the size provided by GetNumSubscribedItems before calling this.
*
* @param TArray<FPublishedFileId> & PublishedFileIDs - The array where the item ids will be copied into.
* @param int32 MaxEntries - The maximum number of items to return. This should typically be the same as GetNumSubscribedItems and the same size as pvecPublishedFileID.
* @return int32 - The number of subscribed workshop items that were populated into pvecPublishedFileID. Returns 0 if called from a game server.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
int32 GetSubscribedItems(TArray<FPublishedFileId>& PublishedFileIDs, int32 MaxEntries) const;
/**
* Gets the users vote status on a workshop item.
*
* @param FPublishedFileId PublishedFileID - The workshop item ID to get the users vote.
* @return FSteamAPICall - SteamAPICall_t to be used with a GetUserItemVoteResult_t call result.
*/
UFUNCTION(BlueprintPure, Category = "SteamBridgeCore|UGC")
FSteamAPICall GetUserItemVote(FPublishedFileId PublishedFileID) const { return SteamUGC()->GetUserItemVote(PublishedFileID); }
/**
* Releases a UGC query handle when you are done with it to free up memory.
*
* @param FUGCQueryHandle handle - The UGC query handle to release.
* @return bool - Always returns true.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool ReleaseQueryUGCRequest(FUGCQueryHandle handle) const { return SteamUGC()->ReleaseQueryUGCRequest(handle); }
/**
* Removes the dependency between the given item and the appid. This list of dependencies can be retrieved by calling GetAppDependencies.
*
* @param FPublishedFileId PublishedFileID - The item.
* @param int32 AppID - The app/dlc.
* @return FSteamAPICall - SteamAPICall_t to be used with a RemoveAppDependencyResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall RemoveAppDependency(FPublishedFileId PublishedFileID, int32 AppID) const { return SteamUGC()->RemoveAppDependency(PublishedFileID, AppID); }
/**
* Removes a workshop item as a dependency from the specified item.
*
* @param FPublishedFileId ParentPublishedFileID - The workshop item to remove a dependency from.
* @param FPublishedFileId ChildPublishedFileID - The dependency to remove from the parent.
* @return FSteamAPICall - SteamAPICall_t to be used with a RemoveUGCDependencyResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall RemoveDependency(FPublishedFileId ParentPublishedFileID, FPublishedFileId ChildPublishedFileID) const { return SteamUGC()->RemoveDependency(ParentPublishedFileID, ChildPublishedFileID); }
/**
* Removes a workshop item from the users favorites list.
*
* @param int32 AppId - The app ID that this item belongs to.
* @param FPublishedFileId PublishedFileID - The workshop item to remove from the users favorites list.
* @return FSteamAPICall - SteamAPICall_t to be used with a UserFavoriteItemsListChanged_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall RemoveItemFromFavorites(int32 AppId, FPublishedFileId PublishedFileID) const { return SteamUGC()->RemoveItemFromFavorites(AppId, PublishedFileID); }
/**
* Removes an existing key value tag from an item.
* You can only call this up to 100 times per item update. If you need remove more tags than that you'll need to make subsequent item updates.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & Key - The key to remove from the item.
* @return bool - true upon success. false if the UGC update handle is invalid or if you are trying to remove more than 100 key-value tags in a single update.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool RemoveItemKeyValueTags(FUGCUpdateHandle handle, const FString& Key) const { return SteamUGC()->RemoveItemKeyValueTags(handle, TCHAR_TO_UTF8(*Key)); }
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool RemoveItemPreview(FUGCUpdateHandle handle, int32 index) const { return SteamUGC()->RemoveItemPreview(handle, index); }
/**
* Send a UGC query to Steam.
* This must be called with a handle obtained from CreateQueryUserUGCRequest, CreateQueryAllUGCRequest, or CreateQueryUGCDetailsRequest to actually send the request to Steam. Before calling this you should
* use one or more of the following APIs to customize your query:
* AddRequiredTag, AddExcludedTag, SetReturnOnlyIDs, SetReturnKeyValueTags, SetReturnLongDescription, SetReturnMetadata, SetReturnChildren, SetReturnAdditionalPreviews, SetReturnTotalOnly, SetLanguage,
* SetAllowCachedResponse, SetCloudFileNameFilter, SetMatchAnyTag, SetSearchText, SetRankedByTrendDays, AddRequiredKeyValueTag
*
* @param FUGCQueryHandle handle - The UGC query request handle to send.
* @return FSteamAPICall - SteamAPICall_t to be used with a SteamUGCQueryCompleted_t call result. Returns k_uAPICallInvalid if the UGC query handle was invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall SendQueryUGCRequest(FUGCQueryHandle handle) const { return SteamUGC()->SendQueryUGCRequest(handle); }
/**
* Sets whether results will be returned from the cache for the specific period of time on a pending UGC Query.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param int32 MaxAgeSeconds - The maximum amount of time that an item can be returned without a cache invalidation.
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetAllowCachedResponse(FUGCQueryHandle handle, int32 MaxAgeSeconds) const { return SteamUGC()->SetAllowCachedResponse(handle, MaxAgeSeconds); }
/**
* Sets to only return items that have a specific filename on a pending UGC Query.
* NOTE: This can only be used with CreateQueryUserUGCRequest!
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const FString & MatchCloudFileName - The filename to match.
* @return bool - true upon success. false if the UGC query handle is invalid, if the UGC query handle is not from CreateQueryUserUGCRequest or if pMatchCloudFileName is NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetCloudFileNameFilter(FUGCQueryHandle handle, const FString& MatchCloudFileName) const { return SteamUGC()->SetCloudFileNameFilter(handle, TCHAR_TO_UTF8(*MatchCloudFileName)); }
/**
* Sets the folder that will be stored as the content for an item.
* For efficient upload and download, files should not be merged or compressed into single files (e.g. zip files).
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & ContentFolder - The absolute path to a local folder containing the content for the item.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemContent(FUGCUpdateHandle handle, const FString& ContentFolder) const { return SteamUGC()->SetItemContent(handle, TCHAR_TO_UTF8(*ContentFolder)); }
/**
* Sets a new description for an item.
* The description must be limited to the length defined by k_cchPublishedDocumentDescriptionMax.
* You can set what language this is for by using SetItemUpdateLanguage, if no language is set then "english" is assumed.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & Description - The new description of the item.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemDescription(FUGCUpdateHandle handle, const FString& Description) const { return SteamUGC()->SetItemDescription(handle, TCHAR_TO_UTF8(*Description)); }
/**
* Sets arbitrary metadata for an item. This metadata can be returned from queries without having to download and install the actual content.
* The metadata must be limited to the size defined by k_cchDeveloperMetadataMax.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & MetaData - The new metadata for this item.
* @return bool - true upon success. false if the UGC update handle is invalid, or if pchMetadata is longer than k_cchDeveloperMetadataMax.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemMetadata(FUGCUpdateHandle handle, const FString& MetaData) const { return SteamUGC()->SetItemMetadata(handle, TCHAR_TO_UTF8(*MetaData)); }
/**
* Sets the primary preview image for the item.
* The format should be one that both the web and the application (if necessary) can render. Suggested formats include JPG, PNG and GIF.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & PreviewFile - The absolute path to a local preview image file for the item.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemPreview(FUGCUpdateHandle handle, const FString& PreviewFile) const { return SteamUGC()->SetItemPreview(handle, TCHAR_TO_UTF8(*PreviewFile)); }
/**
* Sets arbitrary developer specified tags on an item.
* Each tag must be limited to 255 characters. Tag names can only include printable characters, excluding ','. For reference on what characters are allowed, refer to http://en.cppreference.com/w/c/string/byte/isprint
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle UpdateHandle - The workshop item update handle to customize.
* @param const TArray<FString> & Tags - The list of tags to set on this item.
* @return bool - true upon success. false if the UGC update handle is invalid, or if one of the tags is invalid either due to exceeding the maximum length or because it is NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemTags(FUGCUpdateHandle UpdateHandle, const TArray<FString>& Tags) const;
/**
* Sets a new title for an item.
* The title must be limited to the size defined by k_cchPublishedDocumentTitleMax.
* You can set what language this is for by using SetItemUpdateLanguage, if no language is set then "english" is assumed.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & Title - The new title of the item.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemTitle(FUGCUpdateHandle handle, const FString& Title) const { return SteamUGC()->SetItemTitle(handle, TCHAR_TO_UTF8(*Title)); }
/**
* Sets the language of the title and description that will be set in this item update.
* This must be in the format of the API language code.
* If this is not set then "english" is assumed.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param const FString & Language - The language of the title and description that will be set in this update.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemUpdateLanguage(FUGCUpdateHandle handle, const FString& Language) const { return SteamUGC()->SetItemUpdateLanguage(handle, TCHAR_TO_UTF8(*Language)); }
/**
* Sets the visibility of an item.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param ESteamRemoteStoragePublishedFileVisibility Visibility - The visibility to set.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetItemVisibility(FUGCUpdateHandle handle, ESteamRemoteStoragePublishedFileVisibility Visibility) const { return SteamUGC()->SetItemVisibility(handle, (ERemoteStoragePublishedFileVisibility)Visibility); }
/**
* Sets the language to return the title and description in for the items on a pending UGC Query.
* This must be in the format of the API Language code.
* If this is not set then "english" is assumed.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const FString & Language - The language to return.
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetLanguage(FUGCQueryHandle handle, const FString& Language) const { return SteamUGC()->SetLanguage(handle, TCHAR_TO_UTF8(*Language)); }
/**
* Sets whether workshop items will be returned if they have one or more matching tag, or if all tags need to match on a pending UGC Query.
* NOTE: This can only be used with CreateQueryAllUGCRequest!
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bMatchAnyTag - Should the item just need to have one required tag (true), or all of them? (false)
* @return bool - true upon success. false if the UGC query handle is invalid or if the UGC query handle is not from CreateQueryAllUGCRequest.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetMatchAnyTag(FUGCQueryHandle handle, bool bMatchAnyTag) const { return SteamUGC()->SetMatchAnyTag(handle, bMatchAnyTag); }
/**
* Sets whether the order of the results will be updated based on the rank of items over a number of days on a pending UGC Query.
* NOTE: This can only be used with CreateQueryAllUGCRequest!
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param int32 Days - Sets the number of days to rank items over. Valid values are 1-365 inclusive.
* @return bool - true upon success.
* false if the UGC query handle is invalid, if the UGC query handle is not from CreateQueryAllUGCRequest or if the EUGCQuery of the query is not one of:
* k_PublishedFileQueryType_RankedByTrend, k_PublishedFileQueryType_RankedByPlaytimeTrend, k_PublishedFileQueryType_RankedByAveragePlaytimeTrend, k_PublishedFileQueryType_RankedByVotesUp, or k_PublishedFileQueryType_RankedByPlaytimeSessionsTrend
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetRankedByTrendDays(FUGCQueryHandle handle, int32 Days) const { return SteamUGC()->SetRankedByTrendDays(handle, Days); }
/**
* Sets whether to return any additional images/videos attached to the items on a pending UGC Query.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnAdditionalPreviews - Return the additional previews for the items?
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnAdditionalPreviews(FUGCQueryHandle handle, bool bReturnAdditionalPreviews) const { return SteamUGC()->SetReturnAdditionalPreviews(handle, bReturnAdditionalPreviews); }
/**
* Sets whether to return the IDs of the child items of the items on a pending UGC Query.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnChildren - Return the IDs of children of the items?
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnChildren(FUGCQueryHandle handle, bool bReturnChildren) const { return SteamUGC()->SetReturnChildren(handle, bReturnChildren); }
/**
* Sets whether to return any key-value tags for the items on a pending UGC Query.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnKeyValueTags - Return any key-value tags for the items?
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnKeyValueTags(FUGCQueryHandle handle, bool bReturnKeyValueTags) const { return SteamUGC()->SetReturnKeyValueTags(handle, bReturnKeyValueTags); }
/**
* Sets whether to return the full description for the items on a pending UGC Query.
* If you don't set this then you only receive the summary which is the description truncated at 255 bytes.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnLongDescription - Return the long description for the items?
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnLongDescription(FUGCQueryHandle handle, bool bReturnLongDescription) const { return SteamUGC()->SetReturnLongDescription(handle, bReturnLongDescription); }
/**
* Sets whether to return the developer specified metadata for the items on a pending UGC Query.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnMetadata - Return the metadata for the items?
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnMetadata(FUGCQueryHandle handle, bool bReturnMetadata) const { return SteamUGC()->SetReturnMetadata(handle, bReturnMetadata); }
/**
* Sets whether to only return IDs instead of all the details on a pending UGC Query.
* This is useful for when you don't need all the information (e.g. you just want to get the IDs of the items a user has in their favorites list.)
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnOnlyIDs - Return only the IDs of items?
* @return bool - true upon success. false if the UGC query handle is invalid or if the UGC query handle is from CreateQueryUGCDetailsRequest.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnOnlyIDs(FUGCQueryHandle handle, bool bReturnOnlyIDs) const { return SteamUGC()->SetReturnOnlyIDs(handle, bReturnOnlyIDs); }
/**
* Sets whether to return the the playtime stats on a pending UGC Query.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param int32 Days - The number of days worth of playtime stats to return.
* @return bool - true upon success. false if the UGC query handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnPlaytimeStats(FUGCQueryHandle handle, int32 Days) const { return SteamUGC()->SetReturnPlaytimeStats(handle, Days); }
/**
* Sets whether to only return the the total number of matching items on a pending UGC Query.
* The actual items will not be returned when SteamUGCQueryCompleted_t is called.
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param bool bReturnTotalOnly - Only return the total number of items?
* @return bool - true upon success. false if the UGC query handle is invalid or if the UGC query handle is from CreateQueryUGCDetailsRequest
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetReturnTotalOnly(FUGCQueryHandle handle, bool bReturnTotalOnly) const { return SteamUGC()->SetReturnTotalOnly(handle, bReturnTotalOnly); }
/**
* Sets a string to that items need to match in either the title or the description on a pending UGC Query.
* NOTE: This can only be used with CreateQueryAllUGCRequest!
* NOTE: This must be set before you send a UGC Query handle using SendQueryUGCRequest.
*
* @param FUGCQueryHandle handle - The UGC query handle to customize.
* @param const FString & SearchText - The text to be searched for.
* @return bool - true upon success. false if the UGC query handle is invalid, if the UGC query handle is not from CreateQueryAllUGCRequest or if pSearchText is NULL.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool SetSearchText(FUGCQueryHandle handle, const FString& SearchText) const { return SteamUGC()->SetSearchText(handle, TCHAR_TO_UTF8(*SearchText)); }
/**
* Allows the user to rate a workshop item up or down.
*
* @param FPublishedFileId PublishedFileID - The workshop item ID to vote on.
* @param bool bVoteUp - Vote up (true) or down (false)?
* @return FSteamAPICall - SteamAPICall_t to be used with a SetUserItemVoteResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall SetUserItemVote(FPublishedFileId PublishedFileID, bool bVoteUp) const { return SteamUGC()->SetUserItemVote(PublishedFileID, bVoteUp); }
/**
* Starts the item update process.
* This gets you a handle that you can use to modify the item before finally sending off the update to the server with SubmitItemUpdate.
*
* @param int32 ConsumerAppId - The App ID that will be using this item.
* @param FPublishedFileId PublishedFileID - The item to update.
* @return FUGCUpdateHandle - A handle that you can use with future calls to modify the item before finally sending the update.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FUGCUpdateHandle StartItemUpdate(int32 ConsumerAppId, FPublishedFileId PublishedFileID) const { return SteamUGC()->StartItemUpdate(ConsumerAppId, PublishedFileID); }
// #NOTE: These methods need to be async
// #TODO: StartPlaytimeTracking
// #TODO: StopPlaytimeTracking
// #TODO: StopPlaytimeTrackingForAllItems
/**
* Uploads the changes made to an item to the Steam Workshop.
* You can track the progress of an item update with GetItemUpdateProgress.
*
* @param FUGCUpdateHandle handle - The update handle to submit.
* @param const FString & ChangeNote - A brief description of the changes made. (Optional, set to NULL for no change note)
* @return FSteamAPICall - SteamAPICall_t to be used with a SubmitItemUpdateResult_t call result. Returns k_uAPICallInvalid if handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall SubmitItemUpdate(FUGCUpdateHandle handle, const FString& ChangeNote) const { return SteamUGC()->SubmitItemUpdate(handle, TCHAR_TO_UTF8(*ChangeNote)); }
/**
* Subscribe to a workshop item. It will be downloaded and installed as soon as possible.
*
* @param FPublishedFileId PublishedFileID - The workshop item to subscribe to.
* @return FSteamAPICall - SteamAPICall_t to be used with a RemoteStorageSubscribePublishedFileResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall SubscribeItem(FPublishedFileId PublishedFileID) const { return SteamUGC()->SubscribeItem(PublishedFileID); }
/**
* Suspends and resumes all workshop downloads.
* If you call this with bSuspend set to true then downloads will be suspended until you resume them by setting bSuspend to false or when the game ends.
*
* @param bool bSuspend - Suspend (true) or Resume (false) workshop downloads?
* @return void
*/
UFUNCTION(BlueprintCallable, Category = "SteamBridgeCore|UGC")
void SuspendDownloads(bool bSuspend) { SteamUGC()->SuspendDownloads(bSuspend); }
/**
* Unsubscribe from a workshop item. This will result in the item being removed after the game quits.
*
* @param FPublishedFileId PublishedFileID - The workshop item to unsubscribe from.
* @return FSteamAPICall - SteamAPICall_t to be used with a RemoteStorageUnsubscribePublishedFileResult_t call result.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
FSteamAPICall UnsubscribeItem(FPublishedFileId PublishedFileID) const { return SteamUGC()->UnsubscribeItem(PublishedFileID); }
/**
* Updates an existing additional preview file for the item.
* If the preview type is an image then the format should be one that both the web and the application (if necessary) can render, and must be under 1MB. Suggested formats include JPG, PNG and GIF.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param int32 index - The index of the preview file from 0 to GetQueryUGCNumAdditionalPreviews.
* @param const FString & PreviewFile - Absolute path to the local image.
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool UpdateItemPreviewFile(FUGCUpdateHandle handle, int32 index, const FString& PreviewFile) const { return SteamUGC()->UpdateItemPreviewFile(handle, index, TCHAR_TO_UTF8(*PreviewFile)); }
/**
* Updates an additional video preview from YouTube for the item.
* NOTE: This must be set before you submit the UGC update handle using SubmitItemUpdate.
*
* @param FUGCUpdateHandle handle - The workshop item update handle to customize.
* @param int32 index - The index of the preview file from 0 to GetQueryUGCNumAdditionalPreviews.
* @param const FString & VideoID - The YouTube video to add. (e.g. "jHgZh4GV9G0")
* @return bool - true upon success. false if the UGC update handle is invalid.
*/
UFUNCTION(BlueprintCallable, BlueprintPure = false, Category = "SteamBridgeCore|UGC")
bool UpdateItemPreviewVideo(FUGCUpdateHandle handle, int32 index, const FString& VideoID) const { return SteamUGC()->UpdateItemPreviewVideo(handle, index, TCHAR_TO_UTF8(*VideoID)); }
/** Delegates */
/** The result of a call to AddAppDependency. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnAddAppDependencyResult"))
FOnAddAppDependencyResultDelegate m_OnAddAppDependencyResult;
/** The result of a call to AddDependency. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnAddUGCDependencyResult"))
FOnAddUGCDependencyResultDelegate m_OnAddUGCDependencyResult;
/** Called when a new workshop item has been created. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnCreateItemResult"))
FOnCreateItemResultDelegate m_OnCreateItemResult;
/** Called when a workshop item has been downloaded. NOTE: This callback goes out to all running applications, ensure that the app ID associated with the item matches what you expect. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnDownloadItemResult"))
FOnDownloadItemResultDelegate m_OnDownloadItemResult;
/** Called when getting the app dependencies for an item. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnGetAppDependenciesResult"))
FOnGetAppDependenciesResultDelegate m_OnGetAppDependenciesResult;
/** Called when an attempt at deleting an item completes. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnDeleteItemResult"))
FOnDeleteItemResultDelegate m_OnDeleteItemResult;
/** Called when getting the users vote status on an item. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnGetUserItemVoteResult"))
FOnGetUserItemVoteResultDelegate m_OnGetUserItemVoteResult;
/** Called when a workshop item has been installed or updated. NOTE: This callback goes out to all running applications, ensure that the app ID associated with the item matches what you expect. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnItemInstalled"))
FOnItemInstalledDelegate m_OnItemInstalled;
/** Purpose: The result of a call to RemoveAppDependency. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnRemoveAppDependencyResult"))
FOnRemoveAppDependencyResultDelegate m_OnRemoveAppDependencyResult;
/** Purpose: The result of a call to RemoveDependency. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnRemoveUGCDependencyResult"))
FOnRemoveUGCDependencyResultDelegate m_OnRemoveUGCDependencyResult;
/** Called when the user has voted on an item. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnSetUserItemVoteResult"))
FOnSetUserItemVoteResultDelegate m_OnSetUserItemVoteResult;
/** Called when workshop item playtime tracking has started. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnStartPlaytimeTrackingResult"))
FOnStartPlaytimeTrackingResultDelegate m_OnStartPlaytimeTrackingResult;
/** Called when a UGC query request completes. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnSteamUGCQueryCompleted"))
FOnSteamUGCQueryCompletedDelegate m_OnSteamUGCQueryCompleted;
/** Called when workshop item playtime tracking has stopped. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnStopPlaytimeTrackingResult"))
FOnStopPlaytimeTrackingResultDelegate m_OnStopPlaytimeTrackingResult;
/** Called when an item update has completed. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnSubmitItemUpdateResult"))
FOnSubmitItemUpdateResultDelegate m_OnSubmitItemUpdateResult;
/** Called when the user has added or removed an item to/from their favorites. */
UPROPERTY(BlueprintAssignable, Category = "SteamBridgeCore|UGC", meta = (DisplayName = "OnUserFavoriteItemsListChanged"))
FOnUserFavoriteItemsListChangedDelegate m_OnUserFavoriteItemsListChanged;
protected:
private:
STEAM_CALLBACK_MANUAL(USteamUGC, OnAddAppDependencyResult, AddAppDependencyResult_t, OnAddAppDependencyResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnAddUGCDependencyResult, AddUGCDependencyResult_t, OnAddUGCDependencyResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnCreateItemResult, CreateItemResult_t, OnCreateItemResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnDownloadItemResult, DownloadItemResult_t, OnDownloadItemResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnGetAppDependenciesResult, GetAppDependenciesResult_t, OnGetAppDependenciesResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnDeleteItemResult, DeleteItemResult_t, OnDeleteItemResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnGetUserItemVoteResult, GetUserItemVoteResult_t, OnGetUserItemVoteResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnItemInstalled, ItemInstalled_t, OnItemInstalledCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnRemoveAppDependencyResult, RemoveAppDependencyResult_t, OnRemoveAppDependencyResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnRemoveUGCDependencyResult, RemoveUGCDependencyResult_t, OnRemoveUGCDependencyResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnSetUserItemVoteResult, SetUserItemVoteResult_t, OnSetUserItemVoteResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnStartPlaytimeTrackingResult, StartPlaytimeTrackingResult_t, OnStartPlaytimeTrackingResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnSteamUGCQueryCompleted, SteamUGCQueryCompleted_t, OnSteamUGCQueryCompletedCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnStopPlaytimeTrackingResult, StopPlaytimeTrackingResult_t, OnStopPlaytimeTrackingResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnSubmitItemUpdateResult, SubmitItemUpdateResult_t, OnSubmitItemUpdateResultCallback);
STEAM_CALLBACK_MANUAL(USteamUGC, OnUserFavoriteItemsListChanged, UserFavoriteItemsListChanged_t, OnUserFavoriteItemsListChangedCallback);
};
|
#ifndef MX_FLUIDEMITTER_H
#define MX_FLUIDEMITTER_H
#if 0
//#include <NxPhysics.h>
#include "MxUtils.h"
#include "MxObjects.h"
class MxFluid;
class MxFluidEmitter : public MxObject {
public:
virtual MxFluidEmitter* isFluidEmitter() { return this; }
virtual void* isType(MxObjectType type) { if (type == MX_OBJECTTYPE_FLUIDEMITTER) return this; return NULL; }
MxFluid* getFluid() { return m_fluid; }
NxFluidEmitter* getNxEmitter() { return m_fluidEmitter; }
protected:
friend class MxPluginData;
MxFluidEmitter(const char* name, INode* node, MxFluid* fluid);
virtual ~MxFluidEmitter();
private:
void Free(void);
void InitFluidEmitterDescProps(NxFluidEmitterDesc &desc);
void CreateFluidEmitter(NxFluidEmitterDesc& desc);
private:
NxFluidEmitter* m_fluidEmitter;
MxFluid* m_fluid;
};
#endif
#endif //MX_FLUIDEMITTER_H
|
#include "../generated/MessageAdapters.hpp"
#include "Game.hpp"
#include <eznet/Utils.hpp>
int main(void) {
eznet::init();
Game game;
game.run();
return 0;
}
|
//! Bismillahi-Rahamanirahim.
/** ========================================**
** @Author: Md. Abu Farhad ( RUET, CSE'15)
** @Category:
/** ========================================**/
#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
#define ll long long
#define scl(n) cin>>n;
#define scc(c) cin>>c;
#define fr(i,n) for (ll i=0;i<n;i++)
#define fr1(i,n) for(ll i=1;i<=n;i++)
#define pfl(x) printf("%lld\n",x)
#define pb push_back
#define l(s) s.size()
#define asort(a) sort(a,a+n)
#define all(x) (x).begin(), (x).end()
#define dsort(a) sort(a,a+n,greater<int>())
#define fast ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
ll a[105], freq[105];
int main()
{
fast;
ll t;
ll i,j,m,n,x;
ll cnt=0,ans=0,val=0;
cin>>m>>n;
fr(i,n)cin>>x, freq[x]++;
for(i=100;i>=1;i--)
{
val=0;
for(j=1;j<=100;j++)val+=(freq[j] /i);
//if(val)cout<<i<<" "<<val<<endl;
if(val>=m){cout<<i<<endl; return 0; }
}
cout<<0<<endl;
return 0;
}
|
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
int t,n,a,b,i;
cin>>t;
while(t--)
{
cin>>n>>a>>b;
if(b<a){
int temp=a;
a=b;
b=temp;
}
//cout<<a<<" "<<b<<endl;
if(a==b)
{
cout<<(n-1)*a<<endl;
}
else
{
for(i=0;i<=n-1;i++)
{
cout<<(n-1-i)*a+(i)*b<<" ";
}
cout<<endl;
}
}
return 0;
}
|
#include<bits/stdc++.h>
#define ll long long
using namespace std;
const ll N=1e6+5,mod=998244353;
ll gcd(ll a,ll b) {
return a%b==0?b:gcd(a%b,b);
}
ll pow(ll a,ll b) {
ll ret=1;
while(b) {
if(b&1)
ret=ret*a%mod;
a=a*a%mod;
b>>=1;
}
return ret;
}
ll a[N],b[N],f[N],dp[N];
ll n,c;
int main() {
scanf("%lld %lld",&n,&c);
for(int i=1; i<=n; i++) {
scanf("%lld",&a[i]);
f[i]=pow(1ll*i,c);
}
for(int i=1; i<=n; i++) {
for(int j=1; j*i<=n; j++)
dp[j]=(dp[j-1]+a[i*j]*f[i*j]%mod)%mod;
for(int j=1; j*i<=n; j++) {
if(__gcd(i,j)!=1)
continue;
b[i*j]=(b[i*j]+f[j]*pow(f[i],mod-2)%mod*dp[min(n/i,n/j)]%mod)%mod;
}
}
for(int i=2; i<=n; i++)
b[i]^=b[i-1];
printf("%lld\n",b[n]);
}
|
class Solution {
public:
vector<int> intersect(vector<int>& nums1, vector<int>& nums2) {
sort(nums1.begin(), nums1.end());
sort(nums2.begin(), nums2.end());
int pointer1 = 0, pointer2 = 0;
vector<int> res;
while(pointer1 < nums1.size() && pointer2 < nums2.size())
{
if(nums1[pointer1] == nums2[pointer2])
{
res.push_back(nums1[pointer1]);
pointer1++;
pointer2++;
}
else if(nums1[pointer1] < nums2[pointer2])
pointer1++;
else
pointer2++;
}
return res;
}
};
|
#ifndef _TNA_ENGINE_FPSCAMERA_H_
#define _TNA_ENGINE_FPSCAMERA_H_
#include "../math/matrix.h"
#include "../math/vector.h"
#include "../math/math_tools.h"
#include "../resources/resources.h"
#include <furious/components.h>
#include <math.h>
namespace tna
{
struct fps_camera_t
{
FURIOUS_COMPONENT(fps_camera_t);
vector3_t m_eye = vector3_t(0.0f,0.0f,0.0f);
float m_pitch = 0.0f;
float m_yaw = 0.0f;
float m_speed = 0.0f;
float m_pitch_speed = radians(5.0);
float m_yaw_speed = radians(5.0);
};
void
fps_camera_init(fps_camera_t* camera,
const vector3_t& eye,
float pitch,
float yaw);
void
fps_camera_to_view_matrix(const fps_camera_t* camera,
matrix4_t* matrix);
void
fps_camera_forward(fps_camera_t* camera,
float amount);
void
fps_camera_strafe(fps_camera_t* camera,
float amount);
void
fps_camera_yaw(fps_camera_t* camera,
float amount);
void
fps_camera_pitch(fps_camera_t* camera,
float amount);
} /* tna */
#endif
|
/*******************************************************************************
* Split
*
* Authors:
* Chantel Frizzell, Jeremy DeHaan
*
* Date Last Modified:
* 2017-03-13
*
* This class is used to help process command strings, by splitting into
* usable parts, and placing the parts into a vector.
******************************************************************************/
#ifndef SPLIT_H
#define SPLIT_H
#include <string>
#include <vector>
/*
* Split a string into a vector of strings based on a delimiter.
*
* The delimiter is not included in any of the strings in the vector.
*/
std::vector<std::string> split(const std::string& line, const std::string& delim);
#endif //SPLIT_H
|
/*
Copyright (c) 2005-2023, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the University of Oxford nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "BidomainTissue.hpp"
#include "DistributedVector.hpp"
#include "AxisymmetricConductivityTensors.hpp"
#include "OrthotropicConductivityTensors.hpp"
#include "ChastePoint.hpp"
#include "AbstractChasteRegion.hpp"
template <unsigned SPACE_DIM>
BidomainTissue<SPACE_DIM>::BidomainTissue(
AbstractCardiacCellFactory<SPACE_DIM>* pCellFactory,
bool exchangeHalos)
: AbstractCardiacTissue<SPACE_DIM>(pCellFactory, exchangeHalos)
{
CreateExtracellularConductivityTensors();
}
template <unsigned SPACE_DIM>
BidomainTissue<SPACE_DIM>::BidomainTissue(AbstractTetrahedralMesh<SPACE_DIM,SPACE_DIM>* pMesh)
: AbstractCardiacTissue<SPACE_DIM>(pMesh)
{
CreateExtracellularConductivityTensors();
}
template <unsigned SPACE_DIM>
void BidomainTissue<SPACE_DIM>::CreateExtracellularConductivityTensors()
{
if (this->mpConfig->IsMeshProvided() && this->mpConfig->GetLoadMesh())
{
assert(this->mFibreFilePathNoExtension != "");
switch (this->mpConfig->GetConductivityMedia())
{
case cp::media_type::Orthotropic:
{
mpExtracellularConductivityTensors = new OrthotropicConductivityTensors<SPACE_DIM,SPACE_DIM>;
FileFinder ortho_file(this->mFibreFilePathNoExtension + ".ortho", RelativeTo::AbsoluteOrCwd);
assert(ortho_file.Exists());
mpExtracellularConductivityTensors->SetFibreOrientationFile(ortho_file);
break;
}
case cp::media_type::Axisymmetric:
{
mpExtracellularConductivityTensors = new AxisymmetricConductivityTensors<SPACE_DIM,SPACE_DIM>;
FileFinder axi_file(this->mFibreFilePathNoExtension + ".axi", RelativeTo::AbsoluteOrCwd);
assert(axi_file.Exists());
mpExtracellularConductivityTensors->SetFibreOrientationFile(axi_file);
break;
}
case cp::media_type::NoFibreOrientation:
mpExtracellularConductivityTensors = new OrthotropicConductivityTensors<SPACE_DIM,SPACE_DIM>;
break;
default:
NEVER_REACHED;
}
}
else // Slab defined in config file or SetMesh() called; no fibre orientation assumed
{
mpExtracellularConductivityTensors = new OrthotropicConductivityTensors<SPACE_DIM,SPACE_DIM>;
}
c_vector<double, SPACE_DIM> extra_conductivities;
this->mpConfig->GetExtracellularConductivities(extra_conductivities);
// this definition must be here (and not inside the if statement) because SetNonConstantConductivities() will keep
// a pointer to it and we don't want it to go out of scope before Init() is called
unsigned num_local_elements = this->mpMesh->GetNumLocalElements();
std::vector<c_vector<double, SPACE_DIM> > hetero_extra_conductivities;
if (this->mpConfig->GetConductivityHeterogeneitiesProvided())
{
try
{
assert(hetero_extra_conductivities.size()==0);
//initialise with the values of the default conductivity tensor
hetero_extra_conductivities.resize(num_local_elements, extra_conductivities);
}
// LCOV_EXCL_START
catch(std::bad_alloc &r_bad_alloc)
{
std::cout << "Failed to allocate std::vector of size " << num_local_elements << std::endl;
PetscTools::ReplicateException(true);
throw r_bad_alloc;
}
// LCOV_EXCL_STOP
PetscTools::ReplicateException(false);
std::vector<boost::shared_ptr<AbstractChasteRegion<SPACE_DIM> > > conductivities_heterogeneity_areas;
std::vector< c_vector<double,3> > intra_h_conductivities;
std::vector< c_vector<double,3> > extra_h_conductivities;
HeartConfig::Instance()->GetConductivityHeterogeneities(conductivities_heterogeneity_areas,
intra_h_conductivities,
extra_h_conductivities);
unsigned local_element_index = 0;
for (typename AbstractTetrahedralMesh<SPACE_DIM,SPACE_DIM>::ElementIterator iter = (this->mpMesh)->GetElementIteratorBegin();
iter != (this->mpMesh)->GetElementIteratorEnd();
++iter)
{
// If element centroid is contained in the region
ChastePoint<SPACE_DIM> element_centroid(iter->CalculateCentroid());
for (unsigned region_index=0; region_index< conductivities_heterogeneity_areas.size(); region_index++)
{
// If element centroid is contained in the region
if (conductivities_heterogeneity_areas[region_index]->DoesContain(element_centroid))
{
//We don't use ublas vector assignment here, because we might be getting a subvector of a 3-vector
for (unsigned i=0; i<SPACE_DIM; i++)
{
hetero_extra_conductivities[local_element_index][i] = extra_h_conductivities[region_index][i];
}
}
}
local_element_index++;
}
mpExtracellularConductivityTensors->SetNonConstantConductivities(&hetero_extra_conductivities);
}
else
{
mpExtracellularConductivityTensors->SetConstantConductivities(extra_conductivities);
}
mpExtracellularConductivityTensors->Init(this->mpMesh);
}
template <unsigned SPACE_DIM>
BidomainTissue<SPACE_DIM>::~BidomainTissue()
{
if (mpExtracellularConductivityTensors)
{
delete mpExtracellularConductivityTensors;
}
}
template <unsigned SPACE_DIM>
const c_matrix<double, SPACE_DIM, SPACE_DIM>& BidomainTissue<SPACE_DIM>::rGetExtracellularConductivityTensor(unsigned elementIndex)
{
assert(mpExtracellularConductivityTensors);
if (this->mpConductivityModifier==NULL)
{
return (*mpExtracellularConductivityTensors)[elementIndex];
}
else
{
return this->mpConductivityModifier->rGetModifiedConductivityTensor(elementIndex, (*mpExtracellularConductivityTensors)[elementIndex], 1u);
}
}
// Explicit instantiation
template class BidomainTissue<1>;
template class BidomainTissue<2>;
template class BidomainTissue<3>;
// Serialization for Boost >= 1.36
#include "SerializationExportWrapperForCpp.hpp"
EXPORT_TEMPLATE_CLASS_SAME_DIMS(BidomainTissue)
|
#include <iostream>
using namespace std;
class Move
{
private:
double x;
double y;
public:
Move(double a = 0, double b = 0); // sets x, y to a, b
showMove() const; // shows current x, y values
Move add(const Move & m) const;
// this function adds x of m to x of invoking object to get new x,
// adds y of m to y of invoking object to get new y, creates a new
// move object initialized to new x, y values and returns it
reset(double a = 0, double b = 0); // resets x,y to a, b
};
Move::Move(double a, double b)
{
x = a; y = b;
}
Move::showMove() const
{
cout << "(" << x << ", " << y << ")\n";
}
Move Move::add(const Move &m) const
{
Move t = Move(x + m.x, y + m.y);
return t;
}
Move::reset(double a, double b)
{
x = a; y = b;
}
int main()
{
Move spot = Move(); Move ospot = Move(5, 2);
spot.showMove(); ospot.showMove();
spot = spot.add(ospot); ospot = ospot.add(spot);
spot.showMove(); ospot.showMove();
spot.reset(); ospot.reset(-2.2, 3.4);
spot.showMove(); ospot.showMove();
return 0;
}
|
#include <iostream>
#include <iomanip>
#include <string>
#include "Calculator.h"
#include "CalcSum0to10.h"
#include "CalcSum3to7.h"
#include "Batch.h"
using namespace std;
/**
* Story:
* Create one calculator(receiver), and several sets of operations(ConcreteCommand)
* main function(Client) contains these operations into batch(invoker)
**/
void testCommand()
{
cout << endl << "<<Test Command>>" << endl;
/* Generate receiver */
Calculator calc(0);
/* Generate commands */
CalcSum0to10 calcSum0to10(calc);
CalcSum3to7 calcSum3to7(calc);
Batch batch;
batch.addCommand(&calcSum0to10);
batch.addCommand(&calcSum3to7);
batch.executeAll();
}
|
//
// Copyright Jason Rice 2019
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef NBDL_FWD_CONSUMER_INIT_HPP
#define NBDL_FWD_CONSUMER_INIT_HPP
#include <nbdl/concept/Consumer.hpp>
namespace nbdl {
template <typename Tag>
struct consumer_init_impl;
//
// A hook to allow consumers to do initialization stuffs
// and send messages after the context's components have
// all been constructed.
struct consumer_init_fn {
template <Consumer Consumer>
constexpr void operator()(Consumer&) const;
};
constexpr consumer_init_fn consumer_init{};
}
#endif
|
#pragma once
#include "string"
using namespace std;
class Person
{
private:
string name;
string telNo;
public:
Person();
Person(string name, string telNo);
string getName();
void setName(string name);
string getTelNo();
void setTelNo(string telNo);
~Person();
};
|
// Fill out your copyright notice in the Description page of Project Settings.
#include "XTwoHandWeapon.h"
#include "XBaseCharacter.h"
AXTwoHandWeapon::AXTwoHandWeapon()
{
}
void AXTwoHandWeapon::OnUse(AXBaseCharacter * Character)
{
}
void AXTwoHandWeapon::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}
void AXTwoHandWeapon::BeginPlay()
{
Super::BeginPlay();
}
|
#include <syslog.h>
#include "Math.h"
#include "Game.h"
void Game::Menu()
{
if(m_playing)
{
Tick(0);
}
else
{
if(m_hasWon)
{
m_splash->Load(VICTORY);
}
if(!m_hasWon)
{
m_splash->Load(DEFEAT);
}
if(m_racers[0].CurrLap() == 0 && m_racers[0].NextCheckPoint() == 0)
{
m_splash->Load(SPLASH);
WB_LOGGER(LOG_ERR, "Splash loaded..");
for(int i = 0 ; i < 5 ; i++)
{
if(m_keysDown[i] == TRUE)
m_playing = true;
}
}
m_renderer.Draw2DQuad(m_splash);
//m_renderer.DrawOneSmoothTri(310,240); // bork'd!
}
}
void Game::SetDimensions(int w, int h)
{
WB_LOGGER(LOG_ERR, "set dimensions: w=%d x h=%d", w, h);
m_width = w;
m_height = h;
}
bool Game::Create(int w, int h)
{
SetDimensions(w,h);
m_playing = false;
//seed the random number generator
srand((unsigned)time(NULL));
syslog(LOG_ERR, "Create A");
//set up a convient info structure to pass to
//functions which require the math and modelmanager
m_info = new Info;
m_info->m_math = &m_math;
m_info->m_mm = &m_modelManager;
//set up the splash screens
m_splash = new Texture;
syslog(LOG_ERR, "Create b");
//Initialize the math and modelmanager
m_math.Initialize();
syslog(LOG_ERR, "Create c");
m_modelManager.Initialize();
syslog(LOG_ERR, "Create d");
//Create and initialize the OpenGL ES renderer
m_renderer.Create(); // !J!
syslog(LOG_ERR, "Create e");
//m_renderer.Create(hWnd);
m_renderer.Initialize(GetWidth(),GetHeight());
syslog(LOG_ERR, "Create f");
//Set up the player
m_racers = new Racer[2];
syslog(LOG_ERR, "Create ff");
m_racers[0].Initialize(m_info,BOAT2);
syslog(LOG_ERR, "Create fg");
m_racers[1].Initialize(m_info,BOAT1);
syslog(LOG_ERR, "Create g");
//Generate the race course first
m_raceCourse = new RaceCourse;
m_raceCourse->Generate(Vector3(ITOX(WORLD_WIDTH / 2),0,ITOX(WORLD_HEIGHT / 2)),
58,
60,
m_info);
syslog(LOG_ERR, "Create h");
//Then add racers to it
m_raceCourse->Initialize(m_racers,2);
//set up the environment
m_seascape = new Seascape;
m_seascape->Generate(&m_modelManager);
syslog(LOG_ERR, "Create i");
//put the camera at an initial positiong
Vector3 eye(-ITOX(0),ITOX(15),FTOX(-59.f)),
center(ITOX(WORLD_WIDTH / 2),0,ITOX(WORLD_HEIGHT / 2)),
up(ITOX(0),ITOX(1),ITOX(0));
syslog(LOG_ERR, "Create j");
m_camera.LookAt(eye,center,up);
syslog(LOG_ERR, "Create KKK");
m_gameCreated = TRUE;
return TRUE;
}
//---------------------------------
void Game::Destroy()
{
SAFE_DELETE(m_raceCourse);
SAFE_ARRAY_DELETE(m_racers);
SAFE_DELETE(m_seascape);
SAFE_DELETE(m_splash);
m_renderer.Destroy();
}
//---------------------------------
void Game::Tick(int timeElapsed)
{
//clear screen
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
glLoadIdentity();
//set up the camera to follow the player
Vector3 eye(m_racers[0].Position().x - (MULX(ITOX(25), MULX(m_racers[0].m_dir.x,FTOX(0.7)) )),
ITOX(7),
m_racers[0].Position().z - (MULX(ITOX(25),-MULX(m_racers[0].m_dir.z,FTOX(0.7)) )));
Vector3 up(ITOX(0),ITOX(1),ITOX(0));
m_camera.LookAt(eye,m_racers[0].Position(),up);
m_camera.Update();
//process input
if(m_keysDown[G_UP] == TRUE)
{
m_racers[0].IncreaseSpeed(6553);
}
if(m_keysDown[G_DOWN] == TRUE)
{
m_racers[0].IncreaseSpeed(-6553);
}
if(m_keysDown[G_RIGHT] == TRUE)
{
m_racers[0].Rotate(-ITOX(5));
}
if(m_keysDown[G_LEFT] == TRUE)
{
m_racers[0].Rotate(ITOX(5));
}
if(m_keysDown[G_DEVICE1])
m_renderer.EnableFog();
if(m_keysDown[G_DEVICE2])
m_renderer.DisableFog();
//update all major game related classes
m_raceCourse->Update();
m_racers[0].Update(&m_math);
m_racers[1].UpdateAI(&m_math,&m_racers[0]);
if(m_seascape->Collided(m_racers[0].m_ri->position(),ITOX(1)))
{
m_racers[0].IncreaseSpeed(-ITOX(1));
}
if(m_seascape->Collided(m_racers[1].m_ri->position(),ITOX(1)))
{
m_racers[1].IncreaseSpeed(-ITOX(1));
}
if(m_racers[0].IsFinished())
{
m_hasWon = true;
m_playing = false;
}
if(m_racers[1].IsFinished())
{
m_hasWon = false;
m_playing = false;
}
m_seascape->Render(&m_renderer);
m_raceCourse->Render(&m_renderer);
//render everything
m_racers[0].Render(&m_renderer);
m_racers[1].Render(&m_renderer);
}
//---------------------------------
void Game::KeyDown(int keyCode)
{
m_keysDown[keyCode] = TRUE;
}
void Game::KeyUp(int keyCode)
{
m_keysDown[keyCode] = FALSE;
}
|
/* json.h -*- C++ -*-
Rémi Attab (remi.attab@gmail.com), 19 Apr 2015
FreeBSD-style copyright and disclaimer apply
*/
#pragma once
#include "json/json.h"
|
#pragma once
#ifndef _DATAINPUT_HPP_
#define _DATAINPUT_HPP_
#include <iostream>
using std::cout;
//------------------------------------------------------------------------
// DATA INPUT STRUCTURES
//------------------------------------------------------------------------
struct DataInput
{
void display() const
{
cout << "\n----------------------------------\n";
cout << "DISPLAYING INPUT DATA \n";
// @TODO: display variables
cout << "\n----------------------------------\n";
}
// @TODO: add member variables as input
int temp;
};
#endif
|
#include<bits/stdc++.h>
using namespace std;
int count_bits(int n)
{
int count = 0;
while(n!=0)
{
int rmsb = n&-n;
n = n - (rmsb);
count+=1;
}
return count;
}
int main()
{
int x,y;
cin >> x >> y;
int output = x^y;
cout << count_bits(output) << endl;
return 0;
}
|
#pragma once
#include "Platform.h"
#include <vector>
namespace vkw
{
class VulkanDevice;
class Subpass;
class RenderPass
{
public:
RenderPass(VulkanDevice* pDevice, const std::vector<VkAttachmentDescription>& attachments, std::vector<VkSubpassDescription> subpassDescriptions, std::vector<VkSubpassDependency> dependencies);
~RenderPass();
VkRenderPass GetHandle();
private:
void Init();
void Cleanup();
VulkanDevice* m_pDevice = nullptr;
std::vector<VkAttachmentDescription> m_AttachmentDescriptions{};
std::vector<VkSubpassDescription> m_SubPasses{};
std::vector<VkSubpassDependency> m_SubPassDependencies{};
VkRenderPass m_RenderPass = VK_NULL_HANDLE;
};
}
|
#include <bits/stdc++.h>
using namespace std;
const int MAX_INT = std::numeric_limits<int>::max();
const int MIN_INT = std::numeric_limits<int>::min();
const int INF = 1000000000;
const int NEG_INF = -1000000000;
#define max(a,b)(a>b?a:b)
#define min(a,b)(a<b?a:b)
#define MEM(arr,val)memset(arr,val, sizeof arr)
#define PI acos(0)*2.0
#define eps 1.0e-9
#define are_equal(a,b)fabs(a-b)<eps
#define LS(b)(b& (-b)) // Least significant bit
#define DEG_to_RAD(a)((a*PI)/180.0) // convert to radians
typedef long long ll;
typedef pair<int, int> ii;
typedef pair<int, char> ic;
typedef pair<long, char> lc;
typedef vector<ll> vi;
typedef vector<ii> vii;
int gcd(int a, int b) {
return b == 0 ? a : gcd(b, a % b);
}
int lcm(int a, int b) {
return a * (b / gcd(a, b));
}
int main(){
int t, l, r;
cin >> t;
while (t--){
cin >> l >> r;
int a = 0, b = 0, c = 0;
for (int i = l; i <= r; i++){
int flag = 1, right = 0, left = 0, temp = i;
while (temp){
if (temp % 2){
if (right != -1){
right++;
}
left++;
}else{
a = max(a, right);
right = -1;
left = 0;
flag = 0;
}
temp /= 2;
}
if (flag)
b += left;
else
c = max(c, left);
}
cout << a+b+c << endl;
}
}
|
// $Id: B4cDetectorConstruction.cc 101905 2016-12-07 11:34:39Z gunter $
//
/// \file B4cDetectorConstruction.cc
/// \brief Implementation of the B4cDetectorConstruction class
#include "B4cDetectorConstruction.hh"
#include "B4cCalorimeterSD.hh"
#include "G4Material.hh"
#include "G4NistManager.hh"
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4PVReplica.hh"
#include "G4GlobalMagFieldMessenger.hh"
#include "G4AutoDelete.hh"
#include "G4SDManager.hh"
#include "G4VisAttributes.hh"
#include "G4Colour.hh"
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4ThreadLocal
G4GlobalMagFieldMessenger* B4cDetectorConstruction::fMagFieldMessenger = 0;
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
B4cDetectorConstruction::B4cDetectorConstruction()
: G4VUserDetectorConstruction(),
fCheckOverlaps(true),
fNofLayers(-1)
{
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
B4cDetectorConstruction::~B4cDetectorConstruction()
{
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4VPhysicalVolume* B4cDetectorConstruction::Construct()
{
// Define materials
DefineMaterials();
// Define volumes
return DefineVolumes();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void B4cDetectorConstruction::DefineMaterials()
{
// Silicon material defined using NIST Manager
auto nistManager = G4NistManager::Instance();
nistManager->FindOrBuildMaterial("G4_Si");
// Liquid argon material - used previously for gap filling, omitted for this
// simulation
G4double a; // mass of a mole;
G4double z; // z=mean number of protons;
G4double density;
new G4Material("liquidArgon", z=18., a= 39.95*g/mole, density= 1.390*g/cm3);
// The argon by NIST Manager is a gas with a different density
// Vacuum
new G4Material("Galactic", z=1., a=1.01*g/mole,density= universe_mean_density,
kStateGas, 2.73*kelvin, 3.e-18*pascal);
// Print materials
G4cout << *(G4Material::GetMaterialTable()) << G4endl;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4VPhysicalVolume* B4cDetectorConstruction::DefineVolumes()
{
// Geometry parameters
fNofLayers = 1;
G4double absoThickness = 2.5*mm;
G4double gapThickness = 50.*mm;
G4double calorSizeXY = 50.*cm;
auto layerThickness = absoThickness + gapThickness;
auto calorThickness = fNofLayers * layerThickness;
auto worldSizeXY = 50*mm;
auto worldSizeZ = 50*mm;
// Get materials
auto defaultMaterial = G4Material::GetMaterial("Galactic");
auto absorberMaterial = G4Material::GetMaterial("G4_Si");
auto gapMaterial = G4Material::GetMaterial("liquidArgon");
if ( ! defaultMaterial || ! absorberMaterial || ! gapMaterial ) {
G4ExceptionDescription msg;
msg << "Cannot retrieve materials already defined.";
G4Exception("B4DetectorConstruction::DefineVolumes()",
"MyCode0001", FatalException, msg);
}
//
// World
//
auto worldS
= new G4Box("World", // its name
worldSizeXY, worldSizeXY, worldSizeZ); // its size
auto worldLV
= new G4LogicalVolume(
worldS, // its solid
defaultMaterial, // its material
"World"); // its name
auto worldPV
= new G4PVPlacement(
0, // no rotation
G4ThreeVector(0.,0.,0.), // at (0,0,0*mm)
worldLV, // its logical volume
"World", // its name
0, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
//
// Absorber RHS
//
auto absorberS
= new G4Box("Abso", // its name
3*cm, 3*cm, absoThickness); // its size
auto absorberLV
= new G4LogicalVolume(
absorberS, // its solid
absorberMaterial, // its material
"AbsoLV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(0., 0., 32.5), // its position
absorberLV, // its logical volume
"Abso", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
//
// Absorber LHS
//
auto absorber2S
= new G4Box("Abso2", // its name
3*cm, 3*cm, absoThickness); // its size
auto absorber2LV
= new G4LogicalVolume(
absorber2S, // its solid
absorberMaterial, // its material
"Abso2LV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(0., 0., -32.5), // its position
absorber2LV, // its logical volume
"Abso2", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
//
// Absorber Bottom
//
auto absorber3S
= new G4Box("Abso3", // its name
3*cm, absoThickness, 3*cm); // its size
auto absorber3LV
= new G4LogicalVolume(
absorber3S, // its solid
absorberMaterial, // its material
"Abso3LV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(0., -32.5, 0.), // its position
absorber3LV, // its logical volume
"Abso3", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
// Absorber Front
//
auto absorber4S
= new G4Box("Abso4", // its name
absoThickness, 3.*cm, 3*cm); // its size
auto absorber4LV
= new G4LogicalVolume(
absorber4S, // its solid
absorberMaterial, // its material
"Abso4LV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(32.5, 0., 0.), // its position
absorber4LV, // its logical volume
"Abso4", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
// Absorber Back
//
auto absorber5S
= new G4Box("Abso5", // its name
absoThickness, 3.*cm, 3*cm); // its size
auto absorber5LV
= new G4LogicalVolume(
absorber5S, // its solid
absorberMaterial, // its material
"Abso5LV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(-32.5, 0., 0.), // its position
absorber5LV, // its logical volume
"Abso5", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
// Absorber Top Right
//
auto absorber6S
= new G4Box("Abso6", // its name
3.*cm, absoThickness, 1.45*cm); // its size
auto absorber6LV
= new G4LogicalVolume(
absorber6S, // its solid
absorberMaterial, // its material
"Abso6LV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(0., 32.5, 15.5), // its position
absorber6LV, // its logical volume
"Abso6", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
// Absorber Top Left
//
auto absorber7S
= new G4Box("Abso7", // its name
3.*cm, absoThickness, 1.45*cm); // its size
auto absorber7LV
= new G4LogicalVolume(
absorber7S, // its solid
absorberMaterial, // its material
"Abso7LV"); // its name
new G4PVPlacement(
0, // no rotation
G4ThreeVector(0., 32.5, -15.5), // its position
absorber7LV, // its logical volume
"Abso7", // its name
worldLV, // its mother volume
false, // no boolean operation
0, // copy number
fCheckOverlaps); // checking overlaps
//
// Visualization attributes
//
worldLV->SetVisAttributes (G4VisAttributes::GetInvisible());
auto simpleBoxVisAtt= new G4VisAttributes(G4Colour(1.0,1.0,1.0));
simpleBoxVisAtt->SetVisibility(true);
worldLV->SetVisAttributes(simpleBoxVisAtt);
//
// Always return the physical World
//
return worldPV;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void B4cDetectorConstruction::ConstructSDandField()
{
// G4SDManager::GetSDMpointer()->SetVerboseLevel(1);
//
// Sensitive detectors
//
auto absoSD
= new B4cCalorimeterSD("AbsorberSD", "AbsorberHitsCollection", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD);
SetSensitiveDetector("AbsoLV",absoSD);
auto absoSD2
= new B4cCalorimeterSD("AbsorberSD2", "AbsorberHitsCollection2", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD2);
SetSensitiveDetector("Abso2LV",absoSD2);
auto absoSD3
= new B4cCalorimeterSD("AbsorberSD3", "AbsorberHitsCollection3", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD3);
SetSensitiveDetector("Abso3LV",absoSD3);
auto absoSD4
= new B4cCalorimeterSD("AbsorberSD4", "AbsorberHitsCollection4", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD4);
SetSensitiveDetector("Abso4LV",absoSD4);
auto absoSD5
= new B4cCalorimeterSD("AbsorberSD5", "AbsorberHitsCollection5", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD5);
SetSensitiveDetector("Abso5LV",absoSD5);
auto absoSD6
= new B4cCalorimeterSD("AbsorberSD6", "AbsorberHitsCollection6", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD6);
SetSensitiveDetector("Abso6LV",absoSD6);
auto absoSD7
= new B4cCalorimeterSD("AbsorberSD7", "AbsorberHitsCollection7", fNofLayers);
G4SDManager::GetSDMpointer()->AddNewDetector(absoSD7);
SetSensitiveDetector("Abso7LV",absoSD7);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);cout.tie(NULL);
int t;
cin>>t;
for(int tc=1;tc<=t;tc++)
{
int n,a,b,c;
cin>>n;
int left[n+1]={},right[n+1]={};
int w_left=0,w_right=0;
for(int i=0;i<n;i++)
{
cin>>a>>b>>c;
if(left[a]==false && right[b]==false)
{
left[a]=right[b]=true;
w_left+=c;
}
else
{
right[a]=left[b]=true;
w_right+=c;
}
}
cout<<"Case "<<tc<<": "<<min(w_left,w_right)<<"\n";
}
}
|
#include <iostream>
#include <cstdio>
#include <cstring>
#include <map>
#include <vector>
#include <ctime>
#include "hw2.h"
using namespace std;
void get(int u, int a, int q, int p, int d) {
Data key;
key.a = a;
key.q = q;
key.p = p;
key.d = d;
pair <SubData::iterator, SubData::iterator> range;
range = users[u].equal_range(key);
printf("********************\n");
int sum_c = 0, sum_i = 0;
for (SubData::iterator it = range.first; it != range.second; it++) {
sum_c += it->second.c;
sum_i += it->second.i;
}
printf("%d %d\n", sum_c, sum_i);
printf("********************\n");
}
void clicked(int u) {
int a = -1, q = -1;
printf("********************\n");
for (SubData::iterator it = users[u].begin(); it != users[u].end(); it++) {
if(it->first.a == a && it->first.q == q)
continue;
if (it->second.c > 0) {
printf("%d %d\n", it->first.a, it->first.q);
a = it->first.a;
q = it->first.q;
}
}
printf("********************\n");
}
void impressed(int u1, int u2) {
std::map<int, SubData >::iterator it_all1 = users.find(u1);
std::map<int, SubData >::iterator it_all2 = users.find(u2);
SubData::iterator it1 = it_all1->second.begin();
SubData::iterator it2 = it_all2->second.begin();
printf("********************\n");
while (it1 != it_all1->second.end() && it2 != it_all2->second.end()) {
if( (it1->first.a == it2->first.a) && (it1->second.i > 0 && it2->second.i > 0) ) {
printf("%d\n", it1->first.a);
int a = it1->first.a;
std::vector<Details> v;
while(it1->first.a == a) {
Details description;
strcpy(description.d_url, it1->second.d_url);
description.a_id = it1->second.a_id;
description.k = it1->second.k;
description.t = it1->second.t;
description.d_id = it1->second.d_id;
bool flag = true;
for(unsigned i = 0; i < v.size(); i++) {
if(v[i] == description)
flag = false;
}
if(flag)
v.push_back(description);
it1++;
}
while(it2->first.a == a) {
Details description;
strcpy(description.d_url, it2->second.d_url);
description.a_id = it2->second.a_id;
description.k = it2->second.k;
description.t = it2->second.t;
description.d_id = it2->second.d_id;
bool flag = true;
for(unsigned i = 0; i < v.size(); i++) {
if(v[i] == description)
flag = false;
}
if(flag)
v.push_back(description);
it2++;
}
for(unsigned i = 0; i < v.size(); i++)
printf("\t%s %d %d %d %d\n", v[i].d_url, v[i].a_id, v[i].k, v[i].t, v[i].d_id );
}
else if(it1->first.a < it2->first.a)
it1++;
else
it2++;
}
printf("********************\n");
}
void profit(int a, double theta) {
std::map<int, User>::iterator it_all = AdID.find(a);
User::iterator it = it_all->second.begin();
int u, click_sum, impression_sum;
printf("********************\n");
while(it != it_all->second.end()) {
click_sum = 0;
impression_sum = 0;
for(u = it->first; u == it->first; it++) {
click_sum += it->second.c;
impression_sum += it->second.i;
}
if(impression_sum == 0)
continue;
if((double)click_sum/impression_sum >= theta)
printf("%d\n", u);
}
printf("********************\n");
}
int main(int argc, char* argv[]) { //int argc:the numbers of argument; char* argv[]:the argument string array
int c, i, a, a_id, d, p, q, k, t, d_id, u;
char d_url[22];
FILE* file; //start opening a file to read in
if (argc == 2)
file = fopen(argv[1], "r");
else
file = fopen("data.txt", "r"); //reserverd file to the error for the argv[1]
if(!file) {
printf("There's error opening the file\n");
return 0;
}
Data data;
Details details;
SubData temp;
User tmp;
//clock_t ti = clock(); //counting the CPU time reading file in takes
/************************
Read all the Big Data in
*************************/
while(fscanf(file, "%d%d%s%d%d%d%d%d%d%d%d%d",&c ,&i, d_url, &a, &a_id, &d, &p, &q, &k, &t, &d_id, &u) == 12)
{
data.a = a;
data.q = q;
data.p = p;
data.d = d;
details.c = c;
details.i = i;
strcpy(details.d_url, d_url);
details.a_id = a_id;
details.k = k;
details.t = t;
details.d_id = d_id;
if(users.find(u) != users.end()) { //UserID found
users[u].insert(make_pair(data, details));
}
else { //UserID not found
temp.insert(make_pair(data, details));
users.insert(make_pair(u, temp));
temp.clear();
}
if(AdID.find(a) != AdID.end()) { //AdID found
if(AdID[a].find(u) != AdID[a].end()) {
AdID[a][u].c += c;
AdID[a][u].i += i;
}
else {
AdID[a].insert(make_pair(u, details));
}
}
else { //AdID not found
tmp.insert(make_pair(u, details));
AdID.insert(make_pair(a, tmp));
tmp.clear();
}
}
fclose(file);
//ti = clock() - ti;
//printf("Time takes: %f s\n\n", (float)ti/CLOCKS_PER_SEC);
/*******************
Read the command in
********************/
char action[10];
while(scanf("%s", action) != EOF) {
switch(action[0]) {
case 'g':
int u, a, q, p, d;
scanf("%d%d%d%d%d", &u, &a, &q, &p, &d);
get(u, a, q, p, d);
break;
case 'c':
int usr;
scanf("%d", &usr);
clicked(usr);
break;
case 'i':
int u1, u2;
scanf("%d%d", &u1, &u2);
impressed(u1, u2);
break;
case 'p':
int ad_id;
double theta;
scanf("%d%lf", &ad_id, &theta);
profit(ad_id, theta);
break;
case 'q':
return 0;
default:
printf("There's no corresponding command");
}
}
/********************************
Print all the sorted Big Data out
*********************************/
// std::map<int, User>::iterator it;
// for(it = AdID.begin(); it != AdID.end(); it++) {
// User::iterator it2;
// printf("Ad ID: %d\n", it->first);
// for(it2 = it->second.begin(); it2 != it->second.end(); it2++) {
// printf("User ID:%d\t", it2->first);
// it2->second.print();
// }
// printf("---------\n");
// }
return 0;
}
|
#include <cybermed/cybCore.h>
#include <cybermed/cybViewMono.h>
#include <cybermed/cybViewAnaglyph.h>
#include <cybermed/cybViewColorAnaglyph.h>
#include "InteractionHandle.h"
int main(int argc, char** argv)
{
char *fileName = "monkey.wrl"; //Model name
int numLayer = 1; //Number of layers used in this application
int numInterator = 0;
CybDataObtainer<cybTraits> data(numLayer, numInterator); // Transfer the OF data to CybParameters structure
CybViewMono view;
//Access the parameters information of scene and graphical objects
CybParameters *cybCore = CybParameters::getInstance();
/*Load the model from VRML file (layerID, fileName)*/
data.loadModel(0, fileName);
/*Initialize the meshes parameters*/
data.startParameters(numLayer);
cybCore->setKeyboardOff();
//Set the object color (layerID, r, g, b,a)
cybCore->setColor(0,1,1,0.7,0.9);
//Set the window name
view.setWindowName("Simple Visualization");
CybHaarTracker *blob;
CybCam *cams = CybCam::getInstance();
InteractionHandle *handle = new InteractionHandle(blob, cybCore);
handle->initialize();
cams->setDebug(false);
handle->init();
/*Initialize visualization*/
view.init();
}
|
//
// Copyright Jason Rice 2016
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include <nbdl/bind_map.hpp>
#include <nbdl/bind_sequence.hpp>
#include <nbdl/entity.hpp>
#include <nbdl/match_path.hpp>
#include <boost/hana/equal.hpp>
#include <boost/hana/string.hpp>
#include <catch.hpp>
#include <string>
namespace hana = boost::hana;
using namespace hana::literals;
namespace entity_test
{
struct person_t
{
std::string name;
int age;
};
struct account_t
{
std::string username;
person_t person;
};
}
namespace nbdl
{
NBDL_ENTITY(
entity_test::person_t
, name
, age
);
NBDL_ENTITY(
entity_test::account_t
, username
, person
);
} // nbdl
TEST_CASE("Entity equality.", "[entity]")
{
using entity_test::person_t;
person_t p1{"Skippy", 42};
person_t p2{"Skippy", 42};
person_t p3{"Skippy", 43};
person_t p4{"Skippyz", 42};
CHECK(hana::equal(p1, p2));
CHECK(!hana::equal(p1, p3));
CHECK(!hana::equal(p1, p4));
}
TEST_CASE("Entity bind_sequence", "[entity][bind_sequence]")
{
using entity_test::person_t;
bool result = nbdl::bind_sequence(person_t{"Skippy", 42}, [](auto&& ...xs)
{
return hana::equal(
hana::make_tuple(std::forward<decltype(xs)>(xs)...),
hana::make_tuple(std::string("Skippy"), 42)
);
});
CHECK(result);
}
TEST_CASE("Entity bind_map", "[entity][bind_map]")
{
using entity_test::person_t;
bool result = nbdl::bind_map(person_t{"Skippy", 42}, [](auto&& ...pair)
{
return hana::equal(
hana::make_tuple(
hana::unpack(pair, [](auto&& first, auto&& second)
{
return hana::make_pair(first, second.get());
})...
),
hana::make_tuple(
hana::make_pair("name"_s, "Skippy"),
hana::make_pair("age"_s, 42)
)
);
});
CHECK(result);
}
TEST_CASE("Entity bind_map... again", "[entity][bind_map]")
{
using entity_test::account_t;
using entity_test::person_t;
bool result = nbdl::bind_map(account_t{ "@skippy", person_t{"Skippy", 42}}, [](auto&& ...pair)
{
return hana::equal(
hana::make_tuple(
hana::unpack(pair, [](auto&& first, auto&& second)
{
return hana::make_pair(first, second.get());
})...
),
hana::make_tuple(
hana::make_pair("username"_s, "@skippy"),
hana::make_pair("person"_s, person_t{"Skippy", 42})
)
);
});
CHECK(result);
}
TEST_CASE("Entity as a Store.", "[entity][Store]")
{
entity_test::account_t account{
std::string{"@JasonRice_"}
, entity_test::person_t{"Jason Rice", 22}
};
auto path1 = hana::make_tuple(
NBDL_MEMBER(&entity_test::account_t::person){}
, NBDL_MEMBER(&entity_test::person_t::name){}
);
// Would look better with literals
auto path2 = hana::make_tuple(
hana::string<'p', 'e', 'r', 's', 'o', 'n'>{}
, hana::string<'n', 'a', 'm', 'e'>{}
);
std::string result1;
std::string result2;
nbdl::match_path(
account, path1
, [&](std::string const& name) { result1 = name; }
, [](auto&&) { }
);
nbdl::match_path(
account, path2
, [&](std::string const& name) { result2 = name; }
, [](auto&&) { }
);
CHECK(result1 == std::string{"Jason Rice"});
CHECK(result2 == std::string{"Jason Rice"});
}
|
#include<bits/stdc++.h>
using namespace std;
int m = 1e7+7;
int pow1(int n, int k){
if(k==0) return 1;
else if(k%2 == 0) return pow1((n*1ll*n)%m, k/2)%m;
else return (pow1((n*1ll*n)%m, k/2)*1ll*n)%m;
}
int main(){
while(1){
int n,k;
cin >> n >>k;
if(n==0 && k==0) break;
long long ans = pow1(n, n);
ans = (ans + pow1(n, k) ) %m ;
ans = (ans + pow1(n-1, n-1)) %m;
ans = (ans + pow1(n-1, n-1)) %m;
ans = (ans + pow1(n-1, k)) %m;
ans = (ans + pow1(n-1, k)) %m;
ans = (ans + m)%m;
cout << ans << endl;
}
return 0;
}
|
#ifndef SPOOFMAC_H
#define SPOOFMAC_H
#define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x))
#define FREE(x) HeapFree(GetProcessHeap(), 0, (x))
#define WORKING_BUFFER_SIZE 15000
#define MAX_TRIES 3
#define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383
#define _WIN32_WINNT 0x0500
#define TOTALBYTES 8192
#define BYTEINCREMENT 4096
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <iostream>
#include <string>
#include <Windows.h>
#include <winsock2.h>
#include <iphlpapi.h>
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include <malloc.h>
#include <ctime>
#include <atlbase.h>
#include <msclr\marshal_cppstd.h>
#include <iomanip>
#include <sstream>
#include <atlstr.h>
#include <locale>
#pragma comment(lib,"IPHlpApi.Lib")
using namespace std;
class spoofMac{
public:
static void setNewMac(string); //Set the "Wi-Fi" adapter's new mac address
static void revertToOriginalMac(); //change the mac Address back to the original
static string getCurrentMAcAddress();//returns the curernt MAC Address of the active nic
static string randomizeMAC();//returns a randomized MAC address
static wstring queryKey();//Locates the subkey which holds the active "Wi-Fi" adapter
static bool queryRegValue(wstring); //Find the subkey where the where the active "Wi-Fi" is located
static LPCSTR getNetworkInfo();//Locate the active "Wi-Fi" adapter
static string getNicFriendlyName();//returns the nic friendlt name
};
#endif
|
#include "Stack.h"
void PrintInfo(Stack &s) {
cout
<< "Size : " << s.getSize() << " / "
<< "Length : " << s.getLength() << " / "
<< "Front : " << s.Front() << " / "
<< "Top : " << s.Top() << endl;
}
int main() {
Stack q(5);
cout << "<init>" << endl;
PrintInfo(q);
cout << q << endl;
cout << "<push>" << endl;
q.push(1);
q.push(2);
q.push(3);
PrintInfo(q);
cout << q << endl;
cout << "<pop>" << endl;
for (int i = 0; i < 3; i++) { q.pop(); }
PrintInfo(q);
cout << q << endl;
cout << "<push>" << endl;
q.push(1);
q.push(2);
q.push(3);
PrintInfo(q);
cout << q << endl;
}
|
#include<bits/stdc++.h>
#define maxn 5005
#define int long long
#define mod 1000000007
using namespace std;
typedef long long ll;
int dp[5005][5005], dp1[5005][5005];
char s[maxn], t[maxn];
ll fac[maxn*2];
ll inv[maxn*2];
ll qpow(long long a,long long b) {
ll ans=1;
ll k=a;
while(b) {
if(b&1)ans=ans*k%mod;
k=k*k%mod;
b>>=1;
}
return (ans+mod)%mod;
}
void init(int xx) {
long long it;
fac[0]=1;
inv[0]=1;
fac[1]=1;
inv[1]=1;
for(int i=2; i<=xx; i++)
fac[i]=fac[i-1]*i%mod,inv[i]=mod-(mod/i)*inv[mod%i]%mod;
for(int i=1; i<=xx; i++)
inv[i]=inv[i-1]*inv[i]%mod;
}
ll C(ll n,ll m) {
if (n<m||m<0) return 0;
return (fac[n]*inv[m]%mod*inv[n-m]%mod+mod)%mod;
}
int cal(int x, int y) {
return C(x+y,y);
}
signed main() {
int n, m;
init(10001);
scanf("%s%s",s+1,t+1);
n = strlen(s+1), m = strlen(t+1);
for(int i=1;i<=n;i++) {
for(int j=1;j<=m;j++) {
if(s[i] == t[j]) {
dp[i][j] += (dp[i-1][j-1]+1)%mod;
dp[i][j] %= mod;
}
}
for(int j=1;j<=m;j++) {
dp[i][j] += dp[i][j-1];
dp[i][j] %= mod;
}
for(int j=1;j<=m;j++) {
dp[i][j] += dp[i-1][j];
dp[i][j] %= mod;
}
}
// for(int i=n;i>=1;i--) {
//
// for(int j=n;j>=1;j--) {
// dp1[i][j] = dp1[i+1][j];
// }
// for(int j=n;j>=1;j--) {
// if(s[i] < t[j]) {
// dp1[i][j] += dp1[i+1][j+1];
// dp1[i][j] %= mod;
// }
// }
// }
ll ans = 0;
for(int i=1;i<=n;i++) {
for(int j=1;j<=m;j++) {
if(s[i] < t[j]) {
// cout << i << " "<< j<< " " << dp[i-1][j-1] << endl;
ans += (dp[i-1][j-1]+1)%mod*cal(min(n-i, m-j), max(n-i,m-j))%mod;
ans %= mod;
}
}
}
cout << ans << endl;
}
|
#include "networking\Singularity.Networking.h"
#define PACKER_TYPE_GAME 0x30
#define PACKER_COMMAND_REGISTER 0x10
#define PACKER_COMMAND_UNREGISTER 0x20
#define PACKER_COMMAND_UPDATE 0x40
#define PACKER_COMMAND_LIST 0x80
#define PACKER_COMMAND_PLAYER 0x01
#define PACKER_COMMAND_DATA 0x04
using namespace Singularity::Components;
namespace Singularity
{
namespace Networking
{
#pragma region Constructors and Finalizers
NetworkGame::NetworkGame(NetworkGameDescription description, bool isHost)
: m_bIsHost(isHost), m_iPlayerCount(0), m_kDescription(description)
{
this->Connect(description.Endpoint, description.Port);
}
#pragma endregion
#pragma region Methods
void NetworkGame::RegisterPlayer(NetworkPlayer& player)
{
Packet* packet = (Packet*)malloc(sizeof(Packet) + sizeof(NetworkPlayer));
packet->Index = 0;
packet->Type = PACKER_TYPE_GAME;
packet->Command = PACKER_COMMAND_REGISTER | PACKER_COMMAND_PLAYER;
packet->DataLength = sizeof(NetworkPlayer);
memcpy(&packet->Data, &player, sizeof(NetworkPlayer));
this->SendPacket(packet);
if(!this->m_bIsHost)
this->GetPlayerList();
}
void NetworkGame::UnregisterPlayer(NetworkPlayer& player)
{
Packet* packet = (Packet*)malloc(sizeof(Packet) + sizeof(NetworkPlayer));
packet->Index = 0;
packet->Type = PACKER_TYPE_GAME;
packet->Command = PACKER_COMMAND_UNREGISTER | PACKER_COMMAND_PLAYER;
packet->DataLength = sizeof(NetworkPlayer);
memcpy(&packet->Data, &player, sizeof(NetworkPlayer));
this->SendPacket(packet);
}
void NetworkGame::UpdatePlayer(NetworkPlayer& player)
{
Packet* packet = (Packet*)malloc(sizeof(Packet) + sizeof(NetworkPlayer));
packet->Index = 0;
packet->Type = PACKER_TYPE_GAME;
packet->Command = PACKER_COMMAND_UPDATE | PACKER_COMMAND_PLAYER;
packet->DataLength = sizeof(NetworkPlayer);
memcpy(&packet->Data, &player, sizeof(NetworkPlayer));
this->SendPacket(packet);
}
void NetworkGame::GetPlayerList()
{
Packet* packet = (Packet*)malloc(sizeof(Packet));
packet->Index = 0;
packet->Type = PACKER_TYPE_GAME;
packet->Command = PACKER_COMMAND_LIST | PACKER_COMMAND_PLAYER;
packet->DataLength = 1;
packet->Data = NULL;
this->SendPacket(packet);
}
void NetworkGame::ResetReady()
{
}
void NetworkGame::Start()
{
}
void NetworkGame::Destroy()
{
}
NetworkPlayer* NetworkGame::GetPlayers(unsigned& count)
{
count = this->m_iPlayerCount;
return &this->m_pPlayers[0];
}
#pragma endregion
#pragma region Overriden Methods
void NetworkGame::OnProcessPacket(Packet* packet)
{
if(packet->Type != PACKER_TYPE_GAME)
return;
switch(packet->Command)
{
case PACKER_COMMAND_REGISTER | PACKER_COMMAND_PLAYER:
{
NetworkPlayer* player = &this->m_pPlayers[this->m_iPlayerCount++];
memcpy(player, &packet->Data, sizeof(NetworkPlayer));
break;
}
case PACKER_COMMAND_UPDATE | PACKER_COMMAND_PLAYER:
{
NetworkPlayer* player = (NetworkPlayer*)&packet->Data;
for(unsigned i = 0; i < this->m_iPlayerCount; ++i)
{
if(memcmp(&player->Id, &this->m_pPlayers[i].Id, sizeof(UUID)) == 0)
{
memcpy(&this->m_pPlayers[i], &packet->Data, sizeof(NetworkPlayer));
this->m_pPlayersLastUpdate[i] = this->m_kTimer.Get_TotalTime();
return;
}
}
this->m_pPlayersLastUpdate[this->m_iPlayerCount] = this->m_kTimer.Get_TotalTime();
player = &this->m_pPlayers[this->m_iPlayerCount++];
memcpy(player, &packet->Data, sizeof(NetworkPlayer));
break;
}
case PACKER_COMMAND_UNREGISTER | PACKER_COMMAND_PLAYER:
{
NetworkPlayer* player = (NetworkPlayer*)&packet->Data;
for(unsigned i = 0; i < this->m_iPlayerCount; ++i)
{
if(memcmp(&player->Id, &this->m_pPlayers[i].Id, sizeof(UUID)) == 0)
{
memcpy(&this->m_pPlayers[i], &this->m_pPlayers[--this->m_iPlayerCount], sizeof(NetworkPlayer));
return;
}
}
break;
}
case PACKER_COMMAND_LIST | PACKER_COMMAND_PLAYER:
{
if(memcmp(&packet->From, &this->Get_NetworkId(), sizeof(UUID)) == 0)
return;
this->m_kTimer.Tick(); // no need in flooding the network with list requests
for(unsigned i = 0; i < this->m_iPlayerCount; ++i)
{
if(memcmp(&this->m_pPlayers[i].Id, &this->Get_NetworkId(), sizeof(UUID)) != 0)
{
this->UpdatePlayer(this->m_pPlayers[i]);
return;
}
}
}
default:
NetworkSession::OnProcessPacket(packet);
break;
}
}
#pragma endregion
}
}
|
#include <iostream>
#include "Hastable.h"
#include "HashString.h"
#include "Hashable.h"
void main()
{
Table<int> hashT(20);
hashT.Add(500, HashString ("test1") );
hashT.Add(600, HashString("test5"));
hashT.Add(700, HashString("test2"));
hashT.Add(800, HashString("test1"));
hashT.Add(900, HashString("test10"));
std::cout << hashT[HashString("test1")].GetData() << std::endl;
std::cout << hashT[HashString("test5")].GetData() << std::endl;
std::cout << hashT[HashString("test2")].GetData() << std::endl;
std::cout << hashT[HashString("test10")].GetData() << std::endl;
std::cin.get();
}
|
#include "stdafx.h"
#include <stdlib.h>
#include "locale.h"
#include < string.h >
#include "Book.h"
#define MAX_LEN 20
// Конструктор по умолчанию
Book::Book()
{
}
// Конструктор с параметрами(ну не совсем)
Book::Book(int num, char InfoString[100])//здесь происходит парс строки из Source по сиволам '/' и заполнение соответствующих полей
{
itsNum = num;
int i = 0;
char curr = InfoString[i];
while (curr!='/')
{
author[i] = curr;
curr = InfoString[i+1];
i++;
}
author[i] = '\0';
curr = InfoString[i + 1];
i++;
int j = 0;
for (j = 0; (curr != '/');)
{
title[j] = curr;
curr = InfoString[i + 1];
i++;j++;
}
title[j] = '\0';
curr = InfoString[i + 1];
i++;
for (j = 0; (curr != '/');)
{
publishingHouse[j] = curr;
curr = InfoString[i + 1];
i++;j++;
}
publishingHouse[j] = '\0';
curr = InfoString[i + 1];
i++;
char yearToCast[4];
for (j = 0; (curr != '/')&&(j<4);)
{
yearToCast[j] = curr;
curr = InfoString[i + 1];
i++;j++;
}
yearOfPublishing = atoi(yearToCast);
curr = InfoString[i + 1];
i++;
char pagesToCast[5];
for (j = 0; (curr != '/') && (j<4);)
{
pagesToCast[j] = curr;
curr = InfoString[i + 1];
i++;j++;
}
pagesToCast[j] = '\0';
numOfPages = atoi(pagesToCast);
}
void Book::printInfo()
{
printf("%3d %20s %20s %20s %4d %5d\n",itsNum, author, title, publishingHouse, yearOfPublishing, numOfPages);
}
void Book::printByPublished(char nameQ[MAX_LEN])
{
setlocale(LC_ALL, "RUS");
int len = strlen(publishingHouse);
if (strlen(nameQ) == len)//условие на допуск к сравнению
{
bool mark = true;
for (int i = 0;i < len;i++) mark &= nameQ[i] == publishingHouse[i];//посимвольное сравнение
if (mark) printInfo();
}
}
void Book::printByYear(int yearQ)
{
if (yearQ <= yearOfPublishing) printInfo();
}
void Book::printByAuthor(char nameQ[MAX_LEN])
{
setlocale(LC_ALL, "RUS");
int len = strlen(author);
if (strlen(nameQ) == len)
{
bool mark = true;
for (int i = 0;i < len;i++) mark &= nameQ[i] == author[i];//посимвольное сравнение
if (mark) printInfo();
}
}
//Деструктор
Book::~Book()
{
}
|
/*
BAEKJOON
17143. 낚시왕
1시간 10분 소요
처음에 테스트케이스는 맞지만 시간초과가 났다.
상어의 속력의 범위는 0 ≤ s ≤ 1000이다.
상어 수가 많아질 수록, 속력 수 만큼 한 칸씩 while문으로 이동한다면 1초 안에 해결할 수 없다.
따라서, 현재 위치(제자리)로 돌아오는 때를 무시하고 그 이후의 거리만 while문으로 이동해야 한다.
이동 방향이 위, 아래일 때는 (R-1)*2만큼 이동할 때마다 제자리로 돌아온다.
이동 방향이 왼, 오른쪽일 때는 (C-1)*2만큼 이동할 때마다 제자리로 돌아온다.
따라서, 방향에 맞게 속력을 (R-1)*2 or (C-1)*2을 나눈 나머지값 만큼만 이동시켰다.
그럼 아무리 많이 이동해도 최대 (R-1)*2-1 or (C-1)*2-1 만큼 밖에 이동하지 않기 때문에 시간초과를 해결할 수 있다.
*/
#include <iostream>
#include <vector>
#include <cstring>
#define MAX 101
using namespace std;
struct Fish
{
// s는 속력, d는 이동 방향, z는 크기
int r, c, s, d, z;
bool alive = true;
Fish() {}
Fish(int rr, int cc, int ss, int dd, int zz)
{
r = rr; c = cc; s = ss; d = dd; z = zz;
}
};
int R, C, M, r, c, s, d, z;
int Answer = 0;
int map[MAX][MAX];
vector<Fish> fish;
int dr[5] = {0, -1, 1, 0, 0};
int dc[5] = {0, 0, 0, 1, -1};
void input()
{
cin >> R >> C >> M;
for(int i = 0; i < M; i++)
{
cin >> r >> c >> s >> d >> z;
fish.push_back(Fish(r, c, s, d, z));
}
}
void print()
{
for(int i = 1; i <= R; i++)
{
for(int j = 1; j <= C; j++)
{
if(map[i][j] == -1) cout << '.' << "\t";
else cout << fish[map[i][j]].z << "\t";
}
cout << endl;
}
cout << endl;
}
void put_fish()
{
memset(map, -1, sizeof(map));
for(int i = 0; i < fish.size(); i++)
{
if(fish[i].alive == false) continue;
if(map[fish[i].r][fish[i].c] > -1)
{
int idx = map[fish[i].r][fish[i].c];
if(fish[i].z > fish[idx].z)
{
map[fish[i].r][fish[i].c] = i;
fish[idx].alive = false;
}
else
{
fish[i].alive = false;
}
}
else
{
map[fish[i].r][fish[i].c] = i;
}
}
}
void catch_fish(int t)
{
for(int i = 1; i <= R; i++)
{
if(map[i][t] > -1)
{
fish[map[i][t]].alive = false;
Answer += fish[map[i][t]].z;
return;
}
}
}
int reverse_dir(int d)
{
if(d == 1) return 2;
else if(d == 2) return 1;
else if(d == 3) return 4;
else if(d == 4) return 3;
}
void move_fish()
{
for(int i = 0; i < fish.size(); i++)
{
if(fish[i].alive == false) continue;
int nr = fish[i].r;
int nc = fish[i].c;
int fd = fish[i].d;
int fs = fish[i].s;
if(fish[i].d == 1 || fish[i].d == 2) // 위, 아래
{
fs %= (R-1)*2;
}
else if(fish[i].d == 3 || fish[i].d == 4) // 왼, 오
{
fs %= (C-1)*2;
}
while(fs--)
{
nr += dr[fd];
nc += dc[fd];
if(nr < 1 || nr > R || nc < 1 || nc > C)
{
fd = reverse_dir(fd);
fish[i].d = fd;
nr += dr[fd]*2;
nc += dc[fd]*2;
}
}
fish[i].r = nr;
fish[i].c = nc;
}
}
void solve()
{
for(int t = 1; t <= C; t++)
{
put_fish();
catch_fish(t);
if(t == C)
{
cout << Answer << endl;
return;
}
move_fish();
}
}
int main()
{
input();
solve();
return 0;
}
|
// // ConfigFile.cpp
// // Copyright (c) 2013 - The Foreseeable Future, zhiayang@gmail.com
// // Licensed under the Apache License Version 2.0.
// #include <Kernel.hpp>
// #include <String.hpp>
// #include <StandardIO.hpp>
// #include <SimpleStringMap.hpp>
// #define RAPIDXML_NO_STDLIB
// #define RAPIDXML_NO_EXCEPTIONS
// #include <RapidXML/rapidxml.hpp>
// using Library::string;
// using Library::HashMap;
// namespace Kernel {
// namespace ConfigFile
// {
// void Initialise()
// {
// using Kernel::HardwareAbstraction::Filesystems::VFS::File;
// using Library::LinkedList;
// using namespace Library::StandardIO;
// using namespace rapidxml;
// Kernel::KernelConfigFile = new HashMap<string, string>();
// xml_document<> document;
// File* file = new File("/System/Library/Preferences/CorePreferences.plist");
// uint8_t* buf = new uint8_t[file->FileSize()];
// file->Read(buf);
// document.parse<0>((char*) buf);
// // make sure we're reading a plist.
// assert(Library::String::Compare(document.first_node()->name(), "plist"));
// xml_node<>* plist = document.first_node("plist");
// // read the dict entry.
// xml_node<>* dict = plist->first_node("dict");
// for(xml_node<>* entry = dict->first_node(); entry; entry = entry->next_sibling())
// {
// if(!entry->next_sibling())
// {
// PrintFormatted("Key %s missing value, ignoring...\n", entry->value());
// continue;
// }
// if(!Library::String::Compare(entry->name(), "key"))
// {
// PrintFormatted("Malformed plist, expected <key>...</key> but got <%s> instead\n", entry->name());
// continue;
// }
// string keyval = entry->value();
// string valval = entry->next_sibling()->value();
// // check if we got a boolean.
// if(valval.Length() == 0)
// {
// string valname = entry->next_sibling()->name();
// if(valname == string("true") || valname == string("false"))
// valval = valname;
// else
// {
// PrintFormatted("Malformed plist, expected boolean with either <true/> or <false/> but got <%s> instead\n", valname.CString());
// continue;
// }
// }
// Kernel::KernelConfigFile->Put(string(entry->value()), string(entry->next_sibling()->value()));
// entry = entry->next_sibling();
// }
// }
// int64_t ReadInteger(const char* key)
// {
// string* r = Kernel::KernelConfigFile->get(string(key));
// if(!r)
// return 0;
// else
// {
// return Library::Utility::ConvertToInt(r->CString());
// }
// }
// Library::string* ReadString(const char* key)
// {
// return Kernel::KernelConfigFile->get(string(key));
// }
// bool ReadBoolean(const char* key)
// {
// using Library::string;
// using Library::SimpleStringMap;
// string* r = Kernel::KernelConfigFile->get(string(key));
// if(!r)
// return false;
// else
// {
// string str = *r;
// if(str == string("true") || str == string("1"))
// return true;
// else
// return false;
// }
// }
// }
// }
|
#include <bits/stdc++.h>
using namespace std;
struct Student{//学生结构体,把成绩均初始化为-1,以便输出
string id;
int Gp=-1,Gmid=-1,Gfinal=-1,G=0;
};
int main(){
unordered_map<string,Student>m;//学生id到学生结构体的映射
int P,M,N,score;
scanf("%d%d%d",&P,&M,&N);
string temp;
for(int i=0; i<P; ++i){
cin>>temp>>score;
m[temp].Gp=score;
}
for(int i=0; i<M; ++i){
cin>>temp>>score;
m[temp].Gmid=score;
}
for(int i=0; i<N; ++i){
cin>>temp>>score;
auto&j=m[temp];
j.Gfinal=score;
if(j.Gmid>j.Gfinal)//计算最终成绩
j.G=(int)round(j.Gmid*0.4+j.Gfinal*0.6);
else
j.G=j.Gfinal;
}
vector<Student>v;//存储合格学生的数组
for(auto&i:m)//将合格学生加入数组v中
if((i.second).Gp>=200&&(i.second).G>=60){
i.second.id=i.first;
v.push_back(i.second);
}
sort(v.begin(),v.end(),[](const Student&s1,const Student&s2){//比较函数
if(s1.G!=s2.G)
return s1.G>s2.G;
else
return s1.id<s2.id;
});
for(auto&i:v)
printf("%s %d %d %d %d\n",i.id.c_str(),i.Gp,i.Gmid,i.Gfinal,i.G);
return 0;
}
|
//
// CardTypeHelper.cpp
// demo_ddz
//
// Created by 谢小凡 on 2018/2/8.
//
#include "CardTypeHelper.hpp"
#include <algorithm>
NumMap CardTypeHelper::splitByDepth(const NumVec& src) {
if (src.empty())
return {};
NumMap ret;
int count = 0;
int num = -1;
for (size_t i = 0; i != src.size(); ++i) {
if (num != -1 && num != src[i]) {
ret[count].push_back(num);
count = 0;
}
num = src[i];
count++;
}
// 处理最后一个元素
ret[count].push_back(num);
return ret;
}
NumMap CardTypeHelper::splitByRange(const NumVec& src) {
if (src.empty())
return {};
NumMap ret;
int count = 0;
int num = -1;
for (size_t i = 0; i != src.size(); ++i) {
if (num != src[i])
count = 0;
num = src[i];
count++;
ret[count].push_back(num);
}
return ret;
}
std::vector<NumVec> CardTypeHelper::splitStraight(const NumVec& src,
int min_len,
int limit_number) {
if (src.empty())
return {};
// #1 找到符合要求的最大顺子序列(不同顺子之间不相连)
std::vector<NumVec> longer_vec;
int num = 0; /* vec中不会出现元素0 */
int count = 0;
auto iter = src.begin();
while (iter != src.end() && *iter <= limit_number) {
if (num == (*iter) - 1 || num == 0)
++count;
else {
if (count >= min_len)
longer_vec.push_back(NumVec(iter - count, iter));
count = 1;
}
num = *iter;
++iter;
}
if (count >= min_len)
longer_vec.push_back(NumVec(iter - count, iter));
// #2 按顺子长度拆分最大顺子序列
std::vector<NumVec> ret;
for (auto& vec : longer_vec) {
auto len = vec.size();
while (len >= min_len) {
auto iter = vec.begin();
while (len <= vec.end() - iter) {
ret.push_back(NumVec(iter, iter + len));
++iter;
}
--len;
}
}
// #3 按顺子长度由小到大排序
std::stable_sort(ret.begin(), ret.end(), [](const NumVec& v1, const NumVec& v2){
return v1.size() < v2.size();
});
return ret;
}
CardType CardTypeHelper::identifyCardType(const NumVec& src) {
CardType ret;
bool is_found = false;
auto itentify = [&](const std::vector<CTName>& order_check_vec){
for (auto& name : order_check_vec) {
NumPair pair = CardType::split(name, src);
if (!pair.first.empty()) {
ret = CardType::build(name, pair);
is_found = true;
break;
}
}
};
NumMap map = CardTypeHelper::splitByDepth(src);
if (!is_found && map[4].size() != 0)
itentify({CTName::Bomb, CTName::Four_tt});
else if (!is_found && map[3].size() != 0)
itentify({CTName::Tri, CTName::Tri_t, CTName::Str_Tri, CTName::Str_Tri_t});
else if (!is_found && map[2].size() != 0)
itentify({CTName::Pair, CTName::Str_Pair});
else if (!is_found && map[1].size() != 0)
itentify({CTName::Single, CTName::Rocket, CTName::Str_Single});
return ret;
}
std::vector<NumVec> CardTypeHelper::foundTheSameCTName(const NumVec& src, const CTName& name, int straight, int tail_type, int tail_size) {
std::vector<NumVec> stem_group;
NumMap r_map = CardTypeHelper::splitByRange(src);
NumMap d_map = CardTypeHelper::splitByDepth(src);
bool need_deal_tail = false;
int need_deal_straight = 0;
switch (name) {
case CTName::Undef: break;
case CTName::Single: {
for (int num : d_map[1]) stem_group.push_back(NumVec(1, num));
for (int num : r_map[2]) stem_group.push_back(NumVec(1, num));
}
break;
case CTName::Pair: {
for (int num : d_map[2]) stem_group.push_back(NumVec(2, num));
for (int num : r_map[2]) stem_group.push_back(NumVec(2, num));
}
break;
case CTName::Tri: {
for (int num : d_map[3]) stem_group.push_back(NumVec(3, num));
for (int num : r_map[4]) stem_group.push_back(NumVec(4, num));
}
break;
case CTName::Tri_t: {
for (int num : d_map[3]) stem_group.push_back(NumVec(3, num));
for (int num : r_map[4]) stem_group.push_back(NumVec(4, num));
need_deal_tail = true;
}
break;
case CTName::Four_tt: {
for (int num : d_map[4]) stem_group.push_back(NumVec(4, num));
need_deal_tail = true;
}
break;
case CTName::Str_Single: {
sortByOrder(r_map[1]);
stem_group = CardTypeHelper::splitStraight(r_map[1], straight);
}
break;
case CTName::Str_Pair: {
sortByOrder(r_map[2]);
stem_group = CardTypeHelper::splitStraight(r_map[2], straight);
need_deal_straight = 1;
}
break;
case CTName::Str_Tri: {
sortByOrder(r_map[3]);
stem_group = CardTypeHelper::splitStraight(r_map[3], straight);
need_deal_straight = 2;
}
break;
case CTName::Str_Tri_t: {
sortByOrder(r_map[3]);
stem_group = CardTypeHelper::splitStraight(r_map[3], straight);
need_deal_straight = 2;
need_deal_tail = true;
}
break;
case CTName::Bomb:
for (int num : d_map[4]) stem_group.push_back(NumVec(4, num));
break;
case CTName::Rocket: {
const NumVec& vec = d_map[1];
if (std::find(vec.begin(), vec.end(), 16) != vec.end() &&
std::find(vec.begin(), vec.end(), 17) != vec.end())
stem_group.push_back(NumVec{16, 17});
}
break;
}
// if not found
if (stem_group.empty())
return {};
// deal straight
if (need_deal_straight > 0) {
for (NumVec& vec : stem_group) {
size_t len = vec.size();
for (size_t i = 0; i < need_deal_straight; ++i)
vec.insert(vec.end(), vec.begin(), vec.begin() + len);
}
}
// if doesn't deal tail
if (!need_deal_tail)
return stem_group;
std::vector<NumVec> ret;
// lamad
auto buildTailVec = [&](const NumVec& stem, const NumVec& src){
NumVec ret;
auto iter = src.begin();
while (iter != src.end() && ret.size() < tail_size/tail_type) {
if (countNumVec(stem, *iter) == 0) // 这里意味着像 {33344434} 这类是未定义牌型
ret.push_back(*iter);
iter++;
}
return iter == src.end() ? NumVec() : ret;
};
// 带单
if (tail_type == 1) {
sortByOrder(r_map[1]);
for (NumVec& stem : stem_group) {
NumVec vec = buildTailVec(stem, r_map[1]);
if (!vec.empty()) {
vec.insert(vec.end(), stem.begin(), stem.end());
ret.push_back(vec);
}
}
}
// 带对
if (tail_type == 2) {
sortByOrder(r_map[2]);
for (NumVec& stem : stem_group) {
NumVec vec = buildTailVec(stem, r_map[2]);
if (!vec.empty()) {
vec.insert(vec.end(), vec.begin(), vec.end());
vec.insert(vec.end(), stem.begin(), stem.end());
ret.push_back(vec);
}
}
}
// finish
return ret;
}
std::vector<NumVec> CardTypeHelper::foundGreaterCardType(const NumVec& src, const CardType& target) {
const CTName& name = target.getCTName();
const CTLevel lv = CardType::getLevel(name);
std::vector<NumVec> ret;
// nobody can beat "Rocket"
if (lv == CTLevel::L5)
return {};
if (lv == CTLevel::L3) {
std::vector<NumVec> vec_1 = foundTheSameCTName(src, CTName::Bomb);
for (NumVec vec : vec_1) {
sortByOrder(vec);
CardType type = CardTypeHelper::identifyCardType(vec);
if (CardType::compare(type, target) == CTCmpRes::Greater)
ret.push_back(vec);
}
std::vector<NumVec> vec_2 = foundTheSameCTName(src, CTName::Rocket);
if (!vec_2.empty())
ret.push_back(vec_2[0]);
}
if (lv == CTLevel::L1) {
std::vector<NumVec> vec_1 = foundTheSameCTName(src, name, target.getStrLength(), target.getTailType(), target.getTailVec().size());
for (NumVec vec : vec_1) {
sortByOrder(vec);
CardType type = CardTypeHelper::identifyCardType(vec);
if (CardType::compare(type, target) == CTCmpRes::Greater)
ret.push_back(vec);
}
std::vector<NumVec> vec_2 = foundTheSameCTName(src, CTName::Bomb);
for (NumVec vec : vec_2) ret.push_back(vec);
std::vector<NumVec> vec_3 = foundTheSameCTName(src, CTName::Rocket);
for (NumVec vec : vec_3) ret.push_back(vec);
}
return ret;
}
std::vector<NumVec> CardTypeHelper::buildCardType(const NumVec& src) {
// 不考虑带牌
std::vector<NumVec> ret;
auto d_map = CardTypeHelper::splitByDepth(src);
auto r_map = CardTypeHelper::splitByRange(src);
// 单张、对子、三张
const auto& d1_vec = d_map[1];
const auto& d2_vec = d_map[2];
const auto& d3_vec = d_map[3];
auto isExist = [](const int& num, const NumVec& src){
return std::find(src.begin(), src.end(), num) != src.end();
};
for (auto num : r_map[1]) {
if (isExist(num, d1_vec)) ret.push_back(NumVec(1, num));
else if (isExist(num, d2_vec)) ret.push_back(NumVec(2, num));
else if (isExist(num, d3_vec)) ret.push_back(NumVec(3, num));
}
// 炸弹
for (auto num : r_map[4]) ret.push_back(NumVec(4, num));
// 火箭
if (std::find(d1_vec.begin(), d1_vec.end(), 16) != d1_vec.end() &&
std::find(d1_vec.begin(), d1_vec.end(), 17) != d1_vec.end())
ret.push_back({16, 17});
return ret;
}
std::vector<NumVec> CardTypeHelper::buildCardType(const NumVec& src, const CardType& target) {
return CardTypeHelper::foundGreaterCardType(src, target);
}
|
/*=========================================================================
Program: Visualization Toolkit
Module: vtkLineSource.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/**
* @class vtkLineSource
* @brief create a line defined by two end points
*
* vtkLineSource is a source object that creates a polyline defined by
* two endpoints or a collection of connected line segments. To define the line
* by end points, use `SetPoint1` and `SetPoint2` methods. To define a broken
* line comprising of multiple line segments, use `SetPoints` to provide the
* corner points that for the line.
*
* Intermediate points within line segment (when specifying end points alone) or
* each of the individual line segments (when specifying broken line) can be
* specified in two ways. First, when `UseRegularRefinement` is true (default),
* the `Resolution` is used to determine how many intermediate points to add
* using regular refinement. Thus, if `Resolution` is set to 1, a mid point will
* be added for each of the line segments resulting in a line with 3 points: the
* two end points and the mid point. Second, when `UseRegularRefinement` is
* false, refinement ratios for points per segment are specified using
* `SetRefinementRatio` and `SetNumberOfRefinementRatios`. To generate same
* points as `Resolution` set to 1, the refinement ratios will be `[0, 0.5,
* 1.0]`. To add the end points of the line segment `0.0` and `1.0` must be
* included in the collection of refinement ratios.
*
* @section ChangesVTK9 Changes in VTK 9.0
*
* Prior to VTK 9.0, when broken line was being generated, the texture
* coordinates for each of the individual breaks in the line ranged from [0.0,
* 1.0]. This has been changed to generate texture coordinates in the range
* [0.0, 1.0] over the entire output line irrespective of whether the line was
* generated by simply specifying the end points or multiple line segments.
*
* @par Thanks:
* This class was extended by Philippe Pebay, Kitware SAS 2011, to support
* broken lines as well as simple lines.
*/
#ifndef vtkLineSource_h
#define vtkLineSource_h
#include "vtkFiltersSourcesModule.h" // For export macro
#include "vtkPolyDataAlgorithm.h"
#include <vector> // for std::vector
class vtkPoints;
class VTKFILTERSSOURCES_EXPORT vtkLineSource : public vtkPolyDataAlgorithm
{
public:
static vtkLineSource* New();
vtkTypeMacro(vtkLineSource, vtkPolyDataAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent) override;
//@{
/**
* Set position of first end point.
*/
vtkSetVector3Macro(Point1, double);
vtkGetVectorMacro(Point1, double, 3);
void SetPoint1(float[3]);
//@}
//@{
/**
* Set position of other end point.
*/
vtkSetVector3Macro(Point2, double);
vtkGetVectorMacro(Point2, double, 3);
void SetPoint2(float[3]);
//@}
//@{
/**
* Set/Get how the line segment is to be refined. One can choose to add points
* at regular intervals per segment (defined using `Resolution`) or explicit
* locations (defined using `SetRefinementRatio`). Default is true i.e
* `Resolution` will be used to determine placement of points within each line
* segment.
*/
vtkSetMacro(UseRegularRefinement, bool);
vtkGetMacro(UseRegularRefinement, bool);
vtkBooleanMacro(UseRegularRefinement, bool);
//@}
//@{
/**
* Divide line into Resolution number of pieces. This is used when
* `UseRegularRefinement` is true.
*/
vtkSetClampMacro(Resolution, int, 1, VTK_INT_MAX);
vtkGetMacro(Resolution, int);
//@}
//@{
/**
* API for setting/getting refinement ratios for points added to the line
* segment. The ratio is in the range `[0.0, 1.0]` where 0.0 is the start of
* the line segment and 1.0 is the end. When generating broken lines i.e.
* using `SetPoints`, this specifies refinement points for each of the
* individual line segment. Note that `0.0` and `1.0` must be explicitly
* included to generate a point and the start and/or end of the line segment.
* This is used only when `UseRegularRefinement` is false.
*/
void SetNumberOfRefinementRatios(int);
void SetRefinementRatio(int index, double value);
int GetNumberOfRefinementRatios();
double GetRefinementRatio(int index);
//@}
//@{
/**
* Set/Get the list of points defining a broken line
*/
virtual void SetPoints(vtkPoints*);
vtkGetObjectMacro(Points, vtkPoints);
//@}
//@{
/**
* Set/get the desired precision for the output points.
* vtkAlgorithm::SINGLE_PRECISION - Output single-precision floating point.
* vtkAlgorithm::DOUBLE_PRECISION - Output double-precision floating point.
*/
vtkSetMacro(OutputPointsPrecision, int);
vtkGetMacro(OutputPointsPrecision, int);
//@}
protected:
vtkLineSource(int res = 1);
~vtkLineSource() override;
int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
double Point1[3];
double Point2[3];
int Resolution;
int OutputPointsPrecision;
bool UseRegularRefinement;
std::vector<double> RefinementRatios;
/**
* The list of points defining a broken line
* NB: The Point1/Point2 definition of a single line segment is used by default
*/
vtkPoints* Points;
private:
vtkLineSource(const vtkLineSource&) = delete;
void operator=(const vtkLineSource&) = delete;
};
#endif
|
#ifndef SHADERS_HPP
#define SHADERS_HPP
namespace shaders {
static const char *vertexShaderSource =
"attribute highp vec4 posAttr;\n"
"attribute lowp vec4 colAttr;\n"
"varying lowp vec4 col;\n"
"uniform highp mat4 matrix;\n"
"void main() {\n"
" col = colAttr;\n"
" gl_Position = matrix * posAttr;\n"
"}\n";
static const char *fragmentShaderSource =
"varying lowp vec4 col;\n"
"void main() {\n"
" gl_FragColor = col;\n"
"}\n";
}
#endif // SHADERS_HPP
|
//! Bismillahi-Rahamanirahim.
/** ========================================**
** @Author: Md. Abu Farhad ( RUET, CSE'15)
** @Category:
/** ========================================**/
#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
#define ll long long
#define fr(i,n) for(int i=0;i<n;i++)
#define fr1(i,n) for(ll i=1;i<=n;i++)
#define frrev(i,a,b) for(int i=a;i>=b;i--)
#define scl(x) scanf("%lld",&x)
#define pfl(x) printf("%lld\n",x)
#define ps printf(" ")
#define pn printf("\n")
#define sortD(a) sort(a,a+n,greater<int>())
#define sortA(a) sort(a,a+n)
#define pb(x) push_back(x)
#define ppb(x) pop_back(x)
#define pf(x) push_front(x)
#define ppf(x) pop_front(x)
#define MOD 10000007
#define Pi 2*acos(0.0)
#define ms(a,b) memset(a, b, sizeof(a))
#define scc(x) scanf("%[^\n]s",x); // For charecter string input , It will read all charecter untill Enter new line .
#define TEST_CASE(t) for(int z=1;z<=t;z++)
#define PRINT_CASE printf("Case %d: ",z)
#define infinity (1<<28)
#define EPS 10E-10
///string charecter frequency --->
// for(i=0;i<s.length();i++) { cnt[s[i]-'a']++; }
#define mx 1000005
bool prime[mx];
ll p[mx];
void sieve()
{
prime[0]=prime[1]=1;
for(ll i=4; i<=mx; i+=2)prime[i]=1;
for(ll i=3; i*i<=mx; i+=2)
{
if( !prime[i] && i<=sqrt(mx) )
{
for(ll j=i*i; j<=mx; j+=2*i) prime[j]=1;
}
}
}
int main()
{
ll m,n,p,l,i;
while(cin>>n)
{
sieve();
if(n<3)cout<<"1"<<endl;
else cout<<"2"<<endl;
for(i=2; i<=n+1; i++)
{
if(prime[i]) cout<<"2 ";
else cout<<"1 ";
}
cout<<endl;
}
}
|
// Copyright 2017-2018 Apex.AI, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/// \file
/// \brief This file contains definition of Apex.OS string strict class
#ifndef STRING__STRING_STRICT_HPP_
#define STRING__STRING_STRICT_HPP_
#include <apexutils/apexdef.h>
#include <apexutils/apex_string.h>
#include <apex_containers/visibility_control.hpp>
#include <stdexcept>
#include <cstring>
#include <algorithm>
#include <istream>
#include <ostream>
#include <string>
namespace apex
{
/// \class StringStrict
/// \brief StringStrict defines a string class with constant memory footprint.
/// The internal buffer size is defined by STRING_BUFFER_SIZE template parameter.
/// The maximum length for a string is (STRING_BUFFER_SIZE - 1ULL).
/// One character is reserved for terminating zero.
/// \tparam STRING_BUFFER_SIZE defines the size of static string including its terminating zero.
template<::size64_t STRING_BUFFER_SIZE>
class StringStrict : public BaseString<STRING_BUFFER_SIZE>
{
public:
using iterator =
typename apex::template BaseString<STRING_BUFFER_SIZE>::template abs_iterator<::char8_t>;
using const_iterator = typename
apex::template BaseString<STRING_BUFFER_SIZE>::template abs_iterator<const ::char8_t>;
/// \brief default constructor
StringStrict(void)
: apex::BaseString<STRING_BUFFER_SIZE>()
{
}
/// \brief fill constructor
/// Fills the string with n consecutive copies of character c.
/// param[in] n is number of characters to copy.
/// If n grater than the maximum capacity, std::overflow_error is thrown
/// If n is npos, only maximum capacity is filled
/// param[in] c is number of characters to copy.
/// \throw std::overflow_error
StringStrict(const ::size64_t n, const ::char8_t c)
: StringStrict()
{
if ((n != StringStrict::npos) && (n > this->capacity())) {
throw std::overflow_error("n > this->capacity()");
}
const ::size64_t chars_to_fill = (n < this->capacity()) ? n : this->capacity();
// Ignore unneeded returned pointer to destination
(void)memset(this->m_string, c, chars_to_fill);
}
/// \brief operator+=
/// \param[in] src is the source string to add
/// \return return the result of concatenation with the source string
/// \throw std::invalid_argument
/// \throw std::overflow_error
StringStrict<STRING_BUFFER_SIZE> & operator+=(const ::char8_t * const src)
{
if (src != nullptr) {
const ::size64_t my_length = this->length();
const ::size64_t their_length = ::strnlen(src, this->get_buffer_size());
if ((my_length + their_length + 1U) <= this->get_buffer_size()) {
// Ignore returned self reference
(void)::memmove(&(this->m_string[0U]) + my_length, src, their_length);
this->m_string[my_length + their_length] = '\0';
} else {
throw std::overflow_error("Can't add too large string");
}
} else {
throw std::invalid_argument("Can't add NULL string");
}
return *this;
}
/// \brief operator += chr
/// \param[in] chr is the character to add
/// \return return the result of concatenation with the character
/// \throw std::overflow_error
StringStrict<STRING_BUFFER_SIZE> & operator+=(const ::char8_t chr)
{
const ::size64_t my_length = this->length();
if ((my_length + 2U) <= this->get_buffer_size()) {
this->m_string[my_length] = chr;
this->m_string[my_length + 1U] = '\0';
} else {
throw std::overflow_error("Can't add too large string");
}
return *this;
}
/// \brief constructor from an input string
/// \param[in] str is the source string
/// \throw std::invalid_argument
/// \throw std::overflow_error
StringStrict(const ::char8_t * const str) // NOLINT: constructors should be explicit, but
: StringStrict() // we want to have ability to convert a classic char pointer to apex::string
{
*this += str;
}
/// \brief constructor from an Apex.OS string
/// \param[in] str is initializing string
/// \throw std::invalid_argument
/// \throw std::overflow_error
explicit StringStrict(const ::apex_string_t & str)
: StringStrict(str.c_str)
{
}
/// \brief copy constructor
/// \param[in] src is initializing Apex.OS string
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t LEN>
StringStrict(const apex::BaseString<LEN> & src) // NOLINT: constructors should be explicit, but
: StringStrict(src.c_str()) // we want to have ability to assign another string
{
}
/// \brief copy constructor
/// See MISRA C++:2008 14-5-2
/// \param[in] src is initializing Apex.OS string
/// \throw std::invalid_argument
/// \throw std::overflow_error
explicit StringStrict(const BaseString<STRING_BUFFER_SIZE> & src)
: StringStrict(src.c_str())
{
}
/////////////////////////////////////////////////////////////////////////////
// Addition
/// \brief operator+
/// \param[in] rhs is the right hand addend
/// \return the result of concatenation with right hand addend
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t LEN>
const StringStrict<STRING_BUFFER_SIZE + LEN> operator+(const StringStrict<LEN> & rhs) const
{
StringStrict<STRING_BUFFER_SIZE + LEN> retval(*this);
retval += rhs.c_str();
return retval;
}
/// \brief operator+
/// \param[in] rhs is the right hand addend
/// \return the result of concatenation with right hand addend
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t LEN>
auto
operator+(const char (& rhs)[LEN]) const noexcept
{
apex::StringStrict<STRING_BUFFER_SIZE + LEN> retval(*this);
retval += rhs;
return retval;
}
/// \brief operator+
const apex::StringStrict<STRING_BUFFER_SIZE + APEX_STRING_SIZE>
operator+(const ::apex_string_t & rhs) const
{
StringStrict<STRING_BUFFER_SIZE + APEX_STRING_SIZE> retval(*this);
retval += rhs.c_str;
return retval;
}
/////////////////////////////////////////////////////////////////////////////
// Increments
/// \brief operator+=
/// \param[in] rhs is the right hand addend
/// \return the result of concatenation with right hand addend
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t LEN>
StringStrict & operator+=(const StringStrict<LEN> & rhs)
{
*this += rhs.c_str();
return *this;
}
/// \brief operator+=
/// \param[in] src is addend strng
/// \return result of concatenation with addend string
/// \throw std::invalid_argument
/// \throw std::overflow_error
StringStrict<STRING_BUFFER_SIZE> & operator+=(const apex_string_t & src)
{
*this += src.c_str;
return *this;
}
/////////////////////////////////////////////////////////////////////////////
// Assignments
/// \brief Assignment operator.
/// See MISRA C++:2008 14-5-3
/// \param[in] rhs is the source initializer
/// \return return final string initialized with the source initializer
/// \throw std::invalid_argument
/// \throw std::overflow_error
StringStrict<STRING_BUFFER_SIZE> & operator=(const BaseString<STRING_BUFFER_SIZE> & rhs)
{
// Ignore unneeded pointer to destination
(void)::memset(&(this->m_string[0U]), 0, this->get_buffer_size());
*this += rhs.c_str();
return *this;
}
/// \brief Assignment operator
/// \param[in] rhs is the source initializer
/// \return return final string initialized with the source initializer
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t LEN>
StringStrict<STRING_BUFFER_SIZE> & operator=(const BaseString<LEN> & rhs)
{
// Ignore unneeded pointer to destination
(void)::memset(&(this->m_string[0U]), 0, this->get_buffer_size());
*this += rhs.c_str();
return *this;
}
/// \brief Assignment operator
/// \param[in] src is the source initializer
/// \return return final string initialized with the source initializer
/// \throw std::invalid_argument
/// \throw std::overflow_error
StringStrict<STRING_BUFFER_SIZE> & operator=(const char8_t * const src)
{
// Ignore unneeded pointer to destination
(void)::memset(&(this->m_string[0U]), 0, this->get_buffer_size());
*this += src;
return *this;
}
/// \brief Assignment operator
/// \param[in] src is the source initializer
/// \return return final string initialized with the source initializer
/// \throw std::invalid_argument
/// \throw std::overflow_error
StringStrict<STRING_BUFFER_SIZE> & operator=(const apex_string_t & src)
{
// Ignore unneeded pointer to destination
(void)::memset(&(this->m_string[0U]), 0, this->get_buffer_size());
*this += src.c_str;
return *this;
}
/// \brief Convert 32-bit unsigned integer in base 10 into an Apex.OS string.
/// The method will throw std::overflow_error exception if the string's capacity is insufficient.
/// \param[in] value is input 32-bit unsigned integer value to convert
/// \return return Apex.OS string that contains text representation of the input value in base 10.
/// \throw std::overflow_error
static apex::StringStrict<STRING_BUFFER_SIZE> to_string(const uint32_t value);
/// \brief Retrieves the begin iterator for this string
/// \return the begin iterator
iterator begin() noexcept
{
return iterator(&(BaseString<STRING_BUFFER_SIZE>::m_string[0U]));
}
/// \brief Retrieves the end iterator for this string
/// \return the end iterator
iterator end() noexcept
{
return iterator(
&(BaseString<STRING_BUFFER_SIZE>::m_string[0U]) + BaseString<STRING_BUFFER_SIZE>::size());
}
/// \brief Retrieves the begin constant iterator for this string
/// \return the begin iterator
const_iterator cbegin() const noexcept
{
return const_iterator(&(BaseString<STRING_BUFFER_SIZE>::m_string[0U]));
}
/// \brief Retrieves the end constant iterator for this string
/// \return the end iterator
const_iterator cend() const noexcept
{
return const_iterator(
&(BaseString<STRING_BUFFER_SIZE>::m_string[0U]) +
BaseString<STRING_BUFFER_SIZE>::size());
}
};
/// \brief define `apex_string_t + StringStrict` operator
/// \param[in] lhs is the left hand addend
/// \param[in] rhs is the right hand addend
/// \return return the result of lhs and rhs concatenation, possibly trimmed to the strings max size
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t LEN>
inline apex::StringStrict<APEX_STRING_SIZE + LEN>
operator+(const ::apex_string_t & lhs, const apex::StringStrict<LEN> & rhs)
{
StringStrict<APEX_STRING_SIZE + LEN> retval(lhs.c_str);
retval += rhs.c_str();
return retval;
}
/// \brief define `char[] + StringStrict` operator
/// \param[in] lhs is the left hand addend
/// \param[in] rhs is the right hand addend
/// \return return the result of lhs and rhs concatenation, possibly trimmed to the strings max size
/// \throw std::invalid_argument
/// \throw std::overflow_error
template<::size64_t CSTR_LEN, ::size64_t APEX_STRING_LEN>
inline auto
operator+(const char (& lhs)[CSTR_LEN], const apex::StringStrict<APEX_STRING_LEN> & rhs)
{
StringStrict<CSTR_LEN + APEX_STRING_LEN> retval(lhs);
retval += rhs;
return retval;
}
/// \typedef string_strict8_t
/// \brief string_strict8_t defines an 8 bytes string_strict
using string_strict8_t = StringStrict<8U>;
static_assert(sizeof(string_strict8_t) == 8U, "sizeof(string_strict8_t) != 8U");
/// \typedef string_strict16_t
/// \brief string_strict16_t defines a 16 bytes string_strict
using string_strict16_t = StringStrict<16U>;
static_assert(sizeof(string_strict16_t) == 16U, "sizeof(string_strict16_t) != 16U");
/// \typedef string_strict32_t
/// \brief string_strict32_t defines a 32 bytes string_strict
using string_strict32_t = StringStrict<32U>;
static_assert(sizeof(string_strict32_t) == 32U, "sizeof(string_strict32_t) != 32U");
/// \typedef string_strict64_t
/// \brief string_strict64_t defines a 64 bytes string_strict
using string_strict64_t = StringStrict<64U>;
static_assert(sizeof(string_strict64_t) == 64U, "sizeof(string_strict64_t) != 64U");
/// \typedef string_strict128_t
/// \brief string_strict128_t defines a 128 bytes string_strict
using string_strict128_t = StringStrict<128U>;
static_assert(sizeof(string_strict128_t) == 128U, "sizeof(string_strict8_t) != 128U");
/// \typedef string_strict256_t
/// \brief string_strict256_t defines a 256 bytes string_strict
using string_strict256_t = StringStrict<APEX_STRING_SIZE>;
static_assert(sizeof(string_strict256_t) == 256U, "sizeof(string_strict256_t) != 256U");
/// \brief this redefined operator allows streaming to an apex string to a standard stream.
/// \tparam STRING_BUFFER_SIZE defines the size of static string including its terminating zero.
/// \param[in, out] in_stream is input stream
/// \param[in, out] str is a string to stream from
/// \return return reference to the input stream
template<size64_t STRING_BUFFER_SIZE>
typename ::std::istream & operator>>(
std::istream & in_stream,
apex::StringStrict<STRING_BUFFER_SIZE> & str)
{
typename apex::StringStrict<STRING_BUFFER_SIZE>::iterator it = str.begin();
return in_stream.getline(&(it[0U]), str.get_buffer_size());
}
} // namespace apex
namespace std
{
template<size64_t SizeN>
struct hash<apex::StringStrict<SizeN>>: std::hash<apex::BaseString<SizeN>> {};
} // namespace std
#endif // STRING__STRING_STRICT_HPP_
|
/*
* Copyright 2016-2017 Flatiron Institute, Simons Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MVCONTEXT_H
#define MVCONTEXT_H
#include "clustermerge.h"
#include <QJsonObject>
#include <QMap>
#include <QObject>
#include <diskreadmda32.h>
#include "mvutils.h"
#include "diskreadmda.h"
class MVContext;
class ClusterVisibilityRule {
public:
ClusterVisibilityRule();
ClusterVisibilityRule(const ClusterVisibilityRule& other);
virtual ~ClusterVisibilityRule();
void operator=(const ClusterVisibilityRule& other);
bool operator==(const ClusterVisibilityRule& other) const;
bool isVisible(const MVContext* context, int cluster_num) const;
QJsonObject toJsonObject() const;
static ClusterVisibilityRule fromJsonObject(const QJsonObject& X);
QSet<QString> view_tags;
bool view_all_tagged = true;
bool view_all_untagged = true;
bool hide_rejected = true;
bool use_subset = false;
QSet<int> subset;
private:
void copy_from(const ClusterVisibilityRule& other);
};
struct ClusterPair {
ClusterPair(int k1 = 0, int k2 = 0);
ClusterPair(const ClusterPair& other);
void set(int k1, int k2);
int k1() const;
int k2() const;
void operator=(const ClusterPair& other);
bool operator==(const ClusterPair& other) const;
bool operator<(const ClusterPair& other) const;
QString toString() const;
static ClusterPair fromString(const QString& str);
private:
int m_k1 = 0, m_k2 = 0;
};
uint qHash(const ClusterPair& pair);
struct ElectrodeGeometry {
QList<QVector<double> > coordinates;
QJsonObject toJsonObject() const;
bool operator==(const ElectrodeGeometry& other);
static ElectrodeGeometry fromJsonObject(const QJsonObject& obj);
static ElectrodeGeometry loadFromGeomFile(const QString& path);
};
#include "mvabstractcontext.h"
#include "mvmisc.h"
class MVContextPrivate;
class MVContext : public MVAbstractContext {
Q_OBJECT
public:
friend class MVContextPrivate;
MVContext();
virtual ~MVContext();
void clear();
//old
void setFromMVFileObject(QJsonObject obj);
QJsonObject toMVFileObject() const;
void setFromMV2FileObject(QJsonObject obj) Q_DECL_OVERRIDE;
QJsonObject toMV2FileObject() const Q_DECL_OVERRIDE;
/////////////////////////////////////////////////
ClusterMerge clusterMerge() const;
bool viewMerged() const;
void setViewMerged(bool val);
/////////////////////////////////////////////////
QJsonObject clusterAttributes(int num) const;
QMap<int, QJsonObject> allClusterAttributes() const;
QList<int> clusterAttributesKeys() const;
void setClusterAttributes(int num, const QJsonObject& obj);
void setAllClusterAttributes(const QMap<int, QJsonObject>& X);
QSet<QString> clusterTags(int num) const; //part of attributes
QList<QString> clusterTagsList(int num) const;
QSet<QString> allClusterTags() const;
void setClusterTags(int num, const QSet<QString>& tags); //part of attributes
/////////////////////////////////////////////////
QList<int> clusterOrder(int max_K = 0) const; //max_K is used in case the cluster order is empty, in which case it will return 1,2,...,max_K
QString clusterOrderScoresName() const;
QList<double> clusterOrderScores() const;
void setClusterOrderScores(QString scores_name, const QList<double>& scores);
/////////////////////////////////////////////////
QJsonObject clusterPairAttributes(const ClusterPair& pair) const;
QList<ClusterPair> clusterPairAttributesKeys() const;
void setClusterPairAttributes(const ClusterPair& pair, const QJsonObject& obj);
QSet<QString> clusterPairTags(const ClusterPair& pair) const; //part of attributes
QList<QString> clusterPairTagsList(const ClusterPair& pair) const;
QSet<QString> allClusterPairTags() const;
void setClusterPairTags(const ClusterPair& pair, const QSet<QString>& tags); //part of attributes
/////////////////////////////////////////////////
ClusterVisibilityRule clusterVisibilityRule() const;
QList<int> visibleClusters(int Kmax) const;
bool clusterIsVisible(int k) const;
void setClusterVisibilityRule(const ClusterVisibilityRule& rule);
QList<int> clustersToForceShow() const;
void setClustersToForceShow(const QList<int>& list);
/////////////////////////////////////////////////
QList<int> visibleChannels() const; //1-based indexing
void setVisibleChannels(const QList<int>& channels);
/////////////////////////////////////////////////
ElectrodeGeometry electrodeGeometry() const;
void setElectrodeGeometry(const ElectrodeGeometry& geom);
void loadClusterMetricsFromFile(QString csv_or_json_file_path);
void loadClusterPairMetricsFromFile(QString csv_file_path);
QJsonObject getClusterMetricsObject();
/////////////////////////////////////////////////
QSet<int> clustersSubset() const;
void setClustersSubset(const QSet<int>& clusters_subset);
/////////////////////////////////////////////////
MVEvent currentEvent() const;
int currentCluster() const;
const QList<int> &selectedClusters() const;
QString selectedClustersRangeText() const;
double currentTimepoint() const;
MVRange currentTimeRange() const;
void setCurrentEvent(const MVEvent& evt);
void setCurrentCluster(int k);
void setSelectedClusters(const QList<int>& ks);
void setCurrentTimepoint(double tp);
void setCurrentTimeRange(const MVRange& range);
void clickCluster(int k, Qt::KeyboardModifiers modifiers);
/////////////////////////////////////////////////
QSet<ClusterPair> selectedClusterPairs() const;
void setSelectedClusterPairs(const QSet<ClusterPair>& pairs);
void clickClusterPair(const ClusterPair& pair, Qt::KeyboardModifiers modifiers);
/////////////////////////////////////////////////
QColor clusterColor(int k) const;
QColor channelColor(int m) const;
QColor color(QString name, QColor default_color = Qt::black) const;
QMap<QString, QColor> colors() const;
QList<QColor> channelColors() const;
QList<QColor> clusterColors() const;
void setClusterColors(const QList<QColor>& colors);
void setChannelColors(const QList<QColor>& colors);
void setColors(const QMap<QString, QColor>& colors);
/////////////////////////////////////////////////
DiskReadMda32 currentTimeseries() const;
DiskReadMda32 timeseries(QString name) const;
QString currentTimeseriesName() const;
QStringList timeseriesNames() const;
void addTimeseries(QString name, DiskReadMda32 timeseries);
void setCurrentTimeseriesName(QString name);
/////////////////////////////////////////////////
DiskReadMda firings();
void setFirings(const DiskReadMda& F);
int K();
/////////////////////////////////////////////////
// these should be set once at beginning
double sampleRate() const;
void setSampleRate(double sample_rate);
QString mlProxyUrl() const;
void setMLProxyUrl(QString url);
/////////////////////////////////////////////////
void copySettingsFrom(MVContext* other);
/////////////////////////////////////////////////
QMap<QString, QJsonObject> allPrvObjects();
signals:
void currentTimeseriesChanged();
void timeseriesNamesChanged();
void firingsChanged();
void filteredFiringsChanged();
void clusterMergeChanged();
void clusterAttributesChanged(int cluster_number);
void currentEventChanged();
void currentClusterChanged();
void selectedClustersChanged();
void currentTimepointChanged();
void currentTimeRangeChanged();
void clusterVisibilityChanged();
void selectedClusterPairsChanged();
void clusterPairAttributesChanged(ClusterPair pair);
void electrodeGeometryChanged();
void viewMergedChanged();
void visibleChannelsChanged();
void clusterOrderChanged();
void clusterColorsChanged(const QList<QColor>&);
private slots:
void slot_firings_subset_calculator_finished();
private:
MVContextPrivate* d;
};
#endif // MVCONTEXT_H
|
/**
树状数组模板:
MAX_N 范围
lowbit(x) 返回低位
add(n,val) 位置n加上val
query(int n) 返回从1到n的和
切记从 1 开始使用
Author:赵宏宇
**/
const int MAX_N = 10000;
int a[MAX_N];
int c[MAX_N];
int lowbit(int x){ //返回低位1
return x&(-x);
}
void add(int n,int val){ //增加值!
while(n<=MAX_N){
c[n]+= val;
n+=lowbit(n);
}
}
int query(int n){
int ans = 0;
while(n>0){
ans+=c[n];
n-=lowbit(n);
}
return ans;
}
|
#include <bits/stdc++.h>
using namespace std;
int main(){
cout << 1000 << " LRLRLRLRLRLLRLRRLRLRLLRLR";
for (int i=0; i<1000; i++){
for (int j=0; j<1000; j++)
cout << '.';
cout << endl;
}
}
|
class Solution {
public:
bool searchMatrix(vector<vector<int>>& matrix, int target) {
if(matrix.empty())
return false;
int rows = matrix.size(), cols = matrix[0].size();
int a = rows - 1, b = 0;
while(a >= 0 && b < cols)
{
if(matrix[a][b] < target)
b++;
else if(matrix[a][b] > target)
a--;
else
return true;
}
return false;
}
};
|
#pragma once
#include "./ReaderWriter.h"
#include <string>
class BufferedReaderWriter {
/// la taille du buffer
static const int TAILLE_BUFF=500;
/// l'outil de lecture interne
ReaderWriter rw;
/// debut de ce qu'il reste à lire (si une lecture a déjà eu lieu sans vider le buffer et
/// qu'on vaut éviter de déplacer les données
int deb;
/// fin de ce qui reste à lire
int fin;
/// le buffer
std::vector<char> buf;
/// le fd est-il valide
bool valid;
/**
* @brief fonction utilitaire de lecture du buffer
* @param deja : à partir de quel caractère doit-t-on considérer la lecture.
* @return false si la socke test fermée
*
* cette fonction retourne imédiatement si le buffer contient plus de d'octet que déjà. Sinon, il appel la lecture sur le fd et tente de compléter le buffer
*/
bool _intern_complete_buffer(int deja=0);
/**
* @brief fonction utilitaire de nettoyage du buffer
* @param nboctet : le nombre d'octet à retirer
*
*/
void _intern_retire_buffer(int nboctet);
public:
/**
* @brief Constructeur à partir d'un file descriptor.
* initialise le buffer
*/
BufferedReaderWriter(int fd);
/**
* @brief Destructeur il fermera automatiquement le fd
*/
~BufferedReaderWriter();
/**
* @brief j'interdit la copie normale car un fd bufferisé ne doit pas être
* partagé
*/
BufferedReaderWriter(const BufferedReaderWriter &brw) = delete;
/**
* @brief j'interdit la copie normale car un fd bufferisé ne doit pas être
* partagé
*/
BufferedReaderWriter &operator=(const BufferedReaderWriter &brw) = delete;
/**
* @brief fermeture du flux
*/
void close();
/**
* @brief récupération de donnée
* @return un vector avec les données lues
*
* Cette fonction retourne soit les données du buffer soit fait une
* requète sur le fd sous-jascent (ce qui peut être blocant).
*/
std::vector<char> read();
/**
* @brief récupération d'un nombre de données connu
* @param len : le nombre d'octets attendus
* @param wait : doit-t-on attendre toutes les données ou s'arréter
* dès qu'une partie des donnés st arrivée.
* @return le vector des données lues
*
* cette fonction fait toujours une lecture sur le fd interne.
*/
std::vector<char> read_all(int len);
/**
* @brief récupération dans un tableau de char
* @param buff : le tableau de données à remplir, il doit avoir
* une taille suffisante
* @param offset : où commencer le remplissage
* @param len : le nombre d'octets attendus
* @param wait : doit-t-on attendre toutes les données ou s'arréter
* dès qu'une partie des données est arrivée.
* @return le nombre de données lues (0 si la socket est fermé ou
* le fichié est terminé).
*
* cette fonction fait toujours une lecture sur le fd interne.
*/
int read_data(char *buff, int len, bool wait=true);
/**
* @brief récupération jusqu'à un fanion ou la fermeture
* @param end : le caractère attendu (il est concervé dans le tableau lu)
* @return le vector des données lues
*
* Cette fonction renvoie les données lues jusqu'au fanion. Le tableau
* renvoyé contien le fanion sauf si la fonction c'est terminée sur la fin
* du fd sous-jascent. Dans ce cas la fonction renvoie les données. Si le
* tableau rendu est de taille 0, c'est que le fd est fermé.
*/
std::vector<char> read_until(char end);
/**
* @brief récupération jusqu'à un fanion sous la forme de chaine de
* caractères
* @param end : le caractère attendu (il est concervé dans le tableau
* lu sauf si c'est '\0')
* @return la chaine des données lues
*
* Cette fonction renvoie les données lues jusqu'au fanion. Le tableau
* renvoyé contien le fanion sauf si la fonction c'est terminée sur la fin
* du fd sous-jascent. Dans ce cas la fonction renvoie les données.
* Si le tableau rendu est de taille 0, c'est que le fd est fermé.
*/
std::string read_line(char end = '\n');
/**
* @brief test s'il y a qqchose à lire
* @return true s'il y a des octets à lire, false sinon
*/
bool test_read();
/**
* @brief Envoie/Écrit des données sur le flux
* @param data : les données
* @param offset, len : le début et la longueur des données à envoyer. Si len est -1 toutes les
* données sont envoyée.
*/
void write(std::vector<char> data, int offset=0, int len=-1);
/**
* @brief Envoie/Écrit des données sur le flux
* @param data : les données sous forme de string
* @param offset, len : le début et la longueur des données à envoyer. Si len est -1 toutes les
* données sont envoyée.
*/
void write(std::string data, int offset=0, int len=-1);
/**
* @brief copie le contenu d'un fichier ou d'une socket dans un autre jusqu'à la fermeture du premier
* @param dest : le fd où copier le contenu de l'objet appelant
* @return le nombre d'octets écrit
*
* Cette fonction crée un ReaderWriter temporaire pour faire le travail.
*/
int do_copy(int fd);
/**
* @brief copie le contenu d'un fichier ou d'une socket dans un autre jusqu'à la fermeture du premier
* @param dest : le ReaderWriter où copier le contenu de l'objet appelant
* @return le nombre d'octets écrit
*/
int do_copy(ReaderWriter &dest);
};
|
#include "CRPGServer.h"
#include "CData.h"
#include "CRPGServerLogicThread.h"
bool CRPGServer::Init(const char * _path)
{
char ip[15];
UINT16 port;
UINT16 sessionLength;
UINT16 workerThreadLength;
GetPrivateProfileString("Server", "IP", NULL, ip, 15, _path);
port = GetPrivateProfileInt("Server", "Port", 0, _path);
sessionLength = GetPrivateProfileInt("Server", "SessionLength", 0, _path);
workerThreadLength = GetPrivateProfileInt("Server", "WorkerThreadLength", 0, _path);
CLog::DebugDisplay("[ServerInfo] : IP - %s\n", ip);
CLog::DebugDisplay("[ServerInfo] : Port - %d\n", port);
CLog::DebugDisplay("[ServerInfo] : SessionLength - %d\n", sessionLength);
CLog::DebugDisplay("[ServerInfo] : WorkerThreadLength - %d\n", workerThreadLength);
//ini파일로 몬스터 정보등을 불러와야한다.
CData::GetInstance().ParsingMonsterData("");
CData::GetInstance().ParsingSkillData("");
CData::GetInstance().ParsingLevelData("");
m_userObjectPool.Init(sessionLength);
CUser* user;
for (UINT16 i = 0; i < sessionLength; i++)
{
try
{
user = new CUser();
}
catch (const std::bad_alloc& e)
{
CLog::DebugDisplay("bad alloc : %s\n", e.what());
return false;
}
user->Init();
m_userObjectPool.InitAddItem(user);
}
CLog::DebugDisplay("[Server] : Session Pool Init Complete\n");
try
{
m_pServerLibrary = new CServerLibrary();
}
catch (const std::bad_alloc& e)
{
CLog::DebugDisplay("bad alloc : %s\n", e.what());
return false;
}
if (!m_pServerLibrary->Init(workerThreadLength)) return false;
if (!m_pServerLibrary->CreateAccepter(ip, port)) return false;
try
{
m_channel = new CChannel();
}
catch (const std::bad_alloc& e)
{
CLog::DebugDisplay("bad alloc : %s\n", e.what());
return false;
}
m_channel->Init();
try
{
m_loginProcessor = new CLoginProcessor();
}
catch (const std::bad_alloc& e)
{
CLog::DebugDisplay("bad alloc : %s\n", e.what());
return false;
}
m_loginProcessor->Init();
AcceptStart();
CRPGServerLogicThread::GetInstance().Init(m_channel, m_loginProcessor, &m_userObjectPool, &m_pServerLibrary->GetConnectSocketQueue());
CRPGServerLogicThread::GetInstance().Begin();
return true;
}
void CRPGServer::AcceptStart(void)
{
m_pServerLibrary->AcceptStart();
}
void CRPGServer::Run(void)
{
//블로킹
WaitForSingleObject(m_pServerLibrary->GetAccepterHandle(), INFINITE);
}
void CRPGServer::Cleanup(void)
{
m_pServerLibrary->Cleanup();
m_channel->Cleanup();
m_loginProcessor->Cleanup();
SAFE_DELETE(m_pServerLibrary);
SAFE_DELETE(m_channel);
SAFE_DELETE(m_loginProcessor);
}
|
#include <windows.h>
#include <GL/glut.h>
void display()
{
glClearColor(1.0,1.0,1.0,1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);//"czyszczenie" tła okan i bufora głębokosci
glEnable(GL_DEPTH_TEST);//włącznie algorytmu zasłaniania
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluPerspective(60.0, 1.0, 0.1, 10.0); //bryła widzenia perspektywicznego
gluLookAt(2.0,2.0,2.0, 0.0,0.0,0.0, 0.0,1.0,0.0);//obserwator
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glColor3f(1.0, 0.0, 0.0);
glutWireCube(2.0);
glFlush();
}
void main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode(GLUT_RGB | GLUT_SINGLE | GLUT_DEPTH );
glutInitWindowSize(400,300);
glutInitWindowPosition(100,100);
glutCreateWindow("Scena testowa");
glutDisplayFunc(display);
glutMainLoop();
}
|
//Seth Stoltenow Delivery 2 CSCI 465 UND Fall 2018. Completed in Linux Mint on GCC 5.4.0
//ID: 1119117
//Email: seth.stoltenow@und.edu
//TODO writeln
#include "compiler.h"
#include <stack>
#include <queue>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
#include <vector>
using namespace std;
int isID();
int isFullExpr();
int isNum();
int isVar();
int isSimpleExpr();
int isTerm();
int isFactor();
int isStmt();
int isProgram();
int isRelOp(token inTok);
int isAddOp(token inTok);
int isMultiOp(token inTok);
int gatherDeclaration(int type);
void enterIntoMIPSTable(token inTok, string inType, string inValue, string inScope, int inOffset, int inSize, int inOffsetFP);
int declarationValid();
void printMipsTable();
//methods to write specific code
void writeNewLine();
void newLine(); //Just for the mips source code
void pushStack();
void popStack();
int emitID(string inID);
int emitVar();
int resolveVar();
int writeOutSimpleExpr();
int emitLitChar();
int assignLitChar();
int evalTerm(string inOp);
int evalSimpleExpr(string inOp);
int evalFullExpr(string currentOp);
int evalForExpr(int currentStatement);
int incrementVar();
int readInt();
int readChar();
int writeChar();
int generateOffset(int dataTypeSize, int baseOfArray);
int generateArrayAddress();
int emitAssign();
int emitAssignChar();
int emitNum(string inTok);
int printString(string callingString);
int branchIfFalse(string inTag);
int unConditionalJump(string inTag);
int generateTag(string inTag);
int isInTable(string inString);
int write();
stack<string> ruleStack;
queue<string> inputParams;
string currentState;
string validState;
int const numOfStates = 8;
int const numOfRules = 8;
int numOfInts;
int initVal = 0;
string programName;
int exprNum = 0; //used for jumps in MIPS
string MIPSCode; //header
string MIPSHeader = "# MIPS code created by Seth Stoltenow for CS 465 at UND \n\n.data \n\n";
string MIPSProcedures = ".text\n.globl main\n\n";
string MIPSStrings = "";
string MIPSRun = "main:\n\n";
string MIPSExit = "li \t $v0, 10\nsyscall\n";
std::vector<symTabEntry> MIPSSymTable;
int currentStatement = 0;
int stringNumber = 0;
void printStack();
int cFactor(int reg, token inTok);
int emitloadit(int reg, int val);
int emitRX(char inState, int reg, int symReg);
//create the current token outside all methods so that it will remain the same
queue<string> tempForDeclaration;
stack<string> statementStack;
stack<string> opStack;
stack<int> statementLevels;
lexer parserLex = *(new lexer());
token currentToken = *(new token("-1", "-1"));
string factorCode;
string termCode;
int main(int argc, char *argv[])
{
ofstream outFile;
outFile.open("MIPSout.txt");
parserLex.initLex(argv[1]);
while(true)
{
currentToken = parserLex.nextTok();
if(isProgram())
{
outFile << MIPSHeader;
outFile << MIPSStrings;
outFile << MIPSProcedures;
outFile << MIPSRun;
outFile << MIPSExit << endl;
//cout << endl << "Printing MIPS header:\n" << MIPSHeader;
//cout << MIPSStrings << endl;
//cout << MIPSProcedures;
//cout << MIPSRun << endl;
std::cout << "Program accepted" << std::endl;
//cout << "MIPS table size is " << MIPSSymTable.size() << endl;
//cout << "Printing MIPS Symbol Table" << endl;
//printMipsTable();
return 0;
}
else
{
cout << "Compile failed on line: " << lineNumber << " token: " << currentToken.value << endl;
return 0;
}
if(currentToken.value.compare("EOF") == 0)
{break;}
else {cout << "File valid but does not end where expected" << endl; break;}
}
outFile.close();
return 0;
}
int isProgram()
{
if(currentToken.value.compare("program") == 0)
{
//consume the program token
currentToken = parserLex.nextTok();
if(currentToken.type.compare("ID") == 0)
{
programName = currentToken.value;
//consume the program name
currentToken = parserLex.nextTok();
if(currentToken.value.compare("(") == 0)
{
//consume the open parenthesis
currentToken = parserLex.nextTok();
while(currentToken.value.compare(")") != 0)
{
if(false) //change this to recognize valid input parameters
{std::cout << "Invalid input parameter: " << currentToken.value << std::endl; return 0;}
inputParams.push(currentToken.value);
//consume input parameters
currentToken = parserLex.nextTok();
if(currentToken.value.compare(")") == 0)
{
//consume the close parenthesis
currentToken = parserLex.nextTok();
break;
}
if(currentToken.value.compare(",") == 0)
{
//consume the comma
currentToken = parserLex.nextTok();
}
else {std::cout << "problem with input parameters" << std::endl; return 0;}
}
if(currentToken.value.compare(";") == 0)
{
//consume the semicolon
currentToken = parserLex.nextTok();
if(declarationValid())
{
if(isStmt())
{
if(currentToken.value.compare(".") == 0)
//consume the period at end of file
currentToken = parserLex.nextTok();
{return 1;}
}
else{return 0;}
}
else
{std::cout << "Problem with variable declaration" << std::endl; return 0;}
}
}
}
else { std::cout << "No program name" << std::endl; return 0;}
}
else
{
std::cout << "No program symbol" << std::endl;
return 0;
}
}
int declarationValid()
{
if(currentToken.value.compare("var") == 0)
{
//consume the var token
currentToken = parserLex.nextTok();
while(currentToken.value.compare("begin") != 0)
{
while(currentToken.value.compare(":") != 0)
{
if(currentToken.type.compare("ID") == 0)
{
//enter the value in the local symbol table
//check if we have already declared this
if(isInTable(currentToken.value)) {cout << "Redeclaration of variable " << currentToken.value << endl;}
//push the ID to the declaration stack
enterIntoMIPSTable(currentToken, "", currentToken.value, "all", 0, 1, 0);
tempForDeclaration.push(currentToken.value);
//consume the current ID
currentToken = parserLex.nextTok();
}
else{ cout << "Invalid ID in main parameters" << endl; return 0;}
if(currentToken.value.compare(",") == 0)
{
//consume the comma
currentToken = parserLex.nextTok();
//and continue the loop
continue;
}
if(currentToken.value.compare(":") == 0)
{
//consume the colon
currentToken = parserLex.nextTok();
break;
}
}
int type = -1;
if(currentToken.value.compare("integer") == 0)
{type = 1;}
else if(currentToken.value.compare("char") == 0 || currentToken.value.compare("chr") == 0)
{type = 2;}
else if(currentToken.value.compare("boolean") == 0)
{type = 3;}
else if(currentToken.value.compare("array") == 0)
{
//consume array symbol
currentToken = parserLex.nextTok();
type = 4;
if(!gatherDeclaration(type))
{cout << "Here's the problem" << endl; return 0;}
continue;
}
else {cout << "Invalid type declared on line: " << lineNumber << endl; return 0;}
//consume the variable type token
currentToken = parserLex.nextTok();
if(currentToken.value.compare(";") != 0)
{cout << "Not a valid type in type declaration" << endl; return 0;}
//consume the semicolon
currentToken = parserLex.nextTok();
//pop everything from the declaration stack
gatherDeclaration(type);
}
if(currentToken.value.compare("begin") == 0)
{
MIPSHeader.append("\n");
return 1;
}
else {return 0;}
}
}
int gatherDeclaration(int type)
{
int offset = 0;
int arraySize = 1;
string size = "";
string stringType = "";
if(type == 1) {size = ".word\t0"; stringType = "integer";}
if(type == 2) {size = ".byte\t0"; stringType = "char";}
if(type == 3) {size = ".byte\t0"; stringType = "boolean";}
if(type == 4)
{
if(currentToken.value.compare("[") != 0)
{cout << "Invalid array declaration" << endl; return 0;}
//consume the [ token
currentToken = parserLex.nextTok();
if(currentToken.type.compare("Number") == 0)
{
offset = stoi(currentToken.value);
//consume the number token
currentToken = parserLex.nextTok();
}
else
{cout << "Not a valid number" << endl; return 0;}
if(currentToken.value.compare(".") != 0)
{return 0;}
//consume the period
currentToken = parserLex.nextTok();
if(currentToken.value.compare(".") != 0)
{return 0;}
//consume the period
currentToken = parserLex.nextTok();
if(currentToken.type.compare("Number") == 0)
{
arraySize = stoi(currentToken.value) - offset + 1;
//consume the number
currentToken = parserLex.nextTok();
}
else
{cout << "Not a valid number" << endl; return 0;}
if(currentToken.value.compare("]") != 0)
{cout << "Invalid array declaration" << endl; return 0;}
//consume the ] token
currentToken = parserLex.nextTok();
if(currentToken.value.compare("of") != 0)
{cout << "Error in array declaration" << endl; return 0;}
//consume the of symbol
currentToken = parserLex.nextTok();
if(currentToken.value.compare("integer") == 0)
{stringType = "integer"; size = ".word \t 0:";}
else if(currentToken.value.compare("char") == 0)
{stringType = "char"; size = ".byte \t 0:";}
else
{cout << "Could not find a data type for: " << currentToken.value << endl;}
//consume the data type token
currentToken = parserLex.nextTok();
if(currentToken.value.compare(";") != 0)
{cout << "Invalid array declaration" << endl; return 0;}
//consume the semicolon token
currentToken = parserLex.nextTok();
//tell the compiler how large to make the array
size.append(to_string(arraySize));
}
//pop everything fromt the declaration stack
while(!tempForDeclaration.empty())
{
if(type == 1) {size = ".word\t0"; stringType = "integer";}
if(type == 2) {size = ".byte\t0"; stringType = "char";}
if(type == 3) {size = ".byte\t0"; stringType = "boolean";}
if(type == 4) {}
MIPSHeader.append(tempForDeclaration.front());
for(int i = 0; i < MIPSSymTable.size(); i++)
{
if(tempForDeclaration.front().compare(MIPSSymTable[i].value) == 0)
{
MIPSSymTable[i].type = stringType;
MIPSSymTable[i].offset = offset;
MIPSSymTable[i].size = arraySize;
}
}
MIPSHeader.append(": \t");
MIPSHeader.append(size);
MIPSHeader.append("\n");
tempForDeclaration.pop();
}
return 1;
}
//make sure stack has been popped all the way down. This goes for everyone!!!
int isStmt()
{
if(currentToken.value.compare(";") == 0)
{
//consume the semicolon
currentToken = parserLex.nextTok();
return 1;
}
int isChar = isVar();
if(isChar == 1)
{
if(currentToken.value.compare(":=") == 0)
{
//consume the assignment token
currentToken = parserLex.nextTok();
if(isSimpleExpr())
{
//DONE generate code to assign the variable
emitAssign();
//if so, generate an else that throws an error
if(currentToken.value.compare(";") == 0)
{
//consume the semicolon
currentToken = parserLex.nextTok();
}
return 1;
}
}
else
{
std::cout << "Illegal token " << currentToken.value << " on line " << lineNumber << std::endl;
return 0;
}
}
else if(isChar == 2)
{
if(currentToken.value.compare(":=") != 0)
{cout << "Invalid assignment to character" << endl; return 0;}
//consume the assignment token
currentToken = parserLex.nextTok();
int isChar2;
isChar2 = isVar();
if(isChar2 == 2)
{
emitAssignChar();
}
else if(currentToken.type.compare("litchar") != 0)
{cout << "Invalid assignment to character" << endl; return 0;}
if(isChar2 == 1)
{cout << "Can not assign an int to a char" << endl; return 0;}
if(currentToken.type.compare("litchar") == 0)
{
//consume the lit char token
currentToken = parserLex.nextTok();
emitLitChar();
}
if(currentToken.value.compare(";") != 0)
{cout << "Invalid assignemnt to character here" << endl; return 0;}
//consume the semicolon
currentToken = parserLex.nextTok();
assignLitChar();
return 1;
}
else if(currentToken.value.compare("while") == 0)
{
string currentWhile;
string currentWhileOut;
//string currentIfElse;
currentStatement++;
//consume the while token
currentToken = parserLex.nextTok();
//generate code for the jump back for the while
currentWhile.append("while" + to_string(currentStatement) + "in");
currentWhileOut.append("while" + to_string(currentStatement) + "out");
generateTag(currentWhile);
if(isFullExpr())
{
//generate code to check if the value of the full expression was true or false,
branchIfFalse(currentWhileOut);
//generate code to either continue, or jump to the epilogue
if(currentToken.value.compare("do") == 0)
{
//consume the do statement
currentToken = parserLex.nextTok();
//this is tricky, be careful not to end up in an infinite loop
if(isStmt())
{
//generate code to jump back to the top
unConditionalJump(currentWhile);
//generate the epilogue code
generateTag(currentWhileOut);
return 1;
}
}
}
std::cout << "Illegal token " << currentToken.value << " on line " << lineNumber << std::endl;
return 0;
}
else if(currentToken.value.compare("if") == 0)
{
//consume the if token
currentToken = parserLex.nextTok();
string currentIf;
string currentIfOut;
string currentIfElse;
if(isFullExpr())
{
if(currentToken.value.compare("then") == 0)
{
//generate strings to deal with the if statement
currentStatement++;
currentIf.append("if");
currentIf.append(to_string(currentStatement));
currentIfOut.append("if");
currentIfOut.append(to_string(currentStatement));
currentIfOut.append("out");
currentIfElse.append("if");
currentIfElse.append(to_string(currentStatement));
currentIfElse.append("else");
//generate code to evaluate the top of stack, true or false
branchIfFalse(currentIfElse);
//create a jump statement to get to the else
//Consume the then token
currentToken = parserLex.nextTok();
if(isStmt())
{
//create unconditional jump to the out
unConditionalJump(currentIfOut);
generateTag(currentIfElse);
if(currentToken.value.compare("else") == 0)
{
//create jump in point for the else
//consume the else token
currentToken = parserLex.nextTok();
if(isStmt())
{
//create jump past else point
generateTag(currentIfOut);
return 1;
}
//If there's an else but no following statement, error
//maybe get rid of this because of empty statements
else {return 0;}
}
else
{
//if there's no else clause, return true
//create jump past else point
generateTag(currentIfOut);
return 1;
}
}
}
}
return 0;
}
else if(currentToken.value.compare("begin") == 0)
{
//consume the begin token
currentToken = parserLex.nextTok();
while (true)
{
if(currentToken.value.compare("end") == 0)
{
//consume the end symbol
currentToken = parserLex.nextTok();
return 1;
}
if(!isStmt())
{return 0;}
if(currentToken.value.compare(";") == 0)
{
//consume the semicolon and go around again
currentToken = parserLex.nextTok();
continue;
}
else if(currentToken.value.compare("end") == 0)
{
//consume the end symbol
currentToken = parserLex.nextTok();
return 1;
}
}
}
//else if(currentToken.value.compare(";") == 0) //empty statement
else if(currentToken.value.compare("for") == 0)
{
string currentForIn;
currentForIn.append("for" + to_string(currentStatement) + "in");
string currentForOut;
currentForOut.append("for" + to_string(currentStatement) + "out");
//string currentIfElse;
currentStatement++;
string inID = "";
//consume the for symbol
currentToken = parserLex.nextTok();
int variableReturn = isVar();
if(variableReturn == 0)
{return 0;}
//address to var is now on top of stack
if(variableReturn == 2)
{
cout << "Can't do a for loop on a char" << endl;
return 0;
}
if(currentToken.value.compare(":=") != 0)
{return 0;}
//consume the assign operator
currentToken = parserLex.nextTok();
if(!isSimpleExpr())
{return 0;}
//generate code to set value of inID to the value of the expression on top of the stack
emitAssign();
//value is now assigned to the variable, stack is cleared
//pop the expression on top of the stack but leave the address for inID behind
pushStack();
if(currentToken.value.compare("to") != 0)
{return 0;}
//consume the to token
currentToken = parserLex.nextTok();
//create the jump in point
generateTag(currentForIn);
if(!isSimpleExpr())
{return 0;}
//pull the expression off the top of the stack
//compare it with the value at the address on top of the stack
//if the condition is true, do nothing, if false, jump to out point
evalForExpr(currentStatement);
//0 or 1 is now on top of the stack, followed by an address for the variable
//LEAVE THE ADDRESS ON TOP OF THE STACK!!!
//check evaluation of expression, if false, jump to out
branchIfFalse(currentForOut);
if(currentToken.value.compare("do") != 0)
{return 0;}
//consume the do token
currentToken = parserLex.nextTok();
if(!isStmt())
{return 0;}
//be sure statements leave NOTHING on top of the stack, the top thing should be the address
//of the inID
//create a jump to top
//increment variable automatically
incrementVar();
unConditionalJump(currentForIn);
//create a jump out point
generateTag(currentForOut);
//pop address from top of stack so there is nothing left from this statement
popStack();
return 1;
}
else if(currentToken.value.compare("write") == 0)
{
if(write())
{return 1;}
else {return 0;}
}
else if(currentToken.value.compare("read") == 0)
{
//consume the read token
currentToken = parserLex.nextTok();
if(currentToken.value.compare("(") != 0)
{cout << "Invalid read statement" << endl; return 0;}
//consume the open parenthesis
currentToken = parserLex.nextTok();
while (1)
{
if(currentToken.type.compare("ID") == 0 && isInTable(currentToken.value))
{
symTabEntry currentEntry;
for(int i = 0; i < MIPSSymTable.size(); i++)
{
if(MIPSSymTable[i].value.compare(currentToken.value) == 0)
{
currentEntry = MIPSSymTable[i];
}
}
if(currentEntry.type.compare("char") == 0)
{
if(isVar())
{
//read the char from the screen into the address on top of the stack
readChar();
//pop the address from the top of the stack
popStack();
}
else {cout << "Could not read char" << endl; return 0;}
}
else if(isVar())
{
//read an integer from the screen into the address on top of the stack
readInt();
//pop the address from the top of the stack
popStack();
}
else {cout << "Problem in read statement" << endl; return 0; }
if(currentToken.value.compare(")") == 0)
{
//consume the closing parenthesis
currentToken = parserLex.nextTok();
if(currentToken.value.compare(";") != 0)
{cout << "Error in write statement" << endl; return 0;}
else {currentToken = parserLex.nextTok(); return 1;}
}
if(currentToken.value.compare(",") != 0)
{cout << "Incorrect arguments in read statement, token value is " << currentToken.value << endl; return 0;}
//consume the semicolon
currentToken = parserLex.nextTok();
continue;
}
else {cout << "Invalid variable in read statement" << endl; return 0;}
}
}
else if(currentToken.value.compare("writeln") == 0)
{
//on returning 1, call method writeNewLine() and thats the only difference
if(write())
{
writeNewLine();
return 1;
}
else {return 0;}
}
else {return 0;}
}
int isID()
{
int arrayOffset = 0;
int dataTypeSize = 4;
string currentID = "";
int dataType = 0; //data type 1 is int, 2 is char
symTabEntry currentEntry;
if(currentToken.type.compare("ID") == 0)
{
//check if it is in the symbol table
//generate code to evaluate to memory address
if(!isInTable(currentToken.value))
{
cout << "Undeclared token " << currentToken.value << endl;
return 0;
}
for(int i = 0; i < MIPSSymTable.size(); i++)
{
if(MIPSSymTable[i].value.compare(currentToken.value) == 0)
{
currentEntry = MIPSSymTable[i];
if(currentEntry.type.compare("char") == 0)
{dataType = 2; dataTypeSize = 1;}
if(currentEntry.type.compare("integer") == 0)
{dataType = 1; dataTypeSize = 4;}
}
}
//generate code to see if it is an array, check the symbol table
//if so, resolve that to an address, store on top of stack
//consume the current token
currentID = currentToken.value;
currentToken = parserLex.nextTok();
if(currentToken.value.compare("[") == 0)
{
emitID(currentID);
//address of base array is now on top of stack
//consume the open bracket
currentToken = parserLex.nextTok();
if(!isSimpleExpr())
{return 0;}
//the value of the expression is now on top of the stack
if(currentToken.value.compare("]") != 0)
{cout << "Error in array call" << endl; return 0;}
//consume the closing bracket
currentToken = parserLex.nextTok();
//generate code to compute the actual offset of the array, push to stack
//check this for arrays of chars
//generate code to multiply the offset by the data structure size, probably 4
//push to top of stack
generateOffset(dataTypeSize, currentEntry.offset);
//generate code to get to offset, at top of stack, and add to address second on stack
//push resulting address to top of stack
generateArrayAddress();
return dataType;
}
else
//we don't have an array, just leave the address on top of the stack
{
emitID(currentID);
return dataType;
}
}
else
{return 0;}
}
int isNum()
{
if(currentToken.type.compare("Number") == 0)
{
//generate code to evaluate to value, put on top of stack
emitNum(currentToken.value);
//consume the current token
currentToken = parserLex.nextTok();
return 1;
}
else
{return 0;}
}
int isVar()
{
int idEval = isID();
if(idEval != 0)
{
//convert the value on top of the stack to an address
return idEval;
}
else
{return 0;}
}
int isFullExpr()
{
string currentOp = "";
if(isSimpleExpr())
{
if(isRelOp(currentToken))
{
currentOp = currentToken.value;
currentToken = parserLex.nextTok();
}
}
if(isSimpleExpr())
{
evalFullExpr(currentOp);
//generate code to evaluate the expression comparison and push the value to the top of stack
// 1 for true, 0 for false
return 1;
}
return 0;
}
int isSimpleExpr()
{
string currentOp = "";
int gotOne = 0;
while(1)
{
if(isTerm())
{
if(gotOne)
{
//DONE evaluate last two factors using current op, push to top of stack
evalSimpleExpr(currentOp);
}
if(isAddOp(currentToken))
{
currentOp = currentToken.value;
//consume the add op token
currentToken = parserLex.nextTok();
gotOne = 1;
continue;
}
else
{
return 1;
}
}
return 0;
}
return 0;
}
int isTerm()
{
string currentOp = "";
int gotOne = 0;
while(1)
{
if(isFactor())
{
if(gotOne)
{
//evaluate last two factors using currentOp, push to top of stack
evalTerm(currentOp);
}
if(isMultiOp(currentToken))
{
//consume the multi op
currentOp = currentToken.value;
currentToken = parserLex.nextTok();
gotOne = 1;
continue;
}
else {newLine(); return 1;}
}
else {return 0;}
}
}
int isFactor()
{
if(isNum())
{
//DONE generate the code to pop the value and push it back to the stack
//DONE do nothing, it's already on top of the stack
return 1;
}
else if(isVar())
{
//DONE generate code to pop the top of the stack, resolve to a value, then push it to top of stack
resolveVar();
return 1;
}
else if(currentToken.value.compare("(") == 0)
{
//consume the opening parenthsis
currentToken = parserLex.nextTok();
if(isSimpleExpr())
{
if(currentToken.value.compare(")") == 0)
{
//consume the closing parenthsis
currentToken = parserLex.nextTok();
//generate code to place the value of the expr on top of the stack
return 1;
}
}
}
else {return 0;}
}
int isRelOp(token inTok)
{
if(inTok.value.compare("=") == 0 || inTok.value.compare("<") == 0 || inTok.value.compare(">") == 0 ||
inTok.value.compare("<>") == 0 || inTok.value.compare("<=") == 0 || inTok.value.compare(">=") == 0)
{return 1;}
else
{return 0;}
}
int isAddOp(token inTok)
{
if(inTok.value.compare("+") == 0 || inTok.value.compare("-") == 0 || inTok.value.compare("or") == 0)
{
return 1;
}
else
{return 0;}
}
int isMultiOp(token inTok)
{
if(inTok.value.compare("*") == 0 || inTok.value.compare("div") == 0 || inTok.value.compare("mod") == 0
|| inTok.value.compare("mul") == 0 || inTok.value.compare("and") == 0)
{
return 1;
}
else
{return 0;}
}
void pushStack()
{
MIPSRun.append("sub \t $sp, $sp, 4\n");
}
void popStack()
{
MIPSRun.append("add \t $sp, $sp, 4\n");
}
int emitAssign()
{
//generate code to take the value from the top of stack, then the address next place down
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
// then store the value in the address
MIPSRun.append("sw \t $a1, ($a2)\n");
//pop both values from the stack
popStack();
newLine();
}
int emitAssignChar()
{
MIPSRun.append("lb \t $a1, ($sp)\n");
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("sb \t $a1, ($a2)\n");
popStack();
newLine();
}
int emitNum(string inTok)
{
//push stack
pushStack();
int inval = stoi(inTok);
MIPSRun.append("li \t $a1, " + inTok + "\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
//number is now on top of stack
}
int emitVar()
{
}
int resolveVar()
{
MIPSRun.append("lw \t $a1, ($sp)\n");
MIPSRun.append("lw \t $a2, ($a1)\n");
MIPSRun.append("sw \t $a2, ($sp)\n");
}
int emitID(string inID)
{
pushStack();
MIPSRun.append("la \t $a1, " + inID + "\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
}
int generateOffset(int dataTypeSize, int baseOfArray)
{
MIPSRun.append("lw \t $a1, ($sp)\n");
MIPSRun.append("li \t $a2, " + to_string(baseOfArray) + "\n");
MIPSRun.append("sub \t $a1, $a1, $a2\n");
MIPSRun.append("li \t $a2, " + to_string(dataTypeSize) + "\n");
MIPSRun.append("mul \t $a1, $a1, $a2\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
}
int generateArrayAddress()
{
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("add \t $a1, $a1, $a2\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
}
int evalTerm(string inOp)
{
if(inOp.compare("*") == 0 || inOp.compare("mul") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
//get second value down
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
//multiply them together
MIPSRun.append("mul \t $t0, $a1, $a2\n");
//push to stack
MIPSRun.append("sw \t $t0, ($sp)");
//the evaluation of the term is now on top of the stack
}
else if(inOp.compare("div") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
//get second value down
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
//divide them
MIPSRun.append("div \t $a2, $a1\n");
//get the result out of the low register
MIPSRun.append("mflo \t $t0\n");
//push to stack
MIPSRun.append("sw \t $t0, ($sp)");
//the evaluation of the term is now on top of the stack
}
else if(inOp.compare("mod") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
//get second value down
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
//mod them together
MIPSRun.append("div \t $a2, $a1\n");
//get the result out of the high register
MIPSRun.append("mfhi \t $t0\n");
//push to stack
MIPSRun.append("sw \t $t0, ($sp)\n");
//the evaluation of the term is now on top of the stack
}
newLine();
}
int evalSimpleExpr(string inOp)
{
if(inOp.compare("+") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
//get second value down
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
//add them together
MIPSRun.append("add \t $t0, $a2, $a1\n");
//write to top of stack
MIPSRun.append("sw \t $t0, ($sp)\n");
return 1;
}
if(inOp.compare("-") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
//get second value down
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
//add them together
MIPSRun.append("sub \t $t0, $a2, $a1\n");
//write to top of stack
MIPSRun.append("sw \t $t0, ($sp)\n");
return 1;
}
return 0;
}
int evalFullExpr(string currentOp)
{
exprNum++;
int currentExpr = exprNum;
if(currentOp.compare("=") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("beq \t $a2, $a1, fullExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t fullExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
else if(currentOp.compare("<") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("blt \t $a2, $a1, fullExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t fullExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
else if(currentOp.compare(">") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("bgt \t $a2, $a1, fullExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t fullExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
else if(currentOp.compare("<=") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("ble \t $a2, $a1, fullExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t fullExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
else if(currentOp.compare(">=") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("bge \t $a2, $a1, fullExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t fullExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
else if(currentOp.compare("<>") == 0)
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("bne \t $a2, $a1, fullExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t fullExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("fullExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
else {return 0;}
}
int evalForExpr(int currentExpr)
{
{
//get value on top of stack
MIPSRun.append("lw \t $a1, ($sp)\n");
popStack();
//get the address of the second value down
MIPSRun.append("lw \t $a2, ($sp)\n");
//get the value stored at address of second value down
MIPSRun.append("lw \t $a2, ($a2)\n");
//push the stack to preserve the address
pushStack();
MIPSRun.append("ble \t $a2, $a1, forExpr" + to_string(currentExpr) + "\n");
MIPSRun.append("li \t $a1, 0\n");
MIPSRun.append("sw \t $a1, ($sp)\n");
MIPSRun.append("j \t forExpr" + to_string(currentExpr) + "out\n\n");
MIPSRun.append("forExpr" + to_string(currentExpr) + ":\n");
MIPSRun.append("li \t $a1, 1\n");
MIPSRun.append("sw \t $a1, ($sp)\n\n");
MIPSRun.append("forExpr" + to_string(currentExpr) + "out:\n");
//zero or 1 is now on top of stack
return 1;
}
}
int branchIfFalse(string inTag)
{
MIPSRun.append("lw \t $a1, ($sp)\n");
//Pop the evaluated full expr form top of stack
popStack();
MIPSRun.append("beq \t $a1, $0, ");
MIPSRun.append(inTag + "\n");
return 1;
}
int unConditionalJump(string inTag)
{
MIPSRun.append("j \t " + inTag + "\n");
return 1;
}
int writeOutSimpleExpr()
{
MIPSRun.append("lw \t $a0, ($sp)\n");
MIPSRun.append("li \t $v0, 1\n");
MIPSRun.append("syscall\n");
//pop the expr value form the top of the stack
popStack();
return 1;
}
int generateTag(string inTag)
{
MIPSRun.append(inTag + ": \n");
return 1;
}
int incrementVar()
{
MIPSRun.append("lw \t $a0, ($sp)\n");
MIPSRun.append("lw \t $a1, ($a0)\n");
MIPSRun.append("li \t $a2, 1\n");
MIPSRun.append("add \t $a1, $a1, $a2\n");
MIPSRun.append("sw \t $a1, ($a0)\n\n");
}
int readInt()
{
MIPSRun.append("lw \t $a1, ($sp)\n");
MIPSRun.append("li \t $v0, 5\n");
MIPSRun.append("syscall\n");
MIPSRun.append("sw \t $v0, ($a1)\n");
}
int readChar()
{
MIPSRun.append("lw \t $a1, ($sp)\n");
MIPSRun.append("li \t $v0, 12\n");
MIPSRun.append("syscall\n");
MIPSRun.append("sb \t $v0, ($a1)\n");
}
int writeChar()
{
MIPSRun.append("lw \t $a1, ($sp)\n");
MIPSRun.append("lb \t $a0, ($a1)\n");
MIPSRun.append("li \t $v0, 11\n");
MIPSRun.append("syscall\n");
}
int emitLitChar()
{
pushStack();
MIPSRun.append("li \t $a1, '" + gstring + "'\n");
MIPSRun.append("sb \t $a1, ($sp)\n");
}
int assignLitChar()
{
MIPSRun.append("lb \t $a1, ($sp)\n");
popStack();
MIPSRun.append("lw \t $a2, ($sp)\n");
MIPSRun.append("sb \t $a1, ($a2)\n");
//TODO we still may need to pop this
popStack();
}
int printString(string callingString)
{
MIPSRun.append("li \t $v0, 4\n");
MIPSRun.append("la \t $a0, " + callingString + "\n");
MIPSRun.append("syscall\n");
return 1;
}
int isInTable(string inString)
{
for(int i = 0; i < MIPSSymTable.size(); i++)
{
if(inString.compare(MIPSSymTable[i].value) == 0)
return 1;
}
return 0;
}
void enterIntoMIPSTable(token inTok, string inType, string inValue, string inScope, int inOffset, int inSize, int inOffsetFP)
{
if(isInTable(inTok.value))
{
return;
}
else
{
MIPSSymTable.push_back(*(new symTabEntry(inType, inValue, inScope, inOffset, inSize, inOffsetFP)));
return;
}
}
void printMipsTable()
{
for(int i = 0; i < MIPSSymTable.size(); i++)
{
cout << "Variable " << MIPSSymTable[i].value << " is of type " << MIPSSymTable[i].type << " size " << MIPSSymTable[i].size << endl;
}
return;
}
void writeNewLine()
{
MIPSRun.append("li \t $a0, 0xA\nli \t $v0, 11\nsyscall\n");
}
void newLine()
{
MIPSRun.append("\n");
}
int write()
{
//consume write token
currentToken = parserLex.nextTok();
if(currentToken.value.compare("(") != 0)
{cout << "Error in print statement" << endl; return 0;}
//consume the open parenthsis
currentToken = parserLex.nextTok();
while (1)
{
if((currentToken.type.compare("ID") == 0 && isInTable(currentToken.value))
|| currentToken.type.compare("Number") == 0
|| currentToken.type.compare("quoteString") == 0
|| currentToken.type.compare("litchar") == 0)
{
symTabEntry currentEntry;
for(int i = 0; i < MIPSSymTable.size(); i++)
{
if(MIPSSymTable[i].value.compare(currentToken.value) == 0)
{
currentEntry = MIPSSymTable[i];
}
}
if(currentEntry.type.compare("char") == 0)
{
int isChar = 0;
isChar = (isVar());
if(isChar == 2)
{
//write char to screen
writeChar();
//pop the write char from the stack
popStack();
}
else{cout << "Not a valid char" << endl; return 0;}
//go around the loop again
}
else if(currentToken.type.compare("quoteString") == 0)
{
string callingString = "";
stringNumber++;
//generate code to install the quote string in the symbol table
MIPSStrings.append("string");
callingString.append("string" + to_string(stringNumber));
MIPSStrings.append(to_string(stringNumber) + ":\t.asciiz\t");
MIPSStrings.append("\"" + gstring + "\"\n");
//generate code to print the quote string
printString(callingString);
//consume the quote string
currentToken = parserLex.nextTok();
}
else if(currentToken.type.compare("litchar") == 0)
{
string callingString = "";
stringNumber++;
//generate code to install the quote string in the symbol table
MIPSStrings.append("string");
callingString.append("string" + to_string(stringNumber));
MIPSStrings.append(to_string(stringNumber) + ":\t.asciiz\t");
MIPSStrings.append("\"" + gstring + "\"\n");
//generate code to print the quote string
printString(callingString);
//consume the quote string
//generate code to install the quote string in the symbol table
//generate code to print the quote string
//consume the quote string
currentToken = parserLex.nextTok();
}
else if(isSimpleExpr())
{
writeOutSimpleExpr();
//write value out to the screen
}
//if it's not a char or expression
else {return 0;}
if(currentToken.value.compare(")") == 0)
{
//consume the closinng parenthesis
currentToken = parserLex.nextTok();
if(currentToken.value.compare(";") != 0)
{cout << "Error in write statement" << endl; return 0;}
else {currentToken = parserLex.nextTok(); return 1;}
}
if(currentToken.value.compare(",") != 0)
{cout << "Incorrect arguments in write statement, token value is " << currentToken.value << endl; return 0;}
//consume the semicolon
currentToken = parserLex.nextTok();
}
else {cout << "Error in print statement" << endl; return 0;}
}
}
|
#include <whiskey/AST/Predicates.hpp>
#include <whiskey/Core/Assert.hpp>
namespace whiskey {
bool isAtomicType(NodeType type) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch-enum"
switch (type) {
case NodeType::TypeAtomicBool:
return true;
case NodeType::TypeAtomicInt8:
return true;
case NodeType::TypeAtomicInt16:
return true;
case NodeType::TypeAtomicInt32:
return true;
case NodeType::TypeAtomicInt64:
return true;
case NodeType::TypeAtomicUInt8:
return true;
case NodeType::TypeAtomicUInt16:
return true;
case NodeType::TypeAtomicUInt32:
return true;
case NodeType::TypeAtomicUInt64:
return true;
case NodeType::TypeAtomicFloat32:
return true;
case NodeType::TypeAtomicFloat64:
return true;
case NodeType::TypeAtomicReal:
return true;
default:
return false;
}
#pragma clang diagnostic pop
}
bool isLiteralExpr(NodeType type) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch-enum"
switch (type) {
case NodeType::ExprLiteralBool:
return true;
case NodeType::ExprLiteralInt8:
return true;
case NodeType::ExprLiteralInt16:
return true;
case NodeType::ExprLiteralInt32:
return true;
case NodeType::ExprLiteralInt64:
return true;
case NodeType::ExprLiteralUInt8:
return true;
case NodeType::ExprLiteralUInt16:
return true;
case NodeType::ExprLiteralUInt32:
return true;
case NodeType::ExprLiteralUInt64:
return true;
case NodeType::ExprLiteralChar8:
return true;
case NodeType::ExprLiteralChar16:
return true;
case NodeType::ExprLiteralChar32:
return true;
case NodeType::ExprLiteralFloat32:
return true;
case NodeType::ExprLiteralFloat64:
return true;
case NodeType::ExprLiteralReal:
return true;
default:
return false;
}
#pragma clang diagnostic pop
}
bool isOpExpr(NodeType type) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch-enum"
switch (type) {
case NodeType::ExprAccessUnary:
return true;
case NodeType::ExprAccess:
return true;
case NodeType::ExprGroup:
return true;
case NodeType::ExprAdd:
return true;
case NodeType::ExprIncPre:
return true;
case NodeType::ExprIncPost:
return true;
case NodeType::ExprSub:
return true;
case NodeType::ExprNeg:
return true;
case NodeType::ExprDecPre:
return true;
case NodeType::ExprDecPost:
return true;
case NodeType::ExprMul:
return true;
case NodeType::ExprExp:
return true;
case NodeType::ExprDiv:
return true;
case NodeType::ExprDivInt:
return true;
case NodeType::ExprDivReal:
return true;
case NodeType::ExprMod:
return true;
case NodeType::ExprBitNot:
return true;
case NodeType::ExprBitAnd:
return true;
case NodeType::ExprBitOr:
return true;
case NodeType::ExprBitXor:
return true;
case NodeType::ExprBitShL:
return true;
case NodeType::ExprBitShR:
return true;
case NodeType::ExprLT:
return true;
case NodeType::ExprLE:
return true;
case NodeType::ExprGT:
return true;
case NodeType::ExprGE:
return true;
case NodeType::ExprNE:
return true;
case NodeType::ExprEQ:
return true;
case NodeType::ExprBoolNot:
return true;
case NodeType::ExprBoolAnd:
return true;
case NodeType::ExprBoolOr:
return true;
case NodeType::ExprBoolImplies:
return true;
case NodeType::ExprAddAssign:
return true;
case NodeType::ExprSubAssign:
return true;
case NodeType::ExprMulAssign:
return true;
case NodeType::ExprExpAssign:
return true;
case NodeType::ExprDivAssign:
return true;
case NodeType::ExprDivIntAssign:
return true;
case NodeType::ExprDivRealAssign:
return true;
case NodeType::ExprModAssign:
return true;
case NodeType::ExprBitAndAssign:
return true;
case NodeType::ExprBitOrAssign:
return true;
case NodeType::ExprBitXorAssign:
return true;
case NodeType::ExprBitShLAssign:
return true;
case NodeType::ExprBitShRAssign:
return true;
case NodeType::ExprAssign:
return true;
default:
return false;
}
#pragma clang diagnostic pop
}
Arity getExprArity(NodeType type) {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wswitch-enum"
switch (type) {
case NodeType::ExprAccessUnary:
return Arity::Unary;
case NodeType::ExprAccess:
return Arity::NAry;
case NodeType::ExprGroup:
return Arity::Unary;
case NodeType::ExprAdd:
return Arity::NAry;
case NodeType::ExprIncPre:
return Arity::Unary;
case NodeType::ExprIncPost:
return Arity::Unary;
case NodeType::ExprSub:
return Arity::Binary;
case NodeType::ExprNeg:
return Arity::Unary;
case NodeType::ExprDecPre:
return Arity::Unary;
case NodeType::ExprDecPost:
return Arity::Unary;
case NodeType::ExprMul:
return Arity::NAry;
case NodeType::ExprExp:
return Arity::Binary;
case NodeType::ExprDiv:
return Arity::Binary;
case NodeType::ExprDivInt:
return Arity::Binary;
case NodeType::ExprDivReal:
return Arity::Binary;
case NodeType::ExprMod:
return Arity::Binary;
case NodeType::ExprBitNot:
return Arity::Unary;
case NodeType::ExprBitAnd:
return Arity::NAry;
case NodeType::ExprBitOr:
return Arity::NAry;
case NodeType::ExprBitXor:
return Arity::NAry;
case NodeType::ExprBitShL:
return Arity::Binary;
case NodeType::ExprBitShR:
return Arity::Binary;
case NodeType::ExprLT:
return Arity::Binary;
case NodeType::ExprLE:
return Arity::Binary;
case NodeType::ExprGT:
return Arity::Binary;
case NodeType::ExprGE:
return Arity::Binary;
case NodeType::ExprNE:
return Arity::Binary;
case NodeType::ExprEQ:
return Arity::Binary;
case NodeType::ExprBoolNot:
return Arity::Unary;
case NodeType::ExprBoolAnd:
return Arity::NAry;
case NodeType::ExprBoolOr:
return Arity::NAry;
case NodeType::ExprBoolImplies:
return Arity::NAry;
case NodeType::ExprAddAssign:
return Arity::Binary;
case NodeType::ExprSubAssign:
return Arity::Binary;
case NodeType::ExprMulAssign:
return Arity::Binary;
case NodeType::ExprExpAssign:
return Arity::Binary;
case NodeType::ExprDivAssign:
return Arity::Binary;
case NodeType::ExprDivIntAssign:
return Arity::Binary;
case NodeType::ExprDivRealAssign:
return Arity::Binary;
case NodeType::ExprModAssign:
return Arity::Binary;
case NodeType::ExprBitAndAssign:
return Arity::Binary;
case NodeType::ExprBitOrAssign:
return Arity::Binary;
case NodeType::ExprBitXorAssign:
return Arity::Binary;
case NodeType::ExprBitShLAssign:
return Arity::Binary;
case NodeType::ExprBitShRAssign:
return Arity::Binary;
case NodeType::ExprAssign:
return Arity::Binary;
default:
W_ASSERT_UNREACHABLE("node type has no arity");
}
#pragma clang diagnostic pop
}
}
|
//
// SMMeshView.hpp
// SMFrameWork
//
// Created by SteveMac on 2018. 9. 14..
//
#ifndef SMMeshView_h
#define SMMeshView_h
#include "SMView.h"
#include <cocos2d.h>
#include <renderer/CCTrianglesCommand.h>
#include <renderer/CCCustomCommand.h>
#include <2d/CCAutoPolygon.h>
class SMMeshView : public SMView
{
public:
static SMMeshView * createMeshView(float x, float y, float width, float height, float anchorX, float anchorY, float gridWidth, float gridHeight)
{
auto view = new (std::nothrow)SMMeshView();
if (view) {
view->setAnchorPoint(cocos2d::Vec2(anchorX, anchorY));
view->setPosition(cocos2d::Vec2(x, y));
view->setContentSize(cocos2d::Size(width, height));
view->setGridSize(cocos2d::Size(gridWidth, gridHeight));
if (view->init()) {
view->autorelease();
} else {
CC_SAFE_DELETE(view);
view = nullptr;
}
}
return view;
}
void setGridSize(cocos2d::Size size) {
_gridSize = size;
}
cocos2d::Size getGridSize() {return _gridSize;}
virtual bool init() override;
void setCurtain(cocos2d::Vec2 point);
void convertToMesh(const float meshSize=0, const bool isFlip=false);
void convertToRect();
bool isMesh() const {return _isMesh;}
void grow(float px, float py, float value, float step, float radius);
// virtual void visit(cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) override;
virtual void draw(cocos2d::Renderer *renderer, const cocos2d::Mat4 &transform, uint32_t flags) override;
virtual void onDraw(const cocos2d::Mat4& transform, uint32_t flags);
protected:
cocos2d::CustomCommand _meshCommand;
cocos2d::BlendFunc _blendFunc;
GLint _viewProjectionMatrixUniform;
GLint _normalMatrixUniform;
GLint _lightDirectionUniform;
GLint _diffuseFactorUniform;
GLint _drawPointUniform;
// GLint _texSamplerUniform;
protected:
SMMeshView();
virtual ~SMMeshView();
cocos2d::Size _gridSize;
private:
bool _isMesh;
float _meshSize;
int _rows, _cols;
cocos2d::TrianglesCommand::Triangles _triangles;
};
#endif /* SMMeshView_h */
|
#include <gcc-plugin.h>
int
plugin_init(struct plugin_name_args *plugin_info,
struct plugin_gcc_version *version)
{
(void)plugin_info;
(void)version;
fprintf(stderr, "HELLO from %s\n", plugin_info->full_name);
return 0;
}
int
plugin_is_GPL_compatible;
|
#include<string>
#include<vector>
#ifndef ESCENARIO_H
#define ESCENARIO_H
#include"Item.h"
#include"Bombas.h"
using namespace std;
class Escenario{
private:
Item*** tablero;
vector<Bombas*> bombas;
string nombre;
vector<Bombas*> enemigas;
public:
Item***& getTablero();
vector<Bombas*> getBombas();
void EliminarBomba(int);
void setBombas(Bombas*);
Escenario();
void setEnemigas(Bombas*);
vector<Bombas*> getEnemigas();
void EliminarEnemigas(int);
virtual Item* getItem(int x, int y);
void setItem(Item*);
Escenario(string);
string getNombre();
void crearMatrix();
virtual void Especial()=0;
~Escenario();
};
#endif
|
#ifndef LIGHTS_ANIMATOR_H
#define LIGHTS_ANIMATOR_H
#include <FastCG/World/Behaviour.h>
#include <FastCG/Rendering/PointLight.h>
#include <glm/glm.hpp>
#include <vector>
class LightsAnimator : public FastCG::Behaviour
{
FASTCG_DECLARE_COMPONENT(LightsAnimator, FastCG::Behaviour);
public:
void ChangeColors();
protected:
void OnUpdate(float time, float deltaTime) override;
private:
std::vector<glm::vec3> mDirections;
float mLastDirectionChangeTime{0};
bool mInitialized{false};
void ChangeColors(const std::vector<FastCG::PointLight *> &rPointLights);
};
#endif
|
#pragma once
#include <map>
#include <atlcomcli.h>
#include <Wbemidl.h>
#include <string>
#include <cassert>
using std::wstring;
//! Provides classes for manipulating WMI objects
/*! WMI (Windows Management Instrumentation) is designed to be used from scripting languages (such as VBScript). That way, it uses
approach similar to IDispatch interface - instead of having compile-time interface information, WMI user should get all type information
during runtime. Although this approach simplifies development of scripted WMI clients, it makes using WMI from C++ applications quite
a mess.<br/>
BazisLib simplifies usage of WMI by providing 2 classes: WMIServices and WMIObject. WMIServices instance represents a root services object,
that is used to create or find instances of WMI classes. A WMIObject instance corresponds to a single WMI class or an object, allowing to
call its methods in a relatively convenient way.
<br/>
As WMI calls are usually quite slow, BazisLib support for WMI was designed to provide maximum usage simplicity and convenience, making the
execution speed a second concern. For example, calling a WMI object method with some string and integer parameters would result in creation
of CComVariant objects for every parameter, however, this will be done fully automatically, and instead of writing tens of lines of code
querying method parameter info, instantiating parameter set and setting parameters, a single simple statement is sufficient:
<pre>
WMIObject obj = ... //Create or find WMI class instance
CCOMVariant result;
obj.ExecMethod(L"SomeMethod", &result, L"SomeIntParam", 32, L"SomeLongParam", 456L, L"SomeStringParam", L"SomeString");
</pre>
See WMIObject class description for more details.
*/
namespace WMI
{
//! Represents a single WMI class or object
/*! This class represents a single WMI class, or an object. To obtain a WMIObject representing a WMI object, use the WMIServices::FindInstances()
or WMIServices::GetObject() methods. Once the object instance is obtained, you can check its validity by calling WMIObject::Valid() method, and
perform standard WMI operations, as in this example:
<pre>
void ProcessWMIObject(WMIObject &obj)
{
if (!obj.Valid())
return ;
CCOMVariant result;
obj[L"SomeIntProperty"] = 123;
obj[L"SomeIUnknownProperty"] = CCOMVariant(pUnknown);
wstring str = obj[L"SomeStringProperty"];
obj.ExecMethod(L"SomeMethod", &result, L"SomeIntParam", 32, L"SomeLongParam", 456L, L"SomeStringParam", L"SomeString");
}
</pre>
\remarks Note that you can call <bIWbemClassObject</b> method directly using the "->" operator of a WMIObject class.
*/
class WMIObject
{
protected:
CComPtr<IWbemClassObject> m_pObj;
CComPtr<IWbemServices> m_pServices;
public:
//! Allows calling IWbemClassObject methods directly
IWbemClassObject *operator->()
{
return m_pObj;
}
//! Creates a WMIObject for a given IWbemClassObject instance
WMIObject(const CComPtr<IWbemClassObject> &pObj, const CComPtr<IWbemServices> &pServices)
: m_pObj(pObj)
, m_pServices(pServices)
{
}
//! Creates an empty (invalid) WMIObject
WMIObject()
{
}
//! Creates a WMIObject based on a VARIANT of VT_UNKNOWN type supporting IWbemClassObject interface
WMIObject(const VARIANT *pInterface, const CComPtr<IWbemServices> &pServices);
//! Creates a WMIObject based on a IUnknown pointer supporting IWbemClassObject interface
WMIObject(IUnknown *pUnknown, const class WMIServices &pServices);
//! Creates a WMIObject based on a IUnknown pointer supporting IWbemClassObject interface
WMIObject(IUnknown *pUnknown, const CComPtr<IWbemServices> &pServices);
//! Tests WMIObject instance for validity
bool Valid() const
{
return m_pObj != NULL;
}
//! Gets the value of a WMI object property as CComVariant instance
CComVariant GetPropertyVariant(LPCWSTR lpPropertyName) const;
//! Gets the value of a WMI object property converted to string
wstring GetPropertyString(LPCWSTR lpPropertyName) const;
//! Gets the value of a WMI object property converted to an integer
int GetPropertyInt(LPCWSTR lpPropertyName) const;
public:
//! Used to support expressions like 'obj[L"PropertyName"]'
/*! This class is used internally by WMIObject::operator[]. Some usage examples can be found
on the WMIObject reference page.
*/
class PropertyAccessor
{
public:
IWbemClassObject *m_pObj;
LPCWSTR m_lpPropertyName;
private:
PropertyAccessor(IWbemClassObject *pObj, LPCWSTR lpPropertyName)
: m_pObj(pObj)
, m_lpPropertyName(lpPropertyName)
{
}
PropertyAccessor(const PropertyAccessor &accessor)
{
assert(FALSE);
}
friend class WMIObject;
public:
operator CComVariant()
{
CComVariant variant;
assert(m_pObj);
m_pObj->Get(m_lpPropertyName, 0, &variant, NULL, NULL);
return variant;
}
operator wstring()
{
CComVariant variant;
assert(m_pObj);
m_pObj->Get(m_lpPropertyName, 0, &variant, NULL, NULL);
if (variant.vt == VT_NULL)
return wstring();
if (variant.vt != VT_BSTR)
variant.ChangeType(VT_BSTR);
return variant.bstrVal;
}
operator int()
{
CComVariant variant;
assert(m_pObj);
m_pObj->Get(m_lpPropertyName, 0, &variant, NULL, NULL);
if (variant.vt == VT_NULL)
return 0;
if (variant.vt != VT_INT)
variant.ChangeType(VT_INT);
return variant.intVal;
}
void operator=(const CComVariant &var)
{
assert(m_pObj);
m_pObj->Put(m_lpPropertyName, 0, &const_cast<CComVariant &>(var), var.vt);
}
};
public:
//! Allows using 'obj[L"PropertyName"]' syntax. See WMIObject reference.
PropertyAccessor operator[](const LPCWSTR lpStr)
{
return PropertyAccessor(m_pObj, lpStr);
}
protected:
//! Executes a method of a WMI object. Used by public overloads of ExecMethod().
BOOL ExecMethod(LPCWSTR lpMethodName, CComVariant *pResult,
CComVariant *pFirstOutParam,
std::map<wstring, CComVariant> *pAllOutputParams,
LPCWSTR pParam1Name, const CComVariant &Param1,
LPCWSTR pParam2Name, const CComVariant &Param2,
LPCWSTR pParam3Name, const CComVariant &Param3,
LPCWSTR pParam4Name, const CComVariant &Param4,
LPCWSTR pParam5Name, const CComVariant &Param5,
LPCWSTR pParam6Name, const CComVariant &Param6,
LPCWSTR pParam7Name, const CComVariant &Param7,
LPCWSTR pParam8Name, const CComVariant &Param8,
LPCWSTR pParam9Name, const CComVariant &Param9);
public:
//! Executes a WMI object method, that has no output parameters
BOOL ExecMethod(LPCWSTR lpMethodName, CComVariant *pResult = NULL,
LPCWSTR pParam1Name = NULL, const CComVariant &Param1 = *(CComVariant *)NULL,
LPCWSTR pParam2Name = NULL, const CComVariant &Param2 = *(CComVariant *)NULL,
LPCWSTR pParam3Name = NULL, const CComVariant &Param3 = *(CComVariant *)NULL,
LPCWSTR pParam4Name = NULL, const CComVariant &Param4 = *(CComVariant *)NULL,
LPCWSTR pParam5Name = NULL, const CComVariant &Param5 = *(CComVariant *)NULL,
LPCWSTR pParam6Name = NULL, const CComVariant &Param6 = *(CComVariant *)NULL,
LPCWSTR pParam7Name = NULL, const CComVariant &Param7 = *(CComVariant *)NULL,
LPCWSTR pParam8Name = NULL, const CComVariant &Param8 = *(CComVariant *)NULL,
LPCWSTR pParam9Name = NULL, const CComVariant &Param9 = *(CComVariant *)NULL)
{
return ExecMethod(lpMethodName, pResult, NULL, NULL,
pParam1Name, Param1,
pParam2Name, Param2,
pParam3Name, Param3,
pParam4Name, Param4,
pParam5Name, Param5,
pParam6Name, Param6,
pParam7Name, Param7,
pParam8Name, Param8,
pParam9Name, Param9);
}
//! Executes a WMI object method, that has more than one output parameters
BOOL ExecMethod(LPCWSTR lpMethodName, CComVariant *pResult,
std::map<wstring, CComVariant> *pOutputParams,
LPCWSTR pParam1Name = NULL, const CComVariant &Param1 = *(CComVariant *)NULL,
LPCWSTR pParam2Name = NULL, const CComVariant &Param2 = *(CComVariant *)NULL,
LPCWSTR pParam3Name = NULL, const CComVariant &Param3 = *(CComVariant *)NULL,
LPCWSTR pParam4Name = NULL, const CComVariant &Param4 = *(CComVariant *)NULL,
LPCWSTR pParam5Name = NULL, const CComVariant &Param5 = *(CComVariant *)NULL,
LPCWSTR pParam6Name = NULL, const CComVariant &Param6 = *(CComVariant *)NULL,
LPCWSTR pParam7Name = NULL, const CComVariant &Param7 = *(CComVariant *)NULL,
LPCWSTR pParam8Name = NULL, const CComVariant &Param8 = *(CComVariant *)NULL,
LPCWSTR pParam9Name = NULL, const CComVariant &Param9 = *(CComVariant *)NULL)
{
return ExecMethod(lpMethodName, pResult, NULL, pOutputParams,
pParam1Name, Param1,
pParam2Name, Param2,
pParam3Name, Param3,
pParam4Name, Param4,
pParam5Name, Param5,
pParam6Name, Param6,
pParam7Name, Param7,
pParam8Name, Param8,
pParam9Name, Param9);
}
//! Executes a WMI object method, that has exactly one output parameter
/*!
\remarks This method can be also used to call a WMI object method with more
than one output parameter. However, in such case, all output parameters
except for the first one, will be ignored.
*/
BOOL ExecMethod(LPCWSTR lpMethodName, CComVariant *pResult,
CComVariant *pFirstOutParam,
LPCWSTR pParam1Name = NULL, const CComVariant &Param1 = *(CComVariant *)NULL,
LPCWSTR pParam2Name = NULL, const CComVariant &Param2 = *(CComVariant *)NULL,
LPCWSTR pParam3Name = NULL, const CComVariant &Param3 = *(CComVariant *)NULL,
LPCWSTR pParam4Name = NULL, const CComVariant &Param4 = *(CComVariant *)NULL,
LPCWSTR pParam5Name = NULL, const CComVariant &Param5 = *(CComVariant *)NULL,
LPCWSTR pParam6Name = NULL, const CComVariant &Param6 = *(CComVariant *)NULL,
LPCWSTR pParam7Name = NULL, const CComVariant &Param7 = *(CComVariant *)NULL,
LPCWSTR pParam8Name = NULL, const CComVariant &Param8 = *(CComVariant *)NULL,
LPCWSTR pParam9Name = NULL, const CComVariant &Param9 = *(CComVariant *)NULL)
{
return ExecMethod(lpMethodName, pResult, pFirstOutParam, NULL,
pParam1Name, Param1,
pParam2Name, Param2,
pParam3Name, Param3,
pParam4Name, Param4,
pParam5Name, Param5,
pParam6Name, Param6,
pParam7Name, Param7,
pParam8Name, Param8,
pParam9Name, Param9);
}
//! Executes a WMI object method, that has exactly one output parameter of a WMIObject type
/*!
\remarks This method can be also used to call a WMI object method with more
than one output parameter. However, in such case, all output parameters
except for the first one, will be ignored.
*/
BOOL ExecMethod(LPCWSTR lpMethodName, CComVariant *pResult,
WMIObject *pFirstOutParam,
LPCWSTR pParam1Name = NULL, const CComVariant &Param1 = *(CComVariant *)NULL,
LPCWSTR pParam2Name = NULL, const CComVariant &Param2 = *(CComVariant *)NULL,
LPCWSTR pParam3Name = NULL, const CComVariant &Param3 = *(CComVariant *)NULL,
LPCWSTR pParam4Name = NULL, const CComVariant &Param4 = *(CComVariant *)NULL,
LPCWSTR pParam5Name = NULL, const CComVariant &Param5 = *(CComVariant *)NULL,
LPCWSTR pParam6Name = NULL, const CComVariant &Param6 = *(CComVariant *)NULL,
LPCWSTR pParam7Name = NULL, const CComVariant &Param7 = *(CComVariant *)NULL,
LPCWSTR pParam8Name = NULL, const CComVariant &Param8 = *(CComVariant *)NULL,
LPCWSTR pParam9Name = NULL, const CComVariant &Param9 = *(CComVariant *)NULL)
{
CComVariant var;
BOOL bxx = ExecMethod(lpMethodName, pResult, &var, NULL,
pParam1Name, Param1,
pParam2Name, Param2,
pParam3Name, Param3,
pParam4Name, Param4,
pParam5Name, Param5,
pParam6Name, Param6,
pParam7Name, Param7,
pParam8Name, Param8,
pParam9Name, Param9);
if (!bxx || !pFirstOutParam || (var.vt != VT_UNKNOWN) || !var.punkVal)
return FALSE;
pFirstOutParam->~WMIObject();
pFirstOutParam->WMIObject::WMIObject(&var, m_pServices);
return TRUE;
}
};
//! Represents a root WMI Services object
class WMIServices
{
private:
CComPtr<IWbemServices> m_pServices;
friend class WMIObject;
public:
WMIServices(LPCWSTR lpResourcePath = L"ROOT\\CIMV2");
//! Tests WMIServices for validity
bool Valid()
{
return m_pServices != NULL;
}
//! Allows calling IWbemServices methods directly
IWbemServices *operator->()
{
return m_pServices;
}
public:
//! Allows iterating over a set of WMI objects
class ObjectCollection
{
private:
CComPtr<IEnumWbemClassObject> m_pStartEnum;
CComPtr<IWbemServices> m_pServices;
public:
ObjectCollection(const CComPtr<IEnumWbemClassObject> &pEnum, const CComPtr<IWbemServices> &pServices)
: m_pStartEnum(pEnum)
, m_pServices(pServices)
{
}
ObjectCollection()
{
}
bool Valid()
{
return m_pStartEnum != NULL;
}
public:
class iterator
{
private:
CComPtr<IEnumWbemClassObject> m_pEnum;
CComPtr<IWbemClassObject> m_pObject;
CComPtr<IWbemServices> m_pServices;
public:
iterator(const CComPtr<IEnumWbemClassObject> &pStartEnum, const CComPtr<IWbemServices> &pServices)
: m_pServices(pServices)
{
if (!pStartEnum)
return;
pStartEnum->Clone(&m_pEnum);
if (m_pEnum)
{
ULONG done = 0;
if (m_pEnum->Next(0, 1, &m_pObject, &done) != S_OK)
m_pEnum = NULL;
}
}
iterator(const iterator &iter)
{
if (iter.m_pEnum)
iter.m_pEnum->Clone(&m_pEnum);
m_pObject = iter.m_pObject;
}
iterator()
{
}
void operator++()
{
if (m_pEnum)
{
m_pObject = NULL;
ULONG done = 0;
if (m_pEnum->Next(0, 1, &m_pObject, &done) != S_OK)
m_pEnum = NULL;
}
}
WMIObject operator*()
{
return WMIObject(m_pObject, m_pServices);
}
bool operator!=(const iterator &right)
{
if (!m_pEnum || !right.m_pEnum)
return m_pEnum != right.m_pEnum;
return m_pObject != right.m_pObject;
}
};
iterator begin() //To support C++ 'for each' operator
{
if (!Valid())
return iterator();
return iterator(m_pStartEnum, m_pServices);
}
iterator end()
{
return iterator();
}
};
public:
//! Returns a set of all instances of a given object.
/*!
\remarks Is it recommended to use the 'for each' C++ language extension when calling FindInstances(). Here
is an example:
<pre>
WMIServices srv(L"root\\WMI");
for each (WMIObject obj in srv.FindInstances(L"Win32_LogicalDisk"))
{
wstring str = obj[L"DeviceID"];
ActionStatus st;
wstring diskId = obj.GetPropertyString(L"DeviceID");
CComVariant res;
if (diskId == L"X:")
st = obj.ExecMethod(L"Chkdsk", &res);
}
</pre>
*/
ObjectCollection FindInstances(LPCWSTR lpClassName, int Flags = 0, IWbemContext *pCtx = NULL);
//! Returns a WMIObject representing a given WMI object, or a class
WMIObject GetObject(LPCWSTR lpObjectName, int Flags = 0, IWbemContext *pCtx = NULL);
};
}
|
// -*- C++ -*-
//
// Copyright (C) 1998, 1999, 2000, 2002 Los Alamos National Laboratory,
// Copyright (C) 1998, 1999, 2000, 2002 CodeSourcery, LLC
//
// This file is part of FreePOOMA.
//
// FreePOOMA is free software; you can redistribute it and/or modify it
// under the terms of the Expat license.
//
// 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 Expat
// license for more details.
//
// You should have received a copy of the Expat license along with
// FreePOOMA; see the file LICENSE.
//
#ifndef POOMA_EVALUATOR_EXPRESSIONKERNEL_H
#define POOMA_EVALUATOR_EXPRESSIONKERNEL_H
//-----------------------------------------------------------------------------
// Class:
// ExpressionKernel
//-----------------------------------------------------------------------------
//////////////////////////////////////////////////////////////////////
/** @file
* @ingroup Evaluator
* @brief
* An ExpressionKernel encapsulates evaluating an expression on a domain.
*/
//-----------------------------------------------------------------------------
// Typedefs:
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// Includes:
//-----------------------------------------------------------------------------
#include "Threads/PoomaSmarts.h"
#include "Evaluator/InlineEvaluator.h"
#include "Evaluator/EvaluatorTags.h"
#include "Evaluator/RequestLocks.h"
#include "Engine/Engine.h"
#include "Engine/EngineFunctor.h"
#include "Pooma/Configuration.h"
//-----------------------------------------------------------------------------
// Forward Declarations:
//-----------------------------------------------------------------------------
/**
* An ExpressionKernel is a specific kind of iterate which
* evaluates a particular expression with a loop over a given domain.
*
* An ExpressionKernel IS-AN ExpressionTask. That means that it
* has three primary functions:
* -# Construct given an expression and a domain. This will acquire
* locks on the data referenced by the expression.
* -# Destruct. This releases the locks on the data.
* -# Run the kernel by calling the member function run.
*/
template<class LHS,class Op,class RHS,class EvalTag>
class ExpressionKernel : public Pooma::Iterate_t
{
public:
typedef ExpressionKernel<LHS,Op,RHS,EvalTag> This_t;
//
// Construct from an Expr.
// Build the kernel that will evaluate the expression on the given domain.
// Acquire locks on the data referred to by the expression.
//
ExpressionKernel(const LHS&,const Op&,const RHS&);
//
// Virtual Destructor.
// Release locks on the data referred to by the expression.
//
virtual ~ExpressionKernel();
//
// Do the loop.
//
virtual void run();
private:
// The expression we will evaluate.
LHS lhs_m;
Op op_m;
RHS rhs_m;
};
//////////////////////////////////////////////////////////////////////
//
// Implementation of the functions for ExpressionKernel.
// Since ExpressionKernel is templated on an expression type,
// there is little hope of instantiating by hand, so we put
// the definition in the header file.
//
//////////////////////////////////////////////////////////////////////
//
// Constructor
// Input an expression and record it for later use.
//
template<class LHS,class Op,class RHS,class EvalTag>
ExpressionKernel<LHS,Op,RHS,EvalTag>::
ExpressionKernel(const LHS& lhs,const Op& op,const RHS& rhs)
: Pooma::Iterate_t(Pooma::scheduler()),
lhs_m(lhs), op_m(op), rhs_m(rhs)
{
hintAffinity(engineFunctor(lhs, DataObjectRequest<BlockAffinity>()));
// Request locks
// First make the write request.
// The write request tag remembers the data block
// for the left hand side so we can check if there is a stencil
// on the right.
DataObjectRequest<WriteRequest> writeReq(*this);
engineFunctor(lhs_m, writeReq);
// Now make the read request.
// Use the remembered write request block to check and see
// if that block is used on the right. If so, do a notify to the
// iterated instead of a request of the data object.
DataObjectRequest<ReadRequest> readReq(writeReq);
engineFunctor(rhs_m, readReq);
}
//
// Destroy the kernel.
// Just let the expression destroy itself.
// Release locks.
//
template<class LHS,class Op,class RHS,class EvalTag>
ExpressionKernel<LHS,Op,RHS,EvalTag>::~ExpressionKernel()
{
// The write request remembers the data block it sees on the left
// so that it can check and see if it finds it on the right.
DataObjectRequest<WriteRelease> writeReq;
engineFunctor(lhs_m, writeReq);
// The read request checks to see if the data object for the left
// appears on the right. If it does, it doesn't do a release for it
// since a request wasn't generated above.
DataObjectRequest<ReadRelease> readReq(writeReq);
engineFunctor(rhs_m, readReq);
}
//
// Evaluate the kernel
// Just tell an InlineEvaluator to do it.
//
template<class LHS,class Op,class RHS,class EvalTag>
void
ExpressionKernel<LHS,Op,RHS,EvalTag>::run()
{
// Just evaluate the expression.
KernelEvaluator<EvalTag>::evaluate(lhs_m,op_m,rhs_m);
// we could release the locks here instead of in the dtor.
}
template<class LHS,class Op,class RHS,class EvalTag>
inline static
ExpressionKernel<LHS,Op,RHS,EvalTag>*
generateKernel(const LHS& lhs, const Op& op, const RHS& rhs, const EvalTag&)
{
return new ExpressionKernel<LHS,Op,RHS,EvalTag>(lhs, op, rhs);
}
//////////////////////////////////////////////////////////////////////
#endif // POOMA_EVALUATOR_EXPRESSIONKERNEL_H
// ACL:rcsinfo
// ----------------------------------------------------------------------
// $RCSfile: ExpressionKernel.h,v $ $Author: richard $
// $Revision: 1.47 $ $Date: 2004/11/01 18:16:40 $
// ----------------------------------------------------------------------
// ACL:rcsinfo
|
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <iterator>
#include <cassert>
#include <vector>
#include <cstdio>
#include <ctime>
using namespace std;
const int binLen=8;
const int happycount=100;
//struct for node of binary tree
struct node
{
string value; //to place value of the phrase string
vector<int> F; //to keep track of all the positions
node* left;
node* right;
};
//creating a class for binary tree
class btree
{
private:
node* root;
void destroyNodes(node* start); //for recursive implementation of destructor
public:
btree();
~btree();
void insert(string key, int offset); //to insert a new node
node* search(string key); //to find the string in the tree
};
btree::btree()
{
root=nullptr;
}
//implement destructor since dynamic memory allocation occurs
btree::~btree()
{
if(root!=nullptr)
destroyNodes(root);
}
void btree::destroyNodes(node* start) //helps in recursive implementation of the destructor
{
if(start!=nullptr)
{
destroyNodes(start->left);
destroyNodes(start->right);
}
delete start;
}
void btree::insert(string key, int offset)
{
node* parent=root; //helps keep track of the node at which the child pointer has to be changed
node* start=root;
while(start!=nullptr)
{
parent=start;
if(start->value == key)
{
start->F.insert(std::upper_bound( start->F.begin(), start->F.end(), offset), offset); //insert offset in sorted vector at its correct position to keep the vector sorted
return;
}
else if(start->value > key)
start=start->left;
else
start=start->right;
}
node* n = new node;
n->value = key;
n->left=nullptr;
n->right=nullptr;
n->F.push_back(offset); //
if(root==nullptr)
root=n;
else if(parent->value > key)
parent->left=n;
else
parent->right=n;
}
node* btree::search(string key)
{
node* start=root;
while(start!=nullptr)
{
if(start->value==key)
return start;
else if(start->value > key)
start=start->left;
else
start=start->right;
}
return nullptr;
}
//create a diff file
void createDiff(istream& fold, istream& fnew, ostream& fdiff)
{
char charA[1];
char charB[1];
btree b;
string strC="";
char a;
//create a binary tree with all possible sequences of 8 characters from the old file
for(int count=0;count<binLen;count++)
{
fold.seekg(count, ios::beg);
int i=0;
strC="";
while (fold.get(a))
{
i++;
strC=strC+a;
//if the string is 8 characters long add it to the tree
if(i%binLen==0)
{
b.insert(strC,i-binLen+count);
strC="";
}
}
fold.clear();
}
bool bo=false;
string p="";
string add="";
node* n;
//for all the characters in the new file
while(fnew.read (charA, 1))
{
p+=charA[0];
//make p a string of 8 characters by adding characters till it is long enough
while(p.length()<binLen && fnew.read (charA, 1))
{
p+=charA[0];
}
//search the tree for the 8 character sequence
n=b.search(p);
int start=0;
int max=-1;
int k=0;
int st=-100;
//if the sequence occurs in the binary tree
if(n!=nullptr)
{
//for all the characters stored in the add string write a add instruction to the file
if(add.length()!=0)
{
fdiff<<"A"<<add.length()<<":"<<add;
add="";
}
int posQ=0;
string strFind="";
int counti=0;
//read in the new few characters as per the value of happystring to compare with the following sequences from all the offsets in the old file
//this helps reduce the time taken to read the string each time
for(;fnew.read (charA, 1)&& counti<happycount;counti++)
strFind+=charA[0];
//while there are more offset positions, try to find a better one
int loopcount=0;
while(posQ < n->F.size() && max < counti && loopcount<500)
{
loopcount++;
k=0;
st=n->F[posQ];
fold.clear();
fold.seekg (st+binLen,ios::beg);
fold.read (charB, 1);
//k counts the number of matches following the matched sequence
while(k<strFind.size() && strFind[k]==charB[0])
{
k++;
if(!fold.read(charB, 1) )
{
fold.clear();
break;
}
}
//if there are more matches than the previous time, set it to the max value
if(k>max)
{
max=k;
start=st;
}
posQ++;
}
strFind="";
fold.clear();
//if the matches were equal to the maximum possible length of the string p, then look if there are possibly more matches
if(max==happycount &&fold.seekg (st+max+binLen,ios::beg))
{
fold.read (charB, 1);
while(charA[0]==charB[0])
{
max++;
if(!fnew.read (charA, 1) || !fold.read(charB, 1) )
break;
}
//set the iterator of fnew to where it should continue from
fnew.seekg (-1,ios::cur);
}
else
{
//set the iterator of fnew to where it should continue from
if(counti<happycount)
{
fnew.clear();
counti--;
}
fnew.seekg (-1-counti+max,ios::cur);
}
fdiff<<"C"<<binLen+max<<","<<start;
//write the copy instruction
bo=true;
p="";
// cout<<fnew.tellg()<<endl;
}
else
{
//add the first character to the string and remove that character from the string p
add+=p[0];
p=p.substr(1);
bo=false;
}
}
//for the remaining characters, add them
if(bo==true)
add += p.substr(0,p.length()-1);
else
add+=p;
if(add.length()!=0)
fdiff<<"A"<<add.length()<<":"<<add;
}
bool applyDiff(istream& fold, istream& fdiff, ostream& fnew)
{
char charA[1];
char a;
string p="";
int i=0;
int k=0;
//for all the characters in the diff file
while(fdiff.read (charA, 1))
{
a=charA[0];
if(a=='A') //add instruction
{
fdiff>>i;
fdiff.read (charA, 1);
if(charA[0]!=':') //check for correct format
return false;
for(int j=0; j<i-1;j++) //read in the number of characters i
{
fdiff.read (charA, 1);
fnew<<charA[0];
}
if(!fdiff.read (charA, 1))
return false;
fnew<<charA[0];
}
else if(a=='C') //copy instruction
{
fdiff>>i;
fdiff.read (charA, 1);
if(charA[0]!=',') //check format
return false;
fdiff>>k;
fold.clear();
if(!fold.seekg(k,ios::beg))
return false;
for(int j=0; j<i-1;j++) //read in stated characters from the old file
{
fold.read (charA, 1);
fnew<<charA[0];
}
if(!fold.read (charA, 1))
return false;
fnew<<charA[0];
}
else if(a=='\r' ||a=='\n') //do-nothing instruction
{
}
else
return false;
}
return true;
}
bool runtest(string oldName, string newName, string diffName, string newName2)
{
if (diffName == oldName || diffName == newName ||
newName2 == oldName || newName2 == diffName ||
newName2 == newName)
{
cerr << "Files used for output must have names distinct from other files" << endl;
return false;
}
ifstream oldFile(oldName, ios::binary);
if (!oldFile)
{
cerr << "Cannot open " << oldName << endl;
return false;
}
ifstream newFile(newName, ios::binary);
if (!newFile)
{
cerr << "Cannot open " << newName << endl;
return false;
}
ofstream diffFile(diffName, ios::binary);
if (!diffFile)
{
cerr << "Cannot create " << diffName << endl;
return false;
}
createDiff(oldFile, newFile, diffFile);
diffFile.close();
oldFile.clear(); // clear the end of file condition
oldFile.seekg(0); // reset back to beginning of the file
ifstream diffFile2(diffName, ios::binary);
if (!diffFile2)
{
cerr << "Cannot read the " << diffName << " that was just created!" << endl;
return false;
}
ofstream newFile2(newName2, ios::binary);
if (!newFile2)
{
cerr << "Cannot create " << newName2 << endl;
return false;
}
assert(applyDiff(oldFile, diffFile2, newFile2));
newFile2.close();
newFile.clear();
newFile.seekg(0);
ifstream newFile3(newName2, ios::binary);
if (!newFile)
{
cerr << "Cannot open " << newName2 << endl;
return false;
}
istreambuf_iterator<char>begin1(newFile);
istreambuf_iterator<char>end1;
istreambuf_iterator<char>end2;
istreambuf_iterator<char>begin2(newFile3);
if (!(equal(begin1,end1,begin2)))
{
cerr << newName2 << " is not identical to " << newName
<< "; test FAILED" << endl;
return false;
}
return true;
}
bool apply_diff(string oldName, string diffName, string newName2)
{
if (diffName == oldName || newName2 == oldName || newName2 == diffName)
{
cerr << "Files used for output must have names distinct from other files" << endl;
return false;
}
ifstream oldFile(oldName, ios::binary);
if (!oldFile)
{
cerr << "Cannot open " << oldName << endl;
return false;
}
ifstream diffFile2(diffName, ios::binary);
if (!diffFile2)
{
cerr << "Cannot read the " << diffName << " that was just created!" << endl;
return false;
}
ofstream newFile2(newName2, ios::binary);
if (!newFile2)
{
cerr << "Cannot create " << newName2 << endl;
return false;
}
assert(applyDiff(oldFile, diffFile2, newFile2));
newFile2.close();
return true;
}
bool create_diff(string oldName, string newName, string diffName)
{
if (diffName == oldName || diffName == newName )
{
cerr << "Diff file must have a distinct name" << endl;
return false;
}
ifstream oldFile(oldName, ios::binary);
if (!oldFile)
{
cerr << "Cannot open " << oldName << endl;
return false;
}
ifstream newFile(newName, ios::binary);
if (!newFile)
{
cerr << "Cannot open " << newName << endl;
return false;
}
ofstream diffFile(diffName, ios::binary);
if (!diffFile)
{
cerr << "Cannot create " << diffName << endl;
return false;
}
createDiff(oldFile, newFile, diffFile);
diffFile.close();
return true;
}
int main()
{
int opt;
cout<<"Please select one of the following options:\n1: Create a diff file\n2: Apply a diff file\n3: Check accuracy\n";
cin>>opt;
while(opt != 1 && opt != 2 && opt != 3)
{
cout<<"Please enter valid option (1/2/3)\n";
cin.ignore(1000, '\n');
cin>>opt;
}
cin.ignore(1000, '\n');
string orig, modified, diff, remade;
if (opt == 1)
{
cout<<"Enter absolute path for original file\n";
getline(cin, orig);
cout<<"Enter absolute path for modified file\n";
getline(cin, modified);
cout<<"Enter absolute path for diff file\n";
getline(cin, diff);
create_diff(orig, modified, diff);
}
else if (opt == 2)
{
cout<<"Enter absolute path for original file\n";
getline(cin, orig);
cout<<"Enter absolute path for diff file\n";
getline(cin, diff);
cout<<"Enter absolute path for new file\n";
getline(cin, remade);
apply_diff(orig, diff, remade);
}
else
{
cout<<"Enter absolute path for original file\n";
getline(cin, orig);
cout<<"Enter absolute path for modified file\n";
getline(cin, modified);
cout<<"Enter absolute path for diff file\n";
getline(cin, diff);
cout<<"Enter absolute path for new file\n";
getline(cin, remade);
assert(runtest(orig, modified, diff, remade));
}
return 0;
}
|
#include <iostream>
int main(){
auto var_int = 5;
auto var_doub = 6.4 ;
auto var_doub2 = 10.4 ;
printf("var_int %d var_doub %f\n",var_int,var_doub);
printf("swapped wrong output by swapping keep in mind var_int %f var_doub %d\n",var_int,var_doub2);
//Most easy methd is using cout
std::cout << "var_int "<< var_int << " var_doub " << var_doub << std::endl;
return 0;
}
|
/*
* SPDX-FileCopyrightText: (C) 2017-2022 Matthias Fehring <mf@huessenbergnetz.de>
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef CUTELYSTVALIDATORRULE_P_H
#define CUTELYSTVALIDATORRULE_P_H
#include "validatorrule.h"
#include <Cutelyst/Context>
#include <limits>
#include <QDate>
#include <QDateTime>
#include <QLocale>
#include <QTime>
#include <QTimeZone>
namespace Cutelyst {
class ValidatorRulePrivate
{
Q_DISABLE_COPY(ValidatorRulePrivate)
public:
ValidatorRulePrivate() {}
ValidatorRulePrivate(const QString &f, const ValidatorMessages &m, const QString &dvk)
: field(f)
, defValKey(dvk)
, messages(m)
{
}
virtual ~ValidatorRulePrivate() {}
QDate extractDate(Context *c, const QString &date, const char *format = nullptr) const
{
QDate d;
Q_ASSERT(c);
if (format) {
const QString _format = translationContext.size() ? c->translate(translationContext.data(), format) : QString::fromUtf8(format);
d = QDate::fromString(date, _format);
if (d.isValid()) {
return d;
}
d = c->locale().toDate(date, _format);
if (d.isValid()) {
return d;
}
}
for (QLocale::FormatType f : {QLocale::ShortFormat, QLocale::LongFormat}) {
d = c->locale().toDate(date, f);
if (d.isValid()) {
return d;
}
}
for (Qt::DateFormat f : {Qt::ISODate, Qt::RFC2822Date, Qt::TextDate}) {
d = QDate::fromString(date, f);
if (d.isValid()) {
return d;
}
}
return d;
}
QTime extractTime(Context *c, const QString &time, const char *format = nullptr) const
{
QTime t;
Q_ASSERT(c);
if (format) {
const QString _format = translationContext.size() ? c->translate(translationContext.data(), format) : QString::fromUtf8(format);
t = QTime::fromString(time, _format);
if (t.isValid()) {
return t;
}
t = c->locale().toTime(time, _format);
if (t.isValid()) {
return t;
}
}
for (QLocale::FormatType f : {QLocale::ShortFormat, QLocale::LongFormat}) {
t = c->locale().toTime(time, f);
if (t.isValid()) {
return t;
}
}
for (Qt::DateFormat f : {Qt::ISODate, Qt::RFC2822Date, Qt::TextDate}) {
t = QTime::fromString(time, f);
if (t.isValid()) {
return t;
}
}
return t;
}
QDateTime extractDateTime(Context *c, const QString &dateTime, const char *format = nullptr, const QTimeZone &tz = QTimeZone()) const
{
QDateTime dt;
Q_ASSERT(c);
if (format) {
const QString _format = translationContext.size() ? c->translate(translationContext.data(), format) : QString::fromUtf8(format);
dt = QDateTime::fromString(dateTime, _format);
if (dt.isValid()) {
if (tz.isValid()) {
dt.setTimeZone(tz);
}
return dt;
}
dt = c->locale().toDateTime(dateTime, _format);
if (dt.isValid()) {
if (tz.isValid()) {
dt.setTimeZone(tz);
}
return dt;
}
}
for (QLocale::FormatType f : {QLocale::ShortFormat, QLocale::LongFormat}) {
dt = c->locale().toDateTime(dateTime, f);
if (dt.isValid()) {
if (tz.isValid()) {
dt.setTimeZone(tz);
}
return dt;
}
}
for (Qt::DateFormat f : {Qt::ISODate, Qt::RFC2822Date, Qt::TextDate}) {
dt = QDateTime::fromString(dateTime, f);
if (dt.isValid()) {
if (tz.isValid()) {
dt.setTimeZone(tz);
}
return dt;
}
}
return dt;
}
QVariant extractOtherDateTime(Context *c, const ParamsMultiMap ¶ms, const QString &field, const QTimeZone &tz = QTimeZone(), const char *format = nullptr) const
{
QVariant var;
Q_ASSERT(c);
int sepPos = field.indexOf(QLatin1Char('|'));
if (sepPos > -1) {
const QString fieldName = field.left(sepPos);
const QString value = params.value(fieldName);
if (!value.isEmpty()) {
const QString type = field.mid(sepPos + 1);
if (type.startsWith(u"dt")) {
QDateTime dt = extractDateTime(c, value, format);
if (dt.isValid()) {
if (tz.isValid()) {
dt.setTimeZone(tz);
}
var = dt;
}
} else if (type.startsWith(QLatin1Char('t'))) {
const QTime t = extractTime(c, value, format);
if (t.isValid()) {
var = t;
}
} else if (type.startsWith(QLatin1Char('d'))) {
const QDate d = extractDate(c, value, format);
if (d.isValid()) {
var = d;
}
}
}
} else {
var = c->stash(field);
}
return var;
}
static QTimeZone extractTimeZone(Context *c, const ParamsMultiMap ¶ms, const QString &field)
{
QTimeZone tz;
Q_ASSERT(c);
Q_UNUSED(params)
tz = QTimeZone(field.toLatin1());
if (!tz.isValid()) {
const QString tzString = params.value(field, c->stash(field).toString());
// const QString tzString = c->stash(field).toString();
if (!tzString.isEmpty()) {
tz = QTimeZone(tzString.toLatin1());
if (!tz.isValid()) {
tz = QTimeZone(tzString.toInt());
}
}
}
return tz;
}
static qlonglong extractLongLong(Context *c, const ParamsMultiMap ¶ms, const QVariant &value, bool *ok)
{
qlonglong val = 0;
Q_ASSERT(c);
Q_ASSERT(ok);
Q_UNUSED(params)
if (value.userType() == QMetaType::QString) {
const QString field = value.toString();
/* if (params.contains(field)) {
const QString v = params.value(field);
val = v.toLongLong(ok);
// if (!*ok) {
// val = c->locale().toLongLong(v, ok);
// }
} else */
if (c->stash().contains(field)) {
val = c->stash(field).toLongLong(ok);
} else {
*ok = false;
}
} else {
val = value.toLongLong(ok);
}
return val;
}
static qulonglong extractULongLong(Context *c, const ParamsMultiMap ¶ms, const QVariant &value, bool *ok)
{
qulonglong val = 0;
Q_ASSERT(c);
Q_ASSERT(ok);
Q_UNUSED(params)
if (value.userType() == QMetaType::QString) {
const QString field = value.toString();
/* if (params.contains(field)) {
const QString v = params.value(field);
val = v.toULongLong(ok);
// if (!*ok) {
// val = c->locale().toULongLong(v, ok);
// }
} else */
if (c->stash().contains(field)) {
val = c->stash(field).toULongLong(ok);
} else {
*ok = false;
}
} else {
val = value.toULongLong(ok);
}
return val;
}
static double extractDouble(Context *c, const ParamsMultiMap ¶ms, const QVariant &value, bool *ok)
{
double val = 0.0;
Q_ASSERT(c);
Q_ASSERT(ok);
Q_UNUSED(params)
if (value.userType() == QMetaType::QString) {
const QString field = value.toString();
/* if (params.contains(field)) {
const QString v = params.value(field);
val = v.toDouble(ok);
// if (!*ok) {
// val = c->locale().toDouble(v, ok);
// }
} else*/
if (c->stash().contains(field)) {
val = c->stash(field).toDouble(ok);
} else {
*ok = false;
}
} else {
val = value.toDouble(ok);
}
return val;
}
static int extractInt(Context *c, const ParamsMultiMap ¶ms, const QVariant &value, bool *ok)
{
int val = 0;
Q_ASSERT(c);
Q_ASSERT(ok);
Q_UNUSED(params)
if (value.userType() == QMetaType::QString) {
const QString field = value.toString();
/* if (params.contains(field)) {
const QString _val = params.value(field);
val = _val.toInt(ok);
// if (!*ok) {
// val = c->locale().toInt(_val, ok);
// }
} else*/
if (c->stash().contains(field)) {
val = c->stash(field).toInt(ok);
} else {
*ok = false;
}
} else {
val = value.toInt(ok);
}
return val;
}
static QVariant valueToNumber(Context *c, const QString &value, QMetaType::Type type)
{
QVariant var;
Q_UNUSED(c)
bool ok = false;
switch (type) {
case QMetaType::Char:
{
const short _v = value.toShort(&ok);
if (ok) {
if ((_v < static_cast<short>(std::numeric_limits<char>::max())) && (_v > static_cast<short>(std::numeric_limits<char>::min()))) {
var.setValue<char>(static_cast<char>(_v));
}
}
} break;
case QMetaType::Short:
{
// const short v = c->locale().toShort(value, &ok);
const short v = value.toShort(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::Int:
{
// const int v = c->locale().toInt(value, &ok);
const int v = value.toInt(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::Long:
{
const long v = value.toLong(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::LongLong:
{
// const qlonglong v = c->locale().toLongLong(value, &ok);
// if (ok) {
// if (type == QMetaType::Long) {
// if (v < static_cast<qlonglong>(std::numeric_limits<long>::max())) {
// var.setValue<long>(static_cast<long>(v));
// }
// } else {
// var.setValue<qlonglong>(v);
// }
// }
const qlonglong v = value.toLongLong(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::UChar:
{
const ushort _v = value.toUShort(&ok);
if (ok) {
if ((_v < static_cast<ushort>(std::numeric_limits<uchar>::max())) && (_v > static_cast<ushort>(std::numeric_limits<uchar>::min()))) {
var.setValue<uchar>(static_cast<uchar>(_v));
}
}
} break;
case QMetaType::UShort:
{
// const ushort v = c->locale().toUShort(value, &ok);
const ushort v = value.toUShort(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::UInt:
{
// const uint v = c->locale().toUInt(value, &ok);
const uint v = value.toUInt(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::ULong:
{
const ulong v = value.toULong(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::ULongLong:
{
// const qulonglong v = c->locale().toULongLong(value, &ok);
// if (ok) {
// if (type == QMetaType::ULong) {
// if ((v > static_cast<qulonglong>(std::numeric_limits<ulong>::min())) && (v < static_cast<qulonglong>(std::numeric_limits<ulong>::max()))) {
// var.setValue<ulong>(static_cast<ulong>(v));
// }
// } else {
// var.setValue<qulonglong>(v);
// }
// }
const qulonglong v = value.toULongLong(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::Float:
{
// const float v = c->locale().toFloat(value, &ok);
const float v = value.toFloat(&ok);
if (ok) {
var.setValue(v);
}
} break;
case QMetaType::Double:
{
// const double v = c->locale().toDouble(value, &ok);
const double v = value.toDouble(&ok);
if (ok) {
var.setValue(v);
}
} break;
default:
break;
}
return var;
}
QLatin1String translationContext;
QString field;
QString defValKey;
ValidatorMessages messages;
bool trimBefore = true;
};
} // namespace Cutelyst
#endif // CUTELYSTVALIDATORRULE_P_H
|
/***************************************************************************
Copyright (c) 2020 Philip Fortier
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.
***************************************************************************/
#include "stdafx.h"
#include "ResourceMap.h"
#include "ResourceBlob.h"
#include "ResourceSources.h"
#include "AudioResourceSource.h"
#include "AudioCacheResourceSource.h"
#include "PatchResourceSource.h"
#include "ResourceMapOperations.h"
#include "resource.h"
#include "RemoveScriptDialog.h"
#include "ResourceContainer.h"
#include "AppState.h"
template<typename _TFileDescriptor>
std::unique_ptr<ResourceSource> _CreateResourceSource(const std::string &gameFolder, SCIVersion version, ResourceSourceFlags source)
{
if (version.MapFormat == ResourceMapFormat::SCI0)
{
return std::make_unique<MapAndPackageSource<SCI0MapNavigator<RESOURCEMAPENTRY_SCI0>, _TFileDescriptor>>(version, MakeResourceHeaderReadWriter<RESOURCEHEADER_SCI0>(), gameFolder);
}
else if (version.MapFormat == ResourceMapFormat::SCI0_LayoutSCI1)
{
return std::make_unique<MapAndPackageSource<SCI0MapNavigator<RESOURCEMAPENTRY_SCI0_SCI1LAYOUT>, _TFileDescriptor>>(version, MakeResourceHeaderReadWriter<RESOURCEHEADER_SCI0>(), gameFolder);
}
else if (version.MapFormat == ResourceMapFormat::SCI1)
{
if (version.PackageFormat == ResourcePackageFormat::SCI2)
{
return std::make_unique<MapAndPackageSource<SCI1MapNavigator<RESOURCEMAPENTRY_SCI1>, _TFileDescriptor>>(version, MakeResourceHeaderReadWriter<RESOURCEHEADER_SCI2>(), gameFolder);
}
else
{
return std::make_unique<MapAndPackageSource<SCI1MapNavigator<RESOURCEMAPENTRY_SCI1>, _TFileDescriptor>>(version, MakeResourceHeaderReadWriter<RESOURCEHEADER_SCI1>(), gameFolder);
}
}
else if (version.MapFormat == ResourceMapFormat::SCI11)
{
return std::make_unique<MapAndPackageSource<SCI1MapNavigator<RESOURCEMAPENTRY_SCI1_1>, _TFileDescriptor>>(version, MakeResourceHeaderReadWriter<RESOURCEHEADER_SCI1>(), gameFolder);
}
else if (version.MapFormat == ResourceMapFormat::SCI2)
{
return std::make_unique<MapAndPackageSource<SCI1MapNavigator<RESOURCEMAPENTRY_SCI1>, _TFileDescriptor>>(version, MakeResourceHeaderReadWriter<RESOURCEHEADER_SCI2_1>(), gameFolder);
}
return std::unique_ptr<ResourceSource>(nullptr);
}
std::unique_ptr<ResourceSource> CreateResourceSource(ResourceTypeFlags flagsHint, const GameFolderHelper &helper, ResourceSourceFlags source, ResourceSourceAccessFlags access, int mapContext)
{
if (source == ResourceSourceFlags::ResourceMap)
{
return _CreateResourceSource<FileDescriptorResourceMap>(helper.GameFolder, helper.Version, source);
}
else if (source == ResourceSourceFlags::MessageMap)
{
return _CreateResourceSource<FileDescriptorMessageMap>(helper.GameFolder, helper.Version, source);
}
else if (source == ResourceSourceFlags::AltMap)
{
return _CreateResourceSource<FileDescriptorAltMap>(helper.GameFolder, helper.Version, source);
}
else if (source == ResourceSourceFlags::PatchFile)
{
return std::make_unique<PatchFilesResourceSource>(flagsHint, helper.Version, helper.GameFolder, ResourceSourceFlags::PatchFile);
}
else if ((source == ResourceSourceFlags::Aud) || (source == ResourceSourceFlags::Sfx))
{
return std::make_unique<AudioResourceSource>(helper, mapContext, access);
}
else if (source == ResourceSourceFlags::AudioCache)
{
// phil, passing null
return std::make_unique<AudioCacheResourceSource>(&appState->GetResourceMap(), helper, mapContext, access);
}
else if (source == ResourceSourceFlags::AudioMapCache)
{
return std::make_unique<PatchFilesResourceSource>(ResourceTypeFlags::AudioMap, helper.Version, helper.GameFolder + pszAudioCacheFolder, ResourceSourceFlags::AudioMapCache);
}
return std::unique_ptr<ResourceSource>(nullptr);
}
void DeleteResource(CResourceMap &resourceMap, const ResourceBlob &data)
{
const GameFolderHelper &helper = resourceMap.Helper();
ResourceTypeFlags typeFlags = ResourceTypeToFlag(data.GetType());
IteratorState iteratorState;
// We know we want the message map now.
bool encounteredOne = false;
bool isLastOne = true;
// Since our AudioResourceSource no longer supports removing or adding entries, we need to use the AudioCacheResourceSource instead.
// That will pull the audio resources out of resource.aud (or whatever), into the cache files directory. Then we'll use the cache
// files source to delete it.
// This is a big hacky. Appending resources doesn't have this problem, because we have no way to create new audio resources that
// don't have ResourceSourceFlags::AudioCache
ResourceSourceFlags sourcFlags = data.GetSourceFlags();
if ((sourcFlags == ResourceSourceFlags::Aud) || (sourcFlags == ResourceSourceFlags::Sfx))
{
sourcFlags = ResourceSourceFlags::AudioCache;
}
// This is the thing that changes based on version and messagemap or blah.
std::unique_ptr<ResourceSource> resourceSource = CreateResourceSource(ResourceTypeToFlag(data.GetType()), resourceMap.Helper(), sourcFlags, ResourceSourceAccessFlags::ReadWrite);
if (resourceSource)
{
ResourceMapEntryAgnostic mapEntry;
std::unique_ptr<ResourceMapEntryAgnostic> mapEntryToRemove;
while (resourceSource->ReadNextEntry(typeFlags, iteratorState, mapEntry, nullptr))
{
if ((mapEntry.Number == data.GetNumber()) &&
(mapEntry.PackageNumber == data.GetPackageHint()))
{
if (encounteredOne)
{
// At least two of these resources left.
isLastOne = false;
if (mapEntryToRemove)
{
// No point in continuing iterating, we've done our job and found the info we need.
break;
}
}
encounteredOne = true;
if (!mapEntryToRemove)
{
// If this is a match, now we need to get it from the actual volume and compare bits.
ResourceHeaderAgnostic header;
sci::istream volumeStream = resourceSource->GetHeaderAndPositionedStream(mapEntry, header);
if ((header.cbCompressed == data.GetCompressedLength()) &&
(header.cbDecompressed == data.GetDecompressedLength()) &&
(header.CompressionMethod == data.GetEncoding()))
{
// Let's compare some bits to see if it's really identical
// Either cbCompressed is the same as decompressed (no compression), or else the ResourceBlob should have compressed data in it for us to compare with.
const uint8_t *data1;
const uint8_t *data2 = volumeStream.GetInternalPointer() + volumeStream.tellg();
size_t dataLength;
if (header.CompressionMethod != 0)
{
data1 = data.GetDataCompressed();
dataLength = header.cbCompressed;
}
else
{
assert(header.cbCompressed == header.cbDecompressed);
data1 = data.GetData();
dataLength = header.cbDecompressed;
}
if (volumeStream.getBytesRemaining() >= dataLength)
{
if (data1 && data2 && (0 == memcmp(data1, data2, header.cbCompressed)))
{
// Finally yes, they are identical. We know which one to remove.
mapEntryToRemove = std::make_unique<ResourceMapEntryAgnostic>(mapEntry);
}
}
}
}
}
}
// Do the actual remove
if (!mapEntryToRemove)
{
AfxMessageBox(TEXT("Resource not found."), MB_ERRORFLAGS);
}
else
{
resourceSource->RemoveEntry(*mapEntryToRemove);
}
if (mapEntryToRemove && isLastOne && (data.GetType() == ResourceType::Script))
{
// TODO: If this is the "last" of this resource, we have extra work to do.
CRemoveScriptDialog dialog(static_cast<WORD>(data.GetNumber()));
if (IDOK == dialog.DoModal())
{
// Remove it from the ini
std::string iniKey = default_reskey(data.GetNumber(), data.GetHeader().Base36Number);
std::string scriptTitle = helper.GetIniString("Script", iniKey);
ScriptId scriptId = resourceMap.Helper().GetScriptId(scriptTitle);
// First, remove from the [Script] section
WritePrivateProfileString("Script", iniKey.c_str(), nullptr, helper.GetGameIniFileName().c_str());
// Second, remove from the [Language] section
WritePrivateProfileString("Language", scriptTitle.c_str(), nullptr, helper.GetGameIniFileName().c_str());
if (dialog.AlsoDelete())
{
// Remove the heap too
std::unique_ptr<ResourceBlob> theHeapOne = resourceMap.MostRecentResource(ResourceType::Heap, data.GetNumber(), false);
if (theHeapOne)
{
DeleteResource(resourceMap, *theHeapOne);
}
if (!DeleteFile(scriptId.GetFullPath().c_str()))
{
char szMessage[MAX_PATH * 2];
char szReason[200];
FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, (DWORD)GetLastError(), 0, szReason, ARRAYSIZE(szReason), nullptr);
StringCchPrintf(szMessage, ARRAYSIZE(szMessage), "Couldn't delete script file.\n%s", szReason);
AfxMessageBox(szMessage, MB_OK | MB_ICONEXCLAMATION | MB_APPLMODAL);
}
}
}
}
}
}
|
//
// Created by gadi on 07/01/2020.
//
#ifndef SEARCHALGORITHMS__SERVER_H_
#define SEARCHALGORITHMS__SERVER_H_
#include "ClientHandler.h"
#include <string>
#include <iostream>
#include "Solver.h"
#include "StringReverser.h"
#include "CacheManager.h"
#include "FileCacheManager.h"
namespace server_side {
class Server {
public:
virtual void open(int port, ClientHandler *c) = 0;
virtual void stop() = 0;
};
}
#endif //SEARCHALGORITHMS__SERVER_H_
|
#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<vi> vvi;
typedef vector<ii> vii;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef set<int> si;
typedef map<string, int> msi;
typedef greater<int> gt;
typedef priority_queue<int, vector<int>, gt> minq;
typedef long long ll;
const ll INF = 1e18L + 1;
//clang++ -std=c++11 -stdlib=libc++
int main() {
int N; cin >> N;
double D = sqrt( 1+8*N);
bool ok = D - (double) floor(D) == 0.0;
if (!ok) {
cout << "No" << endl; return 0;
} else {
cout << "Yes" << endl;
}
int numSet = (D-1)/2 +1;
cout << numSet << endl;
vector<vector<int >> sets;
sets.push_back(vi(1,1));
sets.push_back(vi(1,1));
int curSet = 1;
int leftMost = 1;
for (int i=2; i<=N; i++) {
if (leftMost == curSet) {
sets.push_back(vi(1, i));
curSet++;
sets[0].push_back(i);
leftMost=1;
continue;
}
sets[leftMost++].push_back(i);
sets[curSet].push_back(i);
}
rep(i, sets.size()){
cout << sets[i].size() << ' ';
rep(j, sets[i].size()) cout << sets[i][j] << ' ';
cout << endl;
}
return 0;
}
|
#include<iostream>
#include<conio.h>
using namespace std;
class TreeNode
{
private:
int *obj;
TreeNode *left;
TreeNode *right;
public:
int *get()
{
return this->obj;
}
void set(int *obj)
{
this->obj=obj;
}
TreeNode *getleft()
{
return left;
}
void setleft(TreeNode *left)
{
this->left=left;
}
TreeNode *getright()
{
return right;
}
void setright(TreeNode *right)
{
this->right=right;
}
TreeNode()
{
this->obj=NULL;
this->left=this->right=NULL;
}
TreeNode(int *obj)
{
this->obj=obj;
this->left=this->right=NULL;
}
};
TreeNode* insert(TreeNode *root,int *data)
{
TreeNode *newNode = new TreeNode();
newNode->set(data);
TreeNode *p,*q;
p=q=root;
while(q!=NULL)
{
p=q;
if(*data<*(p->get()))
{
q=p->getleft();
}
else
{
q=p->getright();
}
}
if(*data==*(p->get()))
cout<<"element doublicate: "<<*data;
else if(*data<*(p->get()))
p->setleft(newNode);
else
p->setright(newNode);
}
TreeNode* insrt(TreeNode *root,int *data)
{
TreeNode *i;
if(root==NULL)
{
TreeNode *newNode = new TreeNode();
newNode->set(data);
}
else if(*data<*(root->get()))
{
i=insrt(root->getleft(),data);
root->setleft(i);
}
else
{
i=insrt(root->getright(),data);
root->setright(i);
}
return root;
}
void inorder(TreeNode *root)
{
if(root==NULL) return;
inorder(root->getleft());
cout<<"\nelement: "<<*(root->get());
inorder(root->getright());
}
bool search(TreeNode *root,int *data)
{
if(root->get()==NULL) return false;
else if(*(root->get())==*data) return true;
else if(*data<=*(root->get()))
return search(root->getleft(),data);
else
return search(root->getright(),data);
}
void srch(TreeNode *root,int *data)
{
if(*data!=*(root->get()))
{
if(*data<*(root->get()))
return srch(root->getleft(),data);
else
return srch(root->getright(),data);
}
else if(root->getleft()!=NULL&&root->getright()!=NULL)
{
TreeNode *p=root->getleft();
TreeNode *q=root->getright();
cout<<"data: "<<*(root->get());
cout<<"\nleft child: "<<*(p->get());
cout<<"\nright child: "<<*(q->get())<<endl;
return;
}
else if(root->getleft()==NULL&&root->getright()==NULL)
{
cout<<"data: "<<*(root->get());
return ;
}
else
{
if(root->getleft()==NULL)
{
TreeNode *temp=root->getright();
cout<<"\ndata: "<<*(root->get());
cout<<"\nright child: "<<*(temp->get());
cout<<"\nleft child: NULL";
}
else if(root->getright()==NULL)
{
TreeNode *temp=root->getleft();
cout<<"\ndata: "<<*(root->get());
cout<<"\nleft child: "<<*(temp->get());
cout<<"\nright child: NULL";
}
}
}
void srch2(TreeNode *root,int *data)
{
if(*data!=*(root->get()))
{
if(*data<*(root->get()))
{
srch2(root->getleft(),data);
}
else
{
srch2(root->getright(),data);
}
cout<<"\nparrent is: "<<*(root->get());
}
}
TreeNode* min(TreeNode *root)
{
while(root->getleft()!=NULL)
root=root->getleft();
return root;
}
TreeNode* max(TreeNode *root)
{
while(root->getright()!=NULL)
root=root->getright();
return root;
}
TreeNode* dlt(TreeNode *root,int *data)
{
TreeNode *i;
if(*data<*(root->get()))
{
return dlt(root->getleft(),data);
}
else if(*data>*(root->get()))
{
return dlt(root->getright(),data);
}
else
{
// case:1 have 2 child
if(root->getleft()&&root->getright()!=NULL)
{
TreeNode *temp;
temp=min(root->getright());
*(root->get())=*(temp->get());
i=dlt(root->getright(),temp->get());
root->setright(i);
}
// case: 2 have 1 child
else
{
TreeNode *temp2=root;
if (root->getleft()==NULL)
root= root->getright();
else if(root->getright()==NULL)
root=root->getleft();
else root=NULL;
delete temp2;
}
return root;
}
}
int main()
{
TreeNode *root = new TreeNode();
int arr[]={15,20,10,25,8,12,17,18,16};
root->set(&arr[0]);
for(int i=1;i<=arr[i];i++)
insert(root,&arr[i]);
int op;
while(1)
{
cout<<"\nEnter 1 for to search childs: ";
cout<<"\nEnter 2 for inorder print: ";
cout<<"\nEnter 3 for maximum number: ";
cout<<"\nEnter 4 for delete Node: ";
cout<<"\nEnter 5 for to exit: "<<endl;
cin>>op;
switch(op)
{
case 1:
int n;
cout<<"enter index to search: "<<endl;
cin>>n;
srch(root,&arr[n]);
break;
case 2:
inorder(root);
break;
case 3:
min(root);
break;
case 4:
int i;
cout<<"\nenter the index no: ";
cin>>i;
root= dlt(root,&arr[i]);
break;
case 5:
exit(0);
break;
}//end of switch
}//end of while
}//end of main
|
#include <bits/stdc++.h>
using namespace std;
int removeCoveredIntervals(vector<vector<int>> &arr)
{
sort(arr.begin(), arr.end(), [](auto a, auto b) { return a[0] == b[0] ? a[1] > b[1] : a[0] < b[0]; });
for (auto a : arr)
cout << a[0] << " " << a[1] << endl;
int len = arr.size();
for (int i = 0; i < arr.size() - 1; i++)
if (arr[i][0] <= arr[i + 1][0] && arr[i][1] >= arr[i + 1][1])
{
arr[i + 1][1] = arr[i][1];
arr[i + 1][0] = arr[i][0];
len -= 1;
}
return len;
}
int main()
{
vector<vector<int>> arr{{1, 4}, {1, 2}, {3, 4}};
cout << removeCoveredIntervals(arr) << endl;
return 0;
}
|
#include <iostream>
#include "SimpleSpaceShip.h"
using namespace std;
SimpleSpaceShip::SimpleSpaceShip()
{
name += "_default";
cout << "Default Constructor Called, " << name << endl;
}
SimpleSpaceShip::SimpleSpaceShip(Vector2D position, int fuel) : position{ position }, fuel{ fuel }
{
name += "_conversion";
cout << "Conversion Constructor Called, " << name << endl;
}
void SimpleSpaceShip::setPosition(Vector2D position)
{
this->position = position;
}
void SimpleSpaceShip::setName(string name)
{
this->name = name;
}
void SimpleSpaceShip::print() const {
cout << name << ", Position: (" << position.x << ", " << position.y << ", " << fuel << ")" << endl;
}
|
#include <iostream>
#include <string>
using namespace std;
#include "solution.h"
int main() {
Solution sol;
cout << sol.toGoatLatin(string("I speak Goat Latin")) << endl;
cout << sol.toGoatLatin(
string("The quick brown fox jumped over the lazy dog"))
<< endl;
return 0;
}
|
//Jason Strange
//CS222-01-13W
//This datatype inherits from a name key, it is used
//to store a string and compare it against other titlekeys.
#include <string>
#include "TitleKey.h"
using namespace std;
TitleKey::TitleKey(string t){title = t;}
string TitleKey::getTitle(){return title;}
void TitleKey::setTitle(string t){title = t;}
int TitleKey::cmp(Comparable* k){//Returns -1 if I am before k, 1 if I am after, and 0 if I am equal.
if (this->title < ((TitleKey*)k)->getTitle()) return -1;
if (this->title > ((TitleKey*)k)->getTitle()) return 1;
return 0;
}
|
/***********************************************************************
created: 17th August 2015
author: Lukas Meindl (based on code by Paul D Turner)
purpose: Implementation of PropertyHelper methods
*************************************************************************/
/***************************************************************************
* Copyright (C) 2004 - 2015 Paul D Turner & The CEGUI Development Team
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
***************************************************************************/
#include "CEGUI/PropertyHelper.h"
#include "CEGUI/ImageManager.h"
#include "CEGUI/Image.h"
#include "CEGUI/FontManager.h"
#include "CEGUI/text/Font.h"
#include "CEGUI/Exceptions.h"
#include "CEGUI/StreamHelper.h"
#include "CEGUI/SharedStringStream.h"
#include "CEGUI/AspectMode.h"
#include <sstream>
namespace CEGUI
{
//! Definitions of static constants
const String PropertyHelper<bool>::ValueTrue("true");
const String PropertyHelper<bool>::ValueFalse("false");
const String PropertyHelper<AspectMode>::Shrink("Shrink");
const String PropertyHelper<AspectMode>::Expand("Expand");
const String PropertyHelper<AspectMode>::AdjustHeight("AdjustHeight");
const String PropertyHelper<AspectMode>::AdjustWidth("AdjustWidth");
const String PropertyHelper<AspectMode>::Ignore("Ignore");
const String PropertyHelper<FontSizeUnit>::Points("Points");
const String PropertyHelper<FontSizeUnit>::Pixels("Pixels");
namespace
{
//! Helper function for throwing errors
void throwParsingException(const String& typeName, const String& parsedstring)
{
throw InvalidRequestException(
"PropertyHelper::fromString could not parse the type " + typeName + " from the string: \"" + parsedstring +
"\"");
}
}
bool ParserHelper::IsEmptyOrContainingOnlyDecimalPointOrSign(const CEGUI::String& text)
{
if (text.empty())
{
return true;
}
if (text.length() == 1)
{
CEGUI::String::value_type character = text[0];
if ((character == SharedStringstream::GetDecimalPoint()) ||
(character == SharedStringstream::GetNegativeSign()) ||
(character == SharedStringstream::GetPositiveSign()))
{
return true;
}
}
return false;
}
bool ParserHelper::IsEmptyOrContainingSign(const CEGUI::String& text)
{
if (text.empty())
{
return true;
}
if (text.length() == 1)
{
CEGUI::String::value_type character = text[0];
if ((character == SharedStringstream::GetNegativeSign()) ||
(character == SharedStringstream::GetPositiveSign()))
{
return true;
}
}
return false;
}
const String& PropertyHelper<bool>::getDataTypeName()
{
static const String type("bool");
return type;
}
PropertyHelper<bool>::return_type PropertyHelper<bool>::fromString(const String& str)
{
return (str == ValueTrue || str == "True");
}
PropertyHelper<bool>::string_return_type PropertyHelper<bool>::toString(pass_type val)
{
return val ? ValueTrue : ValueFalse;
}
const String& PropertyHelper<AspectMode>::getDataTypeName()
{
static const String type("AspectMode");
return type;
}
PropertyHelper<AspectMode>::string_return_type PropertyHelper<AspectMode>::toString(
PropertyHelper<AspectMode>::pass_type val)
{
if (val == AspectMode::Ignore)
{
return Ignore;
}
else if (val == AspectMode::Shrink)
{
return Shrink;
}
else if (val == AspectMode::Expand)
{
return Expand;
}
else if (val == AspectMode::AdjustHeight)
{
return AdjustHeight;
}
else if (val == AspectMode::AdjustWidth)
{
return AdjustWidth;
}
else
{
assert(false && "Invalid aspect mode");
return Ignore;
}
}
PropertyHelper<AspectMode>::return_type PropertyHelper<AspectMode>::fromString(const String& str)
{
if (str == Shrink)
{
return AspectMode::Shrink;
}
else if (str == Expand)
{
return AspectMode::Expand;
}
else if (str == AdjustHeight)
{
return AspectMode::AdjustHeight;
}
else if (str == AdjustWidth)
{
return AspectMode::AdjustWidth;
}
else
{
return AspectMode::Ignore;
}
}
const String& PropertyHelper<Image*>::getDataTypeName()
{
static const String type("Image");
return type;
}
PropertyHelper<Image*>::return_type
PropertyHelper<Image*>::fromString(const String& str)
{
// handle empty string case
if (str.empty())
return nullptr;
return_type image;
try
{
image = &ImageManager::getSingleton().get(str);
}
catch (UnknownObjectException&)
{
image = nullptr;
throwParsingException(getDataTypeName(), str);
}
return image;
}
PropertyHelper<Image*>::string_return_type PropertyHelper<Image*>::toString(
PropertyHelper<Image*>::pass_type val)
{
return val ? val->getName() : String("");
}
const String& PropertyHelper<Font*>::getDataTypeName()
{
static const String type("Font");
return type;
}
PropertyHelper<Font*>::return_type
PropertyHelper<Font*>::fromString(const String& str)
{
// handle empty string case
if (str.empty())
return nullptr;
return_type value;
try
{
value = &FontManager::getSingleton().get(str);
}
catch (UnknownObjectException&)
{
value = nullptr;
throwParsingException(getDataTypeName(), str);
}
return value;
}
PropertyHelper<Font*>::string_return_type PropertyHelper<Font*>::toString(
PropertyHelper<Font*>::pass_type val)
{
return val ? val->getName() : String("");
}
const String& PropertyHelper<float>::getDataTypeName()
{
static const String type("float");
return type;
}
PropertyHelper<float>::return_type
PropertyHelper<float>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingOnlyDecimalPointOrSign(str))
{
return 0.0f;
}
float val = 0.0f;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<float>::string_return_type PropertyHelper<float>::toString(
pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<UDim>::getDataTypeName()
{
static const String type("UDim");
return type;
}
PropertyHelper<UDim>::return_type
PropertyHelper<UDim>::fromString(const String& str)
{
UDim ud(0.0f, 0.0f);
if (str.empty())
return ud;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> ud;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return ud;
}
PropertyHelper<UDim>::string_return_type PropertyHelper<UDim>::toString(
PropertyHelper<UDim>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<UVector2>::getDataTypeName()
{
static const String type("UVector2");
return type;
}
PropertyHelper<UVector2>::return_type
PropertyHelper<UVector2>::fromString(const String& str)
{
UVector2 uv(UDim(0.0f, 0.0f), UDim(0.0f, 0.0f));
if (str.empty())
return uv;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> uv;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return uv;
}
PropertyHelper<UVector2>::string_return_type PropertyHelper<UVector2>::toString(
PropertyHelper<UVector2>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<UVector3>::getDataTypeName()
{
static const String type("UVector3");
return type;
}
PropertyHelper<UVector3>::return_type
PropertyHelper<UVector3>::fromString(const String& str)
{
UVector3 uv(UDim(0.0f, 0.0f), UDim(0.0f, 0.0f), UDim(0.0f, 0.0f));
if (str.empty())
return uv;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> uv;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return uv;
}
PropertyHelper<UVector3>::string_return_type PropertyHelper<UVector3>::toString(
PropertyHelper<UVector3>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<USize>::getDataTypeName()
{
static const String type("USize");
return type;
}
PropertyHelper<USize>::return_type
PropertyHelper<USize>::fromString(const String& str)
{
USize uv(UDim(0.0f, 0.0f), UDim(0.0f, 0.0f));
if (str.empty())
return uv;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> uv;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return uv;
}
PropertyHelper<USize>::string_return_type PropertyHelper<USize>::toString(
pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<URect>::getDataTypeName()
{
static const String type("URect");
return type;
}
PropertyHelper<URect>::return_type
PropertyHelper<URect>::fromString(const String& str)
{
URect ur(UVector2(UDim(0.0f, 0.0f), UDim(0.0f, 0.0f)), UVector2(UDim(0.0f, 0.0f), UDim(0.0f, 0.0f)));
if (str.empty())
return ur;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> ur;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return ur;
}
PropertyHelper<URect>::string_return_type PropertyHelper<URect>::toString(
PropertyHelper<URect>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<UBox>::getDataTypeName()
{
static const String type("UBox");
return type;
}
PropertyHelper<UBox>::return_type
PropertyHelper<UBox>::fromString(const String& str)
{
UBox ret(UDim(0.0f, 0.0f), UDim(0.0f, 0.0f), UDim(0.0f, 0.0f), UDim(0.0f, 0.0f));
if (str.empty())
return ret;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> ret;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return ret;
}
PropertyHelper<UBox>::string_return_type PropertyHelper<UBox>::toString(
PropertyHelper<UBox>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<ColourRect>::getDataTypeName()
{
static const String type("ColourRect");
return type;
}
PropertyHelper<ColourRect>::return_type
PropertyHelper<ColourRect>::fromString(const String& str)
{
ColourRect val(Colour(0xFF000000));
if (str.empty())
return val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
if (str.length() == 8)
{
CEGUI::Colour colourForEntireRect(0xFF000000);
sstream >> colourForEntireRect;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
val = ColourRect(colourForEntireRect);
return val;
}
else
{
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
}
PropertyHelper<ColourRect>::string_return_type PropertyHelper<ColourRect>::toString(
PropertyHelper<ColourRect>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
if(val.isMonochromatic())
sstream << val.d_top_left;
else
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<Colour>::getDataTypeName()
{
static const String type("Colour");
return type;
}
PropertyHelper<Colour>::return_type
PropertyHelper<Colour>::fromString(const String& str)
{
Colour val(0xFF000000);
if (str.empty())
return val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return Colour(val);
}
PropertyHelper<Colour>::string_return_type PropertyHelper<Colour>::toString(
PropertyHelper<Colour>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<Rectf>::getDataTypeName()
{
static const String type("Rectf");
return type;
}
PropertyHelper<Rectf>::return_type
PropertyHelper<Rectf>::fromString(const String& str)
{
Rectf val(0.0f, 0.0f, 0.0f, 0.0f);
if (str.empty())
return val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<Rectf>::string_return_type PropertyHelper<Rectf>::toString(
PropertyHelper<Rectf>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<Sizef>::getDataTypeName()
{
static const String type("Sizef");
return type;
}
PropertyHelper<Sizef>::return_type
PropertyHelper<Sizef>::fromString(const String& str)
{
Sizef val(0.0f, 0.0f);
if (str.empty())
return val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<Sizef>::string_return_type PropertyHelper<Sizef>::toString(
PropertyHelper<Sizef>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<double>::getDataTypeName()
{
static const String type("double");
return type;
}
PropertyHelper<double>::return_type
PropertyHelper<double>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingOnlyDecimalPointOrSign(str))
{
return 0.0;
}
double val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<double>::string_return_type PropertyHelper<double>::toString(
pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<std::int16_t>::getDataTypeName()
{
static const String type("int16");
return type;
}
PropertyHelper<std::int16_t>::return_type
PropertyHelper<std::int16_t>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingSign(str))
{
return 0;
}
std::int16_t val = 0;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<std::int16_t>::string_return_type PropertyHelper<std::int16_t>::toString(
pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<std::int32_t>::getDataTypeName()
{
static const String type("int32");
return type;
}
PropertyHelper<std::int32_t>::return_type
PropertyHelper<std::int32_t>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingSign(str))
{
return 0;
}
std::int32_t val = 0;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<std::int32_t>::string_return_type PropertyHelper<std::int32_t>::toString(
PropertyHelper<std::int32_t>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<std::int64_t>::getDataTypeName()
{
static const String type("int64");
return type;
}
PropertyHelper<std::int64_t>::return_type
PropertyHelper<std::int64_t>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingSign(str))
{
return 0;
}
std::int64_t val = 0;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<std::int64_t>::string_return_type PropertyHelper<std::int64_t>::toString(
PropertyHelper<std::int64_t>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<std::uint32_t>::getDataTypeName()
{
static const String type("std::uint32_t");
return type;
}
PropertyHelper<std::uint32_t>::return_type
PropertyHelper<std::uint32_t>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingSign(str))
{
return 0;
}
std::uint32_t val = 0;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<std::uint32_t>::string_return_type PropertyHelper<std::uint32_t>::toString(
PropertyHelper<std::uint32_t>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<std::uint64_t>::getDataTypeName()
{
static const String type("std::uint64_t");
return type;
}
PropertyHelper<std::uint64_t>::return_type
PropertyHelper<std::uint64_t>::fromString(const String& str)
{
if (ParserHelper::IsEmptyOrContainingSign(str))
{
return 0;
}
std::uint64_t val = 0;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> val;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<std::uint64_t>::string_return_type PropertyHelper<std::uint64_t>::toString(
PropertyHelper<std::uint64_t>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << val;
return String(sstream.str());
}
const String& PropertyHelper<glm::vec2>::getDataTypeName()
{
static const String type("vec2");
return type;
}
PropertyHelper<glm::vec2>::return_type
PropertyHelper<glm::vec2>::fromString(const String& str)
{
glm::vec2 val(0, 0);
if (str.empty())
return val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> MandatoryString(" x :") >> val.x >> MandatoryString(" y :") >> val.y;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<glm::vec2>::string_return_type PropertyHelper<glm::vec2>::toString(
PropertyHelper<glm::vec2>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << "x:" << val.x << " y:" << val.y;
return String(sstream.str());
}
const String& PropertyHelper<glm::vec3>::getDataTypeName()
{
static const String type("vec3");
return type;
}
PropertyHelper<glm::vec3>::return_type
PropertyHelper<glm::vec3>::fromString(const String& str)
{
glm::vec3 val(0, 0, 0);
if (str.empty())
return val;
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> MandatoryString(" x :") >> val.x >> MandatoryString(" y :") >> val.y >> MandatoryString(" z :") >> val.z;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
PropertyHelper<glm::vec3>::string_return_type PropertyHelper<glm::vec3>::toString(
PropertyHelper<glm::vec3>::pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << "x:" << val.x << " y:" << val.y << " z:" << val.z;
return String(sstream.str());
}
const String& PropertyHelper<glm::quat>::getDataTypeName()
{
static const String type("quat");
return type;
}
PropertyHelper<glm::quat>::return_type
PropertyHelper<glm::quat>::fromString(const String& str)
{
glm::quat val(1, 0, 0, 0);
if (str.empty())
return val;
#if (CEGUI_STRING_CLASS == CEGUI_STRING_CLASS_ASCII) || (CEGUI_STRING_CLASS == CEGUI_STRING_CLASS_UTF_8)
else if (str.find("w", 0) != std::string::npos ||
str.find("W", 0) != std::string::npos)
#elif CEGUI_STRING_CLASS == CEGUI_STRING_CLASS_UTF_32
else if (str.getString().find(String("w").c_str(), 0) != std::string::npos ||
str.getString().find(String("W").c_str(), 0) != std::string::npos)
#endif
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> MandatoryString(" w :") >> val.w >> MandatoryString(" x :") >> val.x >> MandatoryString(" y :") >> val.y >> MandatoryString(" z :") >> val.z;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
return val;
}
else
{
float x, y, z;
// CEGUI takes degrees because it's easier to work with
std::stringstream& sstream = SharedStringstream::GetPreparedStream(str);
sstream >> MandatoryString(" x :") >> x >> MandatoryString(" y :") >> y >> MandatoryString(" z :") >> z;
if (sstream.fail())
throwParsingException(getDataTypeName(), str);
// glm::radians converts from degrees to radians
// Angles are negated to be consistent with pre-GLM rotation directions
return glm::quat(glm::vec3(glm::radians(-x), glm::radians(-y), glm::radians(-z)));
}
}
PropertyHelper<glm::quat>::string_return_type PropertyHelper<glm::quat>::toString(
pass_type val)
{
std::stringstream& sstream = SharedStringstream::GetPreparedStream();
sstream << "w:" << val.w << " x:" << val.x << " y:" << val.y << " z:" << val.z;
return String(sstream.str());
}
const String& PropertyHelper<String>::getDataTypeName()
{
static const String type("String");
return type;
}
PropertyHelper<String>::return_type PropertyHelper<String>::fromString(const String& str)
{
return str;
}
PropertyHelper<String>::string_return_type PropertyHelper<String>::toString(
pass_type val)
{
return val;
}
// Explicit instantiation definitions
template class PropertyHelper<String>;
template class PropertyHelper<float>;
template class PropertyHelper<double>;
template class PropertyHelper<std::int16_t>;
template class PropertyHelper<std::int32_t>;
template class PropertyHelper<std::int64_t>;
template class PropertyHelper<std::uint32_t>;
template class PropertyHelper<std::uint64_t>;
template class PropertyHelper<bool>;
template class PropertyHelper<AspectMode>;
template class PropertyHelper<USize>;
template class PropertyHelper<Sizef>;
template class PropertyHelper<glm::vec2>;
template class PropertyHelper<glm::vec3>;
template class PropertyHelper<glm::quat>;
template class PropertyHelper<Image*>;
template class PropertyHelper<Colour>;
template class PropertyHelper<ColourRect>;
template class PropertyHelper<UDim>;
template class PropertyHelper<UVector2>;
template class PropertyHelper<URect>;
template class PropertyHelper<Rectf>;
template class PropertyHelper<UBox>;
template class PropertyHelper<FontSizeUnit>;
template class PropertyHelper<Font*>;
const String& PropertyHelper<FontSizeUnit>::getDataTypeName()
{
static const String type("FontSizeUnit");
return type;
}
PropertyHelper<FontSizeUnit>::string_return_type PropertyHelper<FontSizeUnit>::toString(
pass_type val)
{
if (val == FontSizeUnit::Pixels)
{
return Pixels;
}
if (val == FontSizeUnit::Points)
{
return Points;
}
assert(false && "Invalid FontSizeUnit specified");
return Pixels;
}
PropertyHelper<FontSizeUnit>::return_type PropertyHelper<FontSizeUnit>::fromString(const String& str)
{
if (str == Pixels)
{
return FontSizeUnit::Pixels;
}
if (str == Points)
{
return FontSizeUnit::Points;
}
return FontSizeUnit::Pixels;
}
const String& PropertyHelper<HorizontalAlignment>::getDataTypeName()
{
static String type("HorizontalAlignment");
return type;
}
PropertyHelper<HorizontalAlignment>::return_type PropertyHelper<HorizontalAlignment>::fromString(
const String& str)
{
if (str == "Centre")
{
return HorizontalAlignment::Centre;
}
else if (str == "Right")
{
return HorizontalAlignment::Right;
}
else
{
return HorizontalAlignment::Left;
}
}
PropertyHelper<HorizontalAlignment>::string_return_type PropertyHelper<HorizontalAlignment>::toString(
pass_type val)
{
if (val == HorizontalAlignment::Centre)
{
return "Centre";
}
else if (val == HorizontalAlignment::Right)
{
return "Right";
}
else if (val == HorizontalAlignment::Left)
{
return "Left";
}
else
{
assert(false && "Invalid horizontal alignment");
return "Centre";
}
}
const String& PropertyHelper<VerticalAlignment>::getDataTypeName()
{
static String type("VerticalAlignment");
return type;
}
PropertyHelper<VerticalAlignment>::return_type PropertyHelper<VerticalAlignment>::fromString(const String& str)
{
if (str == "Centre")
{
return VerticalAlignment::Centre;
}
else if (str == "Bottom")
{
return VerticalAlignment::Bottom;
}
else
{
return VerticalAlignment::Top;
}
}
PropertyHelper<VerticalAlignment>::string_return_type PropertyHelper<VerticalAlignment>::toString(
pass_type val)
{
if (val == VerticalAlignment::Centre)
{
return "Centre";
}
else if (val == VerticalAlignment::Bottom)
{
return "Bottom";
}
else if (val == VerticalAlignment::Top)
{
return "Top";
}
else
{
assert(false && "Invalid vertical alignment");
return "Centre";
}
}
}
|
#include "CCheckBox.h"
#include "CLabel.h"
CCheckBox::CCheckBox(const vec2d& pos, const vec2d& size, const String& text, bool selected):
CAbstractToggle(pos,size,selected)
{
addChild(new CLabel(vec2d(getH()+5., 0), vec2d(getH(), getH()), text));
}
void CCheckBox::draw(){
double u=getH()/8.;
setDrawColor(bgColor);
drawQuad(u,u,u*6,u*6);
setDrawColor(fgColor);
drawQuad(0., 0., getH(), u );
drawQuad(0., u*7., getH(), u );
drawQuad(0., u, u, u*6. );
drawQuad(u*7., u, u, u*6. );
if(m_selected)
drawQuad(u*2., u*2., u*4., u*4. );
}
|
/*************************************************************************
> File Name: HelloOpenCV.cpp
> Author: Henry Ma
> Mail: iloveicRazavi@gmail.com
> Created Time: 2020年07月31日 星期五 16时26分44秒
************************************************************************/
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc, char* argv[]) {
// [1]读入一张图片
Mat img = imread("cat.jpg");
// [2]在窗口中显示载入的图片
imshow("载入的图片", img);
// [3]等待6000ms后窗口自动关闭
waitKey(6000);
return 0;
}
|
#include <iostream>
#include <time.h>
#include <windows.h>
using namespace std;
int i = -1 ;
int zero[1] = { 0 };
int stroka, stolb,returned;
int &maxelement(int(**));
int main()
{
srand(time(0));
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
while (i <=1)
{
printf("Введите количество элементов массива (больше единицы!): "); cin >> i;
}
int** massive = new int*[i];
for (stroka = 0; stroka < i; stroka++)
{
massive[stroka] = new int[i];
for (stolb = 0; stolb < i; stolb++)
{
massive[stroka][stolb] = -10 + rand() % 20;
}
}
cout << "Итоговый массив" << endl;
for (stroka = 0; stroka < i; ++stroka)
{
for (stolb = 0; stolb < i; stolb++)
{
cout << massive[stroka][stolb] << "\t";
}
cout << endl;
}
returned = maxelement(massive);
if (returned == 0)
{
cout << "Такого элемента нет!";
}
else
{
cout << "Максимальный элемент массива, повторяющийся более одного раза: " << returned;
}
}
int &maxelement(int** massive)
{
#define n 100
int k = 0;
int max = -10;
int ignor[n];
int proverka;
int mestostroka = 0, mestostolb = 0;
part1: for (stroka = 0; stroka < i; ++stroka)
{
proverka = 0;
for (stolb = 0; stolb < i; stolb++)
{
for (int g = 0; ignor[g] > -11; g++)
{
if (massive[stroka][stolb] == ignor[g])
{
proverka = 1;
}
}
if (massive[stroka][stolb] > max && proverka != 1)
{
max = massive[stroka][stolb];
mestostroka = stroka;
mestostolb = stolb;
}
}
}
ignor[k++] = max;
for (stroka = 0; stroka < i; stroka++)
{
for (stolb = 0; stolb < i; stolb++)
{
if (massive[stroka][stolb] == max && (!(mestostroka == stroka) || !(mestostolb == stolb)))
{
return massive[mestostroka][mestostolb];
}
}
}
if (k == i*i)
return zero[1];
else
{
max = -10;
goto part1;
}
}
|
#ifndef CLISTENERMEMBERFN_H
#define CLISTENERMEMBERFN_H
#include "CListener.h"
template<class idType, class objectType>
class CListenerMemberFn: public CListener{
typedef void (objectType::*fn0)(idType);
typedef void (objectType::*fn1)(idType, CGuiPanel*);
public:
CListenerMemberFn(idType id, objectType* object, fn0 actionFn=NULL, fn0 positionChangeFn=NULL, fn0 sizeChangeFn=NULL, fn1 addChildFn=NULL);
virtual void actionPerformed();
virtual void positionChangePerformed();
virtual void sizeChangePerformed();
virtual void addChildPerformed(CGuiPanel* child);
protected:
idType _id;
objectType* _object;
fn0 _actionFn;
fn0 _positionChangeFn;
fn0 _sizeChangeFn;
fn1 _addChildFn;
};
template<class idType, class objectType>
CListenerMemberFn<idType, objectType>::CListenerMemberFn(idType id, objectType* object, fn0 actionFn, fn0 positionChangeFn, fn0 sizeChangeFn, fn1 addChildFn){
_id = id;
_object = object;
_actionFn = actionFn;
_positionChangeFn = positionChangeFn;
_sizeChangeFn = sizeChangeFn;
_addChildFn = addChildFn;
}
template<class idType, class objectType>
void CListenerMemberFn<idType, objectType>::actionPerformed(){
if(_actionFn){
(_object->*_actionFn)(_id);
}
}
template<class idType, class objectType>
void CListenerMemberFn<idType, objectType>::positionChangePerformed(){
if(_positionChangeFn){
(_object->*_positionChangeFn)(_id);
}
}
template<class idType, class objectType>
void CListenerMemberFn<idType, objectType>::sizeChangePerformed(){
if(_sizeChangeFn){
(_object->*_sizeChangeFn)(_id);
}
}
template<class idType, class objectType>
void CListenerMemberFn<idType, objectType>::addChildPerformed(CGuiPanel* child){
if(_addChildFn){
(_object->*_addChildFn)(_id, child);
}
}
template<class idType, class objectType>
inline CListenerMemberFn<idType, objectType>* makeCListenerMemberFn(idType id, objectType* object,
void (objectType::*actionFn)(idType) =NULL,
void (objectType::*positionChangeFn)(idType) =NULL,
void (objectType::*sizeChangeFn)(idType) =NULL,
void (objectType::*addChildFn)(idType, CGuiPanel*) =NULL)
{
return new CListenerMemberFn<idType, objectType>(id, object, actionFn, positionChangeFn, sizeChangeFn, addChildFn);
}
#endif // CACTIONLISTENERMEMBERFN_H
|
#include <iostream>
#include "lista.h"
using namespace std;
template <typename T> lista<T>::lista()
{
primero = NULL;
cursor = NULL;
longitud = 0;
}
template <typename T> lista<T>::~lista()
{
vaciar();
}
template <typename T> int lista<T>::cantidadElementos()
{
return longitud;
}
template <typename T> void lista<T>::agregar(int position, const T & elemento)
{
if(position==1)
{
agregarInicio(elemento);
}
else
{
if(primero==NULL )
{
Nodo * crear = new Nodo;
crear->elemento=elemento;
primero=crear;
longitud++;
}
else
{
if(cantidadElementos()+1>= position)
{
cursor=primero;
posicion(1, position); //busca la posicion a insertar
Nodo * crear= new Nodo;
crear->elemento=elemento;
crear->sig=cursor->sig;
cursor->sig=crear;
longitud++;
}
else
cout <<"no se puede agregar por que la lista tiene menos elementos de donde queres insertar"<< endl;
}
}
}
template <typename T> void lista<T>::agregarInicio(const T & elemento)
{
Nodo * crear = new Nodo;
crear->elemento = elemento;
if(primero == NULL)
{
crear->sig = NULL;
}
else
{
crear->sig = primero;
}
primero = crear;
longitud++;
}
template <typename T> void lista<T>::agregarFinal(const T & elemento)
{
Nodo * crear = new Nodo;
crear->elemento=elemento;
crear->sig=NULL;
if (primero!=NULL)
{
cursor=primero;
while(cursor->sig!=NULL)
{
cursor=cursor->sig;
}
cursor->sig=crear;
}
else
{
primero = crear;
}
longitud++;
}
template <typename T> bool lista<T>::existeElemento(const T elemento)
{
cursor=primero;
while ((cursor!=NULL)&&(cursor->elemento==elemento))
{
cursor=cursor->sig;
}
if(cursor!=NULL)
return true;
else
return false;
}
template <typename T> void lista<T>::eliminaElemento(const T & elemento)
{
Nodo * eliminar=NULL;
if(primero!=NULL)
{
if(primero->elemento==elemento) //el a eliminar es el primero
{
eliminar=primero;
primero=primero->sig;
eliminar->sig=NULL;
}
else
{
cursor=primero;
while ((cursor->sig!=NULL)&&(cursor->sig->elemento!=elemento)) //busco el eliminar
{
cursor=cursor->sig;
}
eliminar=cursor->sig;
if (eliminar!=NULL) //si a eliminar no es el ultimo
{
cursor->sig=eliminar->sig;
eliminar->sig=NULL;
}
else //si es el ultimo
{
cursor->sig=NULL;
}
}
delete eliminar;
longitud--;
}
}
template <class T> bool lista<T>::listavacia()
{
return (primero == NULL);
}
template <typename T> void lista<T>::mostrarLista()
{
cursor=primero;
while(cursor!=NULL)
{
cout << cursor->elemento << endl;
cursor=cursor->sig;
}
}
template <typename T> void lista<T>::vaciar()
{
cursor=primero;
while (primero != NULL)
{
cursor = primero->sig;
primero->sig=NULL;
delete primero;
primero = cursor;
}
primero = NULL;
cursor = NULL;
}
template class lista<int>;
template class lista<char>;
template class lista<float>;
template class lista<double>;
template class lista<string>;
|
#include <Arduino.h>
#include "./hardware.h"
Intensity def = intensity_none;
short pwm = 0;
Toy lnip = {"lnip", "L Nipple", 0, def, pwm, 1, .75, .5, 2 };
Toy rnip = {"rnip", "R Nipple", 0, def, pwm, 1, .75, .5, 16};
Toy button = {"btn", "button", 0, def, pwm, 1, .89, .75, 26};
Toy t4 = {"t4", "Toy 4", 0, def, pwm, 1, .75, .5, 25};
Toy toys[] = {rnip, lnip, button, t4};
|
#include<bits/stdc++.h>
using namespace std;
unordered_map<string,pair<int,int>> ha;
pair<int,int> solve(string input)
{
if(input.size()==1)
{
if(input[0]=='T')
{
return {1,0};
}
else
{
return {0,1};
}
}
if(ha.find(input)!=ha.end())
{
return ha[input];
}
int t = 0;
int f=0;
for(int i=0;i<input.size()-2;i++)
{
if(input[i]!='T' && input[i]!='F')
{
continue;
}
pair<int,int> temp1 = solve(input.substr(0,i+1));
pair<int,int> temp2 = {0,0};
if(i!=input.size()-1)
{
temp2 = solve(input.substr(i+2));
}
if(i+1 < input.size())
{
if(input[i+1]=='|')
{
t += temp1.first*(temp2.first+temp2.second);
t += temp1.second*(temp2.first);
f += temp1.second*(temp2.second);
}
else if(input[i+1]=='&')
{
t+= temp1.first*(temp2.first);
f+= temp1.first*(temp2.second);
f+= temp1.second*(temp2.first+temp2.second);
}
else
{
t+= temp1.first*(temp2.second);
t+= temp1.second*(temp2.first);
f+= temp1.first*(temp2.first);
f+= temp1.second*(temp2.second);
}
}
}
ha[input]={t,f};
return {t,f};
}
int main()
{
string input;
cin >> input;
cout << solve(input).first << endl;
return 0;
}
|
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#include "CyLandEditorDetailCustomization_NewCyLand.h"
#include "Framework/Commands/UIAction.h"
#include "Widgets/Text/STextBlock.h"
#include "Framework/MultiBox/MultiBoxBuilder.h"
#include "Misc/MessageDialog.h"
#include "Modules/ModuleManager.h"
#include "SlateOptMacros.h"
#include "Widgets/Images/SImage.h"
#include "Widgets/Layout/SBox.h"
#include "Widgets/Layout/SUniformGridPanel.h"
#include "Widgets/Input/SEditableTextBox.h"
#include "Widgets/Input/SButton.h"
#include "Widgets/SToolTip.h"
#include "Widgets/Notifications/SErrorText.h"
#include "Widgets/Input/SComboButton.h"
#include "Widgets/Input/SCheckBox.h"
#include "CyLandEditorModule.h"
#include "CyLandEditorObject.h"
#include "CyLand.h"
#include "CyLandEditorUtils.h"
#include "NewCyLandUtils.h"
#include "DetailLayoutBuilder.h"
#include "IDetailChildrenBuilder.h"
#include "IDetailPropertyRow.h"
#include "DetailCategoryBuilder.h"
#include "PropertyCustomizationHelpers.h"
#include "SCyLandEditor.h"
#include "Dialogs/DlgPickAssetPath.h"
#include "Widgets/Input/SVectorInputBox.h"
#include "Widgets/Input/SRotatorInputBox.h"
#include "ScopedTransaction.h"
#include "DesktopPlatformModule.h"
#include "AssetRegistryModule.h"
#include "TutorialMetaData.h"
#include "Framework/Application/SlateApplication.h"
#include "Widgets/Input/SNumericEntryBox.h"
#include "CyLandDataAccess.h"
#define LOCTEXT_NAMESPACE "CyLandEditor.NewCyLand"
TSharedRef<IDetailCustomization> FCyLandEditorDetailCustomization_NewCyLand::MakeInstance()
{
return MakeShareable(new FCyLandEditorDetailCustomization_NewCyLand);
}
BEGIN_SLATE_FUNCTION_BUILD_OPTIMIZATION
void FCyLandEditorDetailCustomization_NewCyLand::CustomizeDetails(IDetailLayoutBuilder& DetailBuilder)
{
if (!IsToolActive("NewCyLand"))
{
return;
}
IDetailCategoryBuilder& NewCyLandCategory = DetailBuilder.EditCategory("New CyLand");
NewCyLandCategory.AddCustomRow(FText::GetEmpty())
[
SNew(SUniformGridPanel)
.SlotPadding(FMargin(10, 2))
+ SUniformGridPanel::Slot(0, 0)
[
SNew(SCheckBox)
.Style(FEditorStyle::Get(), "RadioButton")
.IsChecked(this, &FCyLandEditorDetailCustomization_NewCyLand::NewCyLandModeIsChecked, ENewCyLandPreviewMode::NewCyLand)
.OnCheckStateChanged(this, &FCyLandEditorDetailCustomization_NewCyLand::OnNewCyLandModeChanged, ENewCyLandPreviewMode::NewCyLand)
[
SNew(STextBlock)
.Text(LOCTEXT("NewCyLand", "Create New"))
]
]
+ SUniformGridPanel::Slot(1, 0)
[
SNew(SCheckBox)
.Style(FEditorStyle::Get(), "RadioButton")
.IsChecked(this, &FCyLandEditorDetailCustomization_NewCyLand::NewCyLandModeIsChecked, ENewCyLandPreviewMode::ImportCyLand)
.OnCheckStateChanged(this, &FCyLandEditorDetailCustomization_NewCyLand::OnNewCyLandModeChanged, ENewCyLandPreviewMode::ImportCyLand)
[
SNew(STextBlock)
.Text(LOCTEXT("ImportCyLand", "Import from File"))
]
]
];
TSharedRef<IPropertyHandle> PropertyHandle_HeightmapFilename = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, ImportCyLand_HeightmapFilename));
TSharedRef<IPropertyHandle> PropertyHandle_HeightmapImportResult = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, ImportCyLand_HeightmapImportResult));
TSharedRef<IPropertyHandle> PropertyHandle_HeightmapErrorMessage = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, ImportCyLand_HeightmapErrorMessage));
DetailBuilder.HideProperty(PropertyHandle_HeightmapImportResult);
DetailBuilder.HideProperty(PropertyHandle_HeightmapErrorMessage);
PropertyHandle_HeightmapFilename->SetOnPropertyValueChanged(FSimpleDelegate::CreateSP(this, &FCyLandEditorDetailCustomization_NewCyLand::OnImportHeightmapFilenameChanged));
NewCyLandCategory.AddProperty(PropertyHandle_HeightmapFilename)
.Visibility(TAttribute<EVisibility>::Create(TAttribute<EVisibility>::FGetter::CreateStatic(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::ImportCyLand)))
.CustomWidget()
.NameContent()
[
PropertyHandle_HeightmapFilename->CreatePropertyNameWidget()
]
.ValueContent()
.MinDesiredWidth(250.0f)
.MaxDesiredWidth(0)
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
.Padding(0,0,2,0)
[
SNew(SErrorText)
.Visibility_Static(&GetHeightmapErrorVisibility, PropertyHandle_HeightmapImportResult)
.BackgroundColor_Static(&GetHeightmapErrorColor, PropertyHandle_HeightmapImportResult)
.ErrorText(NSLOCTEXT("UnrealEd", "Error", "!"))
.ToolTip(
SNew(SToolTip)
.Text_Static(&GetPropertyValue<FText>, PropertyHandle_HeightmapErrorMessage)
)
]
+ SHorizontalBox::Slot()
.FillWidth(1)
[
SNew(SEditableTextBox)
.Font(DetailBuilder.GetDetailFont())
.Text_Static(&GetPropertyValueText, PropertyHandle_HeightmapFilename)
.OnTextCommitted_Static(&SetImportHeightmapFilenameString, PropertyHandle_HeightmapFilename)
.HintText(LOCTEXT("Import_HeightmapNotSet", "(Please specify a heightmap)"))
]
+ SHorizontalBox::Slot()
.AutoWidth()
.Padding(1,0,0,0)
[
SNew(SButton)
//.Font(DetailBuilder.GetDetailFont())
.ContentPadding(FMargin(4, 0))
.Text(NSLOCTEXT("UnrealEd", "GenericOpenDialog", "..."))
.OnClicked_Static(&OnImportHeightmapFilenameButtonClicked, PropertyHandle_HeightmapFilename)
]
];
NewCyLandCategory.AddCustomRow(LOCTEXT("HeightmapResolution", "Heightmap Resolution"))
.Visibility(TAttribute<EVisibility>::Create(TAttribute<EVisibility>::FGetter::CreateStatic(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::ImportCyLand)))
.NameContent()
[
SNew(SBox)
.VAlign(VAlign_Center)
.Padding(FMargin(2))
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(LOCTEXT("HeightmapResolution", "Heightmap Resolution"))
]
]
.ValueContent()
[
SNew(SBox)
.Padding(FMargin(0,0,12,0)) // Line up with the other properties due to having no reset to default button
[
SNew(SComboButton)
.OnGetMenuContent(this, &FCyLandEditorDetailCustomization_NewCyLand::GetImportCyLandResolutionMenu)
.ContentPadding(2)
.ButtonContent()
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(this, &FCyLandEditorDetailCustomization_NewCyLand::GetImportCyLandResolution)
]
]
];
TSharedRef<IPropertyHandle> PropertyHandle_Material = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_Material));
NewCyLandCategory.AddProperty(PropertyHandle_Material);
NewCyLandCategory.AddCustomRow(LOCTEXT("LayersLabel", "Layers"))
.Visibility(TAttribute<EVisibility>(this, &FCyLandEditorDetailCustomization_NewCyLand::GetMaterialTipVisibility))
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.Padding(15, 12, 0, 12)
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(LOCTEXT("Material_Tip","Hint: Assign a material to see CyLand layers"))
]
];
TSharedRef<IPropertyHandle> PropertyHandle_AlphamapType = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, ImportCyLand_AlphamapType));
NewCyLandCategory.AddProperty(PropertyHandle_AlphamapType)
.Visibility(TAttribute<EVisibility>::Create(TAttribute<EVisibility>::FGetter::CreateStatic(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::ImportCyLand)));
TSharedRef<IPropertyHandle> PropertyHandle_Layers = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, ImportCyLand_Layers));
NewCyLandCategory.AddProperty(PropertyHandle_Layers);
TSharedRef<IPropertyHandle> PropertyHandle_Location = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_Location));
TSharedRef<IPropertyHandle> PropertyHandle_Location_X = PropertyHandle_Location->GetChildHandle("X").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_Location_Y = PropertyHandle_Location->GetChildHandle("Y").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_Location_Z = PropertyHandle_Location->GetChildHandle("Z").ToSharedRef();
NewCyLandCategory.AddProperty(PropertyHandle_Location)
.CustomWidget()
.NameContent()
[
PropertyHandle_Location->CreatePropertyNameWidget()
]
.ValueContent()
.MinDesiredWidth(125.0f * 3.0f) // copied from FComponentTransformDetails
.MaxDesiredWidth(125.0f * 3.0f)
[
SNew(SVectorInputBox)
.bColorAxisLabels(true)
.Font(DetailBuilder.GetDetailFont())
.X_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Location_X)
.Y_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Location_Y)
.Z_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Location_Z)
.OnXCommitted_Static(&SetPropertyValue<float>, PropertyHandle_Location_X)
.OnYCommitted_Static(&SetPropertyValue<float>, PropertyHandle_Location_Y)
.OnZCommitted_Static(&SetPropertyValue<float>, PropertyHandle_Location_Z)
];
TSharedRef<IPropertyHandle> PropertyHandle_Rotation = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_Rotation));
TSharedRef<IPropertyHandle> PropertyHandle_Rotation_Roll = PropertyHandle_Rotation->GetChildHandle("Roll").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_Rotation_Pitch = PropertyHandle_Rotation->GetChildHandle("Pitch").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_Rotation_Yaw = PropertyHandle_Rotation->GetChildHandle("Yaw").ToSharedRef();
NewCyLandCategory.AddProperty(PropertyHandle_Rotation)
.CustomWidget()
.NameContent()
[
PropertyHandle_Rotation->CreatePropertyNameWidget()
]
.ValueContent()
.MinDesiredWidth(125.0f * 3.0f) // copied from FComponentTransformDetails
.MaxDesiredWidth(125.0f * 3.0f)
[
SNew(SRotatorInputBox)
.bColorAxisLabels(true)
.AllowResponsiveLayout(true)
.Font(DetailBuilder.GetDetailFont())
.Roll_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Rotation_Roll)
.Pitch_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Rotation_Pitch)
.Yaw_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Rotation_Yaw)
.OnYawCommitted_Static(&SetPropertyValue<float>, PropertyHandle_Rotation_Yaw) // not allowed to roll or pitch CyLand
.OnYawChanged_Lambda([=](float NewValue){ ensure(PropertyHandle_Rotation_Yaw->SetValue(NewValue, EPropertyValueSetFlags::InteractiveChange) == FPropertyAccess::Success); })
];
TSharedRef<IPropertyHandle> PropertyHandle_Scale = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_Scale));
TSharedRef<IPropertyHandle> PropertyHandle_Scale_X = PropertyHandle_Scale->GetChildHandle("X").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_Scale_Y = PropertyHandle_Scale->GetChildHandle("Y").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_Scale_Z = PropertyHandle_Scale->GetChildHandle("Z").ToSharedRef();
NewCyLandCategory.AddProperty(PropertyHandle_Scale)
.CustomWidget()
.NameContent()
[
PropertyHandle_Scale->CreatePropertyNameWidget()
]
.ValueContent()
.MinDesiredWidth(125.0f * 3.0f) // copied from FComponentTransformDetails
.MaxDesiredWidth(125.0f * 3.0f)
[
SNew(SVectorInputBox)
.bColorAxisLabels(true)
.Font(DetailBuilder.GetDetailFont())
.X_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Scale_X)
.Y_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Scale_Y)
.Z_Static(&GetOptionalPropertyValue<float>, PropertyHandle_Scale_Z)
.OnXCommitted_Static(&SetScale, PropertyHandle_Scale_X)
.OnYCommitted_Static(&SetScale, PropertyHandle_Scale_Y)
.OnZCommitted_Static(&SetScale, PropertyHandle_Scale_Z)
];
TSharedRef<IPropertyHandle> PropertyHandle_QuadsPerSection = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_QuadsPerSection));
NewCyLandCategory.AddProperty(PropertyHandle_QuadsPerSection)
.CustomWidget()
.NameContent()
[
PropertyHandle_QuadsPerSection->CreatePropertyNameWidget()
]
.ValueContent()
[
SNew(SComboButton)
.OnGetMenuContent_Static(&GetSectionSizeMenu, PropertyHandle_QuadsPerSection)
.ContentPadding(2)
.ButtonContent()
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text_Static(&GetSectionSize, PropertyHandle_QuadsPerSection)
]
];
TSharedRef<IPropertyHandle> PropertyHandle_SectionsPerComponent = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_SectionsPerComponent));
NewCyLandCategory.AddProperty(PropertyHandle_SectionsPerComponent)
.CustomWidget()
.NameContent()
[
PropertyHandle_SectionsPerComponent->CreatePropertyNameWidget()
]
.ValueContent()
[
SNew(SComboButton)
.OnGetMenuContent_Static(&GetSectionsPerComponentMenu, PropertyHandle_SectionsPerComponent)
.ContentPadding(2)
.ButtonContent()
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text_Static(&GetSectionsPerComponent, PropertyHandle_SectionsPerComponent)
]
];
TSharedRef<IPropertyHandle> PropertyHandle_ComponentCount = DetailBuilder.GetProperty(GET_MEMBER_NAME_CHECKED(UCyLandEditorObject, NewCyLand_ComponentCount));
TSharedRef<IPropertyHandle> PropertyHandle_ComponentCount_X = PropertyHandle_ComponentCount->GetChildHandle("X").ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_ComponentCount_Y = PropertyHandle_ComponentCount->GetChildHandle("Y").ToSharedRef();
NewCyLandCategory.AddProperty(PropertyHandle_ComponentCount)
.CustomWidget()
.NameContent()
[
PropertyHandle_ComponentCount->CreatePropertyNameWidget()
]
.ValueContent()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.FillWidth(1)
[
SNew(SNumericEntryBox<int32>)
.LabelVAlign(VAlign_Center)
.Font(DetailBuilder.GetDetailFont())
.MinValue(1)
.MaxValue(32)
.MinSliderValue(1)
.MaxSliderValue(32)
.AllowSpin(true)
.UndeterminedString(NSLOCTEXT("PropertyEditor", "MultipleValues", "Multiple Values"))
.Value_Static(&FCyLandEditorDetailCustomization_Base::OnGetValue<int32>, PropertyHandle_ComponentCount_X)
.OnValueChanged_Static(&FCyLandEditorDetailCustomization_Base::OnValueChanged<int32>, PropertyHandle_ComponentCount_X)
.OnValueCommitted_Static(&FCyLandEditorDetailCustomization_Base::OnValueCommitted<int32>, PropertyHandle_ComponentCount_X)
]
+ SHorizontalBox::Slot()
.AutoWidth()
.Padding(2, 0)
.VAlign(VAlign_Center)
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(FText::FromString(FString().AppendChar(0xD7))) // Multiply sign
]
+ SHorizontalBox::Slot()
.FillWidth(1)
[
SNew(SNumericEntryBox<int32>)
.LabelVAlign(VAlign_Center)
.Font(DetailBuilder.GetDetailFont())
.MinValue(1)
.MaxValue(32)
.MinSliderValue(1)
.MaxSliderValue(32)
.AllowSpin(true)
.UndeterminedString(NSLOCTEXT("PropertyEditor", "MultipleValues", "Multiple Values"))
.Value_Static(&FCyLandEditorDetailCustomization_Base::OnGetValue<int32>, PropertyHandle_ComponentCount_Y)
.OnValueChanged_Static(&FCyLandEditorDetailCustomization_Base::OnValueChanged<int32>, PropertyHandle_ComponentCount_Y)
.OnValueCommitted_Static(&FCyLandEditorDetailCustomization_Base::OnValueCommitted<int32>, PropertyHandle_ComponentCount_Y)
]
];
NewCyLandCategory.AddCustomRow(LOCTEXT("Resolution", "Overall Resolution"))
.RowTag("CyLandEditor.OverallResolution")
.NameContent()
[
SNew(SBox)
.VAlign(VAlign_Center)
.Padding(FMargin(2))
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(LOCTEXT("Resolution", "Overall Resolution"))
.ToolTipText(TAttribute<FText>(this, &FCyLandEditorDetailCustomization_NewCyLand::GetOverallResolutionTooltip))
]
]
.ValueContent()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.FillWidth(1)
[
SNew(SNumericEntryBox<int32>)
.Font(DetailBuilder.GetDetailFont())
.MinValue(1)
.MaxValue(8192)
.MinSliderValue(1)
.MaxSliderValue(8192)
.AllowSpin(true)
//.MinSliderValue(TAttribute<TOptional<int32> >(this, &FCyLandEditorDetailCustomization_NewCyLand::GetMinCyLandResolution))
//.MaxSliderValue(TAttribute<TOptional<int32> >(this, &FCyLandEditorDetailCustomization_NewCyLand::GetMaxCyLandResolution))
.Value(this, &FCyLandEditorDetailCustomization_NewCyLand::GetCyLandResolutionX)
.OnValueChanged(this, &FCyLandEditorDetailCustomization_NewCyLand::OnChangeCyLandResolutionX)
.OnValueCommitted(this, &FCyLandEditorDetailCustomization_NewCyLand::OnCommitCyLandResolutionX)
]
+ SHorizontalBox::Slot()
.AutoWidth()
.Padding(2, 0)
.VAlign(VAlign_Center)
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(FText::FromString(FString().AppendChar(0xD7))) // Multiply sign
]
+ SHorizontalBox::Slot()
.FillWidth(1)
.Padding(0,0,12,0) // Line up with the other properties due to having no reset to default button
[
SNew(SNumericEntryBox<int32>)
.Font(DetailBuilder.GetDetailFont())
.MinValue(1)
.MaxValue(8192)
.MinSliderValue(1)
.MaxSliderValue(8192)
.AllowSpin(true)
//.MinSliderValue(TAttribute<TOptional<int32> >(this, &FCyLandEditorDetailCustomization_NewCyLand::GetMinCyLandResolution))
//.MaxSliderValue(TAttribute<TOptional<int32> >(this, &FCyLandEditorDetailCustomization_NewCyLand::GetMaxCyLandResolution))
.Value(this, &FCyLandEditorDetailCustomization_NewCyLand::GetCyLandResolutionY)
.OnValueChanged(this, &FCyLandEditorDetailCustomization_NewCyLand::OnChangeCyLandResolutionY)
.OnValueCommitted(this, &FCyLandEditorDetailCustomization_NewCyLand::OnCommitCyLandResolutionY)
]
];
NewCyLandCategory.AddCustomRow(LOCTEXT("TotalComponents", "Total Components"))
.RowTag("CyLandEditor.TotalComponents")
.NameContent()
[
SNew(SBox)
.VAlign(VAlign_Center)
.Padding(FMargin(2))
[
SNew(STextBlock)
.Font(DetailBuilder.GetDetailFont())
.Text(LOCTEXT("TotalComponents", "Total Components"))
.ToolTipText(LOCTEXT("NewCyLand_TotalComponents", "The total number of components that will be created for this CyLand."))
]
]
.ValueContent()
[
SNew(SBox)
.Padding(FMargin(0,0,12,0)) // Line up with the other properties due to having no reset to default button
[
SNew(SEditableTextBox)
.IsReadOnly(true)
.Font(DetailBuilder.GetDetailFont())
.Text(this, &FCyLandEditorDetailCustomization_NewCyLand::GetTotalComponentCount)
]
];
NewCyLandCategory.AddCustomRow(FText::GetEmpty())
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.AutoWidth()
[
SNew(SButton)
.Visibility_Static(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::NewCyLand)
.Text(LOCTEXT("FillWorld", "Fill World"))
.AddMetaData<FTutorialMetaData>(FTutorialMetaData(TEXT("FillWorldButton"), TEXT("LevelEditorToolBox")))
.OnClicked(this, &FCyLandEditorDetailCustomization_NewCyLand::OnFillWorldButtonClicked)
]
+ SHorizontalBox::Slot()
.AutoWidth()
[
SNew(SButton)
.Visibility_Static(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::ImportCyLand)
.Text(LOCTEXT("FitToData", "Fit To Data"))
.AddMetaData<FTagMetaData>(TEXT("ImportButton"))
.OnClicked(this, &FCyLandEditorDetailCustomization_NewCyLand::OnFitImportDataButtonClicked)
]
+ SHorizontalBox::Slot()
.FillWidth(1)
//[
//]
+ SHorizontalBox::Slot()
.AutoWidth()
[
SNew(SButton)
.Visibility_Static(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::NewCyLand)
.Text(LOCTEXT("Create", "Create"))
.AddMetaData<FTutorialMetaData>(FTutorialMetaData(TEXT("CreateButton"), TEXT("LevelEditorToolBox")))
.OnClicked(this, &FCyLandEditorDetailCustomization_NewCyLand::OnCreateButtonClicked)
]
+ SHorizontalBox::Slot()
.AutoWidth()
[
SNew(SButton)
.Visibility_Static(&GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::ImportCyLand)
.Text(LOCTEXT("Import", "Import"))
.OnClicked(this, &FCyLandEditorDetailCustomization_NewCyLand::OnCreateButtonClicked)
.IsEnabled(this, &FCyLandEditorDetailCustomization_NewCyLand::GetImportButtonIsEnabled)
]
];
}
END_SLATE_FUNCTION_BUILD_OPTIMIZATION
FText FCyLandEditorDetailCustomization_NewCyLand::GetOverallResolutionTooltip() const
{
return (GetEditorMode() && GetEditorMode()->NewCyLandPreviewMode == ENewCyLandPreviewMode::ImportCyLand)
? LOCTEXT("ImportCyLand_OverallResolution", "Overall final resolution of the imported CyLand in vertices")
: LOCTEXT("NewCyLand_OverallResolution", "Overall final resolution of the new CyLand in vertices");
}
void FCyLandEditorDetailCustomization_NewCyLand::SetScale(float NewValue, ETextCommit::Type, TSharedRef<IPropertyHandle> PropertyHandle)
{
float OldValue = 0;
PropertyHandle->GetValue(OldValue);
if (NewValue == 0)
{
if (OldValue < 0)
{
NewValue = -1;
}
else
{
NewValue = 1;
}
}
ensure(PropertyHandle->SetValue(NewValue) == FPropertyAccess::Success);
// Make X and Y scale match
FName PropertyName = PropertyHandle->GetProperty()->GetFName();
if (PropertyName == "X")
{
TSharedRef<IPropertyHandle> PropertyHandle_Y = PropertyHandle->GetParentHandle()->GetChildHandle("Y").ToSharedRef();
ensure(PropertyHandle_Y->SetValue(NewValue) == FPropertyAccess::Success);
}
else if (PropertyName == "Y")
{
TSharedRef<IPropertyHandle> PropertyHandle_X = PropertyHandle->GetParentHandle()->GetChildHandle("X").ToSharedRef();
ensure(PropertyHandle_X->SetValue(NewValue) == FPropertyAccess::Success);
}
}
TSharedRef<SWidget> FCyLandEditorDetailCustomization_NewCyLand::GetSectionSizeMenu(TSharedRef<IPropertyHandle> PropertyHandle)
{
FMenuBuilder MenuBuilder(true, nullptr);
for (int32 i = 0; i < ARRAY_COUNT(FNewCyLandUtils::SectionSizes); i++)
{
MenuBuilder.AddMenuEntry(FText::Format(LOCTEXT("NxNQuads", "{0}\u00D7{0} Quads"), FText::AsNumber(FNewCyLandUtils::SectionSizes[i])), FText::GetEmpty(),
FSlateIcon(), FExecuteAction::CreateStatic(&OnChangeSectionSize, PropertyHandle, FNewCyLandUtils::SectionSizes[i]));
}
return MenuBuilder.MakeWidget();
}
void FCyLandEditorDetailCustomization_NewCyLand::OnChangeSectionSize(TSharedRef<IPropertyHandle> PropertyHandle, int32 NewSize)
{
ensure(PropertyHandle->SetValue(NewSize) == FPropertyAccess::Success);
}
FText FCyLandEditorDetailCustomization_NewCyLand::GetSectionSize(TSharedRef<IPropertyHandle> PropertyHandle)
{
int32 QuadsPerSection = 0;
FPropertyAccess::Result Result = PropertyHandle->GetValue(QuadsPerSection);
check(Result == FPropertyAccess::Success);
if (Result == FPropertyAccess::MultipleValues)
{
return NSLOCTEXT("PropertyEditor", "MultipleValues", "Multiple Values");
}
return FText::Format(LOCTEXT("NxNQuads", "{0}\u00D7{0} Quads"), FText::AsNumber(QuadsPerSection));
}
TSharedRef<SWidget> FCyLandEditorDetailCustomization_NewCyLand::GetSectionsPerComponentMenu(TSharedRef<IPropertyHandle> PropertyHandle)
{
FMenuBuilder MenuBuilder(true, nullptr);
for (int32 i = 0; i < ARRAY_COUNT(FNewCyLandUtils::NumSections); i++)
{
FFormatNamedArguments Args;
Args.Add(TEXT("Width"), FNewCyLandUtils::NumSections[i]);
Args.Add(TEXT("Height"), FNewCyLandUtils::NumSections[i]);
MenuBuilder.AddMenuEntry(FText::Format(FNewCyLandUtils::NumSections[i] == 1 ? LOCTEXT("1x1Section", "{Width}\u00D7{Height} Section") : LOCTEXT("NxNSections", "{Width}\u00D7{Height} Sections"), Args),
FText::GetEmpty(), FSlateIcon(), FExecuteAction::CreateStatic(&OnChangeSectionsPerComponent, PropertyHandle, FNewCyLandUtils::NumSections[i]));
}
return MenuBuilder.MakeWidget();
}
void FCyLandEditorDetailCustomization_NewCyLand::OnChangeSectionsPerComponent(TSharedRef<IPropertyHandle> PropertyHandle, int32 NewSize)
{
ensure(PropertyHandle->SetValue(NewSize) == FPropertyAccess::Success);
}
FText FCyLandEditorDetailCustomization_NewCyLand::GetSectionsPerComponent(TSharedRef<IPropertyHandle> PropertyHandle)
{
int32 SectionsPerComponent = 0;
FPropertyAccess::Result Result = PropertyHandle->GetValue(SectionsPerComponent);
check(Result == FPropertyAccess::Success);
if (Result == FPropertyAccess::MultipleValues)
{
return NSLOCTEXT("PropertyEditor", "MultipleValues", "Multiple Values");
}
FFormatNamedArguments Args;
Args.Add(TEXT("Width"), SectionsPerComponent);
Args.Add(TEXT("Height"), SectionsPerComponent);
return FText::Format(SectionsPerComponent == 1 ? LOCTEXT("1x1Section", "{Width}\u00D7{Height} Section") : LOCTEXT("NxNSections", "{Width}\u00D7{Height} Sections"), Args);
}
TOptional<int32> FCyLandEditorDetailCustomization_NewCyLand::GetCyLandResolutionX() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
return (CyLandEdMode->UISettings->NewCyLand_ComponentCount.X * CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent * CyLandEdMode->UISettings->NewCyLand_QuadsPerSection + 1);
}
return 0;
}
void FCyLandEditorDetailCustomization_NewCyLand::OnChangeCyLandResolutionX(int32 NewValue)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
int32 NewComponentCountX = CyLandEdMode->UISettings->CalcComponentsCount(NewValue);
if (NewComponentCountX != CyLandEdMode->UISettings->NewCyLand_ComponentCount.X)
{
if (!GEditor->IsTransactionActive())
{
GEditor->BeginTransaction(LOCTEXT("ChangeResolutionX_Transaction", "Change CyLand Resolution X"));
}
CyLandEdMode->UISettings->Modify();
CyLandEdMode->UISettings->NewCyLand_ComponentCount.X = NewComponentCountX;
}
}
}
void FCyLandEditorDetailCustomization_NewCyLand::OnCommitCyLandResolutionX(int32 NewValue, ETextCommit::Type CommitInfo)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
if (!GEditor->IsTransactionActive())
{
GEditor->BeginTransaction(LOCTEXT("ChangeResolutionX_Transaction", "Change CyLand Resolution X"));
}
CyLandEdMode->UISettings->Modify();
CyLandEdMode->UISettings->NewCyLand_ComponentCount.X = CyLandEdMode->UISettings->CalcComponentsCount(NewValue);
GEditor->EndTransaction();
}
}
TOptional<int32> FCyLandEditorDetailCustomization_NewCyLand::GetCyLandResolutionY() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
return (CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y * CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent * CyLandEdMode->UISettings->NewCyLand_QuadsPerSection + 1);
}
return 0;
}
void FCyLandEditorDetailCustomization_NewCyLand::OnChangeCyLandResolutionY(int32 NewValue)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
int32 NewComponentCountY = CyLandEdMode->UISettings->CalcComponentsCount(NewValue);
if (NewComponentCountY != CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y)
{
if (!GEditor->IsTransactionActive())
{
GEditor->BeginTransaction(LOCTEXT("ChangeResolutionY_Transaction", "Change CyLand Resolution Y"));
}
CyLandEdMode->UISettings->Modify();
CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y = NewComponentCountY;
}
}
}
void FCyLandEditorDetailCustomization_NewCyLand::OnCommitCyLandResolutionY(int32 NewValue, ETextCommit::Type CommitInfo)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
if (!GEditor->IsTransactionActive())
{
GEditor->BeginTransaction(LOCTEXT("ChangeResolutionY_Transaction", "Change CyLand Resolution Y"));
}
CyLandEdMode->UISettings->Modify();
CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y = CyLandEdMode->UISettings->CalcComponentsCount(NewValue);
GEditor->EndTransaction();
}
}
TOptional<int32> FCyLandEditorDetailCustomization_NewCyLand::GetMinCyLandResolution() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
// Min size is one component
return (CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent * CyLandEdMode->UISettings->NewCyLand_QuadsPerSection + 1);
}
return 0;
}
TOptional<int32> FCyLandEditorDetailCustomization_NewCyLand::GetMaxCyLandResolution() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
// Max size is either whole components below 8192 verts, or 32 components
const int32 QuadsPerComponent = (CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent * CyLandEdMode->UISettings->NewCyLand_QuadsPerSection);
//return (float)(FMath::Min(32, FMath::FloorToInt(8191 / QuadsPerComponent)) * QuadsPerComponent);
return (8191 / QuadsPerComponent) * QuadsPerComponent + 1;
}
return 0;
}
FText FCyLandEditorDetailCustomization_NewCyLand::GetTotalComponentCount() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
return FText::AsNumber(CyLandEdMode->UISettings->NewCyLand_ComponentCount.X * CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y);
}
return FText::FromString(TEXT("---"));
}
EVisibility FCyLandEditorDetailCustomization_NewCyLand::GetVisibilityOnlyInNewCyLandMode(ENewCyLandPreviewMode::Type value)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
if (CyLandEdMode->NewCyLandPreviewMode == value)
{
return EVisibility::Visible;
}
}
return EVisibility::Collapsed;
}
ECheckBoxState FCyLandEditorDetailCustomization_NewCyLand::NewCyLandModeIsChecked(ENewCyLandPreviewMode::Type value) const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
if (CyLandEdMode->NewCyLandPreviewMode == value)
{
return ECheckBoxState::Checked;
}
}
return ECheckBoxState::Unchecked;
}
void FCyLandEditorDetailCustomization_NewCyLand::OnNewCyLandModeChanged(ECheckBoxState NewCheckedState, ENewCyLandPreviewMode::Type value)
{
if (NewCheckedState == ECheckBoxState::Checked)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
CyLandEdMode->NewCyLandPreviewMode = value;
if (value == ENewCyLandPreviewMode::ImportCyLand)
{
CyLandEdMode->NewCyLandPreviewMode = ENewCyLandPreviewMode::ImportCyLand;
}
}
}
}
DEFINE_LOG_CATEGORY_STATIC(NewCyLand, Log, All);
//create
FReply FCyLandEditorDetailCustomization_NewCyLand::OnCreateButtonClicked()
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr &&
CyLandEdMode->GetWorld() != nullptr &&
CyLandEdMode->GetWorld()->GetCurrentLevel()->bIsVisible)
{
const int32 ComponentCountX = CyLandEdMode->UISettings->NewCyLand_ComponentCount.X;
const int32 ComponentCountY = CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y;
const int32 QuadsPerComponent = CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent * CyLandEdMode->UISettings->NewCyLand_QuadsPerSection;
const int32 SizeX = ComponentCountX * QuadsPerComponent + 1;
const int32 SizeY = ComponentCountY * QuadsPerComponent + 1;
TOptional< TArray< FCyLandImportLayerInfo > > ImportLayers = FNewCyLandUtils::CreateImportLayersInfo( CyLandEdMode->UISettings, CyLandEdMode->NewCyLandPreviewMode );
if ( !ImportLayers )
{
return FReply::Handled();
}
UE_LOG(NewCyLand, Warning, TEXT("create NewCyLand offset ?? %d"), ImportLayers.GetValue().Num());
TArray<uint16> Data = FNewCyLandUtils::ComputeHeightData( CyLandEdMode->UISettings, ImportLayers.GetValue(), CyLandEdMode->NewCyLandPreviewMode );
FScopedTransaction Transaction(LOCTEXT("Undo", "Creating New CyLand"));
FVector Offset = FTransform(CyLandEdMode->UISettings->NewCyLand_Rotation, FVector::ZeroVector,
CyLandEdMode->UISettings->NewCyLand_Scale).TransformVector(FVector(-ComponentCountX * QuadsPerComponent / 2, -ComponentCountY * QuadsPerComponent / 2, 0));
UE_LOG(NewCyLand, Warning, TEXT("create NewCyLand offset %f %f %f"), Offset.X , Offset.Y, Offset.Z);
Offset += CyLandEdMode->UISettings->NewCyLand_Location;
UE_LOG(NewCyLand, Warning, TEXT("create NewCyLand at %f %f %f"), Offset.X, Offset.Y, Offset.Z);
ACyLand* CyLand = CyLandEdMode->GetWorld()->SpawnActor<ACyLand>(Offset, CyLandEdMode->UISettings->NewCyLand_Rotation);
CyLand->CyLandMaterial = CyLandEdMode->UISettings->NewCyLand_Material.Get();
CyLand->SetActorRelativeScale3D(CyLandEdMode->UISettings->NewCyLand_Scale);
CyLand->Imports(FGuid::NewGuid(), 0, 0, SizeX-1, SizeY-1, CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent, CyLandEdMode->UISettings->NewCyLand_QuadsPerSection, Data.GetData(),
nullptr, ImportLayers.GetValue(), CyLandEdMode->UISettings->ImportCyLand_AlphamapType);
// automatically calculate a lighting LOD that won't crash lightmass (hopefully)
// < 2048x2048 -> LOD0
// >=2048x2048 -> LOD1
// >= 4096x4096 -> LOD2
// >= 8192x8192 -> LOD3
CyLand->StaticLightingLOD = FMath::DivideAndRoundUp(FMath::CeilLogTwo((SizeX * SizeY) / (2048 * 2048) + 1), (uint32)2);
if (CyLandEdMode->NewCyLandPreviewMode == ENewCyLandPreviewMode::ImportCyLand)
{
CyLand->ReimportHeightmapFilePath = CyLandEdMode->UISettings->ImportCyLand_HeightmapFilename;
}
UCyLandInfo* CyLandInfo = CyLand->CreateCyLandInfo();
CyLandInfo->UpdateLayerInfoMap(CyLand);
// Import doesn't fill in the LayerInfo for layers with no data, do that now
const TArray<FCyLandImportLayer>& ImportCyLandLayersList = CyLandEdMode->UISettings->ImportCyLand_Layers;
for (int32 i = 0; i < ImportCyLandLayersList.Num(); i++)
{
if (ImportCyLandLayersList[i].LayerInfo != nullptr)
{
if (CyLandEdMode->NewCyLandPreviewMode == ENewCyLandPreviewMode::ImportCyLand)
{
CyLand->EditorLayerSettings.Add(FCyLandEditorLayerSettings(ImportCyLandLayersList[i].LayerInfo, ImportCyLandLayersList[i].SourceFilePath));
}
else
{
CyLand->EditorLayerSettings.Add(FCyLandEditorLayerSettings(ImportCyLandLayersList[i].LayerInfo));
}
int32 LayerInfoIndex = CyLandInfo->GetLayerInfoIndex(ImportCyLandLayersList[i].LayerName);
if (ensure(LayerInfoIndex != INDEX_NONE))
{
FCyLandInfoLayerSettings& LayerSettings = CyLandInfo->Layers[LayerInfoIndex];
LayerSettings.LayerInfoObj = ImportCyLandLayersList[i].LayerInfo;
}
}
}
CyLandEdMode->UpdateCyLandList();
CyLandEdMode->CurrentToolTarget.CyLandInfo = CyLandInfo;
CyLandEdMode->CurrentToolTarget.TargetType = ECyLandToolTargetType::Heightmap;
CyLandEdMode->CurrentToolTarget.LayerInfo = nullptr;
CyLandEdMode->CurrentToolTarget.LayerName = NAME_None;
CyLandEdMode->UpdateTargetList();
CyLandEdMode->SetCurrentTool("Select"); // change tool so switching back to the manage mode doesn't give "New CyLand" again
CyLandEdMode->SetCurrentTool("Sculpt"); // change to sculpting mode and tool
CyLandEdMode->SetCurrentProceduralLayer(0);
if (CyLandEdMode->CurrentToolTarget.CyLandInfo.IsValid())
{
ACyLandProxy* CyLandProxy = CyLandEdMode->CurrentToolTarget.CyLandInfo->GetCyLandProxy();
CyLandProxy->OnMaterialChangedDelegate().AddRaw(CyLandEdMode, &FEdModeCyLand::OnCyLandMaterialChangedDelegate);
}
}
return FReply::Handled();
}
FReply FCyLandEditorDetailCustomization_NewCyLand::OnFillWorldButtonClicked()
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
FVector& NewCyLandLocation = CyLandEdMode->UISettings->NewCyLand_Location;
NewCyLandLocation.X = 0;
NewCyLandLocation.Y = 0;
const int32 QuadsPerComponent = CyLandEdMode->UISettings->NewCyLand_SectionsPerComponent * CyLandEdMode->UISettings->NewCyLand_QuadsPerSection;
CyLandEdMode->UISettings->NewCyLand_ComponentCount.X = FMath::CeilToInt(WORLD_MAX / QuadsPerComponent / CyLandEdMode->UISettings->NewCyLand_Scale.X);
CyLandEdMode->UISettings->NewCyLand_ComponentCount.Y = FMath::CeilToInt(WORLD_MAX / QuadsPerComponent / CyLandEdMode->UISettings->NewCyLand_Scale.Y);
CyLandEdMode->UISettings->NewCyLand_ClampSize();
}
return FReply::Handled();
}
FReply FCyLandEditorDetailCustomization_NewCyLand::OnFitImportDataButtonClicked()
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
ChooseBestComponentSizeForImport(CyLandEdMode);
}
return FReply::Handled();
}
bool FCyLandEditorDetailCustomization_NewCyLand::GetImportButtonIsEnabled() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
if (CyLandEdMode->UISettings->ImportCyLand_HeightmapImportResult == ECyLandImportResult::Error)
{
return false;
}
for (int32 i = 0; i < CyLandEdMode->UISettings->ImportCyLand_Layers.Num(); ++i)
{
if (CyLandEdMode->UISettings->ImportCyLand_Layers[i].ImportResult == ECyLandImportResult::Error)
{
return false;
}
}
return true;
}
return false;
}
EVisibility FCyLandEditorDetailCustomization_NewCyLand::GetHeightmapErrorVisibility(TSharedRef<IPropertyHandle> PropertyHandle_HeightmapImportResult)
{
ECyLandImportResult HeightmapImportResult;
FPropertyAccess::Result Result = PropertyHandle_HeightmapImportResult->GetValue((uint8&)HeightmapImportResult);
if (Result == FPropertyAccess::Fail)
{
return EVisibility::Collapsed;
}
if (Result == FPropertyAccess::MultipleValues)
{
return EVisibility::Visible;
}
if (HeightmapImportResult != ECyLandImportResult::Success)
{
return EVisibility::Visible;
}
return EVisibility::Collapsed;
}
FSlateColor FCyLandEditorDetailCustomization_NewCyLand::GetHeightmapErrorColor(TSharedRef<IPropertyHandle> PropertyHandle_HeightmapImportResult)
{
ECyLandImportResult HeightmapImportResult;
FPropertyAccess::Result Result = PropertyHandle_HeightmapImportResult->GetValue((uint8&)HeightmapImportResult);
if (Result == FPropertyAccess::Fail ||
Result == FPropertyAccess::MultipleValues)
{
return FCoreStyle::Get().GetColor("ErrorReporting.BackgroundColor");
}
switch (HeightmapImportResult)
{
case ECyLandImportResult::Success:
return FCoreStyle::Get().GetColor("InfoReporting.BackgroundColor");
case ECyLandImportResult::Warning:
return FCoreStyle::Get().GetColor("ErrorReporting.WarningBackgroundColor");
case ECyLandImportResult::Error:
return FCoreStyle::Get().GetColor("ErrorReporting.BackgroundColor");
default:
check(0);
return FSlateColor();
}
}
void FCyLandEditorDetailCustomization_NewCyLand::SetImportHeightmapFilenameString(const FText& NewValue, ETextCommit::Type CommitInfo, TSharedRef<IPropertyHandle> PropertyHandle_HeightmapFilename)
{
FString HeightmapFilename = NewValue.ToString();
ensure(PropertyHandle_HeightmapFilename->SetValue(HeightmapFilename) == FPropertyAccess::Success);
}
void FCyLandEditorDetailCustomization_NewCyLand::OnImportHeightmapFilenameChanged()
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
FNewCyLandUtils::ImportCyLandData(CyLandEdMode->UISettings, ImportResolutions);
}
}
FReply FCyLandEditorDetailCustomization_NewCyLand::OnImportHeightmapFilenameButtonClicked(TSharedRef<IPropertyHandle> PropertyHandle_HeightmapFilename)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
check(CyLandEdMode != nullptr);
// Prompt the user for the Filenames
IDesktopPlatform* DesktopPlatform = FDesktopPlatformModule::Get();
if (DesktopPlatform != nullptr)
{
ICyLandEditorModule& CyLandEditorModule = FModuleManager::GetModuleChecked<ICyLandEditorModule>("CyLandEditor");
const TCHAR* FileTypes = CyLandEditorModule.GetHeightmapImportDialogTypeString();
TArray<FString> OpenFilenames;
bool bOpened = DesktopPlatform->OpenFileDialog(
FSlateApplication::Get().FindBestParentWindowHandleForDialogs(nullptr),
NSLOCTEXT("UnrealEd", "Import", "Import").ToString(),
CyLandEdMode->UISettings->LastImportPath,
TEXT(""),
FileTypes,
EFileDialogFlags::None,
OpenFilenames);
if (bOpened)
{
ensure(PropertyHandle_HeightmapFilename->SetValue(OpenFilenames[0]) == FPropertyAccess::Success);
CyLandEdMode->UISettings->LastImportPath = FPaths::GetPath(OpenFilenames[0]);
}
}
return FReply::Handled();
}
TSharedRef<SWidget> FCyLandEditorDetailCustomization_NewCyLand::GetImportCyLandResolutionMenu()
{
FMenuBuilder MenuBuilder(true, nullptr);
for (int32 i = 0; i < ImportResolutions.Num(); i++)
{
FFormatNamedArguments Args;
Args.Add(TEXT("Width"), ImportResolutions[i].Width);
Args.Add(TEXT("Height"), ImportResolutions[i].Height);
MenuBuilder.AddMenuEntry(FText::Format(LOCTEXT("ImportResolution_Format", "{Width}\u00D7{Height}"), Args), FText(), FSlateIcon(), FExecuteAction::CreateSP(this, &FCyLandEditorDetailCustomization_NewCyLand::OnChangeImportCyLandResolution, i));
}
return MenuBuilder.MakeWidget();
}
void FCyLandEditorDetailCustomization_NewCyLand::OnChangeImportCyLandResolution(int32 Index)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
CyLandEdMode->UISettings->ImportCyLand_Width = ImportResolutions[Index].Width;
CyLandEdMode->UISettings->ImportCyLand_Height = ImportResolutions[Index].Height;
CyLandEdMode->UISettings->ClearImportCyLandData();
ChooseBestComponentSizeForImport(CyLandEdMode);
}
}
FText FCyLandEditorDetailCustomization_NewCyLand::GetImportCyLandResolution() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
const int32 Width = CyLandEdMode->UISettings->ImportCyLand_Width;
const int32 Height = CyLandEdMode->UISettings->ImportCyLand_Height;
if (Width != 0 && Height != 0)
{
FFormatNamedArguments Args;
Args.Add(TEXT("Width"), Width);
Args.Add(TEXT("Height"), Height);
return FText::Format(LOCTEXT("ImportResolution_Format", "{Width}\u00D7{Height}"), Args);
}
else
{
return LOCTEXT("ImportResolution_Invalid", "(invalid)");
}
}
return FText::GetEmpty();
}
void FCyLandEditorDetailCustomization_NewCyLand::ChooseBestComponentSizeForImport(FEdModeCyLand* CyLandEdMode)
{
FNewCyLandUtils::ChooseBestComponentSizeForImport(CyLandEdMode->UISettings);
}
EVisibility FCyLandEditorDetailCustomization_NewCyLand::GetMaterialTipVisibility() const
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
if (CyLandEdMode->UISettings->ImportCyLand_Layers.Num() == 0)
{
return EVisibility::Visible;
}
}
return EVisibility::Collapsed;
}
//////////////////////////////////////////////////////////////////////////
TSharedRef<IPropertyTypeCustomization> FCyLandEditorStructCustomization_FCyLandImportLayer::MakeInstance()
{
return MakeShareable(new FCyLandEditorStructCustomization_FCyLandImportLayer);
}
void FCyLandEditorStructCustomization_FCyLandImportLayer::CustomizeHeader(TSharedRef<IPropertyHandle> StructPropertyHandle, FDetailWidgetRow& HeaderRow, IPropertyTypeCustomizationUtils& StructCustomizationUtils)
{
}
void FCyLandEditorStructCustomization_FCyLandImportLayer::CustomizeChildren(TSharedRef<IPropertyHandle> StructPropertyHandle, IDetailChildrenBuilder& ChildBuilder, IPropertyTypeCustomizationUtils& StructCustomizationUtils)
{
TSharedRef<IPropertyHandle> PropertyHandle_LayerName = StructPropertyHandle->GetChildHandle(GET_MEMBER_NAME_CHECKED(FCyLandImportLayer, LayerName)).ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_LayerInfo = StructPropertyHandle->GetChildHandle(GET_MEMBER_NAME_CHECKED(FCyLandImportLayer, LayerInfo)).ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_SourceFilePath = StructPropertyHandle->GetChildHandle(GET_MEMBER_NAME_CHECKED(FCyLandImportLayer, SourceFilePath)).ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_ThumbnailMIC = StructPropertyHandle->GetChildHandle(GET_MEMBER_NAME_CHECKED(FCyLandImportLayer, ThumbnailMIC)).ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_ImportResult = StructPropertyHandle->GetChildHandle(GET_MEMBER_NAME_CHECKED(FCyLandImportLayer, ImportResult)).ToSharedRef();
TSharedRef<IPropertyHandle> PropertyHandle_ErrorMessage = StructPropertyHandle->GetChildHandle(GET_MEMBER_NAME_CHECKED(FCyLandImportLayer, ErrorMessage)).ToSharedRef();
FName LayerName;
FText LayerNameText;
FPropertyAccess::Result Result = PropertyHandle_LayerName->GetValue(LayerName);
checkSlow(Result == FPropertyAccess::Success);
LayerNameText = FText::FromName(LayerName);
if (Result == FPropertyAccess::MultipleValues)
{
LayerName = NAME_None;
LayerNameText = NSLOCTEXT("PropertyEditor", "MultipleValues", "Multiple Values");
}
UObject* ThumbnailMIC = nullptr;
Result = PropertyHandle_ThumbnailMIC->GetValue(ThumbnailMIC);
checkSlow(Result == FPropertyAccess::Success);
ChildBuilder.AddCustomRow(LayerNameText)
.NameContent()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
.FillWidth(1)
.VAlign(VAlign_Center)
.Padding(FMargin(2))
[
SNew(STextBlock)
.Font(StructCustomizationUtils.GetRegularFont())
.Text(LayerNameText)
]
+ SHorizontalBox::Slot()
.AutoWidth()
.VAlign(VAlign_Center)
.Padding(FMargin(2))
[
SNew(SCyLandAssetThumbnail, ThumbnailMIC, StructCustomizationUtils.GetThumbnailPool().ToSharedRef())
.ThumbnailSize(FIntPoint(48, 48))
]
]
.ValueContent()
.MinDesiredWidth(250.0f) // copied from SPropertyEditorAsset::GetDesiredWidth
.MaxDesiredWidth(0)
[
SNew(SBox)
.VAlign(VAlign_Center)
.Padding(FMargin(0,0,12,0)) // Line up with the other properties due to having no reset to default button
[
SNew(SVerticalBox)
+ SVerticalBox::Slot()
.AutoHeight()
[
SNew(SHorizontalBox)
+ SHorizontalBox::Slot()
[
SNew(SObjectPropertyEntryBox)
.AllowedClass(UCyLandLayerInfoObject::StaticClass())
.PropertyHandle(PropertyHandle_LayerInfo)
.OnShouldFilterAsset_Static(&ShouldFilterLayerInfo, LayerName)
]
+ SHorizontalBox::Slot()
.AutoWidth()
.VAlign(VAlign_Center)
[
SNew(SComboButton)
//.ButtonStyle( FEditorStyle::Get(), "NoBorder" )
.ButtonStyle( FEditorStyle::Get(), "HoverHintOnly" )
.HasDownArrow(false)
//.ContentPadding(0)
.ContentPadding(4.0f)
.ForegroundColor(FSlateColor::UseForeground())
.IsFocusable(false)
.ToolTipText(LOCTEXT("Target_Create", "Create Layer Info"))
.Visibility_Static(&GetImportLayerCreateVisibility, PropertyHandle_LayerInfo)
.OnGetMenuContent_Static(&OnGetImportLayerCreateMenu, PropertyHandle_LayerInfo, LayerName)
.ButtonContent()
[
SNew(SImage)
.Image(FEditorStyle::GetBrush("CyLandEditor.Target_Create"))
.ColorAndOpacity(FSlateColor::UseForeground())
]
]
]
+ SVerticalBox::Slot()
.AutoHeight()
[
SNew(SHorizontalBox)
.Visibility_Static(&FCyLandEditorDetailCustomization_NewCyLand::GetVisibilityOnlyInNewCyLandMode, ENewCyLandPreviewMode::ImportCyLand)
+ SHorizontalBox::Slot()
.AutoWidth()
.Padding(0, 0, 2, 0)
[
SNew(SErrorText)
.Visibility_Static(&GetErrorVisibility, PropertyHandle_ImportResult)
.BackgroundColor_Static(&GetErrorColor, PropertyHandle_ImportResult)
.ErrorText(NSLOCTEXT("UnrealEd", "Error", "!"))
.ToolTip(
SNew(SToolTip)
.Text_Static(&GetErrorText, PropertyHandle_ErrorMessage)
)
]
+ SHorizontalBox::Slot()
[
PropertyHandle_SourceFilePath->CreatePropertyValueWidget()
]
+ SHorizontalBox::Slot()
.AutoWidth()
.Padding(1, 0, 0, 0)
[
SNew(SButton)
.ContentPadding(FMargin(4, 0))
.Text(NSLOCTEXT("UnrealEd", "GenericOpenDialog", "..."))
.OnClicked_Static(&FCyLandEditorStructCustomization_FCyLandImportLayer::OnLayerFilenameButtonClicked, PropertyHandle_SourceFilePath)
]
]
]
];
}
FReply FCyLandEditorStructCustomization_FCyLandImportLayer::OnLayerFilenameButtonClicked(TSharedRef<IPropertyHandle> PropertyHandle_LayerFilename)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
check(CyLandEdMode != nullptr);
// Prompt the user for the Filenames
IDesktopPlatform* DesktopPlatform = FDesktopPlatformModule::Get();
if (DesktopPlatform != nullptr)
{
ICyLandEditorModule& CyLandEditorModule = FModuleManager::GetModuleChecked<ICyLandEditorModule>("CyLandEditor");
const TCHAR* FileTypes = CyLandEditorModule.GetWeightmapImportDialogTypeString();
TArray<FString> OpenFilenames;
bool bOpened = DesktopPlatform->OpenFileDialog(
FSlateApplication::Get().FindBestParentWindowHandleForDialogs(nullptr),
NSLOCTEXT("UnrealEd", "Import", "Import").ToString(),
CyLandEdMode->UISettings->LastImportPath,
TEXT(""),
FileTypes,
EFileDialogFlags::None,
OpenFilenames);
if (bOpened)
{
ensure(PropertyHandle_LayerFilename->SetValue(OpenFilenames[0]) == FPropertyAccess::Success);
CyLandEdMode->UISettings->LastImportPath = FPaths::GetPath(OpenFilenames[0]);
}
}
return FReply::Handled();
}
bool FCyLandEditorStructCustomization_FCyLandImportLayer::ShouldFilterLayerInfo(const FAssetData& AssetData, FName LayerName)
{
const FName LayerNameMetaData = AssetData.GetTagValueRef<FName>("LayerName");
if (!LayerNameMetaData.IsNone())
{
return LayerNameMetaData != LayerName;
}
UCyLandLayerInfoObject* LayerInfo = CastChecked<UCyLandLayerInfoObject>(AssetData.GetAsset());
return LayerInfo->LayerName != LayerName;
}
EVisibility FCyLandEditorStructCustomization_FCyLandImportLayer::GetImportLayerCreateVisibility(TSharedRef<IPropertyHandle> PropertyHandle_LayerInfo)
{
UObject* LayerInfoAsUObject = nullptr;
if (PropertyHandle_LayerInfo->GetValue(LayerInfoAsUObject) != FPropertyAccess::Fail &&
LayerInfoAsUObject == nullptr)
{
return EVisibility::Visible;
}
return EVisibility::Collapsed;
}
TSharedRef<SWidget> FCyLandEditorStructCustomization_FCyLandImportLayer::OnGetImportLayerCreateMenu(TSharedRef<IPropertyHandle> PropertyHandle_LayerInfo, FName LayerName)
{
FMenuBuilder MenuBuilder(true, nullptr);
MenuBuilder.AddMenuEntry(LOCTEXT("Target_Create_Blended", "Weight-Blended Layer (normal)"), FText(), FSlateIcon(),
FUIAction(FExecuteAction::CreateStatic(&OnImportLayerCreateClicked, PropertyHandle_LayerInfo, LayerName, false)));
MenuBuilder.AddMenuEntry(LOCTEXT("Target_Create_NoWeightBlend", "Non Weight-Blended Layer"), FText(), FSlateIcon(),
FUIAction(FExecuteAction::CreateStatic(&OnImportLayerCreateClicked, PropertyHandle_LayerInfo, LayerName, true)));
return MenuBuilder.MakeWidget();
}
void FCyLandEditorStructCustomization_FCyLandImportLayer::OnImportLayerCreateClicked(TSharedRef<IPropertyHandle> PropertyHandle_LayerInfo, FName LayerName, bool bNoWeightBlend)
{
FEdModeCyLand* CyLandEdMode = GetEditorMode();
if (CyLandEdMode != nullptr)
{
// Hack as we don't have a direct world pointer in the EdMode...
ULevel* Level = CyLandEdMode->CurrentGizmoActor->GetWorld()->GetCurrentLevel();
// Build default layer object name and package name
FName LayerObjectName = FName(*FString::Printf(TEXT("%s_LayerInfo"), *LayerName.ToString()));
FString Path = Level->GetOutermost()->GetName() + TEXT("_sharedassets/");
if (Path.StartsWith("/Temp/"))
{
Path = FString("/Game/") + Path.RightChop(FString("/Temp/").Len());
}
FString PackageName = Path + LayerObjectName.ToString();
TSharedRef<SDlgPickAssetPath> NewLayerDlg =
SNew(SDlgPickAssetPath)
.Title(LOCTEXT("CreateNewLayerInfo", "Create New CyLand Layer Info Object"))
.DefaultAssetPath(FText::FromString(PackageName));
if (NewLayerDlg->ShowModal() != EAppReturnType::Cancel)
{
PackageName = NewLayerDlg->GetFullAssetPath().ToString();
LayerObjectName = FName(*NewLayerDlg->GetAssetName().ToString());
UPackage* Package = CreatePackage(nullptr, *PackageName);
UCyLandLayerInfoObject* LayerInfo = NewObject<UCyLandLayerInfoObject>(Package, LayerObjectName, RF_Public | RF_Standalone | RF_Transactional);
LayerInfo->LayerName = LayerName;
LayerInfo->bNoWeightBlend = bNoWeightBlend;
const UObject* LayerInfoAsUObject = LayerInfo; // HACK: If SetValue took a reference to a const ptr (T* const &) or a non-reference (T*) then this cast wouldn't be necessary
ensure(PropertyHandle_LayerInfo->SetValue(LayerInfoAsUObject) == FPropertyAccess::Success);
// Notify the asset registry
FAssetRegistryModule::AssetCreated(LayerInfo);
// Mark the package dirty...
Package->MarkPackageDirty();
// Show in the content browser
TArray<UObject*> Objects;
Objects.Add(LayerInfo);
GEditor->SyncBrowserToObjects(Objects);
}
}
}
EVisibility FCyLandEditorStructCustomization_FCyLandImportLayer::GetErrorVisibility(TSharedRef<IPropertyHandle> PropertyHandle_ImportResult)
{
ECyLandImportResult WeightmapImportResult;
FPropertyAccess::Result Result = PropertyHandle_ImportResult->GetValue((uint8&)WeightmapImportResult);
if (Result == FPropertyAccess::Fail ||
Result == FPropertyAccess::MultipleValues)
{
return EVisibility::Visible;
}
if (WeightmapImportResult != ECyLandImportResult::Success)
{
return EVisibility::Visible;
}
return EVisibility::Collapsed;
}
FSlateColor FCyLandEditorStructCustomization_FCyLandImportLayer::GetErrorColor(TSharedRef<IPropertyHandle> PropertyHandle_ImportResult)
{
ECyLandImportResult WeightmapImportResult;
FPropertyAccess::Result Result = PropertyHandle_ImportResult->GetValue((uint8&)WeightmapImportResult);
check(Result == FPropertyAccess::Success);
if (Result == FPropertyAccess::MultipleValues)
{
return FCoreStyle::Get().GetColor("ErrorReporting.BackgroundColor");
}
switch (WeightmapImportResult)
{
case ECyLandImportResult::Success:
return FCoreStyle::Get().GetColor("InfoReporting.BackgroundColor");
case ECyLandImportResult::Warning:
return FCoreStyle::Get().GetColor("ErrorReporting.WarningBackgroundColor");
case ECyLandImportResult::Error:
return FCoreStyle::Get().GetColor("ErrorReporting.BackgroundColor");
default:
check(0);
return FSlateColor();
}
}
FText FCyLandEditorStructCustomization_FCyLandImportLayer::GetErrorText(TSharedRef<IPropertyHandle> PropertyHandle_ErrorMessage)
{
FText ErrorMessage;
FPropertyAccess::Result Result = PropertyHandle_ErrorMessage->GetValue(ErrorMessage);
if (Result == FPropertyAccess::Fail)
{
return LOCTEXT("Import_LayerUnknownError", "Unknown Error");
}
else if (Result == FPropertyAccess::MultipleValues)
{
return NSLOCTEXT("PropertyEditor", "MultipleValues", "Multiple Values");
}
return ErrorMessage;
}
#undef LOCTEXT_NAMESPACE
|
#include "MultipinRoute.h"
double MultipinRoute::getRoutedWirelength() const {
double routedWL = 0.0;
for (const auto &gp : this->mGridPaths) {
routedWL += gp.getRoutedWirelength();
}
return routedWL;
}
int MultipinRoute::getRoutedNumVias() const {
int numRoutedVias = 0;
for (const auto &gp : this->mGridPaths) {
numRoutedVias += gp.getRoutedNumVias();
}
return numRoutedVias;
}
int MultipinRoute::getRoutedNumBends() const {
int numRoutedBends = 0;
for (const auto &gp : this->mGridPaths) {
numRoutedBends += gp.getRoutedNumBends();
}
return numRoutedBends;
}
void MultipinRoute::gridPathSegmentsToLocations() {
for (auto &&gp : this->mGridPaths) {
gp.transformSegmentsToLocations();
}
}
void MultipinRoute::gridPathLocationsToSegments() {
// 1. Copy GridPath's Locations into Segments
for (auto &&gp : this->mGridPaths) {
gp.copyLocationsToSegments();
}
// 2. Remove Redundant points in paths
for (auto &&gp : this->mGridPaths) {
gp.removeRedundantPoints();
}
}
void MultipinRoute::removeAcuteAngleBetweenGridPinsAndPaths(const double gridWireWidth) {
PostProcessing postprocessor;
postprocessor.removeAcuteAngleBetweenGridPinsAndPaths(this->mGridPins, this->mGridPaths, gridWireWidth);
}
void MultipinRoute::removeFirstGridPathRedudantLocations() {
if (this->mGridPaths.size() != 3) {
if (GlobalParam::gVerboseLevel <= VerboseLevel::WARNING) {
std::cout << __FUNCTION__ << "(): Supports only 3 gridpaths and removes redundant locations in the first grid path." << std::endl;
}
return;
}
auto &gpToModify = this->mGridPaths.front();
auto &gpLocations = gpToModify.setLocations();
for (unsigned int i = 1; i < this->mGridPaths.size(); ++i) {
auto &gp = this->mGridPaths.at(i);
const Location &endOnFirstGp = gp.getLocations().back();
int disToBack = abs(gpLocations.back().x() - endOnFirstGp.x()) + abs(gpLocations.back().y() - endOnFirstGp.y());
int disToFront = abs(gpLocations.front().x() - endOnFirstGp.x()) + abs(gpLocations.front().y() - endOnFirstGp.y());
if (disToBack < disToFront) {
// std::cout << "endOnFirstGp: " << endOnFirstGp << ", gpLocations.back(): " << gpLocations.back() << std::endl;
// Remove locations in gpLocations from the back
while (gpLocations.back() != endOnFirstGp) {
gpLocations.pop_back();
}
} else {
// std::cout << "endOnFirstGp: " << endOnFirstGp << ", gpLocations.back(): " << gpLocations.front() << std::endl;
// Remove locations in gpLocations from the front
while (gpLocations.front() != endOnFirstGp) {
gpLocations.pop_front();
}
}
}
}
void MultipinRoute::featuresToGridPaths() {
if (this->features.empty() || this->features.size() == 1) {
cerr << __FUNCTION__ << "(): No features to translate to segments. Features.size(): " << this->features.size() << std::endl;
return;
}
// std::cout << "Starting of " << __FUNCTION__ << "() ..." << std::endl;
// Clean up
this->mGridPaths.clear();
if (this->features.size() == 2) {
auto &&path = this->getNewGridPath();
for (const auto &location : this->features) {
path.mSegments.push_back(location);
}
}
// Handle this->features.size() > 2
// New start of a path
this->mGridPaths.push_back(GridPath{});
mGridPaths.back().mSegments.push_back(this->features.front());
// Debuging
// for (const auto &feature : this->features) {
// std::cout << feature << std::endl;
// }
// Debugging
// double estGridWL = 0.0;
// 1. Separate the features into paths
for (int i = 1; i < this->features.size(); ++i) {
const auto &prevLocation = this->features.at(i - 1);
const auto &location = this->features.at(i);
// if (abs(location.m_x - prevLocation.m_x) <= 1 &&
// abs(location.m_y - prevLocation.m_y) <= 1 &&
// abs(location.m_z - prevLocation.m_z) <= 1) {
// // Sanity Check
// if (location.m_z != prevLocation.m_z &&
// location.m_y != prevLocation.m_y &&
// location.m_x != prevLocation.m_x) {
// std::cerr << __FUNCTION__ << "() Invalid path between location: " << location << ", and prevLocation: " << prevLocation << std::endl;
// continue;
// }
if ((abs(location.m_x - prevLocation.m_x) <= 1 && abs(location.m_y - prevLocation.m_y) <= 1 && location.m_z == prevLocation.m_z) ||
(location.m_x == prevLocation.m_x && location.m_y == prevLocation.m_y && location.m_z != prevLocation.m_z)) {
// If (is trace or is via)
mGridPaths.back().mSegments.emplace_back(location);
// // Debugging
// if (abs(location.m_x - prevLocation.m_x) == 1 && abs(location.m_y - prevLocation.m_y) == 1) {
// estGridWL += GlobalParam::gDiagonalCost;
// } else if (abs(location.m_x - prevLocation.m_x) == 1 || abs(location.m_y - prevLocation.m_y) == 1) {
// estGridWL += 1.0;
// }
} else {
// New start of a path
this->mGridPaths.push_back(GridPath{});
mGridPaths.back().mSegments.emplace_back(location);
}
}
// std::cout << __FUNCTION__ << "(): # paths: " << this->mGridPaths.size() << ", estimated Grid WL: " << estGridWL << std::endl;
// 2. Remove Redundant points in paths
for (auto &&path : this->mGridPaths) {
path.removeRedundantPoints();
}
// std::cout << "End of " << __FUNCTION__ << "()" << std::endl;
}
void MultipinRoute::setupGridPinsRoutingOrder() {
if (this->mGridPins.empty()) {
return;
} else if (this->mGridPins.size() == 1) {
this->mGridPinsRoutingOrder = {0};
return;
} else if (this->mGridPins.size() == 2) {
this->mGridPinsRoutingOrder = {0, 1};
return;
}
double minLength = std::numeric_limits<double>::max();
int minLengthId1 = -1;
int minLengthId2 = -1;
for (int i = 0; i < this->mGridPins.size(); ++i) {
for (int j = i + 1; j < this->mGridPins.size(); ++j) {
double dis = getGridPinsDistance(this->mGridPins[i], this->mGridPins[j]);
if (dis < minLength) {
minLength = dis;
minLengthId1 = i;
minLengthId2 = j;
}
}
}
this->mGridPinsRoutingOrder.push_back(minLengthId1);
this->mGridPinsRoutingOrder.push_back(minLengthId2);
while (mGridPinsRoutingOrder.size() < this->mGridPins.size()) {
double minLength = std::numeric_limits<double>::max();
int minLengthId = -1;
for (const auto id : mGridPinsRoutingOrder) {
for (int i = 0; i < this->mGridPins.size(); ++i) {
auto it = std::find(mGridPinsRoutingOrder.begin(), mGridPinsRoutingOrder.end(), i);
if (it != mGridPinsRoutingOrder.end()) {
continue;
}
double dis = getGridPinsDistance(this->mGridPins[i], this->mGridPins[id]);
if (dis < minLength) {
minLength = dis;
minLengthId = i;
}
}
}
this->mGridPinsRoutingOrder.push_back(minLengthId);
}
std::vector<GridPin> tempGridPins = this->mGridPins;
this->mGridPins.clear();
for (const auto id : this->mGridPinsRoutingOrder) {
//this->mGridPins.emplace_back(std::move(tempGridPins.at(id)));
this->mGridPins.push_back(tempGridPins.at(id));
}
if (tempGridPins.size() != this->mGridPins.size()) {
if (GlobalParam::gVerboseLevel <= VerboseLevel::CRITICAL) {
std::cout << __FUNCTION__ << "(): Failed # of GridPins after reordering..." << std::endl;
}
}
}
double MultipinRoute::getGridPinsDistance(const GridPin &gp1, const GridPin &gp2) {
int absDiffX = abs(gp1.getPinCenter().x() - gp2.getPinCenter().x());
int absDiffY = abs(gp1.getPinCenter().y() - gp2.getPinCenter().y());
int minDiff = min(absDiffX, absDiffY);
int maxDiff = max(absDiffX, absDiffY);
return (double)minDiff * GlobalParam::gDiagonalCost + maxDiff - minDiff;
}
|
#pragma once
#include <usp10.h>
#include <dimm.h>
#include <d3d9types.h>
#include <d3dx9math.h>
#include <vector>
#include "common_ui.h"
//--------------------------------------------------------------------------------------
// Defines and macros
//--------------------------------------------------------------------------------------
#define EVENT_BUTTON_CLICKED 0x0101
#define EVENT_COMBOBOX_SELECTION_CHANGED 0x0201
#define EVENT_RADIOBUTTON_CHANGED 0x0301
#define EVENT_CHECKBOX_CHANGED 0x0401
#define EVENT_SLIDER_VALUE_CHANGED 0x0501
#define EVENT_EDITBOX_STRING 0x0601
// EVENT_EDITBOX_CHANGE is sent when the listbox content changes
// due to user input.
#define EVENT_EDITBOX_CHANGE 0x0602
#define EVENT_LISTBOX_ITEM_DBLCLK 0x0701
// EVENT_LISTBOX_SELECTION is fired off when the selection changes in
// a single selection list box.
#define EVENT_LISTBOX_SELECTION 0x0702
#define EVENT_LISTBOX_SELECTION_END 0x0703
//--------------------------------------------------------------------------------------
// Forward declarations
//--------------------------------------------------------------------------------------
class CDXUTDialogResourceManager;
class CDXUTControl;
class CDXUTButton;
class CDXUTStatic;
class CDXUTCheckBox;
class CDXUTRadioButton;
class CDXUTComboBox;
class CDXUTSlider;
class CDXUTEditBox;
class CDXUTListBox;
class CDXUTScrollBar;
class CDXUTElement;
struct DXUTElementHolder;
struct DXUTTextureNode;
struct DXUTFontNode;
typedef VOID(CALLBACK*PCALLBACKDXUTGUIEVENT)(UINT nEvent, int nControlID, CDXUTControl* pControl,
void* pUserContext);
//--------------------------------------------------------------------------------------
// Enums for pre-defined control types
//--------------------------------------------------------------------------------------
enum DXUT_CONTROL_TYPE
{
DXUT_CONTROL_BUTTON,
DXUT_CONTROL_STATIC,
DXUT_CONTROL_CHECKBOX,
DXUT_CONTROL_RADIOBUTTON,
DXUT_CONTROL_COMBOBOX,
DXUT_CONTROL_SLIDER,
DXUT_CONTROL_EDITBOX,
DXUT_CONTROL_IMEEDITBOX,
DXUT_CONTROL_LISTBOX,
DXUT_CONTROL_SCROLLBAR,
};
enum DXUT_CONTROL_STATE
{
DXUT_STATE_NORMAL = 0,
DXUT_STATE_DISABLED,
DXUT_STATE_HIDDEN,
DXUT_STATE_FOCUS,
DXUT_STATE_MOUSEOVER,
DXUT_STATE_PRESSED,
};
#define MAX_CONTROL_STATES 6
struct DXUTBlendColor
{
void Init(D3DCOLOR defaultColor, D3DCOLOR disabledColor = D3DCOLOR_ARGB(200, 128, 128, 128),
D3DCOLOR hiddenColor = 0);
void Blend(UINT iState, float fElapsedTime, float fRate = 0.7f);
D3DCOLOR States[MAX_CONTROL_STATES]; // Modulate colors for all possible control states
D3DXCOLOR Current;
};
//-----------------------------------------------------------------------------
// Contains all the display tweakables for a sub-control
//-----------------------------------------------------------------------------
class CDXUTElement
{
public:
void SetTexture(UINT iTexture, RECT* prcTexture, D3DCOLOR defaultTextureColor = D3DCOLOR_ARGB(255, 255, 255,
255));
void SetFont(UINT iFont, D3DCOLOR defaultFontColor = D3DCOLOR_ARGB(255, 255, 255,
255), DWORD dwTextFormat = DT_CENTER |
DT_VCENTER);
void Refresh();
UINT iTexture; // Index of the texture for this Element
UINT iFont; // Index of the font for this Element
DWORD dwTextFormat; // The format argument to DrawText
RECT rcTexture; // Bounding rect of this element on the composite texture
DXUTBlendColor TextureColor;
DXUTBlendColor FontColor;
};
//-----------------------------------------------------------------------------
// All controls must be assigned to a dialog, which handles
// input and rendering for the controls.
//-----------------------------------------------------------------------------
class CDXUTDialog
{
friend class CDXUTDialogResourceManager;
public:
CDXUTDialog(HWND hwnd);
~CDXUTDialog();
// Need to call this now
void Init(CDXUTDialogResourceManager* pManager, bool bRegisterDialog = true);
void Init(CDXUTDialogResourceManager* pManager, bool bRegisterDialog,
LPCSTR pszControlTextureFilename);
void Init(CDXUTDialogResourceManager* pManager, bool bRegisterDialog,
LPCSTR szControlTextureResourceName, HMODULE hControlTextureResourceModule);
// Windows message handler
bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
// Control creation
HRESULT AddStatic(int ID, LPCSTR strText, int x, int y, int width, int height, bool bIsDefault = false,
CDXUTStatic** ppCreated = NULL);
HRESULT AddButton(int ID, LPCSTR strText, int x, int y, int width, int height, UINT nHotkey = 0,
bool bIsDefault = false, CDXUTButton** ppCreated = NULL);
HRESULT AddCheckBox(int ID, LPCSTR strText, int x, int y, int width, int height, bool bChecked = false,
UINT nHotkey = 0, bool bIsDefault = false, CDXUTCheckBox** ppCreated = NULL);
HRESULT AddRadioButton(int ID, UINT nButtonGroup, LPCSTR strText, int x, int y, int width,
int height, bool bChecked = false, UINT nHotkey = 0, bool bIsDefault = false,
CDXUTRadioButton** ppCreated = NULL);
HRESULT AddComboBox(int ID, int x, int y, int width, int height, UINT nHotKey = 0, bool bIsDefault =
false, CDXUTComboBox** ppCreated = NULL);
HRESULT AddSlider(int ID, int x, int y, int width, int height, int min = 0, int max = 100, int value = 50,
bool bIsDefault = false, CDXUTSlider** ppCreated = NULL);
// AddIMEEditBox has been renamed into DXUTguiIME.cpp as CDXUTIMEEditBox::CreateIMEEditBox
HRESULT AddEditBox(int ID, LPCSTR strText, int x, int y, int width, int height, bool bIsDefault =
false, CDXUTEditBox** ppCreated = NULL);
HRESULT AddListBox(int ID, int x, int y, int width, int height, DWORD dwStyle = 0,
CDXUTListBox** ppCreated = NULL);
HRESULT AddControl(CDXUTControl* pControl);
HRESULT InitControl(CDXUTControl* pControl);
HWND hwnd() const;
// Control retrieval
CDXUTStatic* GetStatic(int ID)
{
return (CDXUTStatic*)GetControl(ID, DXUT_CONTROL_STATIC);
}
CDXUTButton* GetButton(int ID)
{
return (CDXUTButton*)GetControl(ID, DXUT_CONTROL_BUTTON);
}
CDXUTCheckBox* GetCheckBox(int ID)
{
return (CDXUTCheckBox*)GetControl(ID, DXUT_CONTROL_CHECKBOX);
}
CDXUTRadioButton* GetRadioButton(int ID)
{
return (CDXUTRadioButton*)GetControl(ID, DXUT_CONTROL_RADIOBUTTON);
}
CDXUTComboBox* GetComboBox(int ID)
{
return (CDXUTComboBox*)GetControl(ID, DXUT_CONTROL_COMBOBOX);
}
CDXUTSlider* GetSlider(int ID)
{
return (CDXUTSlider*)GetControl(ID, DXUT_CONTROL_SLIDER);
}
CDXUTEditBox* GetEditBox(int ID)
{
return (CDXUTEditBox*)GetControl(ID, DXUT_CONTROL_EDITBOX);
}
CDXUTListBox* GetListBox(int ID)
{
return (CDXUTListBox*)GetControl(ID, DXUT_CONTROL_LISTBOX);
}
CDXUTControl* GetControl(int ID);
CDXUTControl* GetControl(int ID, UINT nControlType);
CDXUTControl* GetControlAtPoint(POINT pt);
bool GetControlEnabled(int ID);
void SetControlEnabled(int ID, bool bEnabled);
void ClearRadioButtonGroup(UINT nGroup);
void ClearComboBox(int ID);
// Access the default display Elements used when adding new controls
HRESULT SetDefaultElement(UINT nControlType, UINT iElement, CDXUTElement* pElement);
CDXUTElement* GetDefaultElement(UINT nControlType, UINT iElement);
// Methods called by controls
void SendEvent(UINT nEvent, bool bTriggeredByUser, CDXUTControl* pControl);
void RequestFocus(CDXUTControl* pControl);
// Render helpers
HRESULT DrawRect(RECT* pRect, D3DCOLOR color);
HRESULT DrawRect9(RECT* pRect, D3DCOLOR color);
HRESULT DrawPolyLine(POINT* apPoints, UINT nNumPoints, D3DCOLOR color);
HRESULT DrawSprite(CDXUTElement* pElement, RECT* prcDest, float fDepth);
HRESULT DrawSprite9(CDXUTElement* pElement, RECT* prcDest);
HRESULT CalcTextRect(LPCSTR strText, CDXUTElement* pElement, RECT* prcDest, int nCount = -1);
HRESULT DrawText(LPCSTR strText, CDXUTElement* pElement, RECT* prcDest, bool bShadow = false, int nCount = -1);
HRESULT DrawText9(LPCSTR strText, CDXUTElement* pElement, RECT* prcDest, bool bShadow = false, int nCount = -1);
// Attributes
bool GetVisible()
{
return m_bVisible;
}
void SetVisible(bool bVisible)
{
m_bVisible = bVisible;
}
bool GetMinimized()
{
return m_bMinimized;
}
void SetMinimized(bool bMinimized)
{
m_bMinimized = bMinimized;
}
void SetBackgroundColors(D3DCOLOR colorAllCorners)
{
SetBackgroundColors(colorAllCorners, colorAllCorners, colorAllCorners, colorAllCorners);
}
void SetBackgroundColors(D3DCOLOR colorTopLeft, D3DCOLOR colorTopRight, D3DCOLOR colorBottomLeft,
D3DCOLOR colorBottomRight);
void EnableCaption(bool bEnable)
{
m_bCaption = bEnable;
}
int GetCaptionHeight() const
{
return m_nCaptionHeight;
}
void SetCaptionHeight(int nHeight)
{
m_nCaptionHeight = nHeight;
}
void SetCaptionText(const char* pwszText)
{
strcpy_s(m_wszCaption, sizeof(m_wszCaption) / sizeof(m_wszCaption[0]), pwszText);
}
void GetLocation(POINT& Pt) const
{
Pt.x = m_x; Pt.y = m_y;
}
void SetLocation(int x, int y)
{
m_x = x; m_y = y;
}
void SetSize(int width, int height)
{
m_width = width; m_height = height;
}
int GetWidth()
{
return m_width;
}
int GetHeight()
{
return m_height;
}
static void WINAPI SetRefreshTime(float fTime)
{
s_fTimeRefresh = fTime;
}
static CDXUTControl* WINAPI GetNextControl(CDXUTControl* pControl);
static CDXUTControl* WINAPI GetPrevControl(CDXUTControl* pControl);
void RemoveControl(int ID);
void RemoveAllControls();
// Sets the callback used to notify the app of control events
void SetCallback(PCALLBACKDXUTGUIEVENT pCallback, void* pUserContext = NULL);
void EnableNonUserEvents(bool bEnable)
{
m_bNonUserEvents = bEnable;
}
void EnableKeyboardInput(bool bEnable)
{
m_bKeyboardInput = bEnable;
}
void EnableMouseInput(bool bEnable)
{
m_bMouseInput = bEnable;
}
bool IsKeyboardInputEnabled() const
{
return m_bKeyboardInput;
}
// Device state notification
void Refresh();
HRESULT OnRender(float fElapsedTime);
// Shared resource access. Indexed fonts and textures are shared among
// all the controls.
HRESULT SetFont(UINT index, LPCSTR strFaceName, LONG height, LONG weight);
DXUTFontNode* GetFont(UINT index);
HRESULT SetTexture(UINT index, LPCSTR strFilename);
HRESULT SetTexture(UINT index, LPCSTR strResourceName, HMODULE hResourceModule);
DXUTTextureNode* GetTexture(UINT index);
CDXUTDialogResourceManager* GetManager()
{
return m_pManager;
}
static void WINAPI ClearFocus();
void FocusDefaultControl();
bool m_bNonUserEvents;
bool m_bKeyboardInput;
bool m_bMouseInput;
private:
int m_nDefaultControlID;
HRESULT OnRender9(float fElapsedTime);
HRESULT OnRender10(float fElapsedTime);
static double s_fTimeRefresh;
double m_fTimeLastRefresh;
// Initialize default Elements
void InitDefaultElements();
// Windows message handlers
void OnMouseMove(POINT pt);
void OnMouseUp(POINT pt);
void SetNextDialog(CDXUTDialog* pNextDialog);
// Control events
bool OnCycleFocus(bool bForward);
static CDXUTControl* s_pControlFocus; // The control which has focus
static CDXUTControl* s_pControlPressed; // The control currently pressed
CDXUTControl* m_pControlMouseOver; // The control which is hovered over
bool m_bVisible;
bool m_bCaption;
bool m_bMinimized;
bool m_bDrag;
char m_wszCaption[256];
int m_x;
int m_y;
int m_width;
int m_height;
int m_nCaptionHeight;
D3DCOLOR m_colorTopLeft;
D3DCOLOR m_colorTopRight;
D3DCOLOR m_colorBottomLeft;
D3DCOLOR m_colorBottomRight;
CDXUTDialogResourceManager* m_pManager;
PCALLBACKDXUTGUIEVENT m_pCallbackEvent;
void* m_pCallbackEventUserContext;
std::vector<int> m_Textures; // Index into m_TextureCache;
std::vector<int> m_Fonts; // Index into m_FontCache;
std::vector<CDXUTControl*> m_Controls;
std::vector<DXUTElementHolder*> m_DefaultElements;
CDXUTElement m_CapElement; // Element for the caption
CDXUTDialog* m_pNextDialog;
CDXUTDialog* m_pPrevDialog;
HWND m_hwnd;
};
//--------------------------------------------------------------------------------------
// Structs for shared resources
//--------------------------------------------------------------------------------------
struct DXUTTextureNode
{
bool bFileSource; // True if this texture is loaded from a file. False if from resource.
HMODULE hResourceModule;
int nResourceID; // Resource ID. If 0, string-based ID is used and stored in strFilename.
char strFilename[MAX_PATH];
DWORD dwWidth;
DWORD dwHeight;
IDirect3DTexture9* pTexture9;
};
struct DXUTFontNode
{
char strFace[MAX_PATH];
LONG nHeight;
LONG nWeight;
ID3DXFont* pFont9;
};
//-----------------------------------------------------------------------------
// Manages shared resources of dialogs
//-----------------------------------------------------------------------------
class CDXUTDialogResourceManager
{
public:
CDXUTDialogResourceManager();
~CDXUTDialogResourceManager();
bool MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
// D3D9 specific
HRESULT OnD3D9CreateDevice(LPDIRECT3DDEVICE9 pd3dDevice);
HRESULT OnD3D9ResetDevice();
void OnD3D9LostDevice();
void OnD3D9DestroyDevice();
IDirect3DDevice9* GetD3D9Device()
{
return m_pd3d9Device;
}
DXUTFontNode* GetFontNode(int iIndex)
{
return m_FontCache.at(iIndex);
};
DXUTTextureNode* GetTextureNode(int iIndex)
{
return m_TextureCache.at(iIndex);
};
int AddFont(LPCSTR strFaceName, LONG height, LONG weight);
int AddTexture(LPCSTR strFilename);
int AddTexture(LPCSTR strResourceName, HMODULE hResourceModule);
bool RegisterDialog(CDXUTDialog* pDialog);
void UnregisterDialog(CDXUTDialog* pDialog);
void EnableKeyboardInputForAllDialogs();
// Shared between all dialogs
// D3D9
IDirect3DStateBlock9* m_pStateBlock;
ID3DXSprite* m_pSprite; // Sprite used for drawing
UINT m_nBackBufferWidth;
UINT m_nBackBufferHeight;
std::vector<CDXUTDialog*> m_Dialogs; // Dialogs registered
protected:
// D3D9 specific
IDirect3DDevice9* m_pd3d9Device;
HRESULT CreateFont9(UINT index);
HRESULT CreateTexture9(UINT index);
std::vector<DXUTTextureNode*> m_TextureCache; // Shared textures
std::vector<DXUTFontNode*> m_FontCache; // Shared fonts
};
//-----------------------------------------------------------------------------
// Base class for controls
//-----------------------------------------------------------------------------
class CDXUTControl
{
public:
CDXUTControl(CDXUTDialog* pDialog = NULL);
virtual ~CDXUTControl();
virtual HRESULT OnInit()
{
return S_OK;
}
virtual void Refresh();
virtual void Render(float fElapsedTime)
{
};
// Windows message handler
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return false;
}
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam)
{
return false;
}
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam)
{
return false;
}
virtual bool CanHaveFocus()
{
return false;
}
virtual void OnFocusIn()
{
m_bHasFocus = true;
}
virtual void OnFocusOut()
{
m_bHasFocus = false;
}
virtual void OnMouseEnter()
{
m_bMouseOver = true;
}
virtual void OnMouseLeave()
{
m_bMouseOver = false;
}
virtual void OnHotkey()
{
}
virtual BOOL ContainsPoint(POINT pt)
{
return PtInRect(&m_rcBoundingBox, pt);
}
virtual void SetEnabled(bool bEnabled)
{
m_bEnabled = bEnabled;
}
virtual bool GetEnabled()
{
return m_bEnabled;
}
virtual void SetVisible(bool bVisible)
{
m_bVisible = bVisible;
}
virtual bool GetVisible()
{
return m_bVisible;
}
UINT GetType() const
{
return m_Type;
}
int GetID() const
{
return m_ID;
}
void SetID(int ID)
{
m_ID = ID;
}
void SetLocation(int x, int y)
{
m_x = x; m_y = y; UpdateRects();
}
void SetSize(int width, int height)
{
m_width = width; m_height = height; UpdateRects();
}
void SetHotkey(UINT nHotkey)
{
m_nHotkey = nHotkey;
}
UINT GetHotkey()
{
return m_nHotkey;
}
void SetUserData(void* pUserData)
{
m_pUserData = pUserData;
}
void* GetUserData() const
{
return m_pUserData;
}
virtual void SetTextColor(D3DCOLOR Color);
CDXUTElement* GetElement(UINT iElement)
{
return m_Elements.at(iElement);
}
HRESULT SetElement(UINT iElement, CDXUTElement* pElement);
bool m_bVisible; // Shown/hidden flag
bool m_bMouseOver; // Mouse pointer is above control
bool m_bHasFocus; // Control has input focus
bool m_bIsDefault; // Is the default control
// Size, scale, and positioning members
int m_x, m_y;
int m_width, m_height;
// These members are set by the container
CDXUTDialog* m_pDialog; // Parent container
UINT m_Index; // Index within the control list
std::vector<CDXUTElement*> m_Elements; // All display elements
protected:
virtual void UpdateRects();
int m_ID; // ID number
DXUT_CONTROL_TYPE m_Type; // Control type, set once in constructor
UINT m_nHotkey; // Virtual key code for this control's hotkey
void* m_pUserData; // Data associated with this control that is set by user.
bool m_bEnabled; // Enabled/disabled flag
RECT m_rcBoundingBox; // Rectangle defining the active region of the control
};
//-----------------------------------------------------------------------------
// Contains all the display information for a given control type
//-----------------------------------------------------------------------------
struct DXUTElementHolder
{
UINT nControlType;
UINT iElement;
CDXUTElement Element;
};
//-----------------------------------------------------------------------------
// Static control
//-----------------------------------------------------------------------------
class CDXUTStatic : public CDXUTControl
{
public:
CDXUTStatic(CDXUTDialog* pDialog = NULL);
virtual void Render(float fElapsedTime);
virtual BOOL ContainsPoint(POINT pt)
{
return false;
}
HRESULT GetTextCopy(__out_ecount(bufferCount) LPSTR strDest,
UINT bufferCount);
LPCSTR GetText()
{
return m_strText;
}
HRESULT SetText(LPCSTR strText);
protected:
char m_strText[MAX_PATH]; // Window text
};
//-----------------------------------------------------------------------------
// Button control
//-----------------------------------------------------------------------------
class CDXUTButton : public CDXUTStatic
{
public:
CDXUTButton(CDXUTDialog* pDialog = NULL);
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual void OnHotkey()
{
if (m_pDialog->IsKeyboardInputEnabled()) m_pDialog->RequestFocus(this);
m_pDialog->SendEvent(EVENT_BUTTON_CLICKED, true, this);
}
virtual BOOL ContainsPoint(POINT pt)
{
return PtInRect(&m_rcBoundingBox, pt);
}
virtual bool CanHaveFocus()
{
return (m_bVisible && m_bEnabled);
}
virtual void Render(float fElapsedTime);
protected:
bool m_bPressed;
};
//-----------------------------------------------------------------------------
// CheckBox control
//-----------------------------------------------------------------------------
class CDXUTCheckBox : public CDXUTButton
{
public:
CDXUTCheckBox(CDXUTDialog* pDialog = NULL);
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual void OnHotkey()
{
if (m_pDialog->IsKeyboardInputEnabled()) m_pDialog->RequestFocus(this);
SetCheckedInternal(!m_bChecked, true);
}
virtual BOOL ContainsPoint(POINT pt);
virtual void UpdateRects();
virtual void Render(float fElapsedTime);
bool GetChecked()
{
return m_bChecked;
}
void SetChecked(bool bChecked)
{
SetCheckedInternal(bChecked, false);
}
protected:
virtual void SetCheckedInternal(bool bChecked, bool bFromInput);
bool m_bChecked;
RECT m_rcButton;
RECT m_rcText;
};
//-----------------------------------------------------------------------------
// RadioButton control
//-----------------------------------------------------------------------------
class CDXUTRadioButton : public CDXUTCheckBox
{
public:
CDXUTRadioButton(CDXUTDialog* pDialog = NULL);
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual void OnHotkey()
{
if (m_pDialog->IsKeyboardInputEnabled()) m_pDialog->RequestFocus(this);
SetCheckedInternal(true, true, true);
}
void SetChecked(bool bChecked, bool bClearGroup = true)
{
SetCheckedInternal(bChecked, bClearGroup, false);
}
void SetButtonGroup(UINT nButtonGroup)
{
m_nButtonGroup = nButtonGroup;
}
UINT GetButtonGroup()
{
return m_nButtonGroup;
}
protected:
virtual void SetCheckedInternal(bool bChecked, bool bClearGroup, bool bFromInput);
UINT m_nButtonGroup;
};
//-----------------------------------------------------------------------------
// Scrollbar control
//-----------------------------------------------------------------------------
class CDXUTScrollBar : public CDXUTControl
{
public:
CDXUTScrollBar(CDXUTDialog* pDialog = NULL);
virtual ~CDXUTScrollBar();
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual void Render(float fElapsedTime);
virtual void UpdateRects();
void SetTrackRange(int nStart, int nEnd);
int GetTrackPos()
{
return m_nPosition;
}
void SetTrackPos(int nPosition)
{
m_nPosition = nPosition; Cap(); UpdateThumbRect();
}
int GetPageSize()
{
return m_nPageSize;
}
void SetPageSize(int nPageSize)
{
m_nPageSize = nPageSize; Cap(); UpdateThumbRect();
}
void Scroll(int nDelta); // Scroll by nDelta items (plus or minus)
void ShowItem(int nIndex); // Ensure that item nIndex is displayed, scroll if necessary
protected:
// ARROWSTATE indicates the state of the arrow buttons.
// CLEAR No arrow is down.
// CLICKED_UP Up arrow is clicked.
// CLICKED_DOWN Down arrow is clicked.
// HELD_UP Up arrow is held down for sustained period.
// HELD_DOWN Down arrow is held down for sustained period.
enum ARROWSTATE
{
CLEAR,
CLICKED_UP,
CLICKED_DOWN,
HELD_UP,
HELD_DOWN
};
void UpdateThumbRect();
void Cap(); // Clips position at boundaries. Ensures it stays within legal range.
bool m_bShowThumb;
bool m_bDrag;
RECT m_rcUpButton;
RECT m_rcDownButton;
RECT m_rcTrack;
RECT m_rcThumb;
int m_nPosition; // Position of the first displayed item
int m_nPageSize; // How many items are displayable in one page
int m_nStart; // First item
int m_nEnd; // The index after the last item
POINT m_LastMouse;// Last mouse position
ARROWSTATE m_Arrow; // State of the arrows
double m_dArrowTS; // Timestamp of last arrow event.
};
//-----------------------------------------------------------------------------
// ListBox control
//-----------------------------------------------------------------------------
struct DXUTListBoxItem
{
char strText[256];
void* pData;
RECT rcActive;
bool bSelected;
};
class CDXUTListBox : public CDXUTControl
{
public:
CDXUTListBox(CDXUTDialog* pDialog = NULL);
virtual ~CDXUTListBox();
virtual HRESULT OnInit()
{
return m_pDialog->InitControl(&m_ScrollBar);
}
virtual bool CanHaveFocus()
{
return (m_bVisible && m_bEnabled);
}
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual void Render(float fElapsedTime);
virtual void UpdateRects();
DWORD GetStyle() const
{
return m_dwStyle;
}
int size() const
{
return m_Items.size();
}
void SetStyle(DWORD dwStyle)
{
m_dwStyle = dwStyle;
}
int GetScrollBarWidth() const
{
return m_nSBWidth;
}
void SetScrollBarWidth(int nWidth)
{
m_nSBWidth = nWidth; UpdateRects();
}
void SetBorder(int nBorder, int nMargin)
{
m_nBorder = nBorder; m_nMargin = nMargin;
}
HRESULT AddItem(const char* wszText, void* pData);
HRESULT InsertItem(int nIndex, const char* wszText, void* pData);
void RemoveItem(int nIndex);
void RemoveItemByData(void* pData);
void RemoveAllItems();
DXUTListBoxItem* GetItem(int nIndex);
int GetSelectedIndex(int nPreviousSelected = -1);
DXUTListBoxItem* GetSelectedItem(int nPreviousSelected = -1)
{
return GetItem(GetSelectedIndex(nPreviousSelected));
}
void SelectItem(int nNewIndex);
enum STYLE
{
MULTISELECTION = 1
};
protected:
RECT m_rcText; // Text rendering bound
RECT m_rcSelection; // Selection box bound
CDXUTScrollBar m_ScrollBar;
int m_nSBWidth;
int m_nBorder;
int m_nMargin;
int m_nTextHeight; // Height of a single line of text
DWORD m_dwStyle; // List box style
int m_nSelected; // Index of the selected item for single selection list box
int m_nSelStart; // Index of the item where selection starts (for handling multi-selection)
bool m_bDrag; // Whether the user is dragging the mouse to select
std::vector<DXUTListBoxItem*> m_Items;
};
//-----------------------------------------------------------------------------
// ComboBox control
//-----------------------------------------------------------------------------
struct DXUTComboBoxItem
{
char strText[256];
void* pData;
RECT rcActive;
bool bVisible;
};
class CDXUTComboBox : public CDXUTButton
{
public:
CDXUTComboBox(CDXUTDialog* pDialog = NULL);
virtual ~CDXUTComboBox();
virtual void SetTextColor(D3DCOLOR Color);
virtual HRESULT OnInit()
{
return m_pDialog->InitControl(&m_ScrollBar);
}
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual void OnHotkey();
virtual bool CanHaveFocus()
{
return (m_bVisible && m_bEnabled);
}
virtual void OnFocusOut();
virtual void Render(float fElapsedTime);
virtual void UpdateRects();
HRESULT AddItem(const char* strText, void* pData);
void RemoveAllItems();
void RemoveItem(UINT index);
bool ContainsItem(const char* strText, UINT iStart = 0);
int FindItem(const char* strText, UINT iStart = 0);
void* GetItemData(const char* strText);
void* GetItemData(int nIndex);
void SetDropHeight(UINT nHeight)
{
m_nDropHeight = nHeight; UpdateRects();
}
int GetScrollBarWidth() const
{
return m_nSBWidth;
}
void SetScrollBarWidth(int nWidth)
{
m_nSBWidth = nWidth; UpdateRects();
}
int GetSelectedIndex() const
{
return m_iSelected;
}
void* GetSelectedData();
DXUTComboBoxItem* GetSelectedItem();
UINT GetNumItems()
{
return m_Items.size();
}
DXUTComboBoxItem* GetItem(UINT index)
{
return m_Items.at(index);
}
HRESULT SetSelectedByIndex(UINT index);
HRESULT SetSelectedByText(const char* strText);
HRESULT SetSelectedByData(void* pData);
protected:
int m_iSelected;
int m_iFocused;
int m_nDropHeight;
CDXUTScrollBar m_ScrollBar;
int m_nSBWidth;
bool m_bOpened;
RECT m_rcText;
RECT m_rcButton;
RECT m_rcDropdown;
RECT m_rcDropdownText;
std::vector<DXUTComboBoxItem*> m_Items;
};
//-----------------------------------------------------------------------------
// Slider control
//-----------------------------------------------------------------------------
class CDXUTSlider : public CDXUTControl
{
public:
CDXUTSlider(CDXUTDialog* pDialog = NULL);
virtual BOOL ContainsPoint(POINT pt);
virtual bool CanHaveFocus()
{
return (m_bVisible && m_bEnabled);
}
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual void UpdateRects();
virtual void Render(float fElapsedTime);
void SetValue(int nValue)
{
SetValueInternal(nValue, false);
}
int GetValue() const
{
return m_nValue;
};
void GetRange(int& nMin, int& nMax) const
{
nMin = m_nMin; nMax = m_nMax;
}
void SetRange(int nMin, int nMax);
protected:
void SetValueInternal(int nValue, bool bFromInput);
int ValueFromPos(int x);
int m_nValue;
int m_nMin;
int m_nMax;
int m_nDragX; // Mouse position at start of drag
int m_nDragOffset; // Drag offset from the center of the button
int m_nButtonX;
bool m_bPressed;
RECT m_rcButton;
};
//-----------------------------------------------------------------------------
// CUniBuffer class for the edit control
//-----------------------------------------------------------------------------
class CUniBuffer
{
public:
CUniBuffer(int nInitialSize = 1);
~CUniBuffer();
static void WINAPI Initialize();
static void WINAPI Uninitialize();
int GetBufferSize()
{
return m_nBufferSize;
}
bool SetBufferSize(int nSize);
int GetTextSize()
{
return lstrlenA(m_pwszBuffer);
}
const char* GetBuffer()
{
return m_pwszBuffer;
}
const char& operator[](int n) const
{
return m_pwszBuffer[n];
}
char& operator[](int n);
DXUTFontNode* GetFontNode()
{
return m_pFontNode;
}
void SetFontNode(DXUTFontNode* pFontNode)
{
m_pFontNode = pFontNode;
}
void Clear();
bool InsertChar(int nIndex, char wChar); // Inserts the char at specified index. If nIndex == -1, insert to the end.
bool RemoveChar(int nIndex); // Removes the char at specified index. If nIndex == -1, remove the last char.
bool InsertString(int nIndex, const char* pStr, int nCount = -1); // Inserts the first nCount characters of the string pStr at specified index. If nCount == -1, the entire string is inserted. If nIndex == -1, insert to the end.
bool SetText(LPCSTR wszText);
// Uniscribe
HRESULT CPtoX(int nCP, BOOL bTrail, int* pX);
HRESULT XtoCP(int nX, int* pCP, int* pnTrail);
void GetPriorItemPos(int nCP, int* pPrior);
void GetNextItemPos(int nCP, int* pPrior);
private:
HRESULT Analyse(); // Uniscribe -- Analyse() analyses the string in the buffer
char* m_pwszBuffer; // Buffer to hold text
int m_nBufferSize; // Size of the buffer allocated, in characters
// Uniscribe-specific
DXUTFontNode* m_pFontNode; // Font node for the font that this buffer uses
bool m_bAnalyseRequired; // True if the string has changed since last analysis.
SCRIPT_STRING_ANALYSIS m_Analysis; // Analysis for the current string
private:
// Empty implementation of the Uniscribe API
static HRESULT WINAPI Dummy_ScriptApplyDigitSubstitution(const SCRIPT_DIGITSUBSTITUTE*, SCRIPT_CONTROL*,
SCRIPT_STATE*)
{
return E_NOTIMPL;
}
static HRESULT WINAPI Dummy_ScriptStringAnalyse(HDC, const void*, int, int, int, DWORD, int, SCRIPT_CONTROL*,
SCRIPT_STATE*, const int*, SCRIPT_TABDEF*, const BYTE*,
SCRIPT_STRING_ANALYSIS*)
{
return E_NOTIMPL;
}
static HRESULT WINAPI Dummy_ScriptStringCPtoX(SCRIPT_STRING_ANALYSIS, int, BOOL, int*)
{
return E_NOTIMPL;
}
static HRESULT WINAPI Dummy_ScriptStringXtoCP(SCRIPT_STRING_ANALYSIS, int, int*, int*)
{
return E_NOTIMPL;
}
static HRESULT WINAPI Dummy_ScriptStringFree(SCRIPT_STRING_ANALYSIS*)
{
return E_NOTIMPL;
}
static const SCRIPT_LOGATTR* WINAPI Dummy_ScriptString_pLogAttr(SCRIPT_STRING_ANALYSIS)
{
return NULL;
}
static const int* WINAPI Dummy_ScriptString_pcOutChars(SCRIPT_STRING_ANALYSIS)
{
return NULL;
}
// Function pointers
static HRESULT(WINAPI* _ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE*,
SCRIPT_CONTROL*, SCRIPT_STATE*);
static HRESULT(WINAPI* _ScriptStringAnalyse)(HDC, const void*, int, int, int, DWORD, int,
SCRIPT_CONTROL*, SCRIPT_STATE*, const int*,
SCRIPT_TABDEF*, const BYTE*,
SCRIPT_STRING_ANALYSIS*);
static HRESULT(WINAPI* _ScriptStringCPtoX)(SCRIPT_STRING_ANALYSIS, int, BOOL, int*);
static HRESULT(WINAPI* _ScriptStringXtoCP)(SCRIPT_STRING_ANALYSIS, int, int*, int*);
static HRESULT(WINAPI* _ScriptStringFree)(SCRIPT_STRING_ANALYSIS*);
static const SCRIPT_LOGATTR* (WINAPI*_ScriptString_pLogAttr)(SCRIPT_STRING_ANALYSIS);
static const int* (WINAPI*_ScriptString_pcOutChars)(SCRIPT_STRING_ANALYSIS);
static HINSTANCE s_hDll; // Uniscribe DLL handle
};
//-----------------------------------------------------------------------------
// EditBox control
//-----------------------------------------------------------------------------
class CDXUTEditBox : public CDXUTControl
{
public:
CDXUTEditBox(CDXUTDialog* pDialog = NULL);
virtual ~CDXUTEditBox();
virtual bool HandleKeyboard(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual bool HandleMouse(UINT uMsg, POINT pt, WPARAM wParam, LPARAM lParam);
virtual bool MsgProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
virtual void UpdateRects();
virtual bool CanHaveFocus()
{
return (m_bVisible && m_bEnabled);
}
virtual void Render(float fElapsedTime);
virtual void OnFocusIn();
void SetText(LPCSTR wszText, bool bSelected = false);
LPCSTR GetText()
{
return m_Buffer.GetBuffer();
}
int GetTextLength()
{
return m_Buffer.GetTextSize();
} // Returns text length in chars excluding NULL.
HRESULT GetTextCopy(__out_ecount(bufferCount) LPSTR strDest,
UINT bufferCount);
void ClearText();
virtual void SetTextColor(D3DCOLOR Color)
{
m_TextColor = Color;
} // Text color
void SetSelectedTextColor(D3DCOLOR Color)
{
m_SelTextColor = Color;
} // Selected text color
void SetSelectedBackColor(D3DCOLOR Color)
{
m_SelBkColor = Color;
} // Selected background color
void SetCaretColor(D3DCOLOR Color)
{
m_CaretColor = Color;
} // Caret color
void SetBorderWidth(int nBorder)
{
m_nBorder = nBorder; UpdateRects();
} // Border of the window
void SetSpacing(int nSpacing)
{
m_nSpacing = nSpacing; UpdateRects();
}
void ParseFloatArray(float* pNumbers, int nCount);
void SetTextFloatArray(const float* pNumbers, uint nCount);
protected:
void PlaceCaret(int nCP);
void DeleteSelectionText();
void ResetCaretBlink();
void CopyToClipboard();
void PasteFromClipboard();
CUniBuffer m_Buffer; // Buffer to hold text
int m_nBorder; // Border of the window
int m_nSpacing; // Spacing between the text and the edge of border
RECT m_rcText; // Bounding rectangle for the text
RECT m_rcRender[9]; // Convenient rectangles for rendering elements
double m_dfBlink; // Caret blink time in milliseconds
double m_dfLastBlink; // Last timestamp of caret blink
bool m_bCaretOn; // Flag to indicate whether caret is currently visible
int m_nCaret; // Caret position, in characters
bool m_bInsertMode; // If true, control is in insert mode. Else, overwrite mode.
int m_nSelStart; // Starting position of the selection. The caret marks the end.
int m_nFirstVisible;// First visible character in the edit control
D3DCOLOR m_TextColor; // Text color
D3DCOLOR m_SelTextColor; // Selected text color
D3DCOLOR m_SelBkColor; // Selected background color
D3DCOLOR m_CaretColor; // Caret color
// Mouse-specific
bool m_bMouseDrag; // True to indicate drag in progress
// Static
static bool s_bHideCaret; // If true, we don't render the caret.
};
|
#include "InputHandler.h"
InputHandler::InputHandler()
{
this->m_mouseX = 0;
this->m_mouseY = 0;
int m_mouseDX = 0;
int m_mouseDY = 0;
int m_mouseWheelX = 0;
int m_mouseWheelY = 0;
this->m_screenWidth = 0;
this->m_screenHeight = 0;
this->m_mouseButtonState.left = 0;
this->m_mouseButtonState.right = 0;
this->m_mouseButtonState.middle = 0;
this->m_mouseButtonState.x1 = 0;
this->m_mouseButtonState.x2 = 0;
this->m_oldMouseButtonState = this->m_mouseButtonState;
this->m_mouseLocked = true;
}
InputHandler::~InputHandler()
{
this->Shutdown();
}
void InputHandler::Initialize(int screenWidth, int screenHeight, SDL_Window * window)
{
this->m_mouseX = 0;
this->m_mouseY = 0;
int m_mouseDX = 0;
int m_mouseDY = 0;
int m_mouseWheelX = 0;
int m_mouseWheelY = 0;
this->m_mouseButtonState.left = 0;
this->m_mouseButtonState.right = 0;
this->m_mouseButtonState.middle = 0;
this->m_mouseButtonState.x1 = 0;
this->m_mouseButtonState.x2 = 0;
this->m_oldMouseButtonState = this->m_mouseButtonState;
//Save the resolution for future use
this->m_screenWidth = screenWidth;
this->m_screenHeight = screenHeight;
SDL_CaptureMouse(SDL_TRUE);
m_mouseCaptured = SDL_TRUE;
SDL_WarpMouseInWindow(window, m_screenWidth/2, m_screenHeight/2);
return;
}
void InputHandler::Shutdown()
{
this->m_oldKeyboardState.clear();
this->m_keyboardState.clear();
return;
}
void InputHandler::Update()
{
//Check if we can read the devices.
//If we cant, the old data will be used
this->ReadKeyboard();
this->ProcessInput();
return;
}
int InputHandler::captureMouse(SDL_bool boolean)
{
SDL_CaptureMouse(boolean);
m_mouseCaptured = boolean;
return 0;
}
void InputHandler::SetMouseState(int button, bool state)
{
switch (button)
{
case 1:
this->m_mouseButtonState.left = state;
break;
case 2:
this->m_mouseButtonState.middle = state;
break;
case 3:
this->m_mouseButtonState.right = state;
break;
case 4:
this->m_mouseButtonState.x1 = state;
break;
case 5:
this->m_mouseButtonState.x2 = state;
break;
default:
break;
}
return;
}
void InputHandler::SetKeyState(int key, bool state)
{
this->m_keyboardState[key] = state;
return;
}
void InputHandler::ReadKeyboard()
{
//Copy the old data
this->m_oldKeyboardState = this->m_keyboardState;
this->m_oldMouseButtonState = this->m_mouseButtonState;
return;
}
void InputHandler::ProcessInput()
{
//Set the mousewheel to 0; 0 so the new values are not corrupted by the old state
this->m_mouseWheelX = 0;
this->m_mouseWheelY = 0;
return;
}
bool InputHandler::IsKeyDown(unsigned int key)
{
if (key > 0 && key < SDL_NUM_SCANCODES)
{
if (this->m_keyboardState[key])
{
return true;
}
}
return false;
}
bool InputHandler::IsKeyPressed(unsigned int key)
{
if (key > 0 && key < SDL_NUM_SCANCODES)
{
if (!this->m_oldKeyboardState[key] && this->m_keyboardState[key])
{
return true;
}
}
return false;
}
bool InputHandler::IsKeyReleased(unsigned int key)
{
if (key > 0 && key < SDL_NUM_SCANCODES)
{
if (this->m_oldKeyboardState[key] && !this->m_keyboardState[key])
{
return true;
}
}
return false;
}
bool InputHandler::IsMouseKeyPressed(unsigned int key)
{
bool result = false;
switch (key)
{
case SDL_BUTTON_LEFT: result = this->m_mouseButtonState.left && !this->m_oldMouseButtonState.left;
break;
case SDL_BUTTON_MIDDLE: result = this->m_mouseButtonState.middle && !this->m_oldMouseButtonState.middle;
break;
case SDL_BUTTON_RIGHT: result = this->m_mouseButtonState.right && !this->m_oldMouseButtonState.right;
break;
case SDL_BUTTON_X1: result = this->m_mouseButtonState.x1 && !this->m_oldMouseButtonState.x1;
break;
case SDL_BUTTON_X2: result = this->m_mouseButtonState.x2 && !this->m_oldMouseButtonState.x2;
break;
default:
break;
}
return result;
}
bool InputHandler::IsMouseKeyDown(unsigned int key)
{
bool result = false;
switch (key)
{
case SDL_BUTTON_LEFT: result = this->m_mouseButtonState.left;
break;
case SDL_BUTTON_MIDDLE: result = this->m_mouseButtonState.middle;
break;
case SDL_BUTTON_RIGHT: result = this->m_mouseButtonState.right;
break;
case SDL_BUTTON_X1: result = this->m_mouseButtonState.x1;
break;
case SDL_BUTTON_X2: result = this->m_mouseButtonState.x2;
break;
default:
break;
}
return result;
}
bool InputHandler::IsMouseKeyReleased(unsigned int key)
{
bool result = false;
switch (key)
{
case SDL_BUTTON_LEFT: result = !this->m_mouseButtonState.left && this->m_oldMouseButtonState.left;
break;
case SDL_BUTTON_MIDDLE: result = !this->m_mouseButtonState.middle && this->m_oldMouseButtonState.middle;
break;
case SDL_BUTTON_RIGHT: result = !this->m_mouseButtonState.right && this->m_oldMouseButtonState.right;
break;
case SDL_BUTTON_X1: result = !this->m_mouseButtonState.x1 && this->m_oldMouseButtonState.x1;
break;
case SDL_BUTTON_X2: result = !this->m_mouseButtonState.x2 && this->m_oldMouseButtonState.x2;
break;
default:
break;
}
return result;
}
void InputHandler::SetMousePos(int x, int y)
{
this->m_mouseX = x;
this->m_mouseY = y;
return;
}
void InputHandler::SetMouseWheel(int x, int y)
{
this->m_mouseWheelX = x;
this->m_mouseWheelY = y;
return;
}
void InputHandler::ApplyMouseWheel(int x, int y)
{
this->m_mouseWheelX += x;
this->m_mouseWheelY += y;
return;
}
void InputHandler::mouseMovement(SDL_Window * window)
{
if (SDL_GetWindowFlags(window) & SDL_WINDOW_MOUSE_CAPTURE)
{
int tmpx, tmpy;
int midx = this->m_screenWidth / 2;
int midy = this->m_screenHeight / 2;
SDL_GetMouseState(&tmpx, &tmpy);
this->m_mouseX = tmpx;
this->m_mouseY = tmpy;
m_mouseDX = (midx - tmpx);
m_mouseDY = (midy - tmpy);
if (this->m_mouseLocked)
{
SDL_ShowCursor(SDL_DISABLE);
SDL_WarpMouseInWindow(window, midx, midy);
}
else
{
SDL_ShowCursor(SDL_ENABLE);
}
//SDL_SetRelativeMouseMode(SDL_TRUE);
}
}
DirectX::XMFLOAT2 InputHandler::GetMousePos()
{
return DirectX::XMFLOAT2((float)m_mouseX, (float)m_mouseY);
}
DirectX::XMFLOAT2 InputHandler::GetMouseDelta()
{
return DirectX::XMFLOAT2((float)this->m_mouseDX, (float)this->m_mouseDY);
}
DirectX::XMFLOAT2 InputHandler::GetMouseWheel()
{
return DirectX::XMFLOAT2(float(this->m_mouseWheelX), float(this->m_mouseWheelY));
}
void InputHandler::SetMouseLocked(bool lockMouse)
{
this->m_mouseLocked = lockMouse;
}
|
/* File: SavingsAccount.cpp
* Name: Paulo Lemus
* Date: 2/8/2017
*/
#include <iostream>
#include <string>
#include "BasicAccount.h"
#include "SavingsAccount.h"
/* Constructors
*/
SavingsAccount::SavingsAccount() : ba(){
withdrawals = 0;
}
SavingsAccount::SavingsAccount(long int accountNum, std::string name, float balance) : ba(accountNum, name, balance){
withdrawals = 0;
}
SavingsAccount::SavingsAccount(const BasicAccount& ba) : ba(ba){
withdrawals = 0;
}
SavingsAccount::SavingsAccount(const SavingsAccount& sa) : ba(sa.ba) {
this->withdrawals = sa.withdrawals;
}
// Getters
long int SavingsAccount::getAccountNum() const{return ba.getAccountNum();}
std::string SavingsAccount::getName() const{return ba.getName();}
float SavingsAccount::getBalance() const{return ba.getBalance();}
// Setters
void SavingsAccount::setAccountNum(long int accountNum){
ba.setAccountNum(accountNum);
}
void SavingsAccount::setName(std::string name){
ba.setName(name);
}
void SavingsAccount::setBalance(float balance){
ba.setBalance(balance);
}
// Operator Overloads
void SavingsAccount::operator=(const SavingsAccount& sa){
this->ba = sa.ba;
this->withdrawals = sa.withdrawals;
}
bool SavingsAccount::operator==(const SavingsAccount& sa){
if(this->ba == sa.ba && this->withdrawals == sa.withdrawals){
return true;
}
else return false;
}
std::ostream& operator<<(std::ostream& output, const SavingsAccount& sa){
output << sa.ba;
output << "Withdrawals:\t" << sa.withdrawals << std::endl;
return output;
}
// Withdraw
float SavingsAccount::withdraw(float amount){
int valid = ba.withdraw(amount);
if(valid >= 0) withdrawals++;
if(withdrawals > 2) ba.setBalance(ba.getBalance() - 3);
return valid;
}
// Deposit
void SavingsAccount::deposit(float amount){
ba.deposit(amount);
}
// Monthly check
void SavingsAccount::monthlyCheck(){
if(ba.getBalance() < 100){
ba.setBalance(ba.getBalance() - 10);
}
}
/*Test driver
*
int main(){
long int id = 12345;
std::string name = "RICH";
float balance = 500;
// Confirm that BasicAccount still works.
BasicAccount ba1;
BasicAccount ba2(id, name, balance);
ba1.setName("ZOE");
std::cout << ba1 << std:: endl << ba2;
// Test SavingsAccount class
SavingsAccount sa1;
SavingsAccount sa2(ba2); // SA should have same info as ba2
SavingsAccount sa3(9876, "TOM", 1000);
std::cout << sa1 << std::endl << sa2 << std::endl << sa3;
// Test withdraw and deposit
sa3.withdraw(100);
sa3.deposit(1000);
std::cout << sa3;
// Test op overload
sa3.setName("EQUAL SUCCESS");
sa1 = sa3;
sa1.withdraw(40);
std::cout << sa1;
// Test charges
std::cout << std::endl << std::endl;
SavingsAccount sa4(10000, "CHARGES", 200);
std::cout << sa4 << std::endl;
sa4.withdraw(50);
std::cout << sa4 << std::endl;
sa4.withdraw(50);
std::cout << sa4 << std::endl;
sa4.withdraw(50);
std::cout << sa4 << std::endl;
sa4.monthlyCheck();
std::cout << sa4 << std::endl;
return 0;
}
*/
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.