text
stringlengths 8
6.88M
|
|---|
#include<iostream>
#include<vector>
#include<chrono>
#include<cmath>
#include<set>
using namespace std;
set<int64_t> getPrimeSet(int64_t N){
set<int64_t> ordered_set;
ordered_set.insert(2);
for (int64_t n = 3; n <= N; n += 2){
bool flag = true;
for (auto x: ordered_set){
if (n % x == 0){
flag = false;
break;
}
}
if (flag){
ordered_set.insert(n);
}
}
return ordered_set;
}
int64_t getSmallestMultiple(int64_t N){
int64_t answer = 1;
set<int64_t> primeSet = getPrimeSet(N);
for (int64_t n = 2; n <= N; n++){
if (answer % n == 0){
continue;
}
if (*primeSet.find(n) == n){
answer *= n;
continue;
}
int64_t temp = n;
for (int64_t k = n/2; k > 1; k--){
if (temp % k == 0){
answer *= (temp / k);
break;
}
}
}
return answer;
}
void speedChecker(function<int64_t(int64_t)> f, int64_t n){
const auto startTime = chrono::system_clock::now();
cout << f(n) << endl;
const auto endTime = chrono::system_clock::now();
const auto timeSpan = endTime - startTime;
cout << "ProcessingTime: " <<
chrono::duration_cast<chrono::milliseconds>(timeSpan).count() << endl;
}
int main(void){
speedChecker(getSmallestMultiple, 20);
}
|
/* Use Back tracking
* I used network flow
*/
#include <cstdio>
#include <algorithm>
#include <vector>
using namespace std;
int main(void){
int n;
scanf("%d", &n);
return 0;
}
|
#define DllDemoAPI _declspec(dllexport)
#include "DllDemo.h"
#include <stdio.h>
DllDemoAPI int add(int a, int b)
{
return a + b;
}
DllDemoAPI void Point::Print(int x, int y)
{
printf("x=%d, y=%d", x, y);
}
|
#include "DeviceBuzzer.h"
#include "ESPDevice.h"
namespace ART
{
DeviceBuzzer::DeviceBuzzer(ESPDevice* espDevice)
{
_espDevice = espDevice;
}
DeviceBuzzer::~DeviceBuzzer()
{
delete (_espDevice);
}
void DeviceBuzzer::create(DeviceBuzzer *(&deviceBuzzer), ESPDevice * espDevice)
{
deviceBuzzer = new DeviceBuzzer(espDevice);
}
void DeviceBuzzer::test()
{
tone(BUZZER_PIN, 900, 300); //aqui sai o som
/*
o número D7 indica que o pino positivo do buzzer está na porta 10
o número 300 é a frequência que será tocado
o número 300 é a duração do som
*/
}
}
|
/*
Listas enlazadas
INSERTAR NODOS AL FINAL DE LA LISTA
(First In - First On) fifo
*/
#include <iostream>
using namespace std;
//Declaración de estructura Nodo
/*
*i: Nodo inicial
*f: Nodo final
*/
struct nodo{
int dato;
nodo *apuntador;
} *i, *f;
//Se encarga de insertar nodos
void insertarDatos(){
nodo *nuevo = new nodo();
cout << "Ingrese el dato del nuevo nodo: " << endl;
cin >> nuevo->dato;
//Validamos si el nodo inicial es NULL
if(i == NULL){
//Enviamos el nodo "nuevo" al nodo "i" que es el inicial
i = nuevo;
//El apuntador del nodo inicial será igual a NULL
i->apuntador = NULL;
//El nodo final será igual al inicial (cuando solo tengamos un dato)
f = i;
}else{
//el apuntador del nodo final "f" será igual al nodo "nuevo"
f->apuntador = nuevo;
//El apuntador del nodo "nuevo" será NULL
nuevo->apuntador = NULL;
//El nodo final "f" será igual al nodo "nuevo"
f = nuevo;
}
cout << "Nodo creado!" << endl;
system("Pause");
}
void mostrarDatos(){
//Declaramos puntero "actual" y lo inicializamos en la posición inicial "i"s
nodo *actual = new nodo();
actual = i;
//Si la posición inicial no es NULL, mostramos los datos. De lo contrario es porque la lista está vacía
if(i != NULL){
cout << "La lista es: " << endl;
while(actual != NULL){
cout << " " << actual->dato << " "<< endl;
//Asignamos el apuntador de "actual" a la siguiente posición
actual = actual->apuntador;
}
system("Pause");
}else{
cout << "La lista está vacía" << endl;
system("Pause");
}
}
int main(){
//Declaración de variables para el manejo del menú
int opcion;
bool finalizar = false;
do{
system("CLS");
cout << "-----------MENU PRINCIPAL-----------" << endl;
cout << "1) Insertar Nodo" << endl;
cout << "2) Mostrar la lista" << endl;
cout << "3) Salir" << endl;
cout << "Seleccione una opcion:" << endl;
cin >> opcion;
switch(opcion){
case 1:
insertarDatos();
break;
case 2:
mostrarDatos();
break;
case 3:
finalizar = true;
break;
default:
cout <<"opcion invalida!" << endl;
break;
}
}while(finalizar != true);
return 0;
}
|
#include<iostream>
#include<stdio.h>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<cstdlib>
#include<queue>
using namespace std;
struct node
{
int sign,vip,num;
char msg[400];
bool friend operator < (node a,node b)
{
if (a.vip == b.vip)
return a.sign > b.sign;
return a.vip > b.vip; //越大优先级越小
}
}s;
int main()
{
char get[4];
priority_queue<node> q;
int k = 1;
while (~scanf("%s",get))
{
if (get[0] == 'G')
{
if (q.empty())
printf("EMPTY QUEUE!\n");
else
{
s = q.top();
printf("%s %d\n",s.msg,s.num);
q.pop();
}
}
else
{
scanf("%s %d %d",s.msg,&s.num,&s.vip);
s.sign = k;
k++;
q.push(s);
}
}
return 0;
}
|
#ifndef PIPELINE_SIM_H
#define PIPELINE_SIM_H
#include "elf_reader.h"
#include "reg_def.h"
#include "if.h"
#include "id.h"
#include "ex.h"
#include "ex2.h"
#include "mem.h"
#include "wb.h"
#include "memory.h"
#include "cache.h"
#include <cstdio>
#include <iostream>
#define USE_CACHE
#define FS_MAX_MEMORY (4 * 1024 * 1024)
#define FS_SP_DEFAULT (FS_MAX_MEMORY - 10000)
#define STAGE_IF 0
#define STAGE_ID 1
#define STAGE_EX 2
#define STAGE_EX2 3
#define STAGE_MEM 4
#define STAGE_WB 5
class Pipeline_Sim
{
public:
Pipeline_Sim();
bool readelf(char* filename, char* elfname, char** vals, int n_val);
bool init(char* filename, char *elfname, char **vals, int n_val);
void one_step(unsigned int verbose = 1);
void sim(unsigned int verbose = 1);
ERROR_NUM get_errno();
REG read_regfile(int idx);
char read_memory(long long addr);
void print_res();
private:
unsigned long long inst_cnt;
unsigned long long cycle_cnt;
unsigned long long err_loc;
unsigned long long control_hazard_cnt, b_control_cnt, jalr_control_cnt;
unsigned long long wrong_branch_cnt;
unsigned long long load_use_hazard_cnt;
char* interested[20];
int n_interested;
ELF_Reader elf_reader;
IF inst_fetcher;
ID inst_identifier;
EX inst_executor;
EX2 inst_multiplier;
MEM inst_memory;
WB inst_writor;
char type;
ERROR_NUM err_no;
char memory[FS_MAX_MEMORY];
TEMPORAL_REG regfile[32];
bool sigNope[6], sigStall[6];
bool ex2_active;
bool out_nope;
int divrem_timer;
void init_RegMem();
void load_memory(char* filename);
void update_regfile();
void update_latch();
void update_component(int verbose);
void wrong_branch(int verbose);
void control_hazard(int verbose);
bool check_load_use_hazard();
void load_use_hazard(int verbose);
bool check_multiply_conflict();
void multiply_conflict(int verbose);
void divrem(int verbose);
void check_status();
void nope_transfer();
unsigned long long sext64(unsigned long long num, int sbit);
bool RegWEn(INST32_CTRL_BIT ctrl);
#ifdef USE_CACHE
Memory m;
Cache l1, l2, llc;
int wait_cache_time;
void wait_cache(int verbose);
#endif
};
#endif // PIPELINE_SIM_H
|
// cpp-test6.2.Task1.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include <iostream>
#include "Header.h"
void printDeck(std::array<Card, static_cast<int>(CardRank::ENUM_END)* static_cast<int>(CardSuit::ENUM_END)>* deck)
{
for (auto card : *deck)
{
std::string rankName = getCardRankName(card.rank);
rankName.erase(std::remove_if(rankName.begin(), rankName.end(), ::islower), rankName.end());
std::cout << rankName << getCardSuitName(card.suit)[0] << " ";
}
}
int main()
{
std::cout << "Hello World!\n";
srand(time(nullptr));
auto deck = getDeck();
printDeck(&deck);
std::cout << std::endl << std::endl;
auto shuffledDeck = shuffleDeck(&deck);
printDeck(&shuffledDeck);
}
// Запуск программы: CTRL+F5 или меню "Отладка" > "Запуск без отладки"
// Отладка программы: F5 или меню "Отладка" > "Запустить отладку"
// Советы по началу работы
// 1. В окне обозревателя решений можно добавлять файлы и управлять ими.
// 2. В окне Team Explorer можно подключиться к системе управления версиями.
// 3. В окне "Выходные данные" можно просматривать выходные данные сборки и другие сообщения.
// 4. В окне "Список ошибок" можно просматривать ошибки.
// 5. Последовательно выберите пункты меню "Проект" > "Добавить новый элемент", чтобы создать файлы кода, или "Проект" > "Добавить существующий элемент", чтобы добавить в проект существующие файлы кода.
// 6. Чтобы снова открыть этот проект позже, выберите пункты меню "Файл" > "Открыть" > "Проект" и выберите SLN-файл.
|
/*
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 <cassert>
#include <algorithm>
#include "Exception.hpp"
#include "NodePartitioner.hpp"
#include "PetscMatTools.hpp"
#include "PetscTools.hpp"
#include "Timer.hpp"
#include "TrianglesMeshReader.hpp"
#include "Warnings.hpp"
#include "petscao.h"
#include "petscmat.h"
#include <parmetis.h>
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void NodePartitioner<ELEMENT_DIM, SPACE_DIM>::DumbPartitioning(AbstractMesh<ELEMENT_DIM, SPACE_DIM>& rMesh,
std::set<unsigned>& rNodesOwned)
{
//Note that if there is not DistributedVectorFactory in the mesh, then a dumb partition based
//on rMesh.GetNumNodes() is applied automatically.
//If there is a DistributedVectorFactory then that one will be returned
if (rMesh.GetDistributedVectorFactory()->GetProblemSize() != rMesh.GetNumNodes())
{
EXCEPTION("The distributed vector factory size in the mesh doesn't match the total number of nodes.");
}
for (unsigned node_index = rMesh.GetDistributedVectorFactory()->GetLow();
node_index < rMesh.GetDistributedVectorFactory()->GetHigh();
node_index++)
{
rNodesOwned.insert(node_index);
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void NodePartitioner<ELEMENT_DIM, SPACE_DIM>::PetscMatrixPartitioning(AbstractMeshReader<ELEMENT_DIM, SPACE_DIM>& rMeshReader,
std::vector<unsigned>& rNodePermutation,
std::set<unsigned>& rNodesOwned,
std::vector<unsigned>& rProcessorsOffset)
{
assert(PetscTools::IsParallel());
assert(ELEMENT_DIM==2 || ELEMENT_DIM==3); // LCOV_EXCL_LINE // Metis works with triangles and tetras
if (!PetscTools::HasParMetis()) //We must have ParMetis support compiled into Petsc
{
WARN_ONCE_ONLY("PETSc support for ParMetis is not installed."); // LCOV_EXCL_LINE
}
unsigned num_nodes = rMeshReader.GetNumNodes();
PetscInt num_procs = PetscTools::GetNumProcs();
unsigned local_proc_index = PetscTools::GetMyRank();
unsigned num_elements = rMeshReader.GetNumElements();
unsigned num_local_elements = num_elements / num_procs;
unsigned first_local_element = num_local_elements * local_proc_index;
if (PetscTools::AmTopMost())
{
// Take the excess elements
num_local_elements += num_elements - (num_local_elements * num_procs);
}
PetscTools::Barrier();
Timer::Reset();
/*
* Create PETSc matrix which will have 1 for adjacent nodes.
*/
Mat connectivity_matrix;
///\todo #1216 change the number 54 below (row nonzero allocation) to be nonmagic
PetscTools::SetupMat(connectivity_matrix, num_nodes, num_nodes, 54, PETSC_DECIDE, PETSC_DECIDE, false);
if (!rMeshReader.IsFileFormatBinary())
{
// Advance the file pointer to the first element I own
for (unsigned element_index = 0; element_index < first_local_element; element_index++)
{
rMeshReader.GetNextElementData();
}
}
// In the loop below we assume that there exist edges between any pair of nodes in an element. This is
// a reasonable assumption for triangles and tetrahedra. This won't be the case for quadratic simplices,
// squares or hexahedra (or higher order elements), leading to slightly suboptimal partitions in these
// cases.
// We allow ELEMENT_DIM smaller than SPACE_DIM in case this is a 2D mesh in
// a 3D space.
assert(SPACE_DIM >= ELEMENT_DIM);
for (unsigned element_index = 0; element_index < num_local_elements; element_index++)
{
ElementData element_data;
if (rMeshReader.IsFileFormatBinary())
{
element_data = rMeshReader.GetElementData(first_local_element + element_index);
}
else
{
element_data = rMeshReader.GetNextElementData();
}
for (unsigned i=0; i<element_data.NodeIndices.size(); i++)
{
unsigned row = element_data.NodeIndices[i];
for (unsigned j=0; j<i; j++)
{
unsigned col = element_data.NodeIndices[j];
MatSetValue(connectivity_matrix, row, col, 1.0, INSERT_VALUES);
MatSetValue(connectivity_matrix, col, row, 1.0, INSERT_VALUES);
}
}
}
/// \todo: This assembly is likely to generate many communications. Try to interleave other operations by executing them between Begin() and End().
PetscMatTools::Finalise(connectivity_matrix);
PetscTools::Barrier();
if (PetscTools::AmMaster())
{
Timer::PrintAndReset("Connectivity matrix assembly");
}
rMeshReader.Reset();
PetscInt connectivity_matrix_lo;
PetscInt connectivity_matrix_hi;
MatGetOwnershipRange(connectivity_matrix, &connectivity_matrix_lo, &connectivity_matrix_hi);
unsigned num_local_nodes = connectivity_matrix_hi - connectivity_matrix_lo;
/* PETSc MatCreateMPIAdj and parMETIS rely on adjacency arrays
* Named here: xadj adjncy
* parMETIS name: xadj adjncy (see S4.2 in parMETIS manual)
* PETSc name: i j (see MatCreateMPIAdj in PETSc manual)
*
* The adjacency information of all nodes is listed in the main array, adjncy. Since each node
* has a variable number of adjacent nodes, the array xadj is used to store the index (in adjncy) where
* this information starts. Since xadj[i] is the start of node i's information, xadj[i+1] marks the end.
*
*
*/
MatInfo matrix_info;
MatGetInfo(connectivity_matrix, MAT_LOCAL, &matrix_info);
unsigned local_num_nz = (unsigned) matrix_info.nz_used;
size_t size = (num_local_nodes+1)*sizeof(PetscInt);
void* ptr;
PetscMalloc(size, &ptr);
PetscInt* xadj = (PetscInt*) ptr;
size = local_num_nz*sizeof(PetscInt);
PetscMalloc(size, &ptr);
PetscInt* adjncy = (PetscInt*) ptr;
PetscInt row_num_nz;
const PetscInt* column_indices;
xadj[0]=0;
for (PetscInt row_global_index=connectivity_matrix_lo; row_global_index<connectivity_matrix_hi; row_global_index++)
{
MatGetRow(connectivity_matrix, row_global_index, &row_num_nz, &column_indices, PETSC_NULL);
unsigned row_local_index = row_global_index - connectivity_matrix_lo;
xadj[row_local_index+1] = xadj[row_local_index] + row_num_nz;
for (PetscInt col_index=0; col_index<row_num_nz; col_index++)
{
adjncy[xadj[row_local_index] + col_index] = column_indices[col_index];
}
MatRestoreRow(connectivity_matrix, row_global_index, &row_num_nz,&column_indices, PETSC_NULL);
}
PetscTools::Destroy(connectivity_matrix);
// Convert to an adjacency matrix
Mat adj_matrix;
MatCreateMPIAdj(PETSC_COMM_WORLD, num_local_nodes, num_nodes, xadj, adjncy, PETSC_NULL, &adj_matrix);
PetscTools::Barrier();
if (PetscTools::AmMaster())
{
Timer::PrintAndReset("Adjacency matrix creation");
}
// Get PETSc to call ParMETIS
MatPartitioning part;
MatPartitioningCreate(PETSC_COMM_WORLD, &part);
MatPartitioningSetAdjacency(part, adj_matrix);
MatPartitioningSetFromOptions(part);
IS new_process_numbers;
MatPartitioningApply(part, &new_process_numbers);
MatPartitioningDestroy(PETSC_DESTROY_PARAM(part));
/// It seems to be free-ing xadj and adjncy as a side effect
PetscTools::Destroy(adj_matrix);
PetscTools::Barrier();
if (PetscTools::AmMaster())
{
Timer::PrintAndReset("PETSc-ParMETIS call");
}
// Figure out who owns what - processor offsets
PetscInt* num_nodes_per_process = new PetscInt[num_procs];
#if (PETSC_VERSION_MAJOR == 3) //PETSc 3.x.x
ISPartitioningCount(new_process_numbers, num_procs, num_nodes_per_process);
#else
ISPartitioningCount(new_process_numbers, num_nodes_per_process);
#endif
rProcessorsOffset.resize(num_procs);
rProcessorsOffset[0] = 0;
for (PetscInt i=1; i<num_procs; i++)
{
rProcessorsOffset[i] = rProcessorsOffset[i-1] + num_nodes_per_process[i-1];
}
unsigned my_num_nodes = num_nodes_per_process[local_proc_index];
delete[] num_nodes_per_process;
// Figure out who owns what - new node numbering
IS new_global_node_indices;
ISPartitioningToNumbering(new_process_numbers, &new_global_node_indices);
// Index sets only give local information, we want global
AO ordering;
AOCreateBasicIS(new_global_node_indices, PETSC_NULL /* natural ordering */, &ordering);
// The locally owned range under the new numbering
PetscInt* local_range = new PetscInt[my_num_nodes];
for (unsigned i=0; i<my_num_nodes; i++)
{
local_range[i] = rProcessorsOffset[local_proc_index] + i;
}
AOApplicationToPetsc(ordering, my_num_nodes, local_range);
//AOView(ordering, PETSC_VIEWER_STDOUT_WORLD);
// Fill in rNodesOwned
rNodesOwned.insert(local_range, local_range + my_num_nodes);
delete[] local_range;
// Once we know the offsets we can compute the permutation vector
PetscInt* global_range = new PetscInt[num_nodes];
for (unsigned i=0; i<num_nodes; i++)
{
global_range[i] = i;
}
AOPetscToApplication(ordering, num_nodes, global_range);
rNodePermutation.resize(num_nodes);
std::copy(global_range, global_range+num_nodes, rNodePermutation.begin());
delete[] global_range;
AODestroy(PETSC_DESTROY_PARAM(ordering));
ISDestroy(PETSC_DESTROY_PARAM(new_process_numbers));
ISDestroy(PETSC_DESTROY_PARAM(new_global_node_indices));
PetscTools::Barrier();
if (PetscTools::AmMaster())
{
Timer::PrintAndReset("PETSc-ParMETIS output manipulation");
}
}
template <unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void NodePartitioner<ELEMENT_DIM, SPACE_DIM>::GeometricPartitioning(AbstractMeshReader<ELEMENT_DIM, SPACE_DIM>& rMeshReader,
std::vector<unsigned>& rNodePermutation,
std::set<unsigned>& rNodesOwned,
std::vector<unsigned>& rProcessorsOffset,
ChasteCuboid<SPACE_DIM>* pRegion)
{
PetscTools::Barrier();
unsigned num_nodes = rMeshReader.GetNumNodes();
// Work out where each node should lie.
std::vector<unsigned> node_ownership(num_nodes, 0);
std::vector<unsigned> node_index_ownership(num_nodes, UNSIGNED_UNSET);
for (unsigned node=0; node < num_nodes; node++)
{
std::vector<double> location = rMeshReader.GetNextNode();
// Make sure it is the correct size
assert(location.size() == SPACE_DIM);
// Establish whether it lies in the domain. ChasteCuboid::DoesContain is
// insufficient for this as it treats all boundaries as open.
const ChastePoint<SPACE_DIM>& lower = pRegion->rGetLowerCorner();
const ChastePoint<SPACE_DIM>& upper = pRegion->rGetUpperCorner();
bool does_contain = true;
for (unsigned d=0; d<SPACE_DIM; d++)
{
bool boundary_check;
boundary_check = ((location[d] > lower[d]) || sqrt((location[d]-lower[d])*(location[d]-lower[d])) < DBL_EPSILON);
does_contain = (does_contain && boundary_check && (location[d] < upper[d]));
}
if (does_contain)
{
node_ownership[node] = 1;
rNodesOwned.insert(node);
node_index_ownership[node] = PetscTools::GetMyRank();
}
}
// Make sure each node will be owned by exactly on process
std::vector<unsigned> global_ownership(num_nodes, 0);
std::vector<unsigned> global_index_ownership(num_nodes, UNSIGNED_UNSET);
MPI_Allreduce(&node_ownership[0], &global_ownership[0], num_nodes, MPI_UNSIGNED, MPI_LXOR, PETSC_COMM_WORLD);
for (unsigned i=0; i<num_nodes; i++)
{
if (global_ownership[i] == 0)
{
EXCEPTION("A node is either not in geometric region, or the regions are not disjoint.");
}
}
// Create the permutation and offset vectors.
MPI_Allreduce(&node_index_ownership[0], &global_index_ownership[0], num_nodes, MPI_UNSIGNED, MPI_MIN, PETSC_COMM_WORLD);
for (unsigned proc=0; proc<PetscTools::GetNumProcs(); proc++)
{
rProcessorsOffset.push_back(rNodePermutation.size());
for (unsigned node=0; node<num_nodes; node++)
{
if (global_index_ownership[node] == proc)
{
rNodePermutation.push_back(node);
}
}
}
assert(rNodePermutation.size() == num_nodes);
}
// Explicit instantiation
template class NodePartitioner<1,1>;
template class NodePartitioner<1,2>;
template class NodePartitioner<1,3>;
template class NodePartitioner<2,2>;
template class NodePartitioner<2,3>;
template class NodePartitioner<3,3>;
|
/*
* leverage from turtlebot2i_block_manipulation pkg
* created by caixi@utrc.utc.com
*/
#include <ros/ros.h>
#include <tf/tf.h>
#include <actionlib/server/simple_action_server.h>
#include <turtlebot2i_block_moving/MovingBlockAction.h>
#include <moveit/move_group_interface/move_group_interface.h>
#include <geometry_msgs/PoseArray.h>
namespace turtlebot2i_block_moving
{
class ArmMovingServer
{
private:
ros::NodeHandle nh_;
actionlib::SimpleActionServer<turtlebot2i_block_moving::MovingBlockAction> as_;
std::string action_name_;
turtlebot2i_block_moving::MovingBlockFeedback feedback_;
turtlebot2i_block_moving::MovingBlockResult result_;
turtlebot2i_block_moving::MovingBlockGoalConstPtr goal_;
ros::Publisher target_pose_pub_;
ros::Subscriber pick_and_place_sub_;
// Move groups to control arm and gripper with MoveIt!
moveit::planning_interface::MoveGroupInterface arm_;
moveit::planning_interface::MoveGroupInterface gripper_;
// Parameters from goal
std::string arm_link;
double gripper_open;
double gripper_closed;
double z_up;
public:
ArmMovingServer(const std::string name) :
nh_("~"), as_(name, false), action_name_(name), arm_("pincher_arm"), gripper_("pincher_gripper")
{
// Register the goal and feedback callbacks
as_.registerGoalCallback(boost::bind(&ArmMovingServer::goalCB, this));
as_.registerPreemptCallback(boost::bind(&ArmMovingServer::preemptCB, this));
as_.start();
target_pose_pub_ = nh_.advertise<geometry_msgs::PoseStamped>("/target_pose", 1, true);
}
//pick action, pick in start_pose and move to end pose
void armPick(const geometry_msgs::Pose& start_pose, const geometry_msgs::Pose& end_pose)
{
geometry_msgs::Pose target;
ROS_INFO("[Arm Control] Picking...");
/* open gripper */
if (setGripper(gripper_open) == false)
return;
/* hover over */
target = start_pose;
target.position.z = z_up;
if (moveArmTo(target) == false)
return;
/* go down */
target.position.z = start_pose.position.z - 0.01; //TODO: subtracting 10mm to grab block closer to base
if (moveArmTo(target) == false)
return;
/* close gripper */
if (setGripper(gripper_closed) == false)
return;
ros::Duration(0.8).sleep(); // ensure that gripper properly grasp the cube before lifting the arm
/* go up */
target.position.z = z_up;
if (moveArmTo(target) == false)
return;
/* hover over */
target = end_pose;
target.position.z = z_up;
if (moveArmTo(target) == false)
return;
ROS_INFO("[Arm Control] Picking Done!");
as_.setSucceeded(result_);
}
//move arm to end location, the gripper not move
void armMove(const geometry_msgs::Pose& end_pose)
{
geometry_msgs::Pose target;
ROS_INFO("[Arm Control] Moveing...");
/* hover over */
target = end_pose;
//target.position.z = z_up;
if (moveArmTo(target) == false)
return;
ROS_INFO("[Arm Control] Moveing Done");
as_.setSucceeded(result_);
}
//put picked up block to end pose, the gripper will open to place things
void armPlace(const geometry_msgs::Pose& end_pose)
{
geometry_msgs::Pose target;
ROS_INFO("[Arm Control] Placeing...");
/* hover over */
target = end_pose;
target.position.z = z_up;
if (moveArmTo(target) == false)
return;
/* go down */
target.position.z = end_pose.position.z;
if (moveArmTo(target) == false)
return;
/* open gripper */
if (setGripper(gripper_open) == false)
return;
ros::Duration(0.6).sleep(); // ensure that gripper properly release the cube before lifting the arm
/* go up */
target.position.z = z_up;
if (moveArmTo(target) == false)
return;
ROS_INFO("[Arm Control] Placeing Done");
as_.setSucceeded(result_);
}
void goalCB()
{
ROS_INFO("[pick and place] Received goal!");
goal_ = as_.acceptNewGoal();
arm_link = goal_->frame;
gripper_open = goal_->gripper_open;
gripper_closed = goal_->gripper_closed;
z_up = goal_->z_up;
arm_.setPoseReferenceFrame(arm_link);
// Allow some leeway in position (meters) and orientation (radians)
arm_.setGoalPositionTolerance(0.001);
arm_.setGoalOrientationTolerance(0.1);
// Allow replanning to increase the odds of a solution
arm_.allowReplanning(true);
//get goal from topic from goal setting
if (goal_->topic.length() < 1)
{
if(goal_->action_mode.compare( "move" )==0)
{
armMove(goal_->place_pose);
}
else if(goal_->action_mode.compare( "place" )==0)
{
armPlace(goal_->place_pose);
}
else if(goal_->action_mode.compare( "pick" )==0)
{
armPick(goal_->pickup_pose, goal_->place_pose);
}
}
else
{
//get goal from topic "goal_->topic", if "goal_->topic" is not empty
pick_and_place_sub_ = nh_.subscribe(goal_->topic, 1, &ArmMovingServer::sendGoalFromTopic, this);
}
}
//pick from one place to another
void sendGoalFromTopic(const geometry_msgs::PoseArrayConstPtr& msg)
{
ROS_INFO("[pick and place] Got goal from topic! %s", goal_->topic.c_str());
armPick(msg->poses[0], msg->poses[1]);;
pick_and_place_sub_.shutdown();
}
void preemptCB()
{
ROS_INFO("%s: Preempted", action_name_.c_str());
// set the action state to preempted
as_.setPreempted();
}
private:
/**
* Move arm to a named configuration, normally described in the robot semantic description SRDF file.
* @param target Named target to achieve
* @return True of success, false otherwise
*/
bool moveArmTo(const std::string& target)
{
ROS_DEBUG("[pick and place] Move arm to '%s' position", target.c_str());
if (arm_.setNamedTarget(target) == false)
{
ROS_ERROR("[pick and place] Set named target '%s' failed", target.c_str());
return false;
}
moveit::planning_interface::MoveItErrorCode result = arm_.move();
if (bool(result) == true)
{
return true;
}
else
{
ROS_ERROR("[pick and place] Move to target failed (error %d)", result.val);
as_.setAborted(result_);
return false;
}
}
/**
* Move arm to a target pose. Only position coordinates are taken into account; the
* orientation is calculated according to the direction and distance to the target.
* @param target Pose target to achieve
* @return True of success, false otherwise
*/
bool moveArmTo(const geometry_msgs::Pose& target)
{
int attempts = 0;
ROS_DEBUG("[pick and place] Move arm to [%.2f, %.2f, %.2f, %.2f]",
target.position.x, target.position.y, target.position.z, tf::getYaw(target.orientation));
while (attempts < 5)
{
geometry_msgs::PoseStamped modiff_target;
modiff_target.header.frame_id = arm_link;
modiff_target.pose = target;
double x = modiff_target.pose.position.x;
double y = modiff_target.pose.position.y;
double z = modiff_target.pose.position.z;
double d = sqrt(x*x + y*y);
if (d > 0.3)
{
// Maximum reachable distance by the arm is 30 cm
ROS_ERROR("Target pose out of reach [%f > %f]", d, 0.3);
as_.setAborted(result_);
return false;
}
// Pitch is 90 (vertical) at 10 cm from the arm base; the farther the target is, the closer to horizontal
// we point the gripper. Yaw is the direction to the target. We also try some random variations of both to
// increase the chances of successful planning.
double rp = M_PI_2 - std::asin((d - 0.1)/0.205); // 0.205 = arm's max reach - vertical pitch distance + ε
double ry = std::atan2(y, x);
tf::Quaternion q = tf::createQuaternionFromRPY(0.0,
attempts*fRand(-0.05, +0.05) + rp,
attempts*fRand(-0.05, +0.05) + ry);
tf::quaternionTFToMsg(q, modiff_target.pose.orientation);
// Slightly increase z proportionally to pitch to avoid hitting the table with the lower gripper corner
ROS_DEBUG("z increase: %f + %f", modiff_target.pose.position.z, std::abs(std::cos(rp))/50.0);
modiff_target.pose.position.z += std::abs(std::cos(rp))/50.0;
ROS_DEBUG("Set pose target [%.2f, %.2f, %.2f] [d: %.2f, p: %.2f, y: %.2f]", x, y, z, d, rp, ry);
target_pose_pub_.publish(modiff_target);
if (arm_.setPoseTarget(modiff_target) == false)
{
ROS_ERROR("Set pose target [%.2f, %.2f, %.2f, %.2f] failed",
modiff_target.pose.position.x, modiff_target.pose.position.y, modiff_target.pose.position.z,
tf::getYaw(modiff_target.pose.orientation));
as_.setAborted(result_);
return false;
}
moveit::planning_interface::MoveItErrorCode result = arm_.move();
if (bool(result) == true)
{
return true;
}
else
{
ROS_ERROR("[pick and place] Move to target failed (error %d) at attempt %d",
result.val, attempts + 1);
}
attempts++;
}
ROS_ERROR("[pick and place] Move to target failed after %d attempts", attempts);
as_.setAborted(result_);
return false;
}
/**
* Set gripper opening.
* @param opening Physical opening of the gripper, in meters
* @return True of success, false otherwise
*/
bool setGripper(float opening)
{
ROS_INFO("opening is %f",opening);
ROS_DEBUG("[pick and place] Set gripper opening to %f", opening);
if (gripper_.setJointValueTarget("gripper_joint", opening) == false)
{
ROS_ERROR("[pick and place] Set gripper opening to %f failed", opening);
//return false;
}
moveit::planning_interface::MoveItErrorCode result = gripper_.move();
if (bool(result) == true)
{
return true;
}
else
{
ROS_ERROR("[pick and place] Set gripper opening failed (error %d)", result.val);
// as_.setAborted(result_);
// return false;
return true;
}
}
float fRand(float min, float max)
{
return ((float(rand()) / float(RAND_MAX)) * (max - min)) + min;
}
};
};
int main(int argc, char** argv)
{
ros::init(argc, argv, "ArmMovingServer");
turtlebot2i_block_moving::ArmMovingServer server("arm_moving");
ros::AsyncSpinner spinner(4);
spinner.start();
ros::Rate rate(1.0);
while( ros::ok() )
{
ros::spinOnce();
rate.sleep();
}
spinner.stop();
return 0;
}
|
#ifndef INTERPROCEDURAL_CFG_H
#define INTERPROCEDURAL_CFG_H
#include "staticCFG.h"
#include "CallGraph.h"
#include <map>
#include <set>
#include <string>
class SgIncidenceDirectedGraph;
class SgGraphNode;
class SgDirectedGraphEdge;
namespace StaticCFG
{
using VirtualCFG::CFGNode;
using VirtualCFG::CFGEdge;
class InterproceduralCFG : public CFG
{
protected:
virtual void buildCFG(CFGNode n,
std::map<CFGNode, SgGraphNode*>& all_nodes,
std::set<CFGNode>& explored,
ClassHierarchyWrapper* classHierarchy);
public:
InterproceduralCFG() : CFG() {}
// The valid nodes are SgProject, SgStatement, SgExpression and SgInitializedName
InterproceduralCFG(SgNode* node, bool is_filtered = false)
: CFG() {
graph_ = NULL;
is_filtered_ = is_filtered;
start_ = node;
buildCFG();
}
SgNode* getEntry()
{
return start_;
}
SgIncidenceDirectedGraph* getGraph()
{
return graph_;
}
SgGraphNode* getGraphNode(CFGNode n) {
return alNodes[n];
}
// Build CFG according to the 'is_filtered_' flag.
virtual void buildCFG()
{
buildFullCFG();
}
std::map<CFGNode, SgGraphNode*> alNodes;
CFGNode neededStart;
// Build CFG for debugging.
virtual void buildFullCFG();
// Build filtered CFG which only contains interesting nodes.
virtual void buildFilteredCFG();
};
} // end of namespace StaticCFG
#endif
|
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- 2. 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.
-
- 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 ANY
- 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.
*====================================================================*/
/*
* rotate.c
*
* General rotation about image center
* PIX *pixRotate()
* PIX *pixEmbedForRotation()
*
* General rotation by sampling
* PIX *pixRotateBySampling()
*
* Nice (slow) rotation of 1 bpp image
* PIX *pixRotateBinaryNice()
*
* Rotation including alpha (blend) component
* PIX *pixRotateWithAlpha()
*
* Rotations are measured in radians; clockwise is positive.
*
* The general rotation pixRotate() does the best job for
* rotating about the image center. For 1 bpp, it uses shear;
* for others, it uses either shear or area mapping.
* If requested, it expands the output image so that no pixels are lost
* in the rotation, and this can be done on multiple successive shears
* without expanding beyond the maximum necessary size.
*/
#include <math.h>
#include "allheaders.h"
extern l_float32 AlphaMaskBorderVals[2];
static const l_float32 MIN_ANGLE_TO_ROTATE = 0.001; /* radians; ~0.06 deg */
static const l_float32 MAX_1BPP_SHEAR_ANGLE = 0.06; /* radians; ~3 deg */
static const l_float32 LIMIT_SHEAR_ANGLE = 0.35; /* radians; ~20 deg */
/*------------------------------------------------------------------*
* General rotation about the center *
*------------------------------------------------------------------*/
/*!
* pixRotate()
*
* Input: pixs (1, 2, 4, 8, 32 bpp rgb)
* angle (radians; clockwise is positive)
* type (L_ROTATE_AREA_MAP, L_ROTATE_SHEAR, L_ROTATE_SAMPLING)
* incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK)
* width (original width; use 0 to avoid embedding)
* height (original height; use 0 to avoid embedding)
* Return: pixd, or null on error
*
* Notes:
* (1) This is a high-level, simple interface for rotating images
* about their center.
* (2) For very small rotations, just return a clone.
* (3) Rotation brings either white or black pixels in
* from outside the image.
* (4) The rotation type is adjusted if necessary for the image
* depth and size of rotation angle. For 1 bpp images, we
* rotate either by shear or sampling.
* (5) Colormaps are removed for rotation by area mapping.
* (6) The dest can be expanded so that no image pixels
* are lost. To invoke expansion, input the original
* width and height. For repeated rotation, use of the
* original width and height allows the expansion to
* stop at the maximum required size, which is a square
* with side = sqrt(w*w + h*h).
*
* *** Warning: implicit assumption about RGB component ordering ***
*/
PIX *
pixRotate(PIX *pixs,
l_float32 angle,
l_int32 type,
l_int32 incolor,
l_int32 width,
l_int32 height)
{
l_int32 w, h, d;
l_uint32 fillval;
PIX *pixt1, *pixt2, *pixt3, *pixd;
PIXCMAP *cmap;
PROCNAME("pixRotate");
if (!pixs)
{
return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);
}
if (type != L_ROTATE_SHEAR && type != L_ROTATE_AREA_MAP &&
type != L_ROTATE_SAMPLING)
{
return (PIX *)ERROR_PTR("invalid type", procName, NULL);
}
if (incolor != L_BRING_IN_WHITE && incolor != L_BRING_IN_BLACK)
{
return (PIX *)ERROR_PTR("invalid incolor", procName, NULL);
}
if (L_ABS(angle) < MIN_ANGLE_TO_ROTATE)
{
return pixClone(pixs);
}
/* Adjust rotation type if necessary:
* - If d == 1 bpp and the angle is more than about 6 degrees,
* rotate by sampling; otherwise rotate by shear.
* - If d > 1, only allow shear rotation up to about 20 degrees;
* beyond that, default a shear request to sampling. */
if (pixGetDepth(pixs) == 1)
{
if (L_ABS(angle) > MAX_1BPP_SHEAR_ANGLE)
{
if (type != L_ROTATE_SAMPLING)
{
L_INFO("1 bpp, large angle; rotate by sampling\n", procName);
}
type = L_ROTATE_SAMPLING;
}
else if (type != L_ROTATE_SHEAR)
{
L_INFO("1 bpp; rotate by shear\n", procName);
type = L_ROTATE_SHEAR;
}
}
else if (L_ABS(angle) > LIMIT_SHEAR_ANGLE && type == L_ROTATE_SHEAR)
{
L_INFO("large angle; rotate by sampling\n", procName);
type = L_ROTATE_SAMPLING;
}
/* Remove colormap if we rotate by area mapping. */
cmap = pixGetColormap(pixs);
if (cmap && type == L_ROTATE_AREA_MAP)
{
pixt1 = pixRemoveColormap(pixs, REMOVE_CMAP_BASED_ON_SRC);
}
else
{
pixt1 = pixClone(pixs);
}
cmap = pixGetColormap(pixt1);
/* Otherwise, if there is a colormap and we're not embedding,
* add white color if it doesn't exist. */
if (cmap && width == 0) /* no embedding; generate @incolor */
{
if (incolor == L_BRING_IN_BLACK)
{
pixcmapAddBlackOrWhite(cmap, 0, NULL);
}
else /* L_BRING_IN_WHITE */
{
pixcmapAddBlackOrWhite(cmap, 1, NULL);
}
}
/* Request to embed in a larger image; do if necessary */
pixt2 = pixEmbedForRotation(pixt1, angle, incolor, width, height);
/* Area mapping requires 8 or 32 bpp. If less than 8 bpp and
* area map rotation is requested, convert to 8 bpp. */
d = pixGetDepth(pixt2);
if (type == L_ROTATE_AREA_MAP && d < 8)
{
pixt3 = pixConvertTo8(pixt2, FALSE);
}
else
{
pixt3 = pixClone(pixt2);
}
/* Do the rotation: shear, sampling or area mapping */
pixGetDimensions(pixt3, &w, &h, &d);
if (type == L_ROTATE_SHEAR)
{
pixd = pixRotateShearCenter(pixt3, angle, incolor);
}
else if (type == L_ROTATE_SAMPLING)
{
pixd = pixRotateBySampling(pixt3, w / 2, h / 2, angle, incolor);
}
else /* rotate by area mapping */
{
fillval = 0;
if (incolor == L_BRING_IN_WHITE)
{
if (d == 8)
{
fillval = 255;
}
else /* d == 32 */
{
fillval = 0xffffff00;
}
}
if (d == 8)
{
pixd = pixRotateAMGray(pixt3, angle, fillval);
}
else /* d == 32 */
{
pixd = pixRotateAMColor(pixt3, angle, fillval);
}
}
pixDestroy(&pixt1);
pixDestroy(&pixt2);
pixDestroy(&pixt3);
return pixd;
}
/*!
* pixEmbedForRotation()
*
* Input: pixs (1, 2, 4, 8, 32 bpp rgb)
* angle (radians; clockwise is positive)
* incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK)
* width (original width; use 0 to avoid embedding)
* height (original height; use 0 to avoid embedding)
* Return: pixd, or null on error
*
* Notes:
* (1) For very small rotations, just return a clone.
* (2) Generate larger image to embed pixs if necessary, and
* place the center of the input image in the center.
* (3) Rotation brings either white or black pixels in
* from outside the image. For colormapped images where
* there is no white or black, a new color is added if
* possible for these pixels; otherwise, either the
* lightest or darkest color is used. In most cases,
* the colormap will be removed prior to rotation.
* (4) The dest is to be expanded so that no image pixels
* are lost after rotation. Input of the original width
* and height allows the expansion to stop at the maximum
* required size, which is a square with side equal to
* sqrt(w*w + h*h).
* (5) For an arbitrary angle, the expansion can be found by
* considering the UL and UR corners. As the image is
* rotated, these move in an arc centered at the center of
* the image. Normalize to a unit circle by dividing by half
* the image diagonal. After a rotation of T radians, the UL
* and UR corners are at points T radians along the unit
* circle. Compute the x and y coordinates of both these
* points and take the max of absolute values; these represent
* the half width and half height of the containing rectangle.
* The arithmetic is done using formulas for sin(a+b) and cos(a+b),
* where b = T. For the UR corner, sin(a) = h/d and cos(a) = w/d.
* For the UL corner, replace a by (pi - a), and you have
* sin(pi - a) = h/d, cos(pi - a) = -w/d. The equations
* given below follow directly.
*/
PIX *
pixEmbedForRotation(PIX *pixs,
l_float32 angle,
l_int32 incolor,
l_int32 width,
l_int32 height)
{
l_int32 w, h, d, w1, h1, w2, h2, maxside, wnew, hnew, xoff, yoff, setcolor;
l_float64 sina, cosa, fw, fh;
PIX *pixd;
PROCNAME("pixEmbedForRotation");
if (!pixs)
{
return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);
}
if (incolor != L_BRING_IN_WHITE && incolor != L_BRING_IN_BLACK)
{
return (PIX *)ERROR_PTR("invalid incolor", procName, NULL);
}
if (L_ABS(angle) < MIN_ANGLE_TO_ROTATE)
{
return pixClone(pixs);
}
/* Test if big enough to hold any rotation of the original image */
pixGetDimensions(pixs, &w, &h, &d);
maxside = (l_int32)(sqrt((l_float64)(width * width) +
(l_float64)(height * height)) + 0.5);
if (w >= maxside && h >= maxside) /* big enough */
{
return pixClone(pixs);
}
/* Find the new sizes required to hold the image after rotation.
* Note that the new dimensions must be at least as large as those
* of pixs, because we're rasterop-ing into it before rotation. */
cosa = cos(angle);
sina = sin(angle);
fw = (l_float64)w;
fh = (l_float64)h;
w1 = (l_int32)(L_ABS(fw * cosa - fh * sina) + 0.5);
w2 = (l_int32)(L_ABS(-fw * cosa - fh * sina) + 0.5);
h1 = (l_int32)(L_ABS(fw * sina + fh * cosa) + 0.5);
h2 = (l_int32)(L_ABS(-fw * sina + fh * cosa) + 0.5);
wnew = L_MAX(w, L_MAX(w1, w2));
hnew = L_MAX(h, L_MAX(h1, h2));
if ((pixd = pixCreate(wnew, hnew, d)) == NULL)
{
return (PIX *)ERROR_PTR("pixd not made", procName, NULL);
}
pixCopyResolution(pixd, pixs);
pixCopyColormap(pixd, pixs);
pixCopySpp(pixd, pixs);
pixCopyText(pixd, pixs);
xoff = (wnew - w) / 2;
yoff = (hnew - h) / 2;
/* Set background to color to be rotated in */
setcolor = (incolor == L_BRING_IN_BLACK) ? L_SET_BLACK : L_SET_WHITE;
pixSetBlackOrWhite(pixd, setcolor);
/* Rasterop automatically handles all 4 channels for rgba */
pixRasterop(pixd, xoff, yoff, w, h, PIX_SRC, pixs, 0, 0);
return pixd;
}
/*------------------------------------------------------------------*
* General rotation by sampling *
*------------------------------------------------------------------*/
/*!
* pixRotateBySampling()
*
* Input: pixs (1, 2, 4, 8, 16, 32 bpp rgb; can be cmapped)
* xcen (x value of center of rotation)
* ycen (y value of center of rotation)
* angle (radians; clockwise is positive)
* incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK)
* Return: pixd, or null on error
*
* Notes:
* (1) For very small rotations, just return a clone.
* (2) Rotation brings either white or black pixels in
* from outside the image.
* (3) Colormaps are retained.
*/
PIX *
pixRotateBySampling(PIX *pixs,
l_int32 xcen,
l_int32 ycen,
l_float32 angle,
l_int32 incolor)
{
l_int32 w, h, d, i, j, x, y, xdif, ydif, wm1, hm1, wpld;
l_uint32 val;
l_float32 sina, cosa;
l_uint32 *datad, *lined;
void **lines;
PIX *pixd;
PROCNAME("pixRotateBySampling");
if (!pixs)
{
return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);
}
if (incolor != L_BRING_IN_WHITE && incolor != L_BRING_IN_BLACK)
{
return (PIX *)ERROR_PTR("invalid incolor", procName, NULL);
}
pixGetDimensions(pixs, &w, &h, &d);
if (d != 1 && d != 2 && d != 4 && d != 8 && d != 16 && d != 32)
{
return (PIX *)ERROR_PTR("invalid depth", procName, NULL);
}
if (L_ABS(angle) < MIN_ANGLE_TO_ROTATE)
{
return pixClone(pixs);
}
if ((pixd = pixCreateTemplateNoInit(pixs)) == NULL)
{
return (PIX *)ERROR_PTR("pixd not made", procName, NULL);
}
pixSetBlackOrWhite(pixd, incolor);
sina = sin(angle);
cosa = cos(angle);
datad = pixGetData(pixd);
wpld = pixGetWpl(pixd);
wm1 = w - 1;
hm1 = h - 1;
lines = pixGetLinePtrs(pixs, NULL);
/* Treat 1 bpp case specially */
if (d == 1)
{
for (i = 0; i < h; i++) /* scan over pixd */
{
lined = datad + i * wpld;
ydif = ycen - i;
for (j = 0; j < w; j++)
{
xdif = xcen - j;
x = xcen + (l_int32)(-xdif * cosa - ydif * sina);
if (x < 0 || x > wm1)
{
continue;
}
y = ycen + (l_int32)(-ydif * cosa + xdif * sina);
if (y < 0 || y > hm1)
{
continue;
}
if (incolor == L_BRING_IN_WHITE)
{
if (GET_DATA_BIT(lines[y], x))
{
SET_DATA_BIT(lined, j);
}
}
else
{
if (!GET_DATA_BIT(lines[y], x))
{
CLEAR_DATA_BIT(lined, j);
}
}
}
}
FREE(lines);
return pixd;
}
for (i = 0; i < h; i++) /* scan over pixd */
{
lined = datad + i * wpld;
ydif = ycen - i;
for (j = 0; j < w; j++)
{
xdif = xcen - j;
x = xcen + (l_int32)(-xdif * cosa - ydif * sina);
if (x < 0 || x > wm1)
{
continue;
}
y = ycen + (l_int32)(-ydif * cosa + xdif * sina);
if (y < 0 || y > hm1)
{
continue;
}
switch (d)
{
case 8:
val = GET_DATA_BYTE(lines[y], x);
SET_DATA_BYTE(lined, j, val);
break;
case 32:
val = GET_DATA_FOUR_BYTES(lines[y], x);
SET_DATA_FOUR_BYTES(lined, j, val);
break;
case 2:
val = GET_DATA_DIBIT(lines[y], x);
SET_DATA_DIBIT(lined, j, val);
break;
case 4:
val = GET_DATA_QBIT(lines[y], x);
SET_DATA_QBIT(lined, j, val);
break;
case 16:
val = GET_DATA_TWO_BYTES(lines[y], x);
SET_DATA_TWO_BYTES(lined, j, val);
break;
default:
return (PIX *)ERROR_PTR("invalid depth", procName, NULL);
}
}
}
FREE(lines);
return pixd;
}
/*------------------------------------------------------------------*
* Nice (slow) rotation of 1 bpp image *
*------------------------------------------------------------------*/
/*!
* pixRotateBinaryNice()
*
* Input: pixs (1 bpp)
* angle (radians; clockwise is positive; about the center)
* incolor (L_BRING_IN_WHITE, L_BRING_IN_BLACK)
* Return: pixd, or null on error
*
* Notes:
* (1) For very small rotations, just return a clone.
* (2) This does a computationally expensive rotation of 1 bpp images.
* The fastest rotators (using shears or subsampling) leave
* visible horizontal and vertical shear lines across which
* the image shear changes by one pixel. To ameliorate the
* visual effect one can introduce random dithering. One
* way to do this in a not-too-random fashion is given here.
* We convert to 8 bpp, do a very small blur, rotate using
* linear interpolation (same as area mapping), do a
* small amount of sharpening to compensate for the initial
* blur, and threshold back to binary. The shear lines
* are magically removed.
* (3) This operation is about 5x slower than rotation by sampling.
*/
PIX *
pixRotateBinaryNice(PIX *pixs,
l_float32 angle,
l_int32 incolor)
{
PIX *pixt1, *pixt2, *pixt3, *pixt4, *pixd;
PROCNAME("pixRotateBinaryNice");
if (!pixs || pixGetDepth(pixs) != 1)
{
return (PIX *)ERROR_PTR("pixs undefined or not 1 bpp", procName, NULL);
}
if (incolor != L_BRING_IN_WHITE && incolor != L_BRING_IN_BLACK)
{
return (PIX *)ERROR_PTR("invalid incolor", procName, NULL);
}
pixt1 = pixConvertTo8(pixs, 0);
pixt2 = pixBlockconv(pixt1, 1, 1); /* smallest blur allowed */
pixt3 = pixRotateAM(pixt2, angle, incolor);
pixt4 = pixUnsharpMasking(pixt3, 1, 1.0); /* sharpen a bit */
pixd = pixThresholdToBinary(pixt4, 128);
pixDestroy(&pixt1);
pixDestroy(&pixt2);
pixDestroy(&pixt3);
pixDestroy(&pixt4);
return pixd;
}
/*------------------------------------------------------------------*
* Rotation including alpha (blend) component *
*------------------------------------------------------------------*/
/*!
* pixRotateWithAlpha()
*
* Input: pixs (32 bpp rgb or cmapped)
* angle (radians; clockwise is positive)
* pixg (<optional> 8 bpp, can be null)
* fract (between 0.0 and 1.0, with 0.0 fully transparent
* and 1.0 fully opaque)
* Return: pixd (32 bpp rgba), or null on error
*
* Notes:
* (1) The alpha channel is transformed separately from pixs,
* and aligns with it, being fully transparent outside the
* boundary of the transformed pixs. For pixels that are fully
* transparent, a blending function like pixBlendWithGrayMask()
* will give zero weight to corresponding pixels in pixs.
* (2) Rotation is about the center of the image; for very small
* rotations, just return a clone. The dest is automatically
* expanded so that no image pixels are lost.
* (3) Rotation is by area mapping. It doesn't matter what
* color is brought in because the alpha channel will
* be transparent (black) there.
* (4) If pixg is NULL, it is generated as an alpha layer that is
* partially opaque, using @fract. Otherwise, it is cropped
* to pixs if required and @fract is ignored. The alpha
* channel in pixs is never used.
* (4) Colormaps are removed to 32 bpp.
* (5) The default setting for the border values in the alpha channel
* is 0 (transparent) for the outermost ring of pixels and
* (0.5 * fract * 255) for the second ring. When blended over
* a second image, this
* (a) shrinks the visible image to make a clean overlap edge
* with an image below, and
* (b) softens the edges by weakening the aliasing there.
* Use l_setAlphaMaskBorder() to change these values.
* (6) A subtle use of gamma correction is to remove gamma correction
* before rotation and restore it afterwards. This is done
* by sandwiching this function between a gamma/inverse-gamma
* photometric transform:
* pixt = pixGammaTRCWithAlpha(NULL, pixs, 1.0 / gamma, 0, 255);
* pixd = pixRotateWithAlpha(pixt, angle, NULL, fract);
* pixGammaTRCWithAlpha(pixd, pixd, gamma, 0, 255);
* pixDestroy(&pixt);
* This has the side-effect of producing artifacts in the very
* dark regions.
*
* *** Warning: implicit assumption about RGB component ordering ***
*/
PIX *
pixRotateWithAlpha(PIX *pixs,
l_float32 angle,
PIX *pixg,
l_float32 fract)
{
l_int32 ws, hs, d, spp;
PIX *pixd, *pix32, *pixg2, *pixgr;
PROCNAME("pixRotateWithAlpha");
if (!pixs)
{
return (PIX *)ERROR_PTR("pixs not defined", procName, NULL);
}
pixGetDimensions(pixs, &ws, &hs, &d);
if (d != 32 && pixGetColormap(pixs) == NULL)
{
return (PIX *)ERROR_PTR("pixs not cmapped or 32 bpp", procName, NULL);
}
if (pixg && pixGetDepth(pixg) != 8)
{
L_WARNING("pixg not 8 bpp; using @fract transparent alpha\n", procName);
pixg = NULL;
}
if (!pixg && (fract < 0.0 || fract > 1.0))
{
L_WARNING("invalid fract; using fully opaque\n", procName);
fract = 1.0;
}
if (!pixg && fract == 0.0)
{
L_WARNING("transparent alpha; image will not be blended\n", procName);
}
/* Make sure input to rotation is 32 bpp rgb, and rotate it */
if (d != 32)
{
pix32 = pixConvertTo32(pixs);
}
else
{
pix32 = pixClone(pixs);
}
spp = pixGetSpp(pix32);
pixSetSpp(pix32, 3); /* ignore the alpha channel for the rotation */
pixd = pixRotate(pix32, angle, L_ROTATE_AREA_MAP, L_BRING_IN_WHITE, ws, hs);
pixSetSpp(pix32, spp); /* restore initial value in case it's a clone */
pixDestroy(&pix32);
/* Set up alpha layer with a fading border and rotate it */
if (!pixg)
{
pixg2 = pixCreate(ws, hs, 8);
if (fract == 1.0)
{
pixSetAll(pixg2);
}
else if (fract > 0.0)
{
pixSetAllArbitrary(pixg2, (l_int32)(255.0 * fract));
}
}
else
{
pixg2 = pixResizeToMatch(pixg, NULL, ws, hs);
}
if (ws > 10 && hs > 10) /* see note 8 */
{
pixSetBorderRingVal(pixg2, 1,
(l_int32)(255.0 * fract * AlphaMaskBorderVals[0]));
pixSetBorderRingVal(pixg2, 2,
(l_int32)(255.0 * fract * AlphaMaskBorderVals[1]));
}
pixgr = pixRotate(pixg2, angle, L_ROTATE_AREA_MAP,
L_BRING_IN_BLACK, ws, hs);
/* Combine into a 4 spp result */
pixSetRGBComponent(pixd, pixgr, L_ALPHA_CHANNEL);
pixDestroy(&pixg2);
pixDestroy(&pixgr);
return pixd;
}
|
#include <assert.h>
#include <stdio.h>
void assertSorted(int* a,int length)
{
//Check that the entire array is in sorted order
for(int i=0;i<length-1;i++)
{
assert(a[i]<=a[i+1]);
}
}
void display(int* a,int length)
{
//Check that the entire array is in sorted order
for(int i=0;i<length-1;i++)
{
printf("%d ",a[i]);
}
}
|
//
// Created by 邓岩 on 2018/11/5.
//
#include "gotocelldialog.h"
GoToCellDialog::GoToCellDialog(QWidget *parent) : QDialog(parent)
{
setupUi(this);
QRegExp regExp("[1-9][0-9]{3,8}@[A-Za-z]{2,5}\.com");
lineEdit->setValidator(new QRegExpValidator(regExp, this));
//connect(okButton, SIGNAL(clicked()), this, SLOT(accept()));
//connect(cancelButton, SIGNAL(clicked()), this, SLOT(reject()));
}
void GoToCellDialog::on_lineEdit_textChanged() {
buttonBox->setEnabled(lineEdit->hasAcceptableInput());
}
|
#ifndef STATIC_CFG_H
#define STATIC_CFG_H
#include <sage3basic.h>
#include "AstAttributeMechanism.h"
#include "virtualCFG.h"
#include <map>
#include <set>
#include <string>
class SgIncidenceDirectedGraph;
class SgGraphNode;
class SgDirectedGraphEdge;
namespace StaticCFG
{
using VirtualCFG::CFGNode;
using VirtualCFG::CFGEdge;
class CFG
{
protected:
//! The graph data structure holding the CFG.
SgIncidenceDirectedGraph* graph_;
//! A map from CFGNode in virtualCFG to node from staticCFG.
std::map<CFGNode, SgGraphNode*> all_nodes_;
//! The start node to begin CFG build.
SgNode* start_;
//! The entry node.
SgGraphNode* entry_;
//! The exit node.
SgGraphNode* exit_;
//! A flag shows whether this CFG is filtered or not.
bool is_filtered_;
public:
CFG() : graph_(NULL), start_(NULL), entry_(NULL), exit_(NULL) {}
//! Turn a graph node into a CFGNode which is defined in VirtualCFG namespace.
CFGNode toCFGNode(SgGraphNode* node);
//! Turn a CFG node into a GraphNode which is defined in VirtualCFG namespace.
//! Returns NULL if CFGNode is not present
SgGraphNode *toGraphNode(CFGNode &n) { return ((all_nodes_.count(n)==0) ? NULL : all_nodes_[n]);}
//! The constructor building the CFG.
/*! The valid nodes are SgProject, SgStatement, SgExpression and SgInitializedName. */
CFG(SgNode* node, bool is_filtered = false)
: graph_(NULL), start_(node), entry_(NULL), exit_(NULL), is_filtered_(is_filtered)
{ buildCFG(); }
//! Get the pointer pointing to the graph used by static CFG.
SgIncidenceDirectedGraph* getGraph() const
{ return graph_; }
virtual ~CFG()
{ clearNodesAndEdges(); }
//! Set the start node for graph building.
/*! The valid nodes are SgProject, SgStatement, SgExpression and SgInitializedName. */
void setStart(SgNode* node) { start_ = node; }
//! Get the entry node of the CFG
SgGraphNode* getEntry() const
{ return entry_; }
//! Get the exit node of the CFG
SgGraphNode* getExit() const
{ return exit_; }
bool isFilteredCFG() const { return is_filtered_; }
void setFiltered(bool flag) { is_filtered_ = flag; }
//! Build CFG according to the 'is_filtered_' flag.
virtual void buildCFG()
{
if (is_filtered_) buildFilteredCFG();
else buildFullCFG();
}
//! Build CFG for debugging.
virtual void buildFullCFG();
//! Build filtered CFG which only contains interesting nodes.
virtual void buildFilteredCFG();
#if 0
std::vector<SgDirectedGraphEdge*> getOutEdges(SgNode* node, int index);
std::vector<SgDirectedGraphEdge*> getInEdges(SgNode* node, int index);
#endif
// The following four functions are for getting in/out edges of a given node.
std::vector<SgDirectedGraphEdge*> getOutEdges(SgGraphNode* node);
std::vector<SgDirectedGraphEdge*> getInEdges(SgGraphNode* node);
// Provide the same interface to get the beginning/end graph node for a SgNode
SgGraphNode* cfgForBeginning(SgNode* node);
SgGraphNode* cfgForEnd(SgNode* node);
//! Get the index of a CFG node.
static int getIndex(SgGraphNode* node);
//! Output the graph to a DOT file.
void cfgToDot(SgNode* node, const std::string& file_name);
protected:
//void buildCFG(CFGNode n);
template <class NodeT, class EdgeT>
void buildCFG(NodeT n, std::map<NodeT, SgGraphNode*>& all_nodes, std::set<NodeT>& explored);
//! Delete all nodes and edges in the graph and release memories.
void clearNodesAndEdges();
// The following methods are used to build a DOT file.
virtual void processNodes(std::ostream & o, SgGraphNode* n, std::set<SgGraphNode*>& explored);
virtual void printNodePlusEdges(std::ostream & o, SgGraphNode* node);
virtual void printNode(std::ostream & o, SgGraphNode* node);
virtual void printEdge(std::ostream & o, SgDirectedGraphEdge* edge, bool isInEdge);
};
//! This class stores index of each node as an attribuite of SgGraphNode.
class CFGNodeAttribute : public AstAttribute
{
int index_;
SgIncidenceDirectedGraph* graph_;
public:
CFGNodeAttribute(int idx = 0, SgIncidenceDirectedGraph* graph = NULL)
: index_(idx), graph_(graph) {}
int getIndex() const { return index_; }
void setIndex(int idx) { index_ = idx; }
const SgIncidenceDirectedGraph* getGraph() const { return graph_; }
SgIncidenceDirectedGraph* getGraph() { return graph_; }
void setGraph(SgIncidenceDirectedGraph* graph)
{ graph_ = graph; }
};
template <class EdgeT>
class CFGEdgeAttribute : public AstAttribute
{
EdgeT edge_;
public:
CFGEdgeAttribute(const EdgeT& e) : edge_(e) {}
void setEdge(const EdgeT& e)
{ edge_ = e; }
EdgeT getEdge() const
{ return edge_; }
};
// The following are some auxiliary functions, since SgGraphNode cannot provide them.
std::vector<SgDirectedGraphEdge*> outEdges(SgGraphNode* node);
std::vector<SgDirectedGraphEdge*> inEdges(SgGraphNode* node);
} // end of namespace StaticCFG
#endif
|
#ifndef DEFERRED_RENDERING_APPLICATION_H
#define DEFERRED_RENDERING_APPLICATION_H
#include <FastCG/Platform/Application.h>
class DeferredRenderingApplication : public FastCG::Application
{
public:
DeferredRenderingApplication();
protected:
void OnStart() override;
};
#endif
|
#include <catch.hpp>
#include <embr/observer.h>
static int expected;
struct event_1
{
int data;
};
struct event_2
{
int data;
};
struct event_3
{
int data;
int output = 0;
};
struct id_event
{
int id;
};
struct sequence_event : id_event {};
struct noop_event {};
static int counter = 0;
class StatelessObserver
{
public:
static void on_notify(int val)
{
REQUIRE(val == expected);
counter++;
}
static void on_notify(event_1 val, const int& context)
{
}
};
class IObserver
{
public:
virtual void on_notify(event_1 n) = 0;
};
class FakeBase {};
static int unique_counter = 0;
class StatefulObserver : public FakeBase
{
public:
static constexpr int default_id() { return 0x77; }
int unique = unique_counter++;
int id;
int counter = 0;
int context_counter = 0;
StatefulObserver() : id(default_id()) {}
explicit StatefulObserver(int id) : id(id) {}
void on_notify(int val)
{
REQUIRE(val == expected);
}
void on_notify(event_3 e, event_3& context)
{
REQUIRE(e.data == expected);
context.output = default_id();
context_counter++;
}
void on_notify(event_1 e)
{
REQUIRE(e.data == expected);
}
void on_notify(const event_2& e)
{
REQUIRE(e.data == expected);
}
void on_notify(id_event e)
{
counter++;
REQUIRE(e.id == id);
}
void on_notify(sequence_event e, sequence_event& context)
{
counter++;
REQUIRE(unique > context.id);
context.id = unique;
}
static void on_notify(event_1 val, const int& context)
{
}
};
struct OtherStatefulObserver
{
char buf[10];
OtherStatefulObserver()
{
buf[0] = 1;
buf[1] = 2;
buf[2] = 3;
buf[3] = 4;
}
void on_notify(int val)
{
REQUIRE(val == expected);
}
};
TEST_CASE("observer")
{
SECTION("general compiler sanity checks")
{
// for debian x64 gcc
REQUIRE(sizeof(int) == 4);
REQUIRE(sizeof(StatefulObserver) == 16);
}
SECTION("void subject")
{
embr::void_subject vs;
vs.notify(3);
}
SECTION("next-gen tuple based observer")
{
counter = 0;
expected = 3;
SECTION("layer0")
{
SECTION("raw")
{
embr::layer0::subject<
StatelessObserver,
StatelessObserver> s;
int sz = sizeof(s);
s.notify(3);
REQUIRE(counter == 2);
s.notify(event_1 { 3 }); // goes nowhere
REQUIRE(sz == 1);
}
}
SECTION("layer1")
{
embr::layer1::subject<
StatelessObserver,
StatefulObserver,
StatelessObserver,
StatelessObserver
> s;
typedef decltype(s) subject_type;
const StatefulObserver& so = s.get<1>();
REQUIRE(so.id == StatefulObserver::default_id());
s.notify(3);
// count 3 times, once per stateless observer
REQUIRE(counter == 3);
s.notify(event_1 { 3 });
event_3 ctx;
// Notify is gonna evaluate whether 'data' matches 'expected', which
// is 3 in this case
ctx.data = expected;
s.notify(ctx, ctx);
// context should be modified by stateful observer
REQUIRE(ctx.output == StatefulObserver::default_id());
SECTION("size evaluation")
{
int sz = sizeof(s);
// for debian x64
// Stateful = 16, 3 others add up to 8 somehow
REQUIRE(sz == 24);
}
SECTION("make_subject")
{
StatelessObserver o1;
StatefulObserver o2(0x777);
id_event e;
e.id = 0x777;
REQUIRE(o2.counter == 0);
auto s = embr::layer1::make_subject(
o1,
o2);
// StatelessObserver will just ignore it
s.notify(e);
REQUIRE(o2.counter == 1);
SECTION("size evaluation")
{
int sz = sizeof(s);
// for debian x64
REQUIRE(sz == 16);
}
}
SECTION("proxy")
{
embr::layer1::observer_proxy<decltype(s)> op(s);
op.on_notify(noop_event{});
}
SECTION("make_observer_proxy")
{
auto op = embr::layer1::make_observer_proxy(s);
event_3 e;
e.data = expected;
REQUIRE(so.context_counter == 1);
op.on_notify(e, e);
REQUIRE(so.context_counter == 2);
}
SECTION("proxy + make_subject")
{
embr::layer1::observer_proxy<subject_type> op(s);
StatefulObserver o;
id_event e;
e.id = StatefulObserver::default_id();
REQUIRE(o.counter == 0);
auto s2 = embr::layer1::make_subject(
op,
o);
s2.notify(e);
REQUIRE(o.counter == 1);
// TODO: Would be nice to do a expect-fails condition here, don't know if catch does that
// we'd look for s2.notify to fail if it's not default_id
event_3 e2;
e2.data = expected;
REQUIRE(o.context_counter == 0);
REQUIRE(so.context_counter == 1);
s2.notify(e2, e2);
REQUIRE(o.context_counter == 1);
REQUIRE(so.context_counter == 2);
}
SECTION("Notification order")
{
StatefulObserver o1, o2, o3;
//auto s = embr::layer1::make_subject(o3, o2, o1); // this should fail
auto s = embr::layer1::make_subject(o1, o2, o3);
sequence_event e;
e.id = 0;
s.notify(e, e);
REQUIRE(o1.counter == 1);
REQUIRE(o2.counter == 1);
REQUIRE(o3.counter == 1);
}
}
}
}
|
#ifndef SOCKET_H
#define SOCKET_H
#include <string>
/**
* @brief Module Socket
* @file Socket.h
*
* Cette classe permet de mettre en place un socket client ou serveur
*
* @version 1.0
* @date 2018/04/27
*/
class Socket{
private:
int m_socket; /**< Donnée membre m_socket qui contient le file descriptor */
unsigned int m_port; /**< Donnée membre m_port qui contient le port du socket */
public:
/**
* @brief Procédure pour initialiser le socket
*
* @return none
*/
void s_init();
/**
* @brief Procédure pour lier un socket système sur un port de la machine
*
* @param [in] port numéro de port sur lequel on associe le socket système
*
* @return none
*/
void s_bind(const unsigned int port);
/**
* @brief Procédure pour créer un socket client qui se connecte à un host
*
* @param [in] host numéro de port sur lequel on associe le socket système
* @param [in] port numéro de port sur lequel on associe le socket système
*
* @return none
*/
void s_connect(const std::string& host, const int port) const;
/**
* @brief Procédure pour mettre un socket en écoute sur un serveur
*
* @return none
*/
void s_listen() const;
/**
* @brief Fonction bloquante qui attend un client sur un serveur et qui l'accepte (fonction blocante)
*
* @return int retourne un file descriptor avec le client pour pouvoir discuter
*/
int s_accept() const;
/**
* @brief Procédure pour fermer le socket m_socket
*
* @return none
*/
void s_close();
/**
* @brief Accesseur pour récupérer le file descriptor de m_socket
*
* @return int file descriptor du socket m_socket
*/
int get_sock() const;
};
#endif // SOCKET_H
|
//
// Copyright Jason Rice 2015
// 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/detail/concept_pred.hpp>
#include<boost/hana.hpp>
namespace hana = boost::hana;
template <typename T>
struct TestConcept
{
static constexpr bool value = std::is_integral<T>::value;
};
int main()
{
// converts a concept into a high order predicate function
// that can be passed as an argument
constexpr auto result = hana::transform(
hana::make_tuple(6, false, 4.6f),
nbdl::detail::concept_pred<TestConcept>
);
constexpr auto expected = hana::make_tuple(hana::true_c, hana::true_c, hana::false_c);
BOOST_HANA_CONSTANT_ASSERT(result == expected);
}
|
////////////////////////////////////////////////////////////////////////////////
//
// 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..
/////////////////////////////////////////////////////
// EPG_TRANSPARENT_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Transparent_Bg_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_0 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_PANEL styles..
#define _Zui_Epg_Pro_Guide_Panel_Normal_DrawStyle _Zui_Epg_Transparent_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_PANEL_BG styles..
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_PANEL_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Panel_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_171 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_PANEL_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Panel_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_172 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_PANEL_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Panel_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_173 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE styles..
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_FOCUS_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Focus_L_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_174 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_FOCUS_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Focus_C_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_175 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_FOCUS_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Focus_R_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_176 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_595 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_596 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Left_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_64 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Right_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_70 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TYPE_CHANNEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Type_Channel_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_597 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Type_Channel_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_598 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TYPE_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Type_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_599 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Type_Time_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_600 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_CHANNEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_34 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_CHANNEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channel_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_601 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Channel_Focus_DrawStyle _Zui_Epg_Channel_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNEL_SERVICE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channel_Service_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_602 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Channel_Service_Focus_DrawStyle _Zui_Epg_Channel_Service_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_CHANNEL_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_37 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_CHANNEL_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_38 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_CHANNEL_INC styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_39 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_CHANNEL_DEC styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_40 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM styles..
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_117 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_CHANNELITEM1_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channelitem1_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_603 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channelitem1_Time_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_604 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_CHANNELITEM1_EVENT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channelitem1_Event_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_115 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channelitem1_Event_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_396 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Channelitem1_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM1_ARROW_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_126 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_2 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_2_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM2_TIME styles..
#define _Zui_Epg_Channelitem2_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem2_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM2_EVENT styles..
#define _Zui_Epg_Channelitem2_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem2_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem2_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM2_ARROW_ICON styles..
#define _Zui_Epg_Channelitem2_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_3 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_3_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM3_TIME styles..
#define _Zui_Epg_Channelitem3_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem3_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM3_EVENT styles..
#define _Zui_Epg_Channelitem3_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem3_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem3_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM3_ARROW_ICON styles..
#define _Zui_Epg_Channelitem3_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_4 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_4_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM4_TIME styles..
#define _Zui_Epg_Channelitem4_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem4_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM4_EVENT styles..
#define _Zui_Epg_Channelitem4_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem4_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem4_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM4_ARROW_ICON styles..
#define _Zui_Epg_Channelitem4_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_5 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_5_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM5_TIME styles..
#define _Zui_Epg_Channelitem5_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem5_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM5_EVENT styles..
#define _Zui_Epg_Channelitem5_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem5_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem5_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM5_ARROW_ICON styles..
#define _Zui_Epg_Channelitem5_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_6 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_6_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM6_TIME styles..
#define _Zui_Epg_Channelitem6_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem6_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM6_EVENT styles..
#define _Zui_Epg_Channelitem6_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem6_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem6_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM6_ARROW_ICON styles..
#define _Zui_Epg_Channelitem6_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_7 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_7_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM7_TIME styles..
#define _Zui_Epg_Channelitem7_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem7_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM7_EVENT styles..
#define _Zui_Epg_Channelitem7_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem7_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem7_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM7_ARROW_ICON styles..
#define _Zui_Epg_Channelitem7_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_CHANNEL_ITEM_8 styles..
#define _Zui_Epg_Pro_Guide_Channel_Item_8_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM8_TIME styles..
#define _Zui_Epg_Channelitem8_Time_Normal_DrawStyle _Zui_Epg_Channelitem1_Time_Normal_DrawStyle
#define _Zui_Epg_Channelitem8_Time_Focus_DrawStyle _Zui_Epg_Channelitem1_Time_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM8_EVENT styles..
#define _Zui_Epg_Channelitem8_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Channelitem8_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Channelitem8_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_CHANNELITEM8_ARROW_ICON styles..
#define _Zui_Epg_Channelitem8_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_TIME styles..
#define _Zui_Epg_Pro_Guide_Title_Time_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PAGE_DATE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Page_Date_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_605 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Page_Date_Focus_DrawStyle _Zui_Epg_Page_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SYSTEM_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_System_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_606 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_System_Time_Focus_DrawStyle _Zui_Epg_System_Time_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_TIME_LEFT_ARROW styles..
#define _Zui_Epg_Pro_Guide_Title_Time_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_TIME_RIGHT_ARROW styles..
#define _Zui_Epg_Pro_Guide_Title_Time_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_TIME_INC styles..
#define _Zui_Epg_Pro_Guide_Title_Time_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TITLE_TIME_DEC styles..
#define _Zui_Epg_Pro_Guide_Title_Time_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM styles..
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_1 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_1_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM1_SERVICE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Timeitem1_Service_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_607 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Timeitem1_Service_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_608 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_TIMEITEM1_EVENT styles..
#define _Zui_Epg_Timeitem1_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem1_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem1_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM1_ARROW_ICON styles..
#define _Zui_Epg_Timeitem1_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_2 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_2_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM2_SERVICE styles..
#define _Zui_Epg_Timeitem2_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem2_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM2_EVENT styles..
#define _Zui_Epg_Timeitem2_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem2_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem2_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM2_ARROW_ICON styles..
#define _Zui_Epg_Timeitem2_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_3 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_3_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM3_SERVICE styles..
#define _Zui_Epg_Timeitem3_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem3_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM3_EVENT styles..
#define _Zui_Epg_Timeitem3_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem3_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem3_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM3_ARROW_ICON styles..
#define _Zui_Epg_Timeitem3_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_4 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_4_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM4_SERVICE styles..
#define _Zui_Epg_Timeitem4_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem4_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM4_EVENT styles..
#define _Zui_Epg_Timeitem4_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem4_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem4_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM4_ARROW_ICON styles..
#define _Zui_Epg_Timeitem4_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_5 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_5_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM5_SERVICE styles..
#define _Zui_Epg_Timeitem5_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem5_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM5_EVENT styles..
#define _Zui_Epg_Timeitem5_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem5_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem5_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM5_ARROW_ICON styles..
#define _Zui_Epg_Timeitem5_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_6 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_6_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM6_SERVICE styles..
#define _Zui_Epg_Timeitem6_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem6_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM6_EVENT styles..
#define _Zui_Epg_Timeitem6_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem6_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem6_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM6_ARROW_ICON styles..
#define _Zui_Epg_Timeitem6_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_7 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_7_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM7_SERVICE styles..
#define _Zui_Epg_Timeitem7_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem7_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM7_EVENT styles..
#define _Zui_Epg_Timeitem7_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem7_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem7_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM7_ARROW_ICON styles..
#define _Zui_Epg_Timeitem7_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_TIME_ITEM_8 styles..
#define _Zui_Epg_Pro_Guide_Time_Item_8_Focus_DrawStyle _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM8_SERVICE styles..
#define _Zui_Epg_Timeitem8_Service_Normal_DrawStyle _Zui_Epg_Timeitem1_Service_Normal_DrawStyle
#define _Zui_Epg_Timeitem8_Service_Focus_DrawStyle _Zui_Epg_Timeitem1_Service_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM8_EVENT styles..
#define _Zui_Epg_Timeitem8_Event_Normal_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
#define _Zui_Epg_Timeitem8_Event_Focus_DrawStyle _Zui_Epg_Channelitem1_Event_Focus_DrawStyle
#define _Zui_Epg_Timeitem8_Event_Disabled_DrawStyle _Zui_Epg_Channelitem1_Event_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_TIMEITEM8_ARROW_ICON styles..
#define _Zui_Epg_Timeitem8_Arrow_Icon_Focus_DrawStyle _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_UP_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Up_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_31 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PRO_GUIDE_DOWN_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pro_Guide_Down_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_32 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_ALL_HELP_PANEL styles..
/////////////////////////////////////////////////////
// EPG_HELP_CONTROL_ICON_RED styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Control_Icon_Red_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_177 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_HELP_CONTROL_ICON_GREEN styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Control_Icon_Green_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_178 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_HELP_CONTROL_ICON_YELLOW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Control_Icon_Yellow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_179 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_HELP_CONTROL_ICON_BLUE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Control_Icon_Blue_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_180 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_HELP_OK_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Ok_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_36 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Help_Ok_Icon_Focus_DrawStyle _Zui_Epg_Help_Ok_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_HELP_INDEX_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Index_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_181 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Help_Index_Icon_Focus_DrawStyle _Zui_Epg_Help_Index_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_ALL_INFO_PANEL styles..
/////////////////////////////////////////////////////
// EPG_INFO_DESC_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Info_Desc_Bg_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_182 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_INFO_DESC_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Info_Desc_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_183 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_INFO_DESC_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Info_Desc_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_184 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_INFO_EVENT_DATE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Info_Event_Date_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_116 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Info_Event_Date_Focus_DrawStyle _Zui_Epg_Info_Event_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_INFO_EVENT_START_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Info_Event_Start_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_609 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Info_Event_Start_Time_Focus_DrawStyle _Zui_Epg_Info_Event_Start_Time_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_INFO_EVENT_END_TIME styles..
#define _Zui_Epg_Info_Event_End_Time_Normal_DrawStyle _Zui_Epg_Info_Event_Date_Normal_DrawStyle
#define _Zui_Epg_Info_Event_End_Time_Focus_DrawStyle _Zui_Epg_Info_Event_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_INFO_DESC_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Info_Desc_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_610 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Info_Desc_Text_Focus_DrawStyle _Zui_Epg_Info_Desc_Text_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PANEL styles..
/////////////////////////////////////////////////////
// EPG_REMINDER_PAGE_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Page_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_28 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_PAGE_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Page_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_29 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_PAGE_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Page_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_30 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_PAGE_BG_TOP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Page_Bg_Top_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_27 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_611 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_BGND_SETTING styles..
/////////////////////////////////////////////////////
// EPG_REMINDER_PROGRAMME styles..
#define _Zui_Epg_Reminder_Programme_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PROGRAMME_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Programme_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_612 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Programme_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_613 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Reminder_Programme_Setting_Disabled_DrawStyle _Zui_Epg_Reminder_Programme_Setting_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PROGRAMME_LEFT_ARROW styles..
#define _Zui_Epg_Reminder_Programme_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PROGRAMME_RIGHT_ARROW styles..
#define _Zui_Epg_Reminder_Programme_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PROGRAMME_INC styles..
#define _Zui_Epg_Reminder_Programme_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PROGRAMME_DEC styles..
#define _Zui_Epg_Reminder_Programme_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MINUTE styles..
#define _Zui_Epg_Reminder_Minute_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MINUTE_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Minute_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_614 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Minute_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_615 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Reminder_Minute_Setting_Disabled_DrawStyle _Zui_Epg_Reminder_Minute_Setting_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MINUTE_LEFT_ARROW styles..
#define _Zui_Epg_Reminder_Minute_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MINUTE_RIGHT_ARROW styles..
#define _Zui_Epg_Reminder_Minute_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MINUTE_INC styles..
#define _Zui_Epg_Reminder_Minute_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MINUTE_DEC styles..
#define _Zui_Epg_Reminder_Minute_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_HOUR styles..
#define _Zui_Epg_Reminder_Hour_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_HOUR_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Hour_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_616 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Hour_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_617 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Reminder_Hour_Setting_Disabled_DrawStyle _Zui_Epg_Reminder_Hour_Setting_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_HOUR_LEFT_ARROW styles..
#define _Zui_Epg_Reminder_Hour_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_HOUR_RIGHT_ARROW styles..
#define _Zui_Epg_Reminder_Hour_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_HOUR_INC styles..
#define _Zui_Epg_Reminder_Hour_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_HOUR_DEC styles..
#define _Zui_Epg_Reminder_Hour_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MONTH styles..
#define _Zui_Epg_Reminder_Month_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MONTH_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Month_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_618 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Month_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_619 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_MONTH_LEFT_ARROW styles..
#define _Zui_Epg_Reminder_Month_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MONTH_RIGHT_ARROW styles..
#define _Zui_Epg_Reminder_Month_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MONTH_INC styles..
#define _Zui_Epg_Reminder_Month_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MONTH_DEC styles..
#define _Zui_Epg_Reminder_Month_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_DATE styles..
#define _Zui_Epg_Reminder_Date_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_DATE_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Date_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_620 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Date_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_621 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_DATE_LEFT_ARROW styles..
#define _Zui_Epg_Reminder_Date_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_DATE_RIGHT_ARROW styles..
#define _Zui_Epg_Reminder_Date_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_DATE_INC styles..
#define _Zui_Epg_Reminder_Date_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_DATE_DEC styles..
#define _Zui_Epg_Reminder_Date_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE styles..
#define _Zui_Epg_Reminder_Mode_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Mode_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_622 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Mode_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_623 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Reminder_Mode_Setting_Disabled_DrawStyle _Zui_Epg_Reminder_Mode_Setting_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE_LEFT_ARROW styles..
#define _Zui_Epg_Reminder_Mode_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE_RIGHT_ARROW styles..
#define _Zui_Epg_Reminder_Mode_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE_INC styles..
#define _Zui_Epg_Reminder_Mode_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE_DEC styles..
#define _Zui_Epg_Reminder_Mode_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_MODE_STAR styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Mode_Star_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_185 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Mode_Star_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_186 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG styles..
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_BG_PANE styles..
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_BG_TOP styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_Top_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_42 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_NEW_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_43 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_NEW_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_44 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_NEW_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_45 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_BG_C styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_C_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_48 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_49 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_47 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT_PANE styles..
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_313 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT2 styles..
#define _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text2_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT3 styles..
#define _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text3_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_BTN_PANE styles..
/////////////////////////////////////////////////////
// EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_BTN_OK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Btn_Ok_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_187 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Btn_Ok_Focus_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Btn_Ok_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PAGE_OK styles..
#define _Zui_Epg_Reminder_Page_Ok_Normal_DrawStyle _Zui_Epg_Help_Ok_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PAGE_BACK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Reminder_Page_Back_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_188 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REMINDER_PANEL_UP_ARROW styles..
#define _Zui_Epg_Reminder_Panel_Up_Arrow_Normal_DrawStyle _Zui_Epg_Pro_Guide_Up_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REMINDER_PANEL_DOWN_ARROW styles..
#define _Zui_Epg_Reminder_Panel_Down_Arrow_Normal_DrawStyle _Zui_Epg_Pro_Guide_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_PANEL styles..
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_BGND_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Bgnd_Title_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_97 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_BGND_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Bgnd_Bg_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_98 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_BGND_TITLE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Bgnd_Title_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_624 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Bgnd_Title_Text_Focus_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Text_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_BGND_TITLE_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_526 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Bgnd_Title_Time_Focus_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_BGND_TITLE_DATE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_403 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Bgnd_Title_Date_Focus_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_HEAD styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Head_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_189 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Head_Focus_DrawStyle _Zui_Epg_Schedule_List_Head_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_HEAD_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Head_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_625 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Head_Time_Focus_DrawStyle _Zui_Epg_Schedule_List_Head_Time_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_HEAD_DATE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Head_Date_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_626 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Head_Date_Focus_DrawStyle _Zui_Epg_Schedule_List_Head_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_HEAD_PROGRAMME_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Head_Programme_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_627 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Head_Programme_Title_Focus_DrawStyle _Zui_Epg_Schedule_List_Head_Programme_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_HEAD_CHANNEL_NAME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Head_Channel_Name_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_628 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Head_Channel_Name_Focus_DrawStyle _Zui_Epg_Schedule_List_Head_Channel_Name_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Bg_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_190 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_191 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_392 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_629 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Schedule_List_Item_0_Title_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_TIME styles..
#define _Zui_Epg_Schedule_List_Item_0_Time_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_0_Time_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_0_Time_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_DATE styles..
#define _Zui_Epg_Schedule_List_Item_0_Date_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_0_Date_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_0_Date_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_PROGRAMME styles..
#define _Zui_Epg_Schedule_List_Item_0_Programme_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_0_Programme_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_0_Programme_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_ICON styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Icon_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_192 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Icon_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_193 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_0_MODE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Mode_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_194 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Schedule_List_Item_0_Mode_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_195 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_BG styles..
#define _Zui_Epg_Schedule_List_Item_1_Bg_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1 styles..
#define _Zui_Epg_Schedule_List_Item_1_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_TITLE styles..
#define _Zui_Epg_Schedule_List_Item_1_Title_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Title_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Title_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_TIME styles..
#define _Zui_Epg_Schedule_List_Item_1_Time_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Time_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Time_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_DATE styles..
#define _Zui_Epg_Schedule_List_Item_1_Date_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Date_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Date_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_PROGRAMME styles..
#define _Zui_Epg_Schedule_List_Item_1_Programme_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Programme_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Programme_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_ICON styles..
#define _Zui_Epg_Schedule_List_Item_1_Icon_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Icon_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Icon_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_1_MODE styles..
#define _Zui_Epg_Schedule_List_Item_1_Mode_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Mode_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_1_Mode_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Mode_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_BG styles..
#define _Zui_Epg_Schedule_List_Item_2_Bg_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2 styles..
#define _Zui_Epg_Schedule_List_Item_2_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_TITLE styles..
#define _Zui_Epg_Schedule_List_Item_2_Title_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Title_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Title_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_TIME styles..
#define _Zui_Epg_Schedule_List_Item_2_Time_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Time_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Time_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_DATE styles..
#define _Zui_Epg_Schedule_List_Item_2_Date_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Date_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Date_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_PROGRAMME styles..
#define _Zui_Epg_Schedule_List_Item_2_Programme_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Programme_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Programme_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_ICON styles..
#define _Zui_Epg_Schedule_List_Item_2_Icon_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Icon_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Icon_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_2_MODE styles..
#define _Zui_Epg_Schedule_List_Item_2_Mode_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Mode_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_2_Mode_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Mode_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_BG styles..
#define _Zui_Epg_Schedule_List_Item_3_Bg_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3 styles..
#define _Zui_Epg_Schedule_List_Item_3_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_TITLE styles..
#define _Zui_Epg_Schedule_List_Item_3_Title_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Title_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Title_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_TIME styles..
#define _Zui_Epg_Schedule_List_Item_3_Time_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Time_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Time_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_DATE styles..
#define _Zui_Epg_Schedule_List_Item_3_Date_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Date_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Date_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_PROGRAMME styles..
#define _Zui_Epg_Schedule_List_Item_3_Programme_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Programme_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Programme_Disabled_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_ICON styles..
#define _Zui_Epg_Schedule_List_Item_3_Icon_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Icon_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Icon_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Icon_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_SCHEDULE_LIST_ITEM_3_MODE styles..
#define _Zui_Epg_Schedule_List_Item_3_Mode_Normal_DrawStyle _Zui_Epg_Schedule_List_Item_0_Mode_Normal_DrawStyle
#define _Zui_Epg_Schedule_List_Item_3_Mode_Focus_DrawStyle _Zui_Epg_Schedule_List_Item_0_Mode_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG__HELP_BTN_SCHEDULE_LIST_DELETE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg__Help_Btn_Schedule_List_Delete_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_196 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg__Help_Btn_Schedule_List_Delete_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_197 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_HELP_BTN_SCHEDULE_LIST_DELETE_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Help_Btn_Schedule_List_Delete_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_630 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Help_Btn_Schedule_List_Delete_Txt_Focus_DrawStyle _Zui_Epg_Help_Btn_Schedule_List_Delete_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_PANEL styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bg_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_198 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Bg_Focus_DrawStyle _Zui_Epg_Recorder_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_BG_L styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bg_L_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_199 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_BG_R styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bg_R_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_200 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_BG_OK styles..
#define _Zui_Epg_Recorder_Bg_Ok_Normal_DrawStyle _Zui_Epg_Help_Ok_Icon_Normal_DrawStyle
#define _Zui_Epg_Recorder_Bg_Ok_Focus_DrawStyle _Zui_Epg_Help_Ok_Icon_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_BG_BACK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bg_Back_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_201 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Bg_Back_Focus_DrawStyle _Zui_Epg_Recorder_Bg_Back_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_BG_UP_ARROW styles..
#define _Zui_Epg_Recorder_Bg_Up_Arrow_Normal_DrawStyle _Zui_Epg_Pro_Guide_Up_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_BG_DOWN_ARROW styles..
#define _Zui_Epg_Recorder_Bg_Down_Arrow_Normal_DrawStyle _Zui_Epg_Pro_Guide_Down_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_BGND_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bgnd_Title_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_27 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_631 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_BGND_START_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bgnd_Start_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_632 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_BGND_END_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Bgnd_End_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_633 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_BGND_SETTING styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_ITEM styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_TEXT styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_BG styles..
#define _Zui_Epg_Recorder_Programme_Bg_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_SETTING styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Programme_Setting_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_634 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Programme_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_635 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Programme_Setting_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_636 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_Programme_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_Programme_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_INC styles..
#define _Zui_Epg_Recorder_Programme_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_PROGRAMME_DEC styles..
#define _Zui_Epg_Recorder_Programme_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_ITEM styles..
#define _Zui_Epg_Recorder_Start_Time_Min_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Min_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_637 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Min_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_638 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Min_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_639 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_SETTING styles..
#define _Zui_Epg_Recorder_Start_Time_Min_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_640 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_641 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Min_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Min_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_INC styles..
#define _Zui_Epg_Recorder_Start_Time_Min_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MIN_DEC styles..
#define _Zui_Epg_Recorder_Start_Time_Min_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_ITEM styles..
#define _Zui_Epg_Recorder_Start_Time_Hour_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Hour_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_642 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Hour_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_643 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Hour_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_644 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_SETTING styles..
#define _Zui_Epg_Recorder_Start_Time_Hour_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_Start_Time_Hour_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_Start_Time_Hour_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Hour_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Hour_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_INC styles..
#define _Zui_Epg_Recorder_Start_Time_Hour_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_HOUR_DEC styles..
#define _Zui_Epg_Recorder_Start_Time_Hour_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_ITEM styles..
#define _Zui_Epg_Recorder_Start_Time_Month_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Month_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_645 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Month_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_646 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Month_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_647 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_SETTING styles..
#define _Zui_Epg_Recorder_Start_Time_Month_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_Start_Time_Month_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_Start_Time_Month_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Month_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Month_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_INC styles..
#define _Zui_Epg_Recorder_Start_Time_Month_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_MONTH_DEC styles..
#define _Zui_Epg_Recorder_Start_Time_Month_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_ITEM styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_TXT styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Txt_Normal_DrawStyle _Zui_Epg_Schedule_List_Head_Date_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Date_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_648 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Start_Time_Date_Txt_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_649 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_SETTING styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_Start_Time_Date_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_Start_Time_Date_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_INC styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_START_TIME_DATE_DEC styles..
#define _Zui_Epg_Recorder_Start_Time_Date_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_ITEM styles..
#define _Zui_Epg_Recorder_End_Time_Min_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_TEXT styles..
#define _Zui_Epg_Recorder_End_Time_Min_Text_Normal_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Text_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Min_Text_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Text_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Min_Text_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_SETTING styles..
#define _Zui_Epg_Recorder_End_Time_Min_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Min_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Min_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Min_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Min_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_INC styles..
#define _Zui_Epg_Recorder_End_Time_Min_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MIN_DEC styles..
#define _Zui_Epg_Recorder_End_Time_Min_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_ITEM styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_TEXT styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Text_Normal_DrawStyle _Zui_Epg_Recorder_Start_Time_Hour_Text_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Hour_Text_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Hour_Text_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Hour_Text_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Hour_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_SETTING styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Hour_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Hour_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_INC styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_HOUR_DEC styles..
#define _Zui_Epg_Recorder_End_Time_Hour_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_ITEM styles..
#define _Zui_Epg_Recorder_End_Time_Month_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_TEXT styles..
#define _Zui_Epg_Recorder_End_Time_Month_Text_Normal_DrawStyle _Zui_Epg_Recorder_Start_Time_Month_Text_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Month_Text_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Month_Text_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Month_Text_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Month_Text_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_SETTING styles..
#define _Zui_Epg_Recorder_End_Time_Month_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Month_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Month_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Month_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Month_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_INC styles..
#define _Zui_Epg_Recorder_End_Time_Month_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_MONTH_DEC styles..
#define _Zui_Epg_Recorder_End_Time_Month_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_ITEM styles..
#define _Zui_Epg_Recorder_End_Time_Date_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_TXT styles..
#define _Zui_Epg_Recorder_End_Time_Date_Txt_Normal_DrawStyle _Zui_Epg_Schedule_List_Head_Date_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Date_Txt_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Date_Txt_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Date_Txt_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Date_Txt_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_SETTING styles..
#define _Zui_Epg_Recorder_End_Time_Date_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Date_Setting_Focus_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle
#define _Zui_Epg_Recorder_End_Time_Date_Setting_Disabled_DrawStyle _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Date_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_End_Time_Date_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_INC styles..
#define _Zui_Epg_Recorder_End_Time_Date_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_END_TIME_DATE_DEC styles..
#define _Zui_Epg_Recorder_End_Time_Date_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_ITEM styles..
#define _Zui_Epg_Recorder_Mode_Item_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_TEXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Mode_Text_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_650 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Mode_Text_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_651 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Mode_Text_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_652 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_SETTING styles..
#define _Zui_Epg_Recorder_Mode_Setting_Normal_DrawStyle _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Mode_Setting_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_653 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Mode_Setting_Disabled_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_654 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_LEFT_ARROW styles..
#define _Zui_Epg_Recorder_Mode_Left_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_RIGHT_ARROW styles..
#define _Zui_Epg_Recorder_Mode_Right_Arrow_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_INC styles..
#define _Zui_Epg_Recorder_Mode_Inc_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_DEC styles..
#define _Zui_Epg_Recorder_Mode_Dec_Focus_DrawStyle _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_MODE_STAR styles..
#define _Zui_Epg_Recorder_Mode_Star_Normal_DrawStyle _Zui_Epg_Reminder_Mode_Star_Normal_DrawStyle
#define _Zui_Epg_Recorder_Mode_Star_Focus_DrawStyle _Zui_Epg_Reminder_Mode_Star_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BG_PANE styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BG_TOP styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Bg_Top_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NEW_BG_L styles..
#define _Zui_Epg_Recorder_Popup_Dlg_New_Bg_L_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NEW_BG_C styles..
#define _Zui_Epg_Recorder_Popup_Dlg_New_Bg_C_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NEW_BG_R styles..
#define _Zui_Epg_Recorder_Popup_Dlg_New_Bg_R_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BG_L styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Bg_L_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BG_C styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Bg_C_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BG_R styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Bg_R_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BG_ICON styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Bg_Icon_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Btn_Ok_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_TEXT_PANE styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_TEXT1 styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Text1_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_TEXT2 styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Text2_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_TEXT3 styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Text3_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_BTN_PANE styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_OK styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_YES styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_YES_LEFT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_55 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_YES_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Popup_Dlg_Yes_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_655 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Popup_Dlg_Yes_Txt_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NO styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NO_RIGHT_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_57 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NO_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_290 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_PANEL styles..
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Bg_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_6 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_YEAR_ITEM styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_Item_Focus_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_6 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_YEAR_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_656 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_657 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_YEAR_L_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_142 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_YEAR_R_ARROW styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_202 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_YEAR_OPTION styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_Option_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_658 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Year_Option_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_659 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MONTH_ITEM styles..
#define _Zui_Epg_Rec_Time_Steeing_Month_Item_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Item_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MONTH_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Month_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_660 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Month_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_661 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MONTH_L_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Month_L_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Month_L_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MONTH_R_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Month_R_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Month_R_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MONTH_OPTION styles..
#define _Zui_Epg_Rec_Time_Steeing_Month_Option_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Month_Option_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_DATE_ITEM styles..
#define _Zui_Epg_Rec_Time_Steeing_Date_Item_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Item_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_DATE_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Date_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_662 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Date_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_663 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_DATE_L_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Date_L_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Date_L_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_DATE_R_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Date_R_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Date_R_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_DATE_OPTION styles..
#define _Zui_Epg_Rec_Time_Steeing_Date_Option_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Date_Option_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_HOUR_ITEM styles..
#define _Zui_Epg_Rec_Time_Steeing_Hour_Item_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Item_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_HOUR_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Hour_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_664 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Hour_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_665 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_HOUR_L_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Hour_L_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Hour_L_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_HOUR_R_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Hour_R_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Hour_R_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_HOUR_OPTION styles..
#define _Zui_Epg_Rec_Time_Steeing_Hour_Option_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Hour_Option_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MIN_ITEM styles..
#define _Zui_Epg_Rec_Time_Steeing_Min_Item_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Item_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MIN_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Min_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_666 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Min_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_667 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MIN_L_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Min_L_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Min_L_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MIN_R_ARROW styles..
#define _Zui_Epg_Rec_Time_Steeing_Min_R_Arrow_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Min_R_Arrow_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_MIN_OPTION styles..
#define _Zui_Epg_Rec_Time_Steeing_Min_Option_Normal_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Normal_DrawStyle
#define _Zui_Epg_Rec_Time_Steeing_Min_Option_Focus_DrawStyle _Zui_Epg_Rec_Time_Steeing_Year_Option_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_BAR styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Bar_Normal_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_7 },
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_3 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_REC_TIME_STEEING_CLOSE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Close_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_668 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Rec_Time_Steeing_Close_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_203 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_669 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_PANEL styles..
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_BGND_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Bgnd_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_670 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_BG_RND styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Bg_Rnd_Normal_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_4 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Schedule_List_Bg_Rnd_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Bg_Rnd_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_BG styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_Bg_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_7 },
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_4 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_HEAD styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Head_Normal_DrawStyle[] =
{
{ CP_FILL_RECT, CP_ZUI_FILL_RECT_INDEX_8 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_671 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_TIME styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Time_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_672 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_DATE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Date_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_673 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_PROM styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Prom_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_674 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_MODE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Mode_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_675 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_0 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Item_0_Normal_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_8 },
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_5 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Item_0_Focus_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_9 },
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_7 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Item_0_Disabled_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_10 },
{ CP_RECT_BORDER, CP_ZUI_RECT_BORDER_INDEX_6 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_0_TITLE styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_105 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_84 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_0_TIME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Time_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Time_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Time_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_0_DATE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Date_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Date_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Date_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_0_PROGRAMME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Programme_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Programme_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Programme_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_0_MODE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Mode_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Mode_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_0_Mode_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_1 styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_1_TITLE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Title_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Title_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Title_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_1_TIME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Time_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Time_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Time_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_1_DATE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Date_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Date_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Date_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_1_PROGRAMME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Programme_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Programme_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Programme_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_1_MODE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Mode_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Mode_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_1_Mode_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_2 styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_2_TITLE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Title_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Title_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Title_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_2_TIME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Time_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Time_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Time_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_2_DATE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Date_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Date_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Date_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_2_PROGRAMME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Programme_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Programme_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Programme_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_2_MODE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Mode_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Mode_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_2_Mode_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_3 styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_3_TITLE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Title_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Title_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Title_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_3_TIME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Time_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Time_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Time_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_3_DATE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Date_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Date_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Date_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_3_PROGRAMME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Programme_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Programme_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Programme_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_3_MODE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Mode_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Mode_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_3_Mode_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_4 styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Disabled_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_4_TITLE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Title_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Title_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Title_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_4_TIME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Time_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Time_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Time_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_4_DATE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Date_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Date_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Date_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_4_PROGRAMME styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Programme_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Programme_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Programme_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_SCHEDULE_LIST_ITEM_4_MODE styles..
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Mode_Normal_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Mode_Focus_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle
#define _Zui_Epg_Recorder_Schedule_List_Item_4_Mode_Disabled_DrawStyle _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG__RECORDER_HELP_BTN_SCHEDULE_LIST_DELETE styles..
#define _Zui_Epg__Recorder_Help_Btn_Schedule_List_Delete_Normal_DrawStyle _Zui_Epg__Help_Btn_Schedule_List_Delete_Normal_DrawStyle
#define _Zui_Epg__Recorder_Help_Btn_Schedule_List_Delete_Focus_DrawStyle _Zui_Epg__Help_Btn_Schedule_List_Delete_Focus_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_HELP_BTN_SCHEDULE_LIST_DELETE_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Help_Btn_Schedule_List_Delete_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_676 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Recorder_Help_Btn_Schedule_List_Delete_Txt_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_677 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_PANE styles..
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_TOP styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_Top_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_L styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_L_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_C styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_C_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_R styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_R_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_TXT_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Txt_1_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_678 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Txt_1_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_679 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_TXT_2 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Txt_2_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_567 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Txt_2_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_680 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_CONFIRM_BTN_PANE styles..
/////////////////////////////////////////////////////
// EPG_COMMON_BTN_CLEAR styles..
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_CONFIRM_BTN_OK_LEFT_ARROW styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Left_Arrow_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Left_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_56 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_CONFIRM_BTN_OK styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_568 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_569 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_COMMON_BTN_OK styles..
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_CONFIRM_BTN_EXIT_RIGHT_ARROW styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Exit_Right_Arrow_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Exit_Right_Arrow_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_58 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_CONFIRM_BTN_CANCEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Cancel_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_570 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Cancel_Focus_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_571 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_PANE styles..
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BG_CLEAR styles..
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BG_TOP styles..
#define _Zui_Epg_Countdown_Bg_Top_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BG_L styles..
#define _Zui_Epg_Countdown_Bg_L_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BG_C styles..
#define _Zui_Epg_Countdown_Bg_C_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BG_R styles..
#define _Zui_Epg_Countdown_Bg_R_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BUTTON_BAR styles..
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BTN_YES styles..
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BTN_CLEAR_LEFT_ARROW styles..
#define _Zui_Epg_Countdown_Btn_Clear_Left_Arrow_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle
#define _Zui_Epg_Countdown_Btn_Clear_Left_Arrow_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BTN_CLEAR_LEFT_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Countdown_Btn_Clear_Left_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_288 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Countdown_Btn_Clear_Left_Txt_Focus_DrawStyle _Zui_Epg_Countdown_Btn_Clear_Left_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BTN_NO styles..
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BTN_CLEAR_OK_LEFT_ARROW styles..
#define _Zui_Epg_Countdown_Btn_Clear_Ok_Left_Arrow_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle
#define _Zui_Epg_Countdown_Btn_Clear_Ok_Left_Arrow_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_BTN_CLEAR_OK_TXT styles..
#define _Zui_Epg_Countdown_Btn_Clear_Ok_Txt_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Normal_DrawStyle
#define _Zui_Epg_Countdown_Btn_Clear_Ok_Txt_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_COUNTDOWN_MSG_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Countdown_Msg_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_312 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Countdown_Msg_Txt_Focus_DrawStyle _Zui_Epg_Countdown_Msg_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_PANE_1 styles..
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_CLEAN_1 styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_Clean_1_Normal_DrawStyle _Zui_Epg_Transparent_Bg_Normal_DrawStyle
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_Clean_1_Focus_DrawStyle _Zui_Epg_Transparent_Bg_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_1 styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_1_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_C_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_1_TOP styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_1_Top_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_Top_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_1_L styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_1_L_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_L_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_BG_1_R styles..
#define _Zui_Epg_Pvr_Warning_Dlg_Bg_1_R_Normal_DrawStyle _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_R_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_ICON_1 styles..
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_CHANGE_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Change_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_681 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Pvr_Alternate_Change_Txt_Focus_DrawStyle _Zui_Epg_Pvr_Alternate_Change_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_RECORDING_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Recording_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_682 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Pvr_Alternate_Recording_Txt_Focus_DrawStyle _Zui_Epg_Pvr_Alternate_Recording_Txt_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_WARNING_DLG_CONFIRM_BTN_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_1_Focus_DrawStyle[] =
{
{ CP_RECT, CP_ZUI_RECT_INDEX_7 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_BTN_BTN_OK styles..
#define _Zui_Epg_Pvr_Alternate_Btn_Btn_Ok_Normal_DrawStyle _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Normal_DrawStyle
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Btn_Btn_Ok_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_203 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_568 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_BTN_CANCEL styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Btn_Cancel_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_294 },
{ CP_NOON, 0 },
};
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Btn_Cancel_Focus_DrawStyle[] =
{
{ CP_BITMAP, CP_ZUI_BITMAP_INDEX_203 },
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_294 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_YES_LEFT_ARROW_1 styles..
#define _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_1_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle
#define _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_1_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_RECORDER_POPUP_DLG_NO_RIGHT_ARROW_1 styles..
#define _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_1_Normal_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle
#define _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_1_Focus_DrawStyle _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_TIMER_TXT styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Timer_Txt_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_683 },
{ CP_NOON, 0 },
};
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_DYNAMIC_TXT_1 styles..
static DRAWSTYLE _MP_TBLSEG _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Normal_DrawStyle[] =
{
{ CP_TEXT_OUT, CP_ZUI_TEXT_OUT_INDEX_277 },
{ CP_NOON, 0 },
};
#define _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Focus_DrawStyle _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Normal_DrawStyle
/////////////////////////////////////////////////////
// EPG_PVR_ALTERNATE_DYNAMIC_TXT styles..
#define _Zui_Epg_Pvr_Alternate_Dynamic_Txt_Normal_DrawStyle _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Normal_DrawStyle
#define _Zui_Epg_Pvr_Alternate_Dynamic_Txt_Focus_DrawStyle _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Normal_DrawStyle
//////////////////////////////////////////////////////
// Window Draw Style List (normal, focused, disable)
WINDOWDRAWSTYLEDATA _MP_TBLSEG _GUI_WindowsDrawStyleList_Zui_Epg[] =
{
// HWND_MAINFRAME
{ NULL, NULL, NULL },
// HWND_EPG_TRANSPARENT_BG
{ _Zui_Epg_Transparent_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PRO_GUIDE_PANEL
{ _Zui_Epg_Pro_Guide_Panel_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PRO_GUIDE_PANEL_BG
{ NULL, NULL, NULL },
// HWND_EPG_PRO_GUIDE_PANEL_BG_L
{ _Zui_Epg_Pro_Guide_Panel_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PRO_GUIDE_PANEL_BG_C
{ _Zui_Epg_Pro_Guide_Panel_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PRO_GUIDE_PANEL_BG_R
{ _Zui_Epg_Pro_Guide_Panel_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PRO_GUIDE_TITLE
{ NULL, NULL, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_FOCUS_L
{ NULL, _Zui_Epg_Pro_Guide_Title_Focus_L_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_FOCUS_C
{ NULL, _Zui_Epg_Pro_Guide_Title_Focus_C_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_FOCUS_R
{ NULL, _Zui_Epg_Pro_Guide_Title_Focus_R_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_TEXT
{ _Zui_Epg_Pro_Guide_Title_Text_Normal_DrawStyle, _Zui_Epg_Pro_Guide_Title_Text_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_LEFT_ARROW
{ NULL, _Zui_Epg_Pro_Guide_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_RIGHT_ARROW
{ NULL, _Zui_Epg_Pro_Guide_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TYPE_CHANNEL
{ _Zui_Epg_Pro_Guide_Type_Channel_Normal_DrawStyle, _Zui_Epg_Pro_Guide_Type_Channel_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TYPE_TIME
{ _Zui_Epg_Pro_Guide_Type_Time_Normal_DrawStyle, _Zui_Epg_Pro_Guide_Type_Time_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_CHANNEL
{ NULL, _Zui_Epg_Pro_Guide_Title_Channel_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNEL
{ _Zui_Epg_Channel_Normal_DrawStyle, _Zui_Epg_Channel_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNEL_SERVICE
{ _Zui_Epg_Channel_Service_Normal_DrawStyle, _Zui_Epg_Channel_Service_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_CHANNEL_LEFT_ARROW
{ NULL, _Zui_Epg_Pro_Guide_Title_Channel_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_CHANNEL_RIGHT_ARROW
{ NULL, _Zui_Epg_Pro_Guide_Title_Channel_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_CHANNEL_INC
{ NULL, _Zui_Epg_Pro_Guide_Title_Channel_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_CHANNEL_DEC
{ NULL, _Zui_Epg_Pro_Guide_Title_Channel_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM
{ NULL, NULL, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_1
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_1_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM1_TIME
{ _Zui_Epg_Channelitem1_Time_Normal_DrawStyle, _Zui_Epg_Channelitem1_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM1_EVENT
{ _Zui_Epg_Channelitem1_Event_Normal_DrawStyle, _Zui_Epg_Channelitem1_Event_Focus_DrawStyle, _Zui_Epg_Channelitem1_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM1_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem1_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_2
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_2_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM2_TIME
{ _Zui_Epg_Channelitem2_Time_Normal_DrawStyle, _Zui_Epg_Channelitem2_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM2_EVENT
{ _Zui_Epg_Channelitem2_Event_Normal_DrawStyle, _Zui_Epg_Channelitem2_Event_Focus_DrawStyle, _Zui_Epg_Channelitem2_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM2_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem2_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_3
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_3_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM3_TIME
{ _Zui_Epg_Channelitem3_Time_Normal_DrawStyle, _Zui_Epg_Channelitem3_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM3_EVENT
{ _Zui_Epg_Channelitem3_Event_Normal_DrawStyle, _Zui_Epg_Channelitem3_Event_Focus_DrawStyle, _Zui_Epg_Channelitem3_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM3_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem3_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_4
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_4_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM4_TIME
{ _Zui_Epg_Channelitem4_Time_Normal_DrawStyle, _Zui_Epg_Channelitem4_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM4_EVENT
{ _Zui_Epg_Channelitem4_Event_Normal_DrawStyle, _Zui_Epg_Channelitem4_Event_Focus_DrawStyle, _Zui_Epg_Channelitem4_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM4_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem4_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_5
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_5_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM5_TIME
{ _Zui_Epg_Channelitem5_Time_Normal_DrawStyle, _Zui_Epg_Channelitem5_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM5_EVENT
{ _Zui_Epg_Channelitem5_Event_Normal_DrawStyle, _Zui_Epg_Channelitem5_Event_Focus_DrawStyle, _Zui_Epg_Channelitem5_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM5_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem5_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_6
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_6_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM6_TIME
{ _Zui_Epg_Channelitem6_Time_Normal_DrawStyle, _Zui_Epg_Channelitem6_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM6_EVENT
{ _Zui_Epg_Channelitem6_Event_Normal_DrawStyle, _Zui_Epg_Channelitem6_Event_Focus_DrawStyle, _Zui_Epg_Channelitem6_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM6_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem6_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_7
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_7_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM7_TIME
{ _Zui_Epg_Channelitem7_Time_Normal_DrawStyle, _Zui_Epg_Channelitem7_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM7_EVENT
{ _Zui_Epg_Channelitem7_Event_Normal_DrawStyle, _Zui_Epg_Channelitem7_Event_Focus_DrawStyle, _Zui_Epg_Channelitem7_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM7_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem7_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_CHANNEL_ITEM_8
{ NULL, _Zui_Epg_Pro_Guide_Channel_Item_8_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM8_TIME
{ _Zui_Epg_Channelitem8_Time_Normal_DrawStyle, _Zui_Epg_Channelitem8_Time_Focus_DrawStyle, NULL },
// HWND_EPG_CHANNELITEM8_EVENT
{ _Zui_Epg_Channelitem8_Event_Normal_DrawStyle, _Zui_Epg_Channelitem8_Event_Focus_DrawStyle, _Zui_Epg_Channelitem8_Event_Disabled_DrawStyle },
// HWND_EPG_CHANNELITEM8_ARROW_ICON
{ NULL, _Zui_Epg_Channelitem8_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_TIME
{ NULL, _Zui_Epg_Pro_Guide_Title_Time_Focus_DrawStyle, NULL },
// HWND_EPG_PAGE_DATE
{ _Zui_Epg_Page_Date_Normal_DrawStyle, _Zui_Epg_Page_Date_Focus_DrawStyle, NULL },
// HWND_EPG_SYSTEM_TIME
{ _Zui_Epg_System_Time_Normal_DrawStyle, _Zui_Epg_System_Time_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_TIME_LEFT_ARROW
{ NULL, _Zui_Epg_Pro_Guide_Title_Time_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_TIME_RIGHT_ARROW
{ NULL, _Zui_Epg_Pro_Guide_Title_Time_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_TIME_INC
{ NULL, _Zui_Epg_Pro_Guide_Title_Time_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TITLE_TIME_DEC
{ NULL, _Zui_Epg_Pro_Guide_Title_Time_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM
{ NULL, NULL, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_1
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_1_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM1_SERVICE
{ _Zui_Epg_Timeitem1_Service_Normal_DrawStyle, _Zui_Epg_Timeitem1_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM1_EVENT
{ _Zui_Epg_Timeitem1_Event_Normal_DrawStyle, _Zui_Epg_Timeitem1_Event_Focus_DrawStyle, _Zui_Epg_Timeitem1_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM1_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem1_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_2
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_2_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM2_SERVICE
{ _Zui_Epg_Timeitem2_Service_Normal_DrawStyle, _Zui_Epg_Timeitem2_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM2_EVENT
{ _Zui_Epg_Timeitem2_Event_Normal_DrawStyle, _Zui_Epg_Timeitem2_Event_Focus_DrawStyle, _Zui_Epg_Timeitem2_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM2_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem2_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_3
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_3_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM3_SERVICE
{ _Zui_Epg_Timeitem3_Service_Normal_DrawStyle, _Zui_Epg_Timeitem3_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM3_EVENT
{ _Zui_Epg_Timeitem3_Event_Normal_DrawStyle, _Zui_Epg_Timeitem3_Event_Focus_DrawStyle, _Zui_Epg_Timeitem3_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM3_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem3_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_4
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_4_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM4_SERVICE
{ _Zui_Epg_Timeitem4_Service_Normal_DrawStyle, _Zui_Epg_Timeitem4_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM4_EVENT
{ _Zui_Epg_Timeitem4_Event_Normal_DrawStyle, _Zui_Epg_Timeitem4_Event_Focus_DrawStyle, _Zui_Epg_Timeitem4_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM4_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem4_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_5
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_5_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM5_SERVICE
{ _Zui_Epg_Timeitem5_Service_Normal_DrawStyle, _Zui_Epg_Timeitem5_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM5_EVENT
{ _Zui_Epg_Timeitem5_Event_Normal_DrawStyle, _Zui_Epg_Timeitem5_Event_Focus_DrawStyle, _Zui_Epg_Timeitem5_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM5_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem5_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_6
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_6_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM6_SERVICE
{ _Zui_Epg_Timeitem6_Service_Normal_DrawStyle, _Zui_Epg_Timeitem6_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM6_EVENT
{ _Zui_Epg_Timeitem6_Event_Normal_DrawStyle, _Zui_Epg_Timeitem6_Event_Focus_DrawStyle, _Zui_Epg_Timeitem6_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM6_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem6_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_7
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_7_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM7_SERVICE
{ _Zui_Epg_Timeitem7_Service_Normal_DrawStyle, _Zui_Epg_Timeitem7_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM7_EVENT
{ _Zui_Epg_Timeitem7_Event_Normal_DrawStyle, _Zui_Epg_Timeitem7_Event_Focus_DrawStyle, _Zui_Epg_Timeitem7_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM7_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem7_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_TIME_ITEM_8
{ NULL, _Zui_Epg_Pro_Guide_Time_Item_8_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM8_SERVICE
{ _Zui_Epg_Timeitem8_Service_Normal_DrawStyle, _Zui_Epg_Timeitem8_Service_Focus_DrawStyle, NULL },
// HWND_EPG_TIMEITEM8_EVENT
{ _Zui_Epg_Timeitem8_Event_Normal_DrawStyle, _Zui_Epg_Timeitem8_Event_Focus_DrawStyle, _Zui_Epg_Timeitem8_Event_Disabled_DrawStyle },
// HWND_EPG_TIMEITEM8_ARROW_ICON
{ NULL, _Zui_Epg_Timeitem8_Arrow_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_PRO_GUIDE_UP_ARROW
{ _Zui_Epg_Pro_Guide_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PRO_GUIDE_DOWN_ARROW
{ _Zui_Epg_Pro_Guide_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_ALL_HELP_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_HELP_CONTROL_ICON_RED
{ _Zui_Epg_Help_Control_Icon_Red_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_HELP_CONTROL_ICON_GREEN
{ _Zui_Epg_Help_Control_Icon_Green_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_HELP_CONTROL_ICON_YELLOW
{ _Zui_Epg_Help_Control_Icon_Yellow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_HELP_CONTROL_ICON_BLUE
{ _Zui_Epg_Help_Control_Icon_Blue_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_HELP_OK_ICON
{ _Zui_Epg_Help_Ok_Icon_Normal_DrawStyle, _Zui_Epg_Help_Ok_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_HELP_INDEX_ICON
{ _Zui_Epg_Help_Index_Icon_Normal_DrawStyle, _Zui_Epg_Help_Index_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_ALL_INFO_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_INFO_DESC_BG
{ _Zui_Epg_Info_Desc_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_INFO_DESC_BG_L
{ _Zui_Epg_Info_Desc_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_INFO_DESC_BG_R
{ _Zui_Epg_Info_Desc_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_INFO_EVENT_DATE
{ _Zui_Epg_Info_Event_Date_Normal_DrawStyle, _Zui_Epg_Info_Event_Date_Focus_DrawStyle, NULL },
// HWND_EPG_INFO_EVENT_START_TIME
{ _Zui_Epg_Info_Event_Start_Time_Normal_DrawStyle, _Zui_Epg_Info_Event_Start_Time_Focus_DrawStyle, NULL },
// HWND_EPG_INFO_EVENT_END_TIME
{ _Zui_Epg_Info_Event_End_Time_Normal_DrawStyle, _Zui_Epg_Info_Event_End_Time_Focus_DrawStyle, NULL },
// HWND_EPG_INFO_DESC_TEXT
{ _Zui_Epg_Info_Desc_Text_Normal_DrawStyle, _Zui_Epg_Info_Desc_Text_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_REMINDER_PAGE_BG_L
{ _Zui_Epg_Reminder_Page_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_PAGE_BG_C
{ _Zui_Epg_Reminder_Page_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_PAGE_BG_R
{ _Zui_Epg_Reminder_Page_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_PAGE_BG_TOP
{ _Zui_Epg_Reminder_Page_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_BGND_SETTING
{ NULL, NULL, NULL },
// HWND_EPG_REMINDER_PROGRAMME
{ NULL, _Zui_Epg_Reminder_Programme_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_PROGRAMME_SETTING
{ _Zui_Epg_Reminder_Programme_Setting_Normal_DrawStyle, _Zui_Epg_Reminder_Programme_Setting_Focus_DrawStyle, _Zui_Epg_Reminder_Programme_Setting_Disabled_DrawStyle },
// HWND_EPG_REMINDER_PROGRAMME_LEFT_ARROW
{ NULL, _Zui_Epg_Reminder_Programme_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_PROGRAMME_RIGHT_ARROW
{ NULL, _Zui_Epg_Reminder_Programme_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_PROGRAMME_INC
{ NULL, _Zui_Epg_Reminder_Programme_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_PROGRAMME_DEC
{ NULL, _Zui_Epg_Reminder_Programme_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MINUTE
{ NULL, _Zui_Epg_Reminder_Minute_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MINUTE_SETTING
{ _Zui_Epg_Reminder_Minute_Setting_Normal_DrawStyle, _Zui_Epg_Reminder_Minute_Setting_Focus_DrawStyle, _Zui_Epg_Reminder_Minute_Setting_Disabled_DrawStyle },
// HWND_EPG_REMINDER_MINUTE_LEFT_ARROW
{ NULL, _Zui_Epg_Reminder_Minute_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MINUTE_RIGHT_ARROW
{ NULL, _Zui_Epg_Reminder_Minute_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MINUTE_INC
{ NULL, _Zui_Epg_Reminder_Minute_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MINUTE_DEC
{ NULL, _Zui_Epg_Reminder_Minute_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_HOUR
{ NULL, _Zui_Epg_Reminder_Hour_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_HOUR_SETTING
{ _Zui_Epg_Reminder_Hour_Setting_Normal_DrawStyle, _Zui_Epg_Reminder_Hour_Setting_Focus_DrawStyle, _Zui_Epg_Reminder_Hour_Setting_Disabled_DrawStyle },
// HWND_EPG_REMINDER_HOUR_LEFT_ARROW
{ NULL, _Zui_Epg_Reminder_Hour_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_HOUR_RIGHT_ARROW
{ NULL, _Zui_Epg_Reminder_Hour_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_HOUR_INC
{ NULL, _Zui_Epg_Reminder_Hour_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_HOUR_DEC
{ NULL, _Zui_Epg_Reminder_Hour_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MONTH
{ NULL, _Zui_Epg_Reminder_Month_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MONTH_SETTING
{ _Zui_Epg_Reminder_Month_Setting_Normal_DrawStyle, _Zui_Epg_Reminder_Month_Setting_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MONTH_LEFT_ARROW
{ NULL, _Zui_Epg_Reminder_Month_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MONTH_RIGHT_ARROW
{ NULL, _Zui_Epg_Reminder_Month_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MONTH_INC
{ NULL, _Zui_Epg_Reminder_Month_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MONTH_DEC
{ NULL, _Zui_Epg_Reminder_Month_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_DATE
{ NULL, _Zui_Epg_Reminder_Date_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_DATE_SETTING
{ _Zui_Epg_Reminder_Date_Setting_Normal_DrawStyle, _Zui_Epg_Reminder_Date_Setting_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_DATE_LEFT_ARROW
{ NULL, _Zui_Epg_Reminder_Date_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_DATE_RIGHT_ARROW
{ NULL, _Zui_Epg_Reminder_Date_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_DATE_INC
{ NULL, _Zui_Epg_Reminder_Date_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_DATE_DEC
{ NULL, _Zui_Epg_Reminder_Date_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MODE
{ NULL, _Zui_Epg_Reminder_Mode_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MODE_SETTING
{ _Zui_Epg_Reminder_Mode_Setting_Normal_DrawStyle, _Zui_Epg_Reminder_Mode_Setting_Focus_DrawStyle, _Zui_Epg_Reminder_Mode_Setting_Disabled_DrawStyle },
// HWND_EPG_REMINDER_MODE_LEFT_ARROW
{ NULL, _Zui_Epg_Reminder_Mode_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MODE_RIGHT_ARROW
{ NULL, _Zui_Epg_Reminder_Mode_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MODE_INC
{ NULL, _Zui_Epg_Reminder_Mode_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MODE_DEC
{ NULL, _Zui_Epg_Reminder_Mode_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_MODE_STAR
{ _Zui_Epg_Reminder_Mode_Star_Normal_DrawStyle, _Zui_Epg_Reminder_Mode_Star_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG
{ NULL, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_BG_PANE
{ NULL, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_BG_TOP
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_NEW_BG_L
{ _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_NEW_BG_C
{ _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_NEW_BG_R
{ _Zui_Epg_Reminder_Timer_Save_Dlg_New_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_BG_C
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_BG_R
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_BG_L
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT_PANE
{ NULL, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT1
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text1_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT2
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text2_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_TEXT3
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Text3_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_BTN_PANE
{ NULL, NULL, NULL },
// HWND_EPG_REMINDER_TIMER_SAVE_DLG_MSGBOX_BTN_OK
{ _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Btn_Ok_Normal_DrawStyle, _Zui_Epg_Reminder_Timer_Save_Dlg_Msgbox_Btn_Ok_Focus_DrawStyle, NULL },
// HWND_EPG_REMINDER_PAGE_OK
{ _Zui_Epg_Reminder_Page_Ok_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_PAGE_BACK
{ _Zui_Epg_Reminder_Page_Back_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_PANEL_UP_ARROW
{ _Zui_Epg_Reminder_Panel_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REMINDER_PANEL_DOWN_ARROW
{ _Zui_Epg_Reminder_Panel_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_BGND_TITLE
{ _Zui_Epg_Schedule_List_Bgnd_Title_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_BGND_BG
{ _Zui_Epg_Schedule_List_Bgnd_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_BGND_TITLE_TEXT
{ _Zui_Epg_Schedule_List_Bgnd_Title_Text_Normal_DrawStyle, _Zui_Epg_Schedule_List_Bgnd_Title_Text_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_BGND_TITLE_TIME
{ _Zui_Epg_Schedule_List_Bgnd_Title_Time_Normal_DrawStyle, _Zui_Epg_Schedule_List_Bgnd_Title_Time_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_BGND_TITLE_DATE
{ _Zui_Epg_Schedule_List_Bgnd_Title_Date_Normal_DrawStyle, _Zui_Epg_Schedule_List_Bgnd_Title_Date_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_HEAD
{ _Zui_Epg_Schedule_List_Head_Normal_DrawStyle, _Zui_Epg_Schedule_List_Head_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_HEAD_TIME
{ _Zui_Epg_Schedule_List_Head_Time_Normal_DrawStyle, _Zui_Epg_Schedule_List_Head_Time_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_HEAD_DATE
{ _Zui_Epg_Schedule_List_Head_Date_Normal_DrawStyle, _Zui_Epg_Schedule_List_Head_Date_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_HEAD_PROGRAMME_TITLE
{ _Zui_Epg_Schedule_List_Head_Programme_Title_Normal_DrawStyle, _Zui_Epg_Schedule_List_Head_Programme_Title_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_HEAD_CHANNEL_NAME
{ _Zui_Epg_Schedule_List_Head_Channel_Name_Normal_DrawStyle, _Zui_Epg_Schedule_List_Head_Channel_Name_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_BG
{ _Zui_Epg_Schedule_List_Item_0_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_0
{ NULL, _Zui_Epg_Schedule_List_Item_0_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_TITLE
{ _Zui_Epg_Schedule_List_Item_0_Title_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Title_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Title_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_TIME
{ _Zui_Epg_Schedule_List_Item_0_Time_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Time_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Time_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_DATE
{ _Zui_Epg_Schedule_List_Item_0_Date_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Date_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Date_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_PROGRAMME
{ _Zui_Epg_Schedule_List_Item_0_Programme_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Programme_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Programme_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_ICON
{ _Zui_Epg_Schedule_List_Item_0_Icon_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_0_MODE
{ _Zui_Epg_Schedule_List_Item_0_Mode_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_0_Mode_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_BG
{ _Zui_Epg_Schedule_List_Item_1_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_1
{ NULL, _Zui_Epg_Schedule_List_Item_1_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_TITLE
{ _Zui_Epg_Schedule_List_Item_1_Title_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Title_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Title_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_TIME
{ _Zui_Epg_Schedule_List_Item_1_Time_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Time_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Time_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_DATE
{ _Zui_Epg_Schedule_List_Item_1_Date_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Date_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Date_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_PROGRAMME
{ _Zui_Epg_Schedule_List_Item_1_Programme_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Programme_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Programme_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_ICON
{ _Zui_Epg_Schedule_List_Item_1_Icon_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_1_MODE
{ _Zui_Epg_Schedule_List_Item_1_Mode_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_1_Mode_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_BG
{ _Zui_Epg_Schedule_List_Item_2_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_2
{ NULL, _Zui_Epg_Schedule_List_Item_2_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_TITLE
{ _Zui_Epg_Schedule_List_Item_2_Title_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Title_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Title_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_TIME
{ _Zui_Epg_Schedule_List_Item_2_Time_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Time_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Time_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_DATE
{ _Zui_Epg_Schedule_List_Item_2_Date_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Date_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Date_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_PROGRAMME
{ _Zui_Epg_Schedule_List_Item_2_Programme_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Programme_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Programme_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_ICON
{ _Zui_Epg_Schedule_List_Item_2_Icon_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_2_MODE
{ _Zui_Epg_Schedule_List_Item_2_Mode_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_2_Mode_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_BG
{ _Zui_Epg_Schedule_List_Item_3_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_3
{ NULL, _Zui_Epg_Schedule_List_Item_3_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_TITLE
{ _Zui_Epg_Schedule_List_Item_3_Title_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Title_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Title_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_TIME
{ _Zui_Epg_Schedule_List_Item_3_Time_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Time_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Time_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_DATE
{ _Zui_Epg_Schedule_List_Item_3_Date_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Date_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Date_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_PROGRAMME
{ _Zui_Epg_Schedule_List_Item_3_Programme_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Programme_Focus_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Programme_Disabled_DrawStyle },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_ICON
{ _Zui_Epg_Schedule_List_Item_3_Icon_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Icon_Focus_DrawStyle, NULL },
// HWND_EPG_SCHEDULE_LIST_ITEM_3_MODE
{ _Zui_Epg_Schedule_List_Item_3_Mode_Normal_DrawStyle, _Zui_Epg_Schedule_List_Item_3_Mode_Focus_DrawStyle, NULL },
// HWND_EPG__HELP_BTN_SCHEDULE_LIST_DELETE
{ _Zui_Epg__Help_Btn_Schedule_List_Delete_Normal_DrawStyle, _Zui_Epg__Help_Btn_Schedule_List_Delete_Focus_DrawStyle, NULL },
// HWND_EPG_HELP_BTN_SCHEDULE_LIST_DELETE_TXT
{ _Zui_Epg_Help_Btn_Schedule_List_Delete_Txt_Normal_DrawStyle, _Zui_Epg_Help_Btn_Schedule_List_Delete_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_BG
{ _Zui_Epg_Recorder_Bg_Normal_DrawStyle, _Zui_Epg_Recorder_Bg_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_BG_L
{ _Zui_Epg_Recorder_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BG_R
{ _Zui_Epg_Recorder_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BG_OK
{ _Zui_Epg_Recorder_Bg_Ok_Normal_DrawStyle, _Zui_Epg_Recorder_Bg_Ok_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_BG_BACK
{ _Zui_Epg_Recorder_Bg_Back_Normal_DrawStyle, _Zui_Epg_Recorder_Bg_Back_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_BG_UP_ARROW
{ _Zui_Epg_Recorder_Bg_Up_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BG_DOWN_ARROW
{ _Zui_Epg_Recorder_Bg_Down_Arrow_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BGND_TITLE
{ _Zui_Epg_Recorder_Bgnd_Title_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BGND_START_TIME
{ _Zui_Epg_Recorder_Bgnd_Start_Time_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BGND_END_TIME
{ _Zui_Epg_Recorder_Bgnd_End_Time_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_BGND_SETTING
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_PROGRAMME_ITEM
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_PROGRAMME_TEXT
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_PROGRAMME_BG
{ NULL, _Zui_Epg_Recorder_Programme_Bg_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_PROGRAMME_SETTING
{ _Zui_Epg_Recorder_Programme_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_Programme_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_Programme_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_PROGRAMME_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_Programme_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_PROGRAMME_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_Programme_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_PROGRAMME_INC
{ NULL, _Zui_Epg_Recorder_Programme_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_PROGRAMME_DEC
{ NULL, _Zui_Epg_Recorder_Programme_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MIN_ITEM
{ NULL, _Zui_Epg_Recorder_Start_Time_Min_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MIN_TEXT
{ _Zui_Epg_Recorder_Start_Time_Min_Text_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Min_Text_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Min_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_MIN_SETTING
{ _Zui_Epg_Recorder_Start_Time_Min_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Min_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Min_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_MIN_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Min_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MIN_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Min_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MIN_INC
{ NULL, _Zui_Epg_Recorder_Start_Time_Min_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MIN_DEC
{ NULL, _Zui_Epg_Recorder_Start_Time_Min_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_HOUR_ITEM
{ NULL, _Zui_Epg_Recorder_Start_Time_Hour_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_HOUR_TEXT
{ _Zui_Epg_Recorder_Start_Time_Hour_Text_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Hour_Text_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Hour_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_HOUR_SETTING
{ _Zui_Epg_Recorder_Start_Time_Hour_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Hour_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Hour_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_HOUR_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Hour_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_HOUR_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Hour_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_HOUR_INC
{ NULL, _Zui_Epg_Recorder_Start_Time_Hour_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_HOUR_DEC
{ NULL, _Zui_Epg_Recorder_Start_Time_Hour_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MONTH_ITEM
{ NULL, _Zui_Epg_Recorder_Start_Time_Month_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MONTH_TEXT
{ _Zui_Epg_Recorder_Start_Time_Month_Text_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Month_Text_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Month_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_MONTH_SETTING
{ _Zui_Epg_Recorder_Start_Time_Month_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Month_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Month_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_MONTH_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Month_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MONTH_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Month_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MONTH_INC
{ NULL, _Zui_Epg_Recorder_Start_Time_Month_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_MONTH_DEC
{ NULL, _Zui_Epg_Recorder_Start_Time_Month_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_DATE_ITEM
{ NULL, _Zui_Epg_Recorder_Start_Time_Date_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_DATE_TXT
{ _Zui_Epg_Recorder_Start_Time_Date_Txt_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Date_Txt_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Date_Txt_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_DATE_SETTING
{ _Zui_Epg_Recorder_Start_Time_Date_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_Start_Time_Date_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_Start_Time_Date_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_START_TIME_DATE_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Date_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_DATE_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_Start_Time_Date_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_DATE_INC
{ NULL, _Zui_Epg_Recorder_Start_Time_Date_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_START_TIME_DATE_DEC
{ NULL, _Zui_Epg_Recorder_Start_Time_Date_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MIN_ITEM
{ NULL, _Zui_Epg_Recorder_End_Time_Min_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MIN_TEXT
{ _Zui_Epg_Recorder_End_Time_Min_Text_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Min_Text_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Min_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_MIN_SETTING
{ _Zui_Epg_Recorder_End_Time_Min_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Min_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Min_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_MIN_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Min_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MIN_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Min_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MIN_INC
{ NULL, _Zui_Epg_Recorder_End_Time_Min_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MIN_DEC
{ NULL, _Zui_Epg_Recorder_End_Time_Min_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_HOUR_ITEM
{ NULL, _Zui_Epg_Recorder_End_Time_Hour_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_HOUR_TEXT
{ _Zui_Epg_Recorder_End_Time_Hour_Text_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Hour_Text_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Hour_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_HOUR_SETTING
{ _Zui_Epg_Recorder_End_Time_Hour_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Hour_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Hour_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_HOUR_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Hour_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_HOUR_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Hour_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_HOUR_INC
{ NULL, _Zui_Epg_Recorder_End_Time_Hour_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_HOUR_DEC
{ NULL, _Zui_Epg_Recorder_End_Time_Hour_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MONTH_ITEM
{ NULL, _Zui_Epg_Recorder_End_Time_Month_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MONTH_TEXT
{ _Zui_Epg_Recorder_End_Time_Month_Text_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Month_Text_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Month_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_MONTH_SETTING
{ _Zui_Epg_Recorder_End_Time_Month_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Month_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Month_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_MONTH_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Month_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MONTH_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Month_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MONTH_INC
{ NULL, _Zui_Epg_Recorder_End_Time_Month_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_MONTH_DEC
{ NULL, _Zui_Epg_Recorder_End_Time_Month_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_DATE_ITEM
{ NULL, _Zui_Epg_Recorder_End_Time_Date_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_DATE_TXT
{ _Zui_Epg_Recorder_End_Time_Date_Txt_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Date_Txt_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Date_Txt_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_DATE_SETTING
{ _Zui_Epg_Recorder_End_Time_Date_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_End_Time_Date_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_End_Time_Date_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_END_TIME_DATE_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Date_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_DATE_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_End_Time_Date_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_DATE_INC
{ NULL, _Zui_Epg_Recorder_End_Time_Date_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_END_TIME_DATE_DEC
{ NULL, _Zui_Epg_Recorder_End_Time_Date_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_MODE_ITEM
{ NULL, _Zui_Epg_Recorder_Mode_Item_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_MODE_TEXT
{ _Zui_Epg_Recorder_Mode_Text_Normal_DrawStyle, _Zui_Epg_Recorder_Mode_Text_Focus_DrawStyle, _Zui_Epg_Recorder_Mode_Text_Disabled_DrawStyle },
// HWND_EPG_RECORDER_MODE_SETTING
{ _Zui_Epg_Recorder_Mode_Setting_Normal_DrawStyle, _Zui_Epg_Recorder_Mode_Setting_Focus_DrawStyle, _Zui_Epg_Recorder_Mode_Setting_Disabled_DrawStyle },
// HWND_EPG_RECORDER_MODE_LEFT_ARROW
{ NULL, _Zui_Epg_Recorder_Mode_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_MODE_RIGHT_ARROW
{ NULL, _Zui_Epg_Recorder_Mode_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_MODE_INC
{ NULL, _Zui_Epg_Recorder_Mode_Inc_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_MODE_DEC
{ NULL, _Zui_Epg_Recorder_Mode_Dec_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_MODE_STAR
{ _Zui_Epg_Recorder_Mode_Star_Normal_DrawStyle, _Zui_Epg_Recorder_Mode_Star_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_POPUP_DLG
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BG_PANE
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BG_TOP
{ _Zui_Epg_Recorder_Popup_Dlg_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NEW_BG_L
{ _Zui_Epg_Recorder_Popup_Dlg_New_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NEW_BG_C
{ _Zui_Epg_Recorder_Popup_Dlg_New_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NEW_BG_R
{ _Zui_Epg_Recorder_Popup_Dlg_New_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BG_L
{ _Zui_Epg_Recorder_Popup_Dlg_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BG_C
{ _Zui_Epg_Recorder_Popup_Dlg_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BG_R
{ _Zui_Epg_Recorder_Popup_Dlg_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BG_ICON
{ _Zui_Epg_Recorder_Popup_Dlg_Bg_Icon_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_TEXT_PANE
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_TEXT1
{ _Zui_Epg_Recorder_Popup_Dlg_Text1_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_TEXT2
{ _Zui_Epg_Recorder_Popup_Dlg_Text2_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_TEXT3
{ _Zui_Epg_Recorder_Popup_Dlg_Text3_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_BTN_PANE
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_OK
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_YES
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_YES_LEFT_ARROW
{ _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Normal_DrawStyle, _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_YES_TXT
{ _Zui_Epg_Recorder_Popup_Dlg_Yes_Txt_Normal_DrawStyle, _Zui_Epg_Recorder_Popup_Dlg_Yes_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NO
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NO_RIGHT_ARROW
{ _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Normal_DrawStyle, _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NO_TXT
{ _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Normal_DrawStyle, _Zui_Epg_Recorder_Popup_Dlg_No_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_REC_TIME_STEEING_BG
{ _Zui_Epg_Rec_Time_Steeing_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REC_TIME_STEEING_YEAR_ITEM
{ NULL, _Zui_Epg_Rec_Time_Steeing_Year_Item_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_YEAR_TXT
{ _Zui_Epg_Rec_Time_Steeing_Year_Txt_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Year_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_YEAR_L_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Year_L_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_YEAR_R_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Year_R_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_YEAR_OPTION
{ _Zui_Epg_Rec_Time_Steeing_Year_Option_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Year_Option_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MONTH_ITEM
{ NULL, _Zui_Epg_Rec_Time_Steeing_Month_Item_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MONTH_TXT
{ _Zui_Epg_Rec_Time_Steeing_Month_Txt_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Month_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MONTH_L_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Month_L_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Month_L_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MONTH_R_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Month_R_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Month_R_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MONTH_OPTION
{ _Zui_Epg_Rec_Time_Steeing_Month_Option_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Month_Option_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_DATE_ITEM
{ NULL, _Zui_Epg_Rec_Time_Steeing_Date_Item_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_DATE_TXT
{ _Zui_Epg_Rec_Time_Steeing_Date_Txt_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Date_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_DATE_L_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Date_L_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Date_L_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_DATE_R_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Date_R_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Date_R_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_DATE_OPTION
{ _Zui_Epg_Rec_Time_Steeing_Date_Option_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Date_Option_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_HOUR_ITEM
{ NULL, _Zui_Epg_Rec_Time_Steeing_Hour_Item_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_HOUR_TXT
{ _Zui_Epg_Rec_Time_Steeing_Hour_Txt_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Hour_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_HOUR_L_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Hour_L_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Hour_L_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_HOUR_R_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Hour_R_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Hour_R_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_HOUR_OPTION
{ _Zui_Epg_Rec_Time_Steeing_Hour_Option_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Hour_Option_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MIN_ITEM
{ NULL, _Zui_Epg_Rec_Time_Steeing_Min_Item_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MIN_TXT
{ _Zui_Epg_Rec_Time_Steeing_Min_Txt_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Min_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MIN_L_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Min_L_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Min_L_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MIN_R_ARROW
{ _Zui_Epg_Rec_Time_Steeing_Min_R_Arrow_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Min_R_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_MIN_OPTION
{ _Zui_Epg_Rec_Time_Steeing_Min_Option_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Min_Option_Focus_DrawStyle, NULL },
// HWND_EPG_REC_TIME_STEEING_BAR
{ _Zui_Epg_Rec_Time_Steeing_Bar_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_REC_TIME_STEEING_CLOSE
{ _Zui_Epg_Rec_Time_Steeing_Close_Normal_DrawStyle, _Zui_Epg_Rec_Time_Steeing_Close_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_PANEL
{ NULL, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_BGND_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Bgnd_Title_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_BG_RND
{ _Zui_Epg_Recorder_Schedule_List_Bg_Rnd_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Bg_Rnd_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_SCHEDULE_BG
{ _Zui_Epg_Recorder_Schedule_Bg_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_HEAD
{ _Zui_Epg_Recorder_Schedule_List_Head_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Title_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_TIME
{ _Zui_Epg_Recorder_Schedule_List_Time_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_DATE
{ _Zui_Epg_Recorder_Schedule_List_Date_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_PROM
{ _Zui_Epg_Recorder_Schedule_List_Prom_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_MODE
{ _Zui_Epg_Recorder_Schedule_List_Mode_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_0
{ _Zui_Epg_Recorder_Schedule_List_Item_0_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_0_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Title_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_0_TIME
{ _Zui_Epg_Recorder_Schedule_List_Item_0_Time_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Time_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Time_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_0_DATE
{ _Zui_Epg_Recorder_Schedule_List_Item_0_Date_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Date_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Date_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_0_PROGRAMME
{ _Zui_Epg_Recorder_Schedule_List_Item_0_Programme_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Programme_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Programme_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_0_MODE
{ _Zui_Epg_Recorder_Schedule_List_Item_0_Mode_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Mode_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_0_Mode_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_1
{ _Zui_Epg_Recorder_Schedule_List_Item_1_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_1_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Item_1_Title_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Title_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Title_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_1_TIME
{ _Zui_Epg_Recorder_Schedule_List_Item_1_Time_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Time_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Time_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_1_DATE
{ _Zui_Epg_Recorder_Schedule_List_Item_1_Date_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Date_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Date_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_1_PROGRAMME
{ _Zui_Epg_Recorder_Schedule_List_Item_1_Programme_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Programme_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Programme_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_1_MODE
{ _Zui_Epg_Recorder_Schedule_List_Item_1_Mode_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Mode_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_1_Mode_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_2
{ _Zui_Epg_Recorder_Schedule_List_Item_2_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_2_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Item_2_Title_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Title_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Title_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_2_TIME
{ _Zui_Epg_Recorder_Schedule_List_Item_2_Time_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Time_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Time_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_2_DATE
{ _Zui_Epg_Recorder_Schedule_List_Item_2_Date_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Date_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Date_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_2_PROGRAMME
{ _Zui_Epg_Recorder_Schedule_List_Item_2_Programme_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Programme_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Programme_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_2_MODE
{ _Zui_Epg_Recorder_Schedule_List_Item_2_Mode_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Mode_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_2_Mode_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_3
{ _Zui_Epg_Recorder_Schedule_List_Item_3_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_3_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Item_3_Title_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Title_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Title_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_3_TIME
{ _Zui_Epg_Recorder_Schedule_List_Item_3_Time_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Time_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Time_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_3_DATE
{ _Zui_Epg_Recorder_Schedule_List_Item_3_Date_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Date_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Date_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_3_PROGRAMME
{ _Zui_Epg_Recorder_Schedule_List_Item_3_Programme_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Programme_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Programme_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_3_MODE
{ _Zui_Epg_Recorder_Schedule_List_Item_3_Mode_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Mode_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_3_Mode_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_4
{ _Zui_Epg_Recorder_Schedule_List_Item_4_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_4_TITLE
{ _Zui_Epg_Recorder_Schedule_List_Item_4_Title_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Title_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Title_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_4_TIME
{ _Zui_Epg_Recorder_Schedule_List_Item_4_Time_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Time_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Time_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_4_DATE
{ _Zui_Epg_Recorder_Schedule_List_Item_4_Date_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Date_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Date_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_4_PROGRAMME
{ _Zui_Epg_Recorder_Schedule_List_Item_4_Programme_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Programme_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Programme_Disabled_DrawStyle },
// HWND_EPG_RECORDER_SCHEDULE_LIST_ITEM_4_MODE
{ _Zui_Epg_Recorder_Schedule_List_Item_4_Mode_Normal_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Mode_Focus_DrawStyle, _Zui_Epg_Recorder_Schedule_List_Item_4_Mode_Disabled_DrawStyle },
// HWND_EPG__RECORDER_HELP_BTN_SCHEDULE_LIST_DELETE
{ _Zui_Epg__Recorder_Help_Btn_Schedule_List_Delete_Normal_DrawStyle, _Zui_Epg__Recorder_Help_Btn_Schedule_List_Delete_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_HELP_BTN_SCHEDULE_LIST_DELETE_TXT
{ _Zui_Epg_Recorder_Help_Btn_Schedule_List_Delete_Txt_Normal_DrawStyle, _Zui_Epg_Recorder_Help_Btn_Schedule_List_Delete_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_PANE
{ NULL, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_TOP
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_L
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_C
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_R
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_TXT_1
{ _Zui_Epg_Pvr_Warning_Dlg_Txt_1_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Txt_1_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_TXT_2
{ _Zui_Epg_Pvr_Warning_Dlg_Txt_2_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Txt_2_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_CONFIRM_BTN_PANE
{ NULL, NULL, NULL },
// HWND_EPG_COMMON_BTN_CLEAR
{ NULL, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_CONFIRM_BTN_OK_LEFT_ARROW
{ _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Left_Arrow_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_CONFIRM_BTN_OK
{ _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Ok_Focus_DrawStyle, NULL },
// HWND_EPG_COMMON_BTN_OK
{ NULL, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_CONFIRM_BTN_EXIT_RIGHT_ARROW
{ _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Exit_Right_Arrow_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Exit_Right_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_CONFIRM_BTN_CANCEL
{ _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Cancel_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_Cancel_Focus_DrawStyle, NULL },
// HWND_EPG_COUNTDOWN_PANE
{ NULL, NULL, NULL },
// HWND_EPG_COUNTDOWN_BG_CLEAR
{ NULL, NULL, NULL },
// HWND_EPG_COUNTDOWN_BG_TOP
{ _Zui_Epg_Countdown_Bg_Top_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_COUNTDOWN_BG_L
{ _Zui_Epg_Countdown_Bg_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_COUNTDOWN_BG_C
{ _Zui_Epg_Countdown_Bg_C_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_COUNTDOWN_BG_R
{ _Zui_Epg_Countdown_Bg_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_COUNTDOWN_BUTTON_BAR
{ NULL, NULL, NULL },
// HWND_EPG_COUNTDOWN_BTN_YES
{ NULL, NULL, NULL },
// HWND_EPG_COUNTDOWN_BTN_CLEAR_LEFT_ARROW
{ _Zui_Epg_Countdown_Btn_Clear_Left_Arrow_Normal_DrawStyle, _Zui_Epg_Countdown_Btn_Clear_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_COUNTDOWN_BTN_CLEAR_LEFT_TXT
{ _Zui_Epg_Countdown_Btn_Clear_Left_Txt_Normal_DrawStyle, _Zui_Epg_Countdown_Btn_Clear_Left_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_COUNTDOWN_BTN_NO
{ NULL, NULL, NULL },
// HWND_EPG_COUNTDOWN_BTN_CLEAR_OK_LEFT_ARROW
{ _Zui_Epg_Countdown_Btn_Clear_Ok_Left_Arrow_Normal_DrawStyle, _Zui_Epg_Countdown_Btn_Clear_Ok_Left_Arrow_Focus_DrawStyle, NULL },
// HWND_EPG_COUNTDOWN_BTN_CLEAR_OK_TXT
{ _Zui_Epg_Countdown_Btn_Clear_Ok_Txt_Normal_DrawStyle, _Zui_Epg_Countdown_Btn_Clear_Ok_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_COUNTDOWN_MSG_TXT
{ _Zui_Epg_Countdown_Msg_Txt_Normal_DrawStyle, _Zui_Epg_Countdown_Msg_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_PANE_1
{ NULL, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_CLEAN_1
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_Clean_1_Normal_DrawStyle, _Zui_Epg_Pvr_Warning_Dlg_Bg_Clean_1_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_1
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_1_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_1_TOP
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_1_Top_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_1_L
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_1_L_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_BG_1_R
{ _Zui_Epg_Pvr_Warning_Dlg_Bg_1_R_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_WARNING_DLG_ICON_1
{ NULL, NULL, NULL },
// HWND_EPG_PVR_ALTERNATE_CHANGE_TXT
{ _Zui_Epg_Pvr_Alternate_Change_Txt_Normal_DrawStyle, _Zui_Epg_Pvr_Alternate_Change_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_ALTERNATE_RECORDING_TXT
{ _Zui_Epg_Pvr_Alternate_Recording_Txt_Normal_DrawStyle, _Zui_Epg_Pvr_Alternate_Recording_Txt_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_WARNING_DLG_CONFIRM_BTN_1
{ NULL, _Zui_Epg_Pvr_Warning_Dlg_Confirm_Btn_1_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_ALTERNATE_BTN_BTN_OK
{ _Zui_Epg_Pvr_Alternate_Btn_Btn_Ok_Normal_DrawStyle, _Zui_Epg_Pvr_Alternate_Btn_Btn_Ok_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_ALTERNATE_BTN_CANCEL
{ _Zui_Epg_Pvr_Alternate_Btn_Cancel_Normal_DrawStyle, _Zui_Epg_Pvr_Alternate_Btn_Cancel_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_YES_LEFT_ARROW_1
{ _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_1_Normal_DrawStyle, _Zui_Epg_Recorder_Popup_Dlg_Yes_Left_Arrow_1_Focus_DrawStyle, NULL },
// HWND_EPG_RECORDER_POPUP_DLG_NO_RIGHT_ARROW_1
{ _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_1_Normal_DrawStyle, _Zui_Epg_Recorder_Popup_Dlg_No_Right_Arrow_1_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_ALTERNATE_TIMER_TXT
{ _Zui_Epg_Pvr_Alternate_Timer_Txt_Normal_DrawStyle, NULL, NULL },
// HWND_EPG_PVR_ALTERNATE_DYNAMIC_TXT_1
{ _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Normal_DrawStyle, _Zui_Epg_Pvr_Alternate_Dynamic_Txt_1_Focus_DrawStyle, NULL },
// HWND_EPG_PVR_ALTERNATE_DYNAMIC_TXT
{ _Zui_Epg_Pvr_Alternate_Dynamic_Txt_Normal_DrawStyle, _Zui_Epg_Pvr_Alternate_Dynamic_Txt_Focus_DrawStyle, NULL },
};
|
/*************************************************************************
> File Name : SecStoreKeyPair.cpp
> Author : YangShuai
> Created Time: 2016年08月03日 星期三 18时43分14秒
> Description :暂时没有搞清楚怎么检验密钥对是否合法,出现问题直接返回FAILURE
参数algorithm没有用到
************************************************************************/
#include"Primitive.h"
#include"../crypto/crypto.h"
#include"../database/dbfunc.h"
Result Sec_Store_KeyPair(CMH& cmh, PublicKeyAlgorithm& algorithm, PublicKey& public_key, Data& private_key){
if(db_store_keypair(cmh, public_key, private_key) < 0){
return FAILURE;
}
return SUCCESS;
}
|
// C++ for the Windows Runtime vv1.0.170303.6
// Copyright (c) 2017 Microsoft Corporation. All rights reserved.
#pragma once
#include "../base.h"
#include "Windows.Networking.NetworkOperators.0.h"
#include "Windows.Data.Xml.Dom.0.h"
#include "Windows.Devices.Sms.0.h"
#include "Windows.Foundation.0.h"
#include "Windows.Networking.Connectivity.0.h"
#include "Windows.Storage.Streams.0.h"
#include "Windows.Foundation.1.h"
#include "Windows.Foundation.Collections.1.h"
#include "Windows.Networking.Connectivity.1.h"
#include "Windows.Networking.1.h"
WINRT_EXPORT namespace winrt {
namespace ABI::Windows::Networking::NetworkOperators {
struct ProfileUsage
{
uint32_t UsageInMegabytes;
Windows::Foundation::DateTime LastSyncTime;
};
}
namespace Windows::Networking::NetworkOperators {
using ProfileUsage = ABI::Windows::Networking::NetworkOperators::ProfileUsage;
}
namespace ABI::Windows::Networking::NetworkOperators {
struct __declspec(uuid("f2aa4395-f1e6-4319-aa3e-477ca64b2bdf")) __declspec(novtable) IFdnAccessManagerStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_RequestUnlockAsync(hstring contactListId, Windows::Foundation::IAsyncOperation<bool> ** returnValue) = 0;
};
struct __declspec(uuid("e756c791-1003-4de5-83c7-de61d88831d0")) __declspec(novtable) IHotspotAuthenticationContext : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_WirelessNetworkId(uint32_t * __valueSize, uint8_t ** value) = 0;
virtual HRESULT __stdcall get_NetworkAdapter(Windows::Networking::Connectivity::INetworkAdapter ** value) = 0;
virtual HRESULT __stdcall get_RedirectMessageUrl(Windows::Foundation::IUriRuntimeClass ** value) = 0;
virtual HRESULT __stdcall get_RedirectMessageXml(Windows::Data::Xml::Dom::IXmlDocument ** value) = 0;
virtual HRESULT __stdcall get_AuthenticationUrl(Windows::Foundation::IUriRuntimeClass ** value) = 0;
virtual HRESULT __stdcall abi_IssueCredentials(hstring userName, hstring password, hstring extraParameters, bool markAsManualConnectOnFailure) = 0;
virtual HRESULT __stdcall abi_AbortAuthentication(bool markAsManual) = 0;
virtual HRESULT __stdcall abi_SkipAuthentication() = 0;
virtual HRESULT __stdcall abi_TriggerAttentionRequired(hstring packageRelativeApplicationId, hstring applicationParameters) = 0;
};
struct __declspec(uuid("e756c791-1004-4de5-83c7-de61d88831d0")) __declspec(novtable) IHotspotAuthenticationContext2 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_IssueCredentialsAsync(hstring userName, hstring password, hstring extraParameters, bool markAsManualConnectOnFailure, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::HotspotCredentialsAuthenticationResult> ** asyncInfo) = 0;
};
struct __declspec(uuid("e756c791-1002-4de5-83c7-de61d88831d0")) __declspec(novtable) IHotspotAuthenticationContextStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_TryGetAuthenticationContext(hstring evenToken, Windows::Networking::NetworkOperators::IHotspotAuthenticationContext ** context, bool * isValid) = 0;
};
struct __declspec(uuid("e756c791-1001-4de5-83c7-de61d88831d0")) __declspec(novtable) IHotspotAuthenticationEventDetails : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_EventToken(hstring * value) = 0;
};
struct __declspec(uuid("e756c791-1005-4de5-83c7-de61d88831d0")) __declspec(novtable) IHotspotCredentialsAuthenticationResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_HasNetworkErrorOccurred(bool * value) = 0;
virtual HRESULT __stdcall get_ResponseCode(winrt::Windows::Networking::NetworkOperators::HotspotAuthenticationResponseCode * value) = 0;
virtual HRESULT __stdcall get_LogoffUrl(Windows::Foundation::IUriRuntimeClass ** value) = 0;
virtual HRESULT __stdcall get_AuthenticationReplyXml(Windows::Data::Xml::Dom::IXmlDocument ** value) = 0;
};
struct __declspec(uuid("b458aeed-49f1-4c22-b073-96d511bf9c35")) __declspec(novtable) IKnownCSimFilePathsStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_EFSpn(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid1(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid2(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
};
struct __declspec(uuid("3883c8b9-ff24-4571-a867-09f960426e14")) __declspec(novtable) IKnownRuimFilePathsStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_EFSpn(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid1(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid2(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
};
struct __declspec(uuid("80cd1a63-37a5-43d3-80a3-ccd23e8fecee")) __declspec(novtable) IKnownSimFilePathsStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_EFOns(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_EFSpn(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid1(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid2(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
};
struct __declspec(uuid("7c34e581-1f1b-43f4-9530-8b092d32d71f")) __declspec(novtable) IKnownUSimFilePathsStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_EFSpn(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_EFOpl(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_EFPnn(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid1(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall get_Gid2(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
};
struct __declspec(uuid("36c24ccd-cee2-43e0-a603-ee86a36d6570")) __declspec(novtable) IMobileBroadbandAccount : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NetworkAccountId(hstring * value) = 0;
virtual HRESULT __stdcall get_ServiceProviderGuid(GUID * value) = 0;
virtual HRESULT __stdcall get_ServiceProviderName(hstring * value) = 0;
virtual HRESULT __stdcall get_CurrentNetwork(Windows::Networking::NetworkOperators::IMobileBroadbandNetwork ** network) = 0;
virtual HRESULT __stdcall get_CurrentDeviceInformation(Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation ** deviceInformation) = 0;
};
struct __declspec(uuid("38f52f1c-1136-4257-959f-b658a352b6d4")) __declspec(novtable) IMobileBroadbandAccount2 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_GetConnectionProfiles(Windows::Foundation::Collections::IVectorView<Windows::Networking::Connectivity::ConnectionProfile> ** value) = 0;
};
struct __declspec(uuid("092a1e21-9379-4b9b-ad31-d5fee2f748c6")) __declspec(novtable) IMobileBroadbandAccount3 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_AccountExperienceUrl(Windows::Foundation::IUriRuntimeClass ** value) = 0;
};
struct __declspec(uuid("3853c880-77de-4c04-bead-a123b08c9f59")) __declspec(novtable) IMobileBroadbandAccountEventArgs : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NetworkAccountId(hstring * value) = 0;
};
struct __declspec(uuid("aa7f4d24-afc1-4fc8-ae9a-a9175310faad")) __declspec(novtable) IMobileBroadbandAccountStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_AvailableNetworkAccountIds(Windows::Foundation::Collections::IVectorView<hstring> ** ppAccountIds) = 0;
virtual HRESULT __stdcall abi_CreateFromNetworkAccountId(hstring networkAccountId, Windows::Networking::NetworkOperators::IMobileBroadbandAccount ** ppAccount) = 0;
};
struct __declspec(uuid("7bc31d88-a6bd-49e1-80ab-6b91354a57d4")) __declspec(novtable) IMobileBroadbandAccountUpdatedEventArgs : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NetworkAccountId(hstring * value) = 0;
virtual HRESULT __stdcall get_HasDeviceInformationChanged(bool * value) = 0;
virtual HRESULT __stdcall get_HasNetworkChanged(bool * value) = 0;
};
struct __declspec(uuid("6bf3335e-23b5-449f-928d-5e0d3e04471d")) __declspec(novtable) IMobileBroadbandAccountWatcher : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall add_AccountAdded(Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> * handler, event_token * cookie) = 0;
virtual HRESULT __stdcall remove_AccountAdded(event_token cookie) = 0;
virtual HRESULT __stdcall add_AccountUpdated(Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountUpdatedEventArgs> * handler, event_token * cookie) = 0;
virtual HRESULT __stdcall remove_AccountUpdated(event_token cookie) = 0;
virtual HRESULT __stdcall add_AccountRemoved(Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> * handler, event_token * cookie) = 0;
virtual HRESULT __stdcall remove_AccountRemoved(event_token cookie) = 0;
virtual HRESULT __stdcall add_EnumerationCompleted(Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Foundation::IInspectable> * handler, event_token * cookie) = 0;
virtual HRESULT __stdcall remove_EnumerationCompleted(event_token cookie) = 0;
virtual HRESULT __stdcall add_Stopped(Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Foundation::IInspectable> * handler, event_token * cookie) = 0;
virtual HRESULT __stdcall remove_Stopped(event_token cookie) = 0;
virtual HRESULT __stdcall get_Status(winrt::Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcherStatus * status) = 0;
virtual HRESULT __stdcall abi_Start() = 0;
virtual HRESULT __stdcall abi_Stop() = 0;
};
struct __declspec(uuid("e6d08168-e381-4c6e-9be8-fe156969a446")) __declspec(novtable) IMobileBroadbandDeviceInformation : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NetworkDeviceStatus(winrt::Windows::Networking::NetworkOperators::NetworkDeviceStatus * value) = 0;
virtual HRESULT __stdcall get_Manufacturer(hstring * value) = 0;
virtual HRESULT __stdcall get_Model(hstring * value) = 0;
virtual HRESULT __stdcall get_FirmwareInformation(hstring * value) = 0;
virtual HRESULT __stdcall get_CellularClass(winrt::Windows::Devices::Sms::CellularClass * value) = 0;
virtual HRESULT __stdcall get_DataClasses(winrt::Windows::Networking::NetworkOperators::DataClasses * value) = 0;
virtual HRESULT __stdcall get_CustomDataClass(hstring * value) = 0;
virtual HRESULT __stdcall get_MobileEquipmentId(hstring * value) = 0;
virtual HRESULT __stdcall get_TelephoneNumbers(Windows::Foundation::Collections::IVectorView<hstring> ** value) = 0;
virtual HRESULT __stdcall get_SubscriberId(hstring * value) = 0;
virtual HRESULT __stdcall get_SimIccId(hstring * value) = 0;
virtual HRESULT __stdcall get_DeviceType(winrt::Windows::Networking::NetworkOperators::MobileBroadbandDeviceType * pDeviceType) = 0;
virtual HRESULT __stdcall get_DeviceId(hstring * value) = 0;
virtual HRESULT __stdcall get_CurrentRadioState(winrt::Windows::Networking::NetworkOperators::MobileBroadbandRadioState * pCurrentState) = 0;
};
struct __declspec(uuid("2e467af1-f932-4737-a722-03ba72370cb8")) __declspec(novtable) IMobileBroadbandDeviceInformation2 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_PinManager(Windows::Networking::NetworkOperators::IMobileBroadbandPinManager ** value) = 0;
virtual HRESULT __stdcall get_Revision(hstring * value) = 0;
virtual HRESULT __stdcall get_SerialNumber(hstring * value) = 0;
};
struct __declspec(uuid("e08bb4bd-5d30-4b5a-92cc-d54df881d49e")) __declspec(novtable) IMobileBroadbandDeviceInformation3 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_SimSpn(hstring * value) = 0;
virtual HRESULT __stdcall get_SimPnn(hstring * value) = 0;
virtual HRESULT __stdcall get_SimGid1(hstring * value) = 0;
};
struct __declspec(uuid("22be1a52-bd80-40ac-8e1f-2e07836a3dbd")) __declspec(novtable) IMobileBroadbandDeviceService : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DeviceServiceId(GUID * value) = 0;
virtual HRESULT __stdcall get_SupportedCommands(Windows::Foundation::Collections::IVectorView<uint32_t> ** value) = 0;
virtual HRESULT __stdcall abi_OpenDataSession(Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataSession ** value) = 0;
virtual HRESULT __stdcall abi_OpenCommandSession(Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandSession ** value) = 0;
};
struct __declspec(uuid("b0f46abb-94d6-44b9-a538-f0810b645389")) __declspec(novtable) IMobileBroadbandDeviceServiceCommandResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_StatusCode(uint32_t * value) = 0;
virtual HRESULT __stdcall get_ResponseData(Windows::Storage::Streams::IBuffer ** value) = 0;
};
struct __declspec(uuid("fc098a45-913b-4914-b6c3-ae6304593e75")) __declspec(novtable) IMobileBroadbandDeviceServiceCommandSession : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_SendQueryCommandAsync(uint32_t commandId, Windows::Storage::Streams::IBuffer * data, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_SendSetCommandAsync(uint32_t commandId, Windows::Storage::Streams::IBuffer * data, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_CloseSession() = 0;
};
struct __declspec(uuid("b6aa13de-1380-40e3-8618-73cbca48138c")) __declspec(novtable) IMobileBroadbandDeviceServiceDataReceivedEventArgs : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_ReceivedData(Windows::Storage::Streams::IBuffer ** value) = 0;
};
struct __declspec(uuid("dad62333-8bcf-4289-8a37-045c2169486a")) __declspec(novtable) IMobileBroadbandDeviceServiceDataSession : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_WriteDataAsync(Windows::Storage::Streams::IBuffer * value, Windows::Foundation::IAsyncAction ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_CloseSession() = 0;
virtual HRESULT __stdcall add_DataReceived(Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession, Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataReceivedEventArgs> * eventHandler, event_token * eventCookie) = 0;
virtual HRESULT __stdcall remove_DataReceived(event_token eventCookie) = 0;
};
struct __declspec(uuid("53d69b5b-c4ed-45f0-803a-d9417a6d9846")) __declspec(novtable) IMobileBroadbandDeviceServiceInformation : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DeviceServiceId(GUID * value) = 0;
virtual HRESULT __stdcall get_IsDataReadSupported(bool * value) = 0;
virtual HRESULT __stdcall get_IsDataWriteSupported(bool * value) = 0;
};
struct __declspec(uuid("4a055b70-b9ae-4458-9241-a6a5fbf18a0c")) __declspec(novtable) IMobileBroadbandDeviceServiceTriggerDetails : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DeviceId(hstring * value) = 0;
virtual HRESULT __stdcall get_DeviceServiceId(GUID * value) = 0;
virtual HRESULT __stdcall get_ReceivedData(Windows::Storage::Streams::IBuffer ** value) = 0;
};
struct __declspec(uuid("d0356912-e9f9-4f67-a03d-43189a316bf1")) __declspec(novtable) IMobileBroadbandModem : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_CurrentAccount(Windows::Networking::NetworkOperators::IMobileBroadbandAccount ** value) = 0;
virtual HRESULT __stdcall get_DeviceInformation(Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation ** value) = 0;
virtual HRESULT __stdcall get_MaxDeviceServiceCommandSizeInBytes(uint32_t * value) = 0;
virtual HRESULT __stdcall get_MaxDeviceServiceDataSizeInBytes(uint32_t * value) = 0;
virtual HRESULT __stdcall get_DeviceServices(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceInformation> ** value) = 0;
virtual HRESULT __stdcall abi_GetDeviceService(GUID deviceServiceId, Windows::Networking::NetworkOperators::IMobileBroadbandDeviceService ** value) = 0;
virtual HRESULT __stdcall get_IsResetSupported(bool * value) = 0;
virtual HRESULT __stdcall abi_ResetAsync(Windows::Foundation::IAsyncAction ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_GetCurrentConfigurationAsync(Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandModemConfiguration> ** asyncInfo) = 0;
virtual HRESULT __stdcall get_CurrentNetwork(Windows::Networking::NetworkOperators::IMobileBroadbandNetwork ** value) = 0;
};
struct __declspec(uuid("fce035a3-d6cd-4320-b982-be9d3ec7890f")) __declspec(novtable) IMobileBroadbandModemConfiguration : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Uicc(Windows::Networking::NetworkOperators::IMobileBroadbandUicc ** value) = 0;
virtual HRESULT __stdcall get_HomeProviderId(hstring * value) = 0;
virtual HRESULT __stdcall get_HomeProviderName(hstring * value) = 0;
};
struct __declspec(uuid("f99ed637-d6f1-4a78-8cbc-6421a65063c8")) __declspec(novtable) IMobileBroadbandModemStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_GetDeviceSelector(hstring * value) = 0;
virtual HRESULT __stdcall abi_FromId(hstring deviceId, Windows::Networking::NetworkOperators::IMobileBroadbandModem ** value) = 0;
virtual HRESULT __stdcall abi_GetDefault(Windows::Networking::NetworkOperators::IMobileBroadbandModem ** value) = 0;
};
struct __declspec(uuid("cb63928c-0309-4cb6-a8c1-6a5a3c8e1ff6")) __declspec(novtable) IMobileBroadbandNetwork : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NetworkAdapter(Windows::Networking::Connectivity::INetworkAdapter ** value) = 0;
virtual HRESULT __stdcall get_NetworkRegistrationState(winrt::Windows::Networking::NetworkOperators::NetworkRegistrationState * registrationState) = 0;
virtual HRESULT __stdcall get_RegistrationNetworkError(uint32_t * networkError) = 0;
virtual HRESULT __stdcall get_PacketAttachNetworkError(uint32_t * networkError) = 0;
virtual HRESULT __stdcall get_ActivationNetworkError(uint32_t * networkError) = 0;
virtual HRESULT __stdcall get_AccessPointName(hstring * apn) = 0;
virtual HRESULT __stdcall get_RegisteredDataClass(winrt::Windows::Networking::NetworkOperators::DataClasses * value) = 0;
virtual HRESULT __stdcall get_RegisteredProviderId(hstring * value) = 0;
virtual HRESULT __stdcall get_RegisteredProviderName(hstring * value) = 0;
virtual HRESULT __stdcall abi_ShowConnectionUI() = 0;
};
struct __declspec(uuid("5a55db22-62f7-4bdd-ba1d-477441960ba0")) __declspec(novtable) IMobileBroadbandNetwork2 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_GetVoiceCallSupportAsync(Windows::Foundation::IAsyncOperation<bool> ** asyncInfo) = 0;
virtual HRESULT __stdcall get_RegistrationUiccApps(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandUiccApp> ** value) = 0;
};
struct __declspec(uuid("beaf94e1-960f-49b4-a08d-7d85e968c7ec")) __declspec(novtable) IMobileBroadbandNetworkRegistrationStateChange : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DeviceId(hstring * value) = 0;
virtual HRESULT __stdcall get_Network(Windows::Networking::NetworkOperators::IMobileBroadbandNetwork ** value) = 0;
};
struct __declspec(uuid("89135cff-28b8-46aa-b137-1c4b0f21edfe")) __declspec(novtable) IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NetworkRegistrationStateChanges(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChange> ** value) = 0;
};
struct __declspec(uuid("e661d709-e779-45bf-8281-75323df9e321")) __declspec(novtable) IMobileBroadbandPin : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Type(winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinType * value) = 0;
virtual HRESULT __stdcall get_LockState(winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinLockState * value) = 0;
virtual HRESULT __stdcall get_Format(winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinFormat * value) = 0;
virtual HRESULT __stdcall get_Enabled(bool * value) = 0;
virtual HRESULT __stdcall get_MaxLength(uint32_t * value) = 0;
virtual HRESULT __stdcall get_MinLength(uint32_t * value) = 0;
virtual HRESULT __stdcall get_AttemptsRemaining(uint32_t * value) = 0;
virtual HRESULT __stdcall abi_EnableAsync(hstring currentPin, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_DisableAsync(hstring currentPin, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_EnterAsync(hstring currentPin, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_ChangeAsync(hstring currentPin, hstring newPin, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_UnblockAsync(hstring pinUnblockKey, hstring newPin, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> ** asyncInfo) = 0;
};
struct __declspec(uuid("be16673e-1f04-4f95-8b90-e7f559dde7e5")) __declspec(novtable) IMobileBroadbandPinLockStateChange : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DeviceId(hstring * value) = 0;
virtual HRESULT __stdcall get_PinType(winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinType * value) = 0;
virtual HRESULT __stdcall get_PinLockState(winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinLockState * value) = 0;
};
struct __declspec(uuid("d338c091-3e91-4d38-9036-aee83a6e79ad")) __declspec(novtable) IMobileBroadbandPinLockStateChangeTriggerDetails : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_PinLockStateChanges(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChange> ** value) = 0;
};
struct __declspec(uuid("83567edd-6e1f-4b9b-a413-2b1f50cc36df")) __declspec(novtable) IMobileBroadbandPinManager : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_SupportedPins(Windows::Foundation::Collections::IVectorView<winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinType> ** value) = 0;
virtual HRESULT __stdcall abi_GetPin(winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinType pinType, Windows::Networking::NetworkOperators::IMobileBroadbandPin ** value) = 0;
};
struct __declspec(uuid("11dddc32-31e7-49f5-b663-123d3bef0362")) __declspec(novtable) IMobileBroadbandPinOperationResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_IsSuccessful(bool * value) = 0;
virtual HRESULT __stdcall get_AttemptsRemaining(uint32_t * value) = 0;
};
struct __declspec(uuid("b054a561-9833-4aed-9717-4348b21a24b3")) __declspec(novtable) IMobileBroadbandRadioStateChange : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DeviceId(hstring * value) = 0;
virtual HRESULT __stdcall get_RadioState(winrt::Windows::Networking::NetworkOperators::MobileBroadbandRadioState * value) = 0;
};
struct __declspec(uuid("71301ace-093c-42c6-b0db-ad1f75a65445")) __declspec(novtable) IMobileBroadbandRadioStateChangeTriggerDetails : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_RadioStateChanges(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChange> ** value) = 0;
};
struct __declspec(uuid("e634f691-525a-4ce2-8fce-aa4162579154")) __declspec(novtable) IMobileBroadbandUicc : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_SimIccId(hstring * value) = 0;
virtual HRESULT __stdcall abi_GetUiccAppsAsync(Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppsResult> ** asyncInfo) = 0;
};
struct __declspec(uuid("4d170556-98a1-43dd-b2ec-50c90cf248df")) __declspec(novtable) IMobileBroadbandUiccApp : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Id(Windows::Storage::Streams::IBuffer ** value) = 0;
virtual HRESULT __stdcall get_Kind(winrt::Windows::Networking::NetworkOperators::UiccAppKind * value) = 0;
virtual HRESULT __stdcall abi_GetRecordDetailsAsync(Windows::Foundation::Collections::IIterable<uint32_t> * uiccFilePath, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppRecordDetailsResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_ReadRecordAsync(Windows::Foundation::Collections::IIterable<uint32_t> * uiccFilePath, int32_t recordIndex, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppReadRecordResult> ** asyncInfo) = 0;
};
struct __declspec(uuid("64c95285-358e-47c5-8249-695f383b2bdb")) __declspec(novtable) IMobileBroadbandUiccAppReadRecordResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Status(winrt::Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus * value) = 0;
virtual HRESULT __stdcall get_Data(Windows::Storage::Streams::IBuffer ** value) = 0;
};
struct __declspec(uuid("d919682f-be14-4934-981d-2f57b9ed83e6")) __declspec(novtable) IMobileBroadbandUiccAppRecordDetailsResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Status(winrt::Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus * value) = 0;
virtual HRESULT __stdcall get_Kind(winrt::Windows::Networking::NetworkOperators::UiccAppRecordKind * value) = 0;
virtual HRESULT __stdcall get_RecordCount(int32_t * value) = 0;
virtual HRESULT __stdcall get_RecordSize(int32_t * value) = 0;
virtual HRESULT __stdcall get_ReadAccessCondition(winrt::Windows::Networking::NetworkOperators::UiccAccessCondition * value) = 0;
virtual HRESULT __stdcall get_WriteAccessCondition(winrt::Windows::Networking::NetworkOperators::UiccAccessCondition * value) = 0;
};
struct __declspec(uuid("744930eb-8157-4a41-8494-6bf54c9b1d2b")) __declspec(novtable) IMobileBroadbandUiccAppsResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Status(winrt::Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus * value) = 0;
virtual HRESULT __stdcall get_UiccApps(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandUiccApp> ** value) = 0;
};
struct __declspec(uuid("bc68a9d1-82e1-4488-9f2c-1276c2468fac")) __declspec(novtable) INetworkOperatorNotificationEventDetails : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_NotificationType(winrt::Windows::Networking::NetworkOperators::NetworkOperatorEventMessageType * value) = 0;
virtual HRESULT __stdcall get_NetworkAccountId(hstring * value) = 0;
virtual HRESULT __stdcall get_EncodingType(uint8_t * value) = 0;
virtual HRESULT __stdcall get_Message(hstring * value) = 0;
virtual HRESULT __stdcall get_RuleId(hstring * value) = 0;
virtual HRESULT __stdcall get_SmsMessage(Windows::Devices::Sms::ISmsMessage ** value) = 0;
};
struct __declspec(uuid("0bcc0284-412e-403d-acc6-b757e34774a4")) __declspec(novtable) INetworkOperatorTetheringAccessPointConfiguration : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Ssid(hstring * value) = 0;
virtual HRESULT __stdcall put_Ssid(hstring value) = 0;
virtual HRESULT __stdcall get_Passphrase(hstring * value) = 0;
virtual HRESULT __stdcall put_Passphrase(hstring value) = 0;
};
struct __declspec(uuid("709d254c-595f-4847-bb30-646935542918")) __declspec(novtable) INetworkOperatorTetheringClient : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_MacAddress(hstring * value) = 0;
virtual HRESULT __stdcall get_HostNames(Windows::Foundation::Collections::IVectorView<Windows::Networking::HostName> ** value) = 0;
};
struct __declspec(uuid("91b14016-8dca-4225-bbed-eef8b8d718d7")) __declspec(novtable) INetworkOperatorTetheringClientManager : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_GetTetheringClients(Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::NetworkOperatorTetheringClient> ** value) = 0;
};
struct __declspec(uuid("0108916d-9e9a-4af6-8da3-60493b19c204")) __declspec(novtable) INetworkOperatorTetheringEntitlementCheck : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_AuthorizeTethering(bool allow, hstring entitlementFailureReason) = 0;
};
struct __declspec(uuid("d45a8da0-0e86-4d98-8ba4-dd70d4b764d3")) __declspec(novtable) INetworkOperatorTetheringManager : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_MaxClientCount(uint32_t * value) = 0;
virtual HRESULT __stdcall get_ClientCount(uint32_t * value) = 0;
virtual HRESULT __stdcall get_TetheringOperationalState(winrt::Windows::Networking::NetworkOperators::TetheringOperationalState * value) = 0;
virtual HRESULT __stdcall abi_GetCurrentAccessPointConfiguration(Windows::Networking::NetworkOperators::INetworkOperatorTetheringAccessPointConfiguration ** configuration) = 0;
virtual HRESULT __stdcall abi_ConfigureAccessPointAsync(Windows::Networking::NetworkOperators::INetworkOperatorTetheringAccessPointConfiguration * configuration, Windows::Foundation::IAsyncAction ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_StartTetheringAsync(Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_StopTetheringAsync(Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult> ** asyncInfo) = 0;
};
struct __declspec(uuid("3ebcbacc-f8c3-405c-9964-70a1eeabe194")) __declspec(novtable) INetworkOperatorTetheringManagerStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_GetTetheringCapability(hstring networkAccountId, winrt::Windows::Networking::NetworkOperators::TetheringCapability * value) = 0;
virtual HRESULT __stdcall abi_CreateFromNetworkAccountId(hstring networkAccountId, Windows::Networking::NetworkOperators::INetworkOperatorTetheringManager ** ppManager) = 0;
};
struct __declspec(uuid("5b235412-35f0-49e7-9b08-16d278fbaa42")) __declspec(novtable) INetworkOperatorTetheringManagerStatics2 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_GetTetheringCapabilityFromConnectionProfile(Windows::Networking::Connectivity::IConnectionProfile * profile, winrt::Windows::Networking::NetworkOperators::TetheringCapability * result) = 0;
virtual HRESULT __stdcall abi_CreateFromConnectionProfile(Windows::Networking::Connectivity::IConnectionProfile * profile, Windows::Networking::NetworkOperators::INetworkOperatorTetheringManager ** ppManager) = 0;
};
struct __declspec(uuid("8fdaadb6-4af9-4f21-9b58-d53e9f24231e")) __declspec(novtable) INetworkOperatorTetheringManagerStatics3 : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_CreateFromConnectionProfileWithTargetAdapter(Windows::Networking::Connectivity::IConnectionProfile * profile, Windows::Networking::Connectivity::INetworkAdapter * adapter, Windows::Networking::NetworkOperators::INetworkOperatorTetheringManager ** ppManager) = 0;
};
struct __declspec(uuid("ebd203a1-01ba-476d-b4b3-bf3d12c8f80c")) __declspec(novtable) INetworkOperatorTetheringOperationResult : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_Status(winrt::Windows::Networking::NetworkOperators::TetheringOperationStatus * value) = 0;
virtual HRESULT __stdcall get_AdditionalErrorMessage(hstring * value) = 0;
};
struct __declspec(uuid("217700e0-8203-11df-adb9-f4ce462d9137")) __declspec(novtable) IProvisionFromXmlDocumentResults : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_AllElementsProvisioned(bool * value) = 0;
virtual HRESULT __stdcall get_ProvisionResultsXml(hstring * value) = 0;
};
struct __declspec(uuid("217700e0-8202-11df-adb9-f4ce462d9137")) __declspec(novtable) IProvisionedProfile : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_UpdateCost(winrt::Windows::Networking::Connectivity::NetworkCostType value) = 0;
virtual HRESULT __stdcall abi_UpdateUsage(Windows::Networking::NetworkOperators::ProfileUsage value) = 0;
};
struct __declspec(uuid("217700e0-8201-11df-adb9-f4ce462d9137")) __declspec(novtable) IProvisioningAgent : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_ProvisionFromXmlDocumentAsync(hstring provisioningXmlDocument, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::ProvisionFromXmlDocumentResults> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_GetProvisionedProfile(winrt::Windows::Networking::NetworkOperators::ProfileMediaType mediaType, hstring profileName, Windows::Networking::NetworkOperators::IProvisionedProfile ** provisionedProfile) = 0;
};
struct __declspec(uuid("217700e0-8101-11df-adb9-f4ce462d9137")) __declspec(novtable) IProvisioningAgentStaticMethods : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_CreateFromNetworkAccountId(hstring networkAccountId, Windows::Networking::NetworkOperators::IProvisioningAgent ** provisioningAgent) = 0;
};
struct __declspec(uuid("2f9acf82-2004-4d5d-bf81-2aba1b4be4a8")) __declspec(novtable) IUssdMessage : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_DataCodingScheme(uint8_t * value) = 0;
virtual HRESULT __stdcall put_DataCodingScheme(uint8_t value) = 0;
virtual HRESULT __stdcall abi_GetPayload(uint32_t * __valueSize, uint8_t ** value) = 0;
virtual HRESULT __stdcall abi_SetPayload(uint32_t __valueSize, uint8_t * value) = 0;
virtual HRESULT __stdcall get_PayloadAsText(hstring * value) = 0;
virtual HRESULT __stdcall put_PayloadAsText(hstring value) = 0;
};
struct __declspec(uuid("2f9acf82-1003-4d5d-bf81-2aba1b4be4a8")) __declspec(novtable) IUssdMessageFactory : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_CreateMessage(hstring messageText, Windows::Networking::NetworkOperators::IUssdMessage ** ussdMessage) = 0;
};
struct __declspec(uuid("2f9acf82-2005-4d5d-bf81-2aba1b4be4a8")) __declspec(novtable) IUssdReply : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall get_ResultCode(winrt::Windows::Networking::NetworkOperators::UssdResultCode * value) = 0;
virtual HRESULT __stdcall get_Message(Windows::Networking::NetworkOperators::IUssdMessage ** value) = 0;
};
struct __declspec(uuid("2f9acf82-2002-4d5d-bf81-2aba1b4be4a8")) __declspec(novtable) IUssdSession : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_SendMessageAndGetReplyAsync(Windows::Networking::NetworkOperators::IUssdMessage * message, Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::UssdReply> ** asyncInfo) = 0;
virtual HRESULT __stdcall abi_Close() = 0;
};
struct __declspec(uuid("2f9acf82-1001-4d5d-bf81-2aba1b4be4a8")) __declspec(novtable) IUssdSessionStatics : Windows::Foundation::IInspectable
{
virtual HRESULT __stdcall abi_CreateFromNetworkAccountId(hstring networkAccountId, Windows::Networking::NetworkOperators::IUssdSession ** ussdSession) = 0;
virtual HRESULT __stdcall abi_CreateFromNetworkInterfaceId(hstring networkInterfaceId, Windows::Networking::NetworkOperators::IUssdSession ** ussdSession) = 0;
};
}
namespace ABI {
template <> struct traits<Windows::Networking::NetworkOperators::HotspotAuthenticationContext> { using default_interface = Windows::Networking::NetworkOperators::IHotspotAuthenticationContext; };
template <> struct traits<Windows::Networking::NetworkOperators::HotspotAuthenticationEventDetails> { using default_interface = Windows::Networking::NetworkOperators::IHotspotAuthenticationEventDetails; };
template <> struct traits<Windows::Networking::NetworkOperators::HotspotCredentialsAuthenticationResult> { using default_interface = Windows::Networking::NetworkOperators::IHotspotCredentialsAuthenticationResult; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccount> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandAccount; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandAccountEventArgs; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccountUpdatedEventArgs> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandAccountUpdatedEventArgs; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceService> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceService; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandResult; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandSession> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandSession; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataReceivedEventArgs> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataReceivedEventArgs; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataSession; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceInformation> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceInformation; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceTriggerDetails> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceTriggerDetails; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandModem> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandModem; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandModemConfiguration> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandModemConfiguration; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandNetwork> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandNetwork; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChange> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandNetworkRegistrationStateChange; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChangeTriggerDetails> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPin> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandPin; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChange> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandPinLockStateChange; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChangeTriggerDetails> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandPinLockStateChangeTriggerDetails; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinManager> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandPinManager; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandPinOperationResult; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChange> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandRadioStateChange; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChangeTriggerDetails> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandRadioStateChangeTriggerDetails; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUicc> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandUicc; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccApp> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandUiccApp; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppReadRecordResult> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppReadRecordResult; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppRecordDetailsResult> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppRecordDetailsResult; };
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppsResult> { using default_interface = Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppsResult; };
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorNotificationEventDetails> { using default_interface = Windows::Networking::NetworkOperators::INetworkOperatorNotificationEventDetails; };
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration> { using default_interface = Windows::Networking::NetworkOperators::INetworkOperatorTetheringAccessPointConfiguration; };
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringClient> { using default_interface = Windows::Networking::NetworkOperators::INetworkOperatorTetheringClient; };
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager> { using default_interface = Windows::Networking::NetworkOperators::INetworkOperatorTetheringManager; };
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult> { using default_interface = Windows::Networking::NetworkOperators::INetworkOperatorTetheringOperationResult; };
template <> struct traits<Windows::Networking::NetworkOperators::ProvisionFromXmlDocumentResults> { using default_interface = Windows::Networking::NetworkOperators::IProvisionFromXmlDocumentResults; };
template <> struct traits<Windows::Networking::NetworkOperators::ProvisionedProfile> { using default_interface = Windows::Networking::NetworkOperators::IProvisionedProfile; };
template <> struct traits<Windows::Networking::NetworkOperators::ProvisioningAgent> { using default_interface = Windows::Networking::NetworkOperators::IProvisioningAgent; };
template <> struct traits<Windows::Networking::NetworkOperators::UssdMessage> { using default_interface = Windows::Networking::NetworkOperators::IUssdMessage; };
template <> struct traits<Windows::Networking::NetworkOperators::UssdReply> { using default_interface = Windows::Networking::NetworkOperators::IUssdReply; };
template <> struct traits<Windows::Networking::NetworkOperators::UssdSession> { using default_interface = Windows::Networking::NetworkOperators::IUssdSession; };
}
namespace Windows::Networking::NetworkOperators {
template <typename D>
struct WINRT_EBO impl_IFdnAccessManagerStatics
{
Windows::Foundation::IAsyncOperation<bool> RequestUnlockAsync(hstring_view contactListId) const;
};
template <typename D>
struct WINRT_EBO impl_IHotspotAuthenticationContext
{
com_array<uint8_t> WirelessNetworkId() const;
Windows::Networking::Connectivity::NetworkAdapter NetworkAdapter() const;
Windows::Foundation::Uri RedirectMessageUrl() const;
Windows::Data::Xml::Dom::XmlDocument RedirectMessageXml() const;
Windows::Foundation::Uri AuthenticationUrl() const;
void IssueCredentials(hstring_view userName, hstring_view password, hstring_view extraParameters, bool markAsManualConnectOnFailure) const;
void AbortAuthentication(bool markAsManual) const;
void SkipAuthentication() const;
void TriggerAttentionRequired(hstring_view packageRelativeApplicationId, hstring_view applicationParameters) const;
};
template <typename D>
struct WINRT_EBO impl_IHotspotAuthenticationContext2
{
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::HotspotCredentialsAuthenticationResult> IssueCredentialsAsync(hstring_view userName, hstring_view password, hstring_view extraParameters, bool markAsManualConnectOnFailure) const;
};
template <typename D>
struct WINRT_EBO impl_IHotspotAuthenticationContextStatics
{
bool TryGetAuthenticationContext(hstring_view evenToken, Windows::Networking::NetworkOperators::HotspotAuthenticationContext & context) const;
};
template <typename D>
struct WINRT_EBO impl_IHotspotAuthenticationEventDetails
{
hstring EventToken() const;
};
template <typename D>
struct WINRT_EBO impl_IHotspotCredentialsAuthenticationResult
{
bool HasNetworkErrorOccurred() const;
Windows::Networking::NetworkOperators::HotspotAuthenticationResponseCode ResponseCode() const;
Windows::Foundation::Uri LogoffUrl() const;
Windows::Data::Xml::Dom::XmlDocument AuthenticationReplyXml() const;
};
template <typename D>
struct WINRT_EBO impl_IKnownCSimFilePathsStatics
{
Windows::Foundation::Collections::IVectorView<uint32_t> EFSpn() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid1() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid2() const;
};
template <typename D>
struct WINRT_EBO impl_IKnownRuimFilePathsStatics
{
Windows::Foundation::Collections::IVectorView<uint32_t> EFSpn() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid1() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid2() const;
};
template <typename D>
struct WINRT_EBO impl_IKnownSimFilePathsStatics
{
Windows::Foundation::Collections::IVectorView<uint32_t> EFOns() const;
Windows::Foundation::Collections::IVectorView<uint32_t> EFSpn() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid1() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid2() const;
};
template <typename D>
struct WINRT_EBO impl_IKnownUSimFilePathsStatics
{
Windows::Foundation::Collections::IVectorView<uint32_t> EFSpn() const;
Windows::Foundation::Collections::IVectorView<uint32_t> EFOpl() const;
Windows::Foundation::Collections::IVectorView<uint32_t> EFPnn() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid1() const;
Windows::Foundation::Collections::IVectorView<uint32_t> Gid2() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccount
{
hstring NetworkAccountId() const;
GUID ServiceProviderGuid() const;
hstring ServiceProviderName() const;
Windows::Networking::NetworkOperators::MobileBroadbandNetwork CurrentNetwork() const;
Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation CurrentDeviceInformation() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccount2
{
Windows::Foundation::Collections::IVectorView<Windows::Networking::Connectivity::ConnectionProfile> GetConnectionProfiles() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccount3
{
Windows::Foundation::Uri AccountExperienceUrl() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccountEventArgs
{
hstring NetworkAccountId() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccountStatics
{
Windows::Foundation::Collections::IVectorView<hstring> AvailableNetworkAccountIds() const;
Windows::Networking::NetworkOperators::MobileBroadbandAccount CreateFromNetworkAccountId(hstring_view networkAccountId) const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccountUpdatedEventArgs
{
hstring NetworkAccountId() const;
bool HasDeviceInformationChanged() const;
bool HasNetworkChanged() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandAccountWatcher
{
event_token AccountAdded(const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> & handler) const;
using AccountAdded_revoker = event_revoker<IMobileBroadbandAccountWatcher>;
AccountAdded_revoker AccountAdded(auto_revoke_t, const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> & handler) const;
void AccountAdded(event_token cookie) const;
event_token AccountUpdated(const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountUpdatedEventArgs> & handler) const;
using AccountUpdated_revoker = event_revoker<IMobileBroadbandAccountWatcher>;
AccountUpdated_revoker AccountUpdated(auto_revoke_t, const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountUpdatedEventArgs> & handler) const;
void AccountUpdated(event_token cookie) const;
event_token AccountRemoved(const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> & handler) const;
using AccountRemoved_revoker = event_revoker<IMobileBroadbandAccountWatcher>;
AccountRemoved_revoker AccountRemoved(auto_revoke_t, const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs> & handler) const;
void AccountRemoved(event_token cookie) const;
event_token EnumerationCompleted(const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Foundation::IInspectable> & handler) const;
using EnumerationCompleted_revoker = event_revoker<IMobileBroadbandAccountWatcher>;
EnumerationCompleted_revoker EnumerationCompleted(auto_revoke_t, const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Foundation::IInspectable> & handler) const;
void EnumerationCompleted(event_token cookie) const;
event_token Stopped(const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Foundation::IInspectable> & handler) const;
using Stopped_revoker = event_revoker<IMobileBroadbandAccountWatcher>;
Stopped_revoker Stopped(auto_revoke_t, const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher, Windows::Foundation::IInspectable> & handler) const;
void Stopped(event_token cookie) const;
Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcherStatus Status() const;
void Start() const;
void Stop() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceInformation
{
Windows::Networking::NetworkOperators::NetworkDeviceStatus NetworkDeviceStatus() const;
hstring Manufacturer() const;
hstring Model() const;
hstring FirmwareInformation() const;
Windows::Devices::Sms::CellularClass CellularClass() const;
Windows::Networking::NetworkOperators::DataClasses DataClasses() const;
hstring CustomDataClass() const;
hstring MobileEquipmentId() const;
Windows::Foundation::Collections::IVectorView<hstring> TelephoneNumbers() const;
hstring SubscriberId() const;
hstring SimIccId() const;
Windows::Networking::NetworkOperators::MobileBroadbandDeviceType DeviceType() const;
hstring DeviceId() const;
Windows::Networking::NetworkOperators::MobileBroadbandRadioState CurrentRadioState() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceInformation2
{
Windows::Networking::NetworkOperators::MobileBroadbandPinManager PinManager() const;
hstring Revision() const;
hstring SerialNumber() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceInformation3
{
hstring SimSpn() const;
hstring SimPnn() const;
hstring SimGid1() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceService
{
GUID DeviceServiceId() const;
Windows::Foundation::Collections::IVectorView<uint32_t> SupportedCommands() const;
Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession OpenDataSession() const;
Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandSession OpenCommandSession() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceServiceCommandResult
{
uint32_t StatusCode() const;
Windows::Storage::Streams::IBuffer ResponseData() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceServiceCommandSession
{
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult> SendQueryCommandAsync(uint32_t commandId, const Windows::Storage::Streams::IBuffer & data) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult> SendSetCommandAsync(uint32_t commandId, const Windows::Storage::Streams::IBuffer & data) const;
void CloseSession() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceServiceDataReceivedEventArgs
{
Windows::Storage::Streams::IBuffer ReceivedData() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceServiceDataSession
{
Windows::Foundation::IAsyncAction WriteDataAsync(const Windows::Storage::Streams::IBuffer & value) const;
void CloseSession() const;
event_token DataReceived(const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession, Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataReceivedEventArgs> & eventHandler) const;
using DataReceived_revoker = event_revoker<IMobileBroadbandDeviceServiceDataSession>;
DataReceived_revoker DataReceived(auto_revoke_t, const Windows::Foundation::TypedEventHandler<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession, Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataReceivedEventArgs> & eventHandler) const;
void DataReceived(event_token eventCookie) const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceServiceInformation
{
GUID DeviceServiceId() const;
bool IsDataReadSupported() const;
bool IsDataWriteSupported() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandDeviceServiceTriggerDetails
{
hstring DeviceId() const;
GUID DeviceServiceId() const;
Windows::Storage::Streams::IBuffer ReceivedData() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandModem
{
Windows::Networking::NetworkOperators::MobileBroadbandAccount CurrentAccount() const;
Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation DeviceInformation() const;
uint32_t MaxDeviceServiceCommandSizeInBytes() const;
uint32_t MaxDeviceServiceDataSizeInBytes() const;
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceInformation> DeviceServices() const;
Windows::Networking::NetworkOperators::MobileBroadbandDeviceService GetDeviceService(GUID deviceServiceId) const;
bool IsResetSupported() const;
Windows::Foundation::IAsyncAction ResetAsync() const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandModemConfiguration> GetCurrentConfigurationAsync() const;
Windows::Networking::NetworkOperators::MobileBroadbandNetwork CurrentNetwork() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandModemConfiguration
{
Windows::Networking::NetworkOperators::MobileBroadbandUicc Uicc() const;
hstring HomeProviderId() const;
hstring HomeProviderName() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandModemStatics
{
hstring GetDeviceSelector() const;
Windows::Networking::NetworkOperators::MobileBroadbandModem FromId(hstring_view deviceId) const;
Windows::Networking::NetworkOperators::MobileBroadbandModem GetDefault() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandNetwork
{
Windows::Networking::Connectivity::NetworkAdapter NetworkAdapter() const;
Windows::Networking::NetworkOperators::NetworkRegistrationState NetworkRegistrationState() const;
uint32_t RegistrationNetworkError() const;
uint32_t PacketAttachNetworkError() const;
uint32_t ActivationNetworkError() const;
hstring AccessPointName() const;
Windows::Networking::NetworkOperators::DataClasses RegisteredDataClass() const;
hstring RegisteredProviderId() const;
hstring RegisteredProviderName() const;
void ShowConnectionUI() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandNetwork2
{
Windows::Foundation::IAsyncOperation<bool> GetVoiceCallSupportAsync() const;
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandUiccApp> RegistrationUiccApps() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandNetworkRegistrationStateChange
{
hstring DeviceId() const;
Windows::Networking::NetworkOperators::MobileBroadbandNetwork Network() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails
{
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChange> NetworkRegistrationStateChanges() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandPin
{
Windows::Networking::NetworkOperators::MobileBroadbandPinType Type() const;
Windows::Networking::NetworkOperators::MobileBroadbandPinLockState LockState() const;
Windows::Networking::NetworkOperators::MobileBroadbandPinFormat Format() const;
bool Enabled() const;
uint32_t MaxLength() const;
uint32_t MinLength() const;
uint32_t AttemptsRemaining() const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> EnableAsync(hstring_view currentPin) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> DisableAsync(hstring_view currentPin) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> EnterAsync(hstring_view currentPin) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> ChangeAsync(hstring_view currentPin, hstring_view newPin) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult> UnblockAsync(hstring_view pinUnblockKey, hstring_view newPin) const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandPinLockStateChange
{
hstring DeviceId() const;
Windows::Networking::NetworkOperators::MobileBroadbandPinType PinType() const;
Windows::Networking::NetworkOperators::MobileBroadbandPinLockState PinLockState() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandPinLockStateChangeTriggerDetails
{
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChange> PinLockStateChanges() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandPinManager
{
Windows::Foundation::Collections::IVectorView<winrt::Windows::Networking::NetworkOperators::MobileBroadbandPinType> SupportedPins() const;
Windows::Networking::NetworkOperators::MobileBroadbandPin GetPin(Windows::Networking::NetworkOperators::MobileBroadbandPinType pinType) const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandPinOperationResult
{
bool IsSuccessful() const;
uint32_t AttemptsRemaining() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandRadioStateChange
{
hstring DeviceId() const;
Windows::Networking::NetworkOperators::MobileBroadbandRadioState RadioState() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandRadioStateChangeTriggerDetails
{
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChange> RadioStateChanges() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandUicc
{
hstring SimIccId() const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppsResult> GetUiccAppsAsync() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandUiccApp
{
Windows::Storage::Streams::IBuffer Id() const;
Windows::Networking::NetworkOperators::UiccAppKind Kind() const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppRecordDetailsResult> GetRecordDetailsAsync(iterable<uint32_t> uiccFilePath) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppReadRecordResult> ReadRecordAsync(iterable<uint32_t> uiccFilePath, int32_t recordIndex) const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandUiccAppReadRecordResult
{
Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus Status() const;
Windows::Storage::Streams::IBuffer Data() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandUiccAppRecordDetailsResult
{
Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus Status() const;
Windows::Networking::NetworkOperators::UiccAppRecordKind Kind() const;
int32_t RecordCount() const;
int32_t RecordSize() const;
Windows::Networking::NetworkOperators::UiccAccessCondition ReadAccessCondition() const;
Windows::Networking::NetworkOperators::UiccAccessCondition WriteAccessCondition() const;
};
template <typename D>
struct WINRT_EBO impl_IMobileBroadbandUiccAppsResult
{
Windows::Networking::NetworkOperators::MobileBroadbandUiccAppOperationStatus Status() const;
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::MobileBroadbandUiccApp> UiccApps() const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorNotificationEventDetails
{
Windows::Networking::NetworkOperators::NetworkOperatorEventMessageType NotificationType() const;
hstring NetworkAccountId() const;
uint8_t EncodingType() const;
hstring Message() const;
hstring RuleId() const;
Windows::Devices::Sms::ISmsMessage SmsMessage() const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringAccessPointConfiguration
{
hstring Ssid() const;
void Ssid(hstring_view value) const;
hstring Passphrase() const;
void Passphrase(hstring_view value) const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringClient
{
hstring MacAddress() const;
Windows::Foundation::Collections::IVectorView<Windows::Networking::HostName> HostNames() const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringClientManager
{
Windows::Foundation::Collections::IVectorView<Windows::Networking::NetworkOperators::NetworkOperatorTetheringClient> GetTetheringClients() const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringEntitlementCheck
{
void AuthorizeTethering(bool allow, hstring_view entitlementFailureReason) const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringManager
{
uint32_t MaxClientCount() const;
uint32_t ClientCount() const;
Windows::Networking::NetworkOperators::TetheringOperationalState TetheringOperationalState() const;
Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration GetCurrentAccessPointConfiguration() const;
Windows::Foundation::IAsyncAction ConfigureAccessPointAsync(const Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration & configuration) const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult> StartTetheringAsync() const;
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult> StopTetheringAsync() const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringManagerStatics
{
Windows::Networking::NetworkOperators::TetheringCapability GetTetheringCapability(hstring_view networkAccountId) const;
Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager CreateFromNetworkAccountId(hstring_view networkAccountId) const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringManagerStatics2
{
Windows::Networking::NetworkOperators::TetheringCapability GetTetheringCapabilityFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile) const;
Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager CreateFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile) const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringManagerStatics3
{
Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager CreateFromConnectionProfile(const Windows::Networking::Connectivity::ConnectionProfile & profile, const Windows::Networking::Connectivity::NetworkAdapter & adapter) const;
};
template <typename D>
struct WINRT_EBO impl_INetworkOperatorTetheringOperationResult
{
Windows::Networking::NetworkOperators::TetheringOperationStatus Status() const;
hstring AdditionalErrorMessage() const;
};
template <typename D>
struct WINRT_EBO impl_IProvisionFromXmlDocumentResults
{
bool AllElementsProvisioned() const;
hstring ProvisionResultsXml() const;
};
template <typename D>
struct WINRT_EBO impl_IProvisionedProfile
{
void UpdateCost(Windows::Networking::Connectivity::NetworkCostType value) const;
void UpdateUsage(const Windows::Networking::NetworkOperators::ProfileUsage & value) const;
};
template <typename D>
struct WINRT_EBO impl_IProvisioningAgent
{
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::ProvisionFromXmlDocumentResults> ProvisionFromXmlDocumentAsync(hstring_view provisioningXmlDocument) const;
Windows::Networking::NetworkOperators::ProvisionedProfile GetProvisionedProfile(Windows::Networking::NetworkOperators::ProfileMediaType mediaType, hstring_view profileName) const;
};
template <typename D>
struct WINRT_EBO impl_IProvisioningAgentStaticMethods
{
Windows::Networking::NetworkOperators::ProvisioningAgent CreateFromNetworkAccountId(hstring_view networkAccountId) const;
};
template <typename D>
struct WINRT_EBO impl_IUssdMessage
{
uint8_t DataCodingScheme() const;
void DataCodingScheme(uint8_t value) const;
com_array<uint8_t> GetPayload() const;
void SetPayload(array_view<const uint8_t> value) const;
hstring PayloadAsText() const;
void PayloadAsText(hstring_view value) const;
};
template <typename D>
struct WINRT_EBO impl_IUssdMessageFactory
{
Windows::Networking::NetworkOperators::UssdMessage CreateMessage(hstring_view messageText) const;
};
template <typename D>
struct WINRT_EBO impl_IUssdReply
{
Windows::Networking::NetworkOperators::UssdResultCode ResultCode() const;
Windows::Networking::NetworkOperators::UssdMessage Message() const;
};
template <typename D>
struct WINRT_EBO impl_IUssdSession
{
Windows::Foundation::IAsyncOperation<Windows::Networking::NetworkOperators::UssdReply> SendMessageAndGetReplyAsync(const Windows::Networking::NetworkOperators::UssdMessage & message) const;
void Close() const;
};
template <typename D>
struct WINRT_EBO impl_IUssdSessionStatics
{
Windows::Networking::NetworkOperators::UssdSession CreateFromNetworkAccountId(hstring_view networkAccountId) const;
Windows::Networking::NetworkOperators::UssdSession CreateFromNetworkInterfaceId(hstring_view networkInterfaceId) const;
};
}
namespace impl {
template <> struct traits<Windows::Networking::NetworkOperators::IFdnAccessManagerStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IFdnAccessManagerStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IFdnAccessManagerStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IHotspotAuthenticationContext>
{
using abi = ABI::Windows::Networking::NetworkOperators::IHotspotAuthenticationContext;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IHotspotAuthenticationContext<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IHotspotAuthenticationContext2>
{
using abi = ABI::Windows::Networking::NetworkOperators::IHotspotAuthenticationContext2;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IHotspotAuthenticationContext2<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IHotspotAuthenticationContextStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IHotspotAuthenticationContextStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IHotspotAuthenticationContextStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IHotspotAuthenticationEventDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::IHotspotAuthenticationEventDetails;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IHotspotAuthenticationEventDetails<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IHotspotCredentialsAuthenticationResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::IHotspotCredentialsAuthenticationResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IHotspotCredentialsAuthenticationResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IKnownCSimFilePathsStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IKnownCSimFilePathsStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IKnownCSimFilePathsStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IKnownRuimFilePathsStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IKnownRuimFilePathsStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IKnownRuimFilePathsStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IKnownSimFilePathsStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IKnownSimFilePathsStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IKnownSimFilePathsStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IKnownUSimFilePathsStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IKnownUSimFilePathsStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IKnownUSimFilePathsStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccount>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccount;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccount<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccount2>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccount2;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccount2<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccount3>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccount3;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccount3<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccountEventArgs>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountEventArgs;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccountEventArgs<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccountStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccountStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccountUpdatedEventArgs>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountUpdatedEventArgs;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccountUpdatedEventArgs<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandAccountWatcher;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandAccountWatcher<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceInformation<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation2>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation2;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceInformation2<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation3>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceInformation3;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceInformation3<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceService>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceService;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceService<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceServiceCommandResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandSession>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceCommandSession;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceServiceCommandSession<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataReceivedEventArgs>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataReceivedEventArgs;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceServiceDataReceivedEventArgs<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataSession>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceDataSession;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceServiceDataSession<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceInformation>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceInformation;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceServiceInformation<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandDeviceServiceTriggerDetails;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandDeviceServiceTriggerDetails<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandModem>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandModem;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandModem<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandModemConfiguration>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandModemConfiguration;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandModemConfiguration<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandModemStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandModemStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandModemStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandNetwork>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandNetwork;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandNetwork<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandNetwork2>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandNetwork2;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandNetwork2<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandNetworkRegistrationStateChange>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandNetworkRegistrationStateChange;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandNetworkRegistrationStateChange<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandNetworkRegistrationStateChangeTriggerDetails<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandPin>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandPin;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandPin<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandPinLockStateChange>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandPinLockStateChange;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandPinLockStateChange<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandPinLockStateChangeTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandPinLockStateChangeTriggerDetails;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandPinLockStateChangeTriggerDetails<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandPinManager>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandPinManager;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandPinManager<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandPinOperationResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandPinOperationResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandPinOperationResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandRadioStateChange>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandRadioStateChange;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandRadioStateChange<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandRadioStateChangeTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandRadioStateChangeTriggerDetails;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandRadioStateChangeTriggerDetails<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandUicc>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandUicc;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandUicc<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandUiccApp>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandUiccApp;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandUiccApp<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppReadRecordResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppReadRecordResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandUiccAppReadRecordResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppRecordDetailsResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppRecordDetailsResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandUiccAppRecordDetailsResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppsResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::IMobileBroadbandUiccAppsResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IMobileBroadbandUiccAppsResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorNotificationEventDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorNotificationEventDetails;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorNotificationEventDetails<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringAccessPointConfiguration>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringAccessPointConfiguration;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringAccessPointConfiguration<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringClient>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringClient;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringClient<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringClientManager>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringClientManager;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringClientManager<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringEntitlementCheck>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringEntitlementCheck;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringEntitlementCheck<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringManager>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringManager;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringManager<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringManagerStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringManagerStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringManagerStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringManagerStatics2>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringManagerStatics2;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringManagerStatics2<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringManagerStatics3>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringManagerStatics3;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringManagerStatics3<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::INetworkOperatorTetheringOperationResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::INetworkOperatorTetheringOperationResult;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_INetworkOperatorTetheringOperationResult<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IProvisionFromXmlDocumentResults>
{
using abi = ABI::Windows::Networking::NetworkOperators::IProvisionFromXmlDocumentResults;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IProvisionFromXmlDocumentResults<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IProvisionedProfile>
{
using abi = ABI::Windows::Networking::NetworkOperators::IProvisionedProfile;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IProvisionedProfile<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IProvisioningAgent>
{
using abi = ABI::Windows::Networking::NetworkOperators::IProvisioningAgent;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IProvisioningAgent<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IProvisioningAgentStaticMethods>
{
using abi = ABI::Windows::Networking::NetworkOperators::IProvisioningAgentStaticMethods;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IProvisioningAgentStaticMethods<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IUssdMessage>
{
using abi = ABI::Windows::Networking::NetworkOperators::IUssdMessage;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IUssdMessage<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IUssdMessageFactory>
{
using abi = ABI::Windows::Networking::NetworkOperators::IUssdMessageFactory;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IUssdMessageFactory<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IUssdReply>
{
using abi = ABI::Windows::Networking::NetworkOperators::IUssdReply;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IUssdReply<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IUssdSession>
{
using abi = ABI::Windows::Networking::NetworkOperators::IUssdSession;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IUssdSession<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::IUssdSessionStatics>
{
using abi = ABI::Windows::Networking::NetworkOperators::IUssdSessionStatics;
template <typename D> using consume = Windows::Networking::NetworkOperators::impl_IUssdSessionStatics<D>;
};
template <> struct traits<Windows::Networking::NetworkOperators::FdnAccessManager>
{
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.FdnAccessManager"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::HotspotAuthenticationContext>
{
using abi = ABI::Windows::Networking::NetworkOperators::HotspotAuthenticationContext;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.HotspotAuthenticationContext"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::HotspotAuthenticationEventDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::HotspotAuthenticationEventDetails;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.HotspotAuthenticationEventDetails"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::HotspotCredentialsAuthenticationResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::HotspotCredentialsAuthenticationResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.HotspotCredentialsAuthenticationResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::KnownCSimFilePaths>
{
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.KnownCSimFilePaths"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::KnownRuimFilePaths>
{
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.KnownRuimFilePaths"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::KnownSimFilePaths>
{
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.KnownSimFilePaths"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::KnownUSimFilePaths>
{
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.KnownUSimFilePaths"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccount>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandAccount;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandAccount"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandAccountEventArgs;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandAccountEventArgs"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccountUpdatedEventArgs>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandAccountUpdatedEventArgs;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandAccountUpdatedEventArgs"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandAccountWatcher;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandAccountWatcher"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceInformation;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceInformation"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceService>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceService;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceService"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceCommandResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandSession>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceCommandSession;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceCommandSession"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataReceivedEventArgs>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataReceivedEventArgs;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataReceivedEventArgs"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceDataSession;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceDataSession"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceInformation>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceInformation;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceInformation"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandDeviceServiceTriggerDetails;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandDeviceServiceTriggerDetails"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandModem>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandModem;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandModem"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandModemConfiguration>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandModemConfiguration;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandModemConfiguration"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandNetwork>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandNetwork;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandNetwork"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChange>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChange;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandNetworkRegistrationStateChange"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChangeTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandNetworkRegistrationStateChangeTriggerDetails;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandNetworkRegistrationStateChangeTriggerDetails"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPin>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandPin;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandPin"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChange>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChange;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandPinLockStateChange"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChangeTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandPinLockStateChangeTriggerDetails;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandPinLockStateChangeTriggerDetails"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinManager>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandPinManager;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandPinManager"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandPinOperationResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandPinOperationResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChange>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChange;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandRadioStateChange"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChangeTriggerDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandRadioStateChangeTriggerDetails;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandRadioStateChangeTriggerDetails"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUicc>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandUicc;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandUicc"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccApp>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandUiccApp;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandUiccApp"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppReadRecordResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandUiccAppReadRecordResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandUiccAppReadRecordResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppRecordDetailsResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandUiccAppRecordDetailsResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandUiccAppRecordDetailsResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::MobileBroadbandUiccAppsResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::MobileBroadbandUiccAppsResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.MobileBroadbandUiccAppsResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorNotificationEventDetails>
{
using abi = ABI::Windows::Networking::NetworkOperators::NetworkOperatorNotificationEventDetails;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.NetworkOperatorNotificationEventDetails"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration>
{
using abi = ABI::Windows::Networking::NetworkOperators::NetworkOperatorTetheringAccessPointConfiguration;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.NetworkOperatorTetheringAccessPointConfiguration"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringClient>
{
using abi = ABI::Windows::Networking::NetworkOperators::NetworkOperatorTetheringClient;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.NetworkOperatorTetheringClient"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager>
{
using abi = ABI::Windows::Networking::NetworkOperators::NetworkOperatorTetheringManager;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.NetworkOperatorTetheringManager"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult>
{
using abi = ABI::Windows::Networking::NetworkOperators::NetworkOperatorTetheringOperationResult;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.NetworkOperatorTetheringOperationResult"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::ProvisionFromXmlDocumentResults>
{
using abi = ABI::Windows::Networking::NetworkOperators::ProvisionFromXmlDocumentResults;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.ProvisionFromXmlDocumentResults"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::ProvisionedProfile>
{
using abi = ABI::Windows::Networking::NetworkOperators::ProvisionedProfile;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.ProvisionedProfile"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::ProvisioningAgent>
{
using abi = ABI::Windows::Networking::NetworkOperators::ProvisioningAgent;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.ProvisioningAgent"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::UssdMessage>
{
using abi = ABI::Windows::Networking::NetworkOperators::UssdMessage;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.UssdMessage"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::UssdReply>
{
using abi = ABI::Windows::Networking::NetworkOperators::UssdReply;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.UssdReply"; }
};
template <> struct traits<Windows::Networking::NetworkOperators::UssdSession>
{
using abi = ABI::Windows::Networking::NetworkOperators::UssdSession;
static constexpr const wchar_t * name() noexcept { return L"Windows.Networking.NetworkOperators.UssdSession"; }
};
}
}
|
/*************************************************************
* > File Name : P3803_NTT.cpp
* > Author : Tony
* > Created Time : 2019/12/11 12:30:08
* > Algorithm :
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
inline int read() {
int x = 0; int f = 1; char ch = getchar();
while (!isdigit(ch)) {if (ch == '-') f = -1; ch = getchar();}
while (isdigit(ch)) {x = x * 10 + ch - 48; ch = getchar();}
return x * f;
}
const int maxn = 2100000;
const int mod = 998244353;
const int g = 3, invg = 332748118;
int rev[maxn], lim = 1, cnt;
LL F[maxn], G[maxn];
LL pow_mod(LL a, LL p, LL n){
int res = 1;
while (p) {
if (p & 1) res = 1LL * res * a % n;
a = 1LL * a * a % n;
p >>= 1;
}
return res;
}
void NTT(LL* A, int opt) {
for (int i = 0; i < lim; ++i) if (i < rev[i]) swap(A[i], A[rev[i]]);
for (int s = 1; s <= log2(lim); ++s) {
int m = 1 << s; LL wn;
if (opt == 1) wn = pow_mod(g, (mod - 1) / m, mod);
else wn = pow_mod(invg, (mod - 1) / m, mod);
for (int k = 0; k < lim; k += m) {
LL w = 1;
for (int j = 0; j < m / 2; ++j) {
LL t = w * (LL)A[k + j + m / 2] % mod;
LL u = A[k + j];
A[k + j] = (u + t) % mod;
A[k + j + m / 2] = (u - t + mod) % mod;
w = w * wn % mod;
}
}
}
if (opt == -1) {
LL inv = pow_mod(lim, mod - 2, mod);
for (int i = 0; i < lim; ++i) A[i] = A[i] * inv % mod;
}
}
int main() {
int n = read(), m = read();
for (int i = 0; i <= n; ++i) F[i] = (read() % mod + mod) % mod;
for (int i = 0; i <= m; ++i) G[i] = (read() % mod + mod) % mod;
while (lim <= n + m) lim <<= 1, cnt++;
for (int i = 0; i < lim; ++i) rev[i] = (rev[i >> 1] >> 1) | ((i & 1) << (cnt - 1));
NTT(F, 1);
NTT(G, 1);
for (int i = 0; i <= lim; ++i) F[i] = F[i] * G[i] % mod;
NTT(F, -1);
for (int i = 0; i <= n + m; ++i) {
printf("%lld ", F[i]);
}
return 0;
}
|
#include "Game_Over.h"
Game_Over::Game_Over(sf::RenderWindow& w) : w(w)
{
fondo.loadFromFile("game_over.jpg");
fuente.loadFromFile("letra.ttf");
//ctor
}
void Game_Over::game_o(Juego j){
t.setPosition(400,700);
t.setCharacterSize(50);
t.setString("RESTART --PRECIONE SPACE--");
s.setPosition(0,0);
s.setTexture(fondo);
s.setScale(0.8, 0.8);
while(w.isOpen()){
w.draw(s);
w.draw(t);
w.display();
sf::Event event;
while (w.pollEvent(event))
{
if(event.type==sf::Event::KeyPressed)
{
if(event.key.code == sf::Keyboard::Space)
{
return j.loop(); }
}
if (event.type == sf::Event::KeyReleased)
{
if (event.key.code == sf::Keyboard::F1){}
}
}
}
}
|
node* getTail(struct node* head)
{
while(head && head->next)
head=head->next;
return head;
}
node* partition(node* head,node* end,node*& newhead,node*&newend)
{
node *pivot=end;
node *prev=NULL,*curr=head,*tail=end;
while(curr!=pivot)
{
if(curr->data<pivot->data)
{
if(!prev)
newhead=curr;
prev=curr;
curr=curr->next;
}
else
{
if(prev)
prev->next=curr->next;
node* tmp=curr->next;
curr->next=NULL;
tail->next=curr;
tail=curr;
curr=tmp;
}
}
if(!prev)
newhead=pivot;
newend=tail;
return pivot;
}
node* quickSortRecur(node* head,node* end)
{
if(!head || head==end )
return head;
node *newhead=NULL,*newend=NULL;
node *pivot=partition(head,end,newhead,newend);
if(newhead!=pivot)
{
node *tmp=newhead;
while(tmp->next!=pivot)
tmp=tmp->next;
tmp->next=NULL;
newhead=quickSortRecur(newhead,tmp);
tmp=getTail(newhead);
tmp->next=pivot;
}
pivot->next=quickSortRecur(pivot->next,newend);
return newhead;
}
void quickSort(struct node **headRef) {
*headRef=quickSortRecur(*headRef,getTail(*headRef));
return;
}
|
#include <iostream>
#include <vector>
using namespace std;
vector<int> findDisappearedNumbers(vector<int> &given)
{
int n = given.size();
vector<int> solution(n, -1);
for (int i = 0; i < n; i++)
solution[given[i] - 1] = 1;
int size = 0;
for (int i = 0; i < n; i++)
if (solution[i] == -1)
{
solution[size] = i + 1;
size++;
}
solution.resize(size);
return solution;
}
int main()
{
vector<int> given({4, 3, 2, 7, 8, 2, 3, 1}), solution = findDisappearedNumbers(given);
for (int i = 0; i < solution.size(); i++)
cout << solution[i] << " ";
return 0;
}
|
#ifndef PROCESSOR_H
#define PROCESSOR_H
#include <vector>
#include <string>
class Processor {
public:
float Utilization();
Processor();
private:
// previous total cpu time since boot =
// user+nice+system+idle+iowait+irq+softirq+steal
long prevNonIdle;
// previous idle time since boot = idle + iowait
long prevIdle;
// convert the given string vector into a long vector
std::vector<long> convertToLong(std::vector<std::string> values);
};
#endif
|
//
// Copyright (C) 2018 Ruslan Manaev (manavrion@yandex.com)
// This file is part of the Modern Expert System
//
#include "item.h"
#include "gtest/gtest.h"
using namespace mes_core;
using namespace nlohmann;
const Item a{"item_name1", {{1, 2}}, "desc1", "img1", 1};
const Item b{"item_name2", {{1, 2}}, "desc1", "img1", 1};
const Item c{"item_name1", {{1, 3}}, "desc1", "img1", 1};
const Item d{"item_name1", {{1, 2}}, "desc2", "img1", 1};
const Item e{"item_name1", {{1, 2}}, "desc1", "img2", 1};
const Item f{"item_name1", {{1, 2}}, "desc1", "img1", 2};
TEST(ItemTest, Compare) {
EXPECT_EQ(a, a);
// < test
EXPECT_LT(a, b);
EXPECT_LT(a, c);
EXPECT_LT(a, d);
EXPECT_LT(a, e);
EXPECT_LT(a, f);
// != test
EXPECT_NE(a, b);
EXPECT_NE(a, c);
EXPECT_NE(a, d);
EXPECT_NE(a, e);
EXPECT_NE(a, f);
}
TEST(ItemTest, Storing) {
EXPECT_EQ(Item(json(a)), a);
EXPECT_EQ(json(a), json(a));
EXPECT_NE(json(a), json(b));
EXPECT_NE(json(a), json(c));
EXPECT_NE(json(a), json(d));
EXPECT_NE(json(a), json(e));
EXPECT_NE(json(a), json(f));
}
|
#include "../../graphics.h"
#include "light.h"
DXPLIGHT::DXPLIGHT()
{
Type = GU_POINTLIGHT;
Component = GU_DIFFUSE_AND_SPECULAR;
Position.z = Position.y = Position.x = 0.0f;
Direction.z = Direction.y = Direction.x = 0.0f;
Attenuation[0] = 1.0f;
Attenuation[1] = 0.0f;
Attenuation[2] = 0.0f;
AmbientColor = 0xffffffff;
DiffuseColor = 0xffffffff;
SpecularColor = 0xffffffff;
SpotlightExponent = 0;
SpotlightAngle = 0.392699081f;//pi/8
}
int DXPLIGHT::Update(int id,const DXPLIGHT *param)
{
if(id < 0 || id >= 4)return -1;
if(param == NULL)
{
sceGuDisable(GU_LIGHT0 + id);
return 0;
}
switch(param->Type)
{
case GU_POINTLIGHT:
break;
case GU_DIRECTIONAL:
sceGuLightSpot(id,¶m->Direction,0,0);
break;
case GU_SPOTLIGHT:
sceGuLightSpot(id,¶m->Direction,param->SpotlightExponent,param->SpotlightAngle);
break;
default:
return -1;
}
sceGuLight(id,param->Type,param->Component,¶m->Position);
sceGuLightAtt(id,param->Attenuation[0],param->Attenuation[1],param->Attenuation[2]);
sceGuLightColor(id,GU_AMBIENT,param->AmbientColor);
sceGuLightColor(id,GU_DIFFUSE,param->DiffuseColor);
sceGuLightColor(id,GU_SPECULAR,param->SpecularColor);
sceGuEnable(GU_LIGHT0 + id);
return 0;
}
|
#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++
bool used[8];
double dist_sum;
int N;
vii coords;
// void dfs(int prev, int m) {
// if (m==N) {
// return ;
// }
// rep(i, N) {
// if (!used[i]) {
// ii prevCity = coords[prev];
// ii currCity = coords[i];
// double dist = sqrt(pow(prevCity.first-currCity.first,2) + pow(prevCity.second-currCity.second, 2));
// dist_sum+=dist;
// used[i] = true;
// dfs(i, m+1);
// used[i] = false;
// }
// }
// }
int main() {
cin>>N;
coords.resize(N);
rep(i,N) {
int x, y; cin>>x>>y;
coords[i]= ii(x,y);
}
// rep(i,N) {
// assert(used[i]==false);
// used[i]=true;
// dfs(i, 1);
// used[i]=false;
// }
ll x = 2;
rep(i,N-1) x*=(i+1);
auto dist = [](ii a, ii b) {
double dx = a.first-b.first, dy = a.second - b.second;
return sqrt(dx*dx + dy*dy);
};
double sum = 0;
rep(i,N) {
for (int j=i+1; j<N; j++) {
sum += dist(coords[i], coords[j]);
}
}
ll denom = 1;
rep(i,N) denom*=(i+1);
double ans = sum*x / (double) denom;
printf("%.10f\n",ans);
return 0;
}
|
//==============================================
// Name : AKSHAY MUKESHBHAI KATRODIYA
// Email : amkatrodiya@myseneca.ca
// Student ID : 125298208
// Section : NAA
// Date : 06/16/2021(wednesday)
// I have done all the coding by myself and only copied the code that my professor provided to complete my workshops and assignments.
//==============================================
#include <iostream>
#include "LabelMaker.h"
#include "cstring.h"
using namespace std;
namespace sdds
{
LabelMaker::LabelMaker(int noOfLabels)
{
if (noOfLabels > 0)
{
totalLabels = noOfLabels;
listForLabel = new Label[noOfLabels];
}
else
{
cout << "please input greater than zero" << endl;
noOfLabels = 0;
}
}
LabelMaker::~LabelMaker()
{
delete[] listForLabel;
listForLabel = nullptr;
}
void LabelMaker::readLabels()
{
if (totalLabels > 0)
{
cout << "Enter " << totalLabels << " labels:" << endl;
for (int i = 0; i < totalLabels; i++)
{
cout << "Enter label number " << i + 1 << endl;
listForLabel[i].readLabel();
}
}
}
void LabelMaker::printLabels()
{
for (int i = 0; i < totalLabels; i++)
{
listForLabel[i].printLabel();
cout << endl;
}
}
}
|
#include "SPI_slave.h"
void CSlaveSPI::init( SPI_TypeDef * hard_spi, const hard_SPI_slave_config * config, spi_data_handler handler )
{
assert_param(handler != NULL);
_handler = handler;
SPI_InitTypeDef SPI_InitStructure;
NVIC_InitTypeDef NVIC_InitStructure;
NVIC_InitStructure.NVIC_IRQChannelPriority = 1;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
_spi = hard_spi;
if (hard_spi == SPI1)
{
RCC_APB2PeriphClockCmd(RCC_APB2Periph_SPI1, ENABLE);
NVIC_InitStructure.NVIC_IRQChannel = SPI1_IRQn;
}
else if (hard_spi == SPI2)
{
RCC_APB1PeriphClockCmd(RCC_APB1Periph_SPI2, ENABLE);
NVIC_InitStructure.NVIC_IRQChannel = SPI2_IRQn;
}
NVIC_Init(&NVIC_InitStructure);
SPI_I2S_DeInit(hard_spi);
SPI_InitStructure.SPI_Direction = SPI_Direction_2Lines_FullDuplex;
SPI_InitStructure.SPI_DataSize = (config->num_of_bit - 1) << 8;
SPI_InitStructure.SPI_CPOL = config->CPOL;
SPI_InitStructure.SPI_CPHA = config->CPHA;
SPI_InitStructure.SPI_NSS = SPI_NSS_Hard;
SPI_InitStructure.SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_64;
SPI_InitStructure.SPI_FirstBit = SPI_FirstBit_MSB;
SPI_InitStructure.SPI_CRCPolynomial = 7;
SPI_InitStructure.SPI_Mode = SPI_Mode_Slave;
SPI_Init(hard_spi, &SPI_InitStructure);
/* Initialize the FIFO threshold */
SPI_RxFIFOThresholdConfig(hard_spi, SPI_RxFIFOThreshold_QF);
/* Enable the SPI peripheral */
SPI_Cmd(hard_spi, ENABLE);
SPI_I2S_ITConfig(hard_spi, SPI_I2S_IT_RXNE, ENABLE);
write_to_FIFO(0);//не уверен что это надо
}
CSlaveSPI::CSlaveSPI( SPI_TypeDef * hard_spi, const hard_SPI_slave_config * config, spi_data_handler handler )
{
init(hard_spi, config, handler);
}
void CSlaveSPI::write_to_FIFO(UI data)
{
if ((_spi->CR2 & 0xf00 ) > SPI_DataSize_8b)
{
SPI_I2S_SendData16(_spi, data);
}
else
{
SPI_SendData8(_spi, data);
}
}
UI CSlaveSPI::read_from_FIFO(void)
{
if ((_spi->CR2 & 0xf00 ) > SPI_DataSize_8b)
{
return SPI_I2S_ReceiveData16(_spi);
}
else
{
return SPI_ReceiveData8(_spi);
}
}
void CSlaveSPI::interrupt_handler(void)
{
if (SPI_I2S_GetFlagStatus(_spi, SPI_I2S_FLAG_RXNE) == SET)
{
U16 data = 0;
bool flag = false;
while(SPI_GetReceptionFIFOStatus(_spi)!=SPI_ReceptionFIFOStatus_Empty)
{
flag = true;
if ((_spi->CR2 & 0xf00 ) > SPI_DataSize_8b)
{
data = SPI_I2S_ReceiveData16(_spi);
}
else
{
data = SPI_ReceiveData8(_spi);
}
}
if(flag && (SPI_TransmissionFIFOStatus_Empty == SPI_GetTransmissionFIFOStatus(_spi)))
{
if ((_spi->CR2 & 0xf00 ) > SPI_DataSize_8b)
{
SPI_I2S_SendData16(_spi, _handler(data));
}
else
{
SPI_SendData8(_spi, _handler(data));
}
}
}
}
|
//Tacuma Solomon
//Computer Science III
//Famous and Infamous - Computer guesses player's famous or infamous person
//Node definition - represents node that stores a question in a binary tree
#include<iostream>
#include<fstream>
#include<string>
#include<sstream>
#include"Game.h"
using namespace std;
void DisplayInstructions();
void Footer();
int main()
{
char again;
DisplayInstructions();
do
{
Game famousInfamous;
ifstream profile;
string file;
string file2;
char cCurrentPath[FILENAME_MAX];
ostringstream fPath;
string profiles = "\\Profiles";
// Sets up the file input
fPath << cCurrentPath << profiles;
profiles = fPath.str();
cout << "Existing game profiles" << endl;
cout << "--------------------------------------------" << endl;
system("dir Profiles\\");
cout << endl;
cout << "Please enter the name of a game to load (e.g. game1): ";
cin >> file;
file2 = "Profiles/" + file;
profile.open(file2.c_str());
if(!profile)
{
cout << "No existing game with that name was found" << endl;
cout << "The game \"" << file << "\" has been created!"
<< endl << endl << endl;
}
else // Load (restore) game from file
{
famousInfamous.Load(profile); //Passes the input stream into the function
}
famousInfamous.Play();
cout << endl << "Play again? (y/n): ";
cin >> again;
//Saves the game to a file
famousInfamous.Save(file2);
cout << endl << endl;
} while (again == 'y');
Footer();
system("pause");
return 0;
}
//displays instructions
void DisplayInstructions()
{
cout << "\tWelcome to Famous and Infamous";
cout << endl << endl;
cout << "Think of a famous or infamous person ";
cout <<"and I'll try to guess his or her name.";
cout << endl << endl;
}
void Footer()
{
cout << endl << endl;
cout << "() Code by Tacuma Solomon " << endl;
cout << "() Not for Redistribution or Reuse." << endl << endl;
}
/*
Welcome to Famous and Infamous
Think of a famous or infamous person and I'll try to guess his or her name.
Existing game profiles
--------------------------------------------
Volume in drive C has no label.
Volume Serial Number is 82E8-827B
Directory of C:\Users\TaKuma\Documents\Visual Studio 2012\Projects\famous-infam
ous\famous-infamous\Profiles
01/16/2013 02:46 PM <DIR> .
01/16/2013 02:46 PM <DIR> ..
01/16/2013 02:46 PM 187 d
01/16/2013 03:12 PM 440 game1
01/16/2013 03:07 PM 94 game2
01/16/2013 03:08 PM 231 game3
4 File(s) 952 bytes
2 Dir(s) 140,508,839,936 bytes free
Please enter the name of a game to load (e.g. game1): game1
Is/was the person real? (y/n): n
Is he Blue and Fast? (y/n): y
Are you thinking of Sonic The Hedgehog? (y/n): y
I guessed it!
Play again? (y/n): y
Existing game profiles
--------------------------------------------
Volume in drive C has no label.
Volume Serial Number is 82E8-827B
Directory of C:\Users\TaKuma\Documents\Visual Studio 2012\Projects\famous-infam
ous\famous-infamous\Profiles
01/16/2013 02:46 PM <DIR> .
01/16/2013 02:46 PM <DIR> ..
01/16/2013 02:46 PM 187 d
01/16/2013 03:13 PM 440 game1
01/16/2013 03:07 PM 94 game2
01/16/2013 03:08 PM 231 game3
4 File(s) 952 bytes
2 Dir(s) 140,507,787,264 bytes free
Please enter the name of a game to load (e.g. game1): game2
Is/was the person real? (y/n): y
Are you thinking of Gandhi? (y/n): y
I guessed it!
Play again? (y/n): n
() Code by Tacuma Solomon
() Not for Redistribution or Reuse.
Press any key to continue . . .
*/
|
SinglyLinkedListNode* reverse(SinglyLinkedListNode* head) {
if(!head||!head->next) return head;
SinglyLinkedListNode* remaining=reverse(head->next);
head->next->next=head;
head->next=nullptr;
return remaining;
}
|
/*
Problem Description
Find the contiguous subarray within an array, A of length N which has the largest sum.
Problem Constraints
1 <= N <= 1e6
-1000 <= A[i] <= 1000
Input Format
The first and the only argument contains an integer array, A.
Output Format
Return an integer representing the maximum possible sum of the contiguous subarray.
Example Input
Input 1:
A = [1, 2, 3, 4, -10]
Input 2:
A = [-2, 1, -3, 4, -1, 2, 1, -5, 4]
Example Output
Output 1:
10
Output 2:
6
Example Explanation
Explanation 1:
The subarray [1, 2, 3, 4] has the maximum possible sum of 10.
Explanation 2:
The subarray [4,-1,2,1] has the maximum possible sum of 6.
*/
int Solution::maxSubArray(const vector<int> &A) {
int max_ending_here = 0;
int max_so_far = INT_MIN;
for(int i = 0; i < A.size(); ++i) {
max_ending_here += A[i];
if(max_so_far < max_ending_here) {
max_so_far = max_ending_here;
}
if(max_ending_here < 0) {
max_ending_here = 0;
}
}
return max_so_far;
}
|
///////////////////////////////////////////////////////////////////////////////
// File: BigNumber.cc
// Author: 671643387@qq.com
// Date: 2015年12月29日 下午1:37:28
// Description:
///////////////////////////////////////////////////////////////////////////////
#include <memory.h>
#include <openssl/bn.h>
#include <algorithm>
#include "crypt/BigNumber.hpp"
namespace encpp
{
namespace crypt
{
BigNumber::BigNumber(void)
: bn_(BN_new())
, array_(NULL)
{
}
BigNumber::BigNumber(const BigNumber& x)
: bn_(BN_dup(x.bn_))
, array_(NULL)
{
}
BigNumber::BigNumber(uint32_t x)
: bn_(BN_new())
, array_(NULL)
{
BN_set_word(bn_, x);
}
BigNumber::~BigNumber(void)
{
BN_free(bn_);
if (array_)
delete[] array_;
}
void BigNumber::setUInt32(uint32_t x)
{
BN_set_word(bn_, x);
}
void BigNumber::setUInt64(uint64_t x)
{
BN_add_word(bn_, (uint32_t)(x >> 32));
BN_lshift(bn_, bn_, 32);
BN_add_word(bn_, (uint32_t)(x & 0xFFFFFFFF));
}
void BigNumber::setBinary(const uint8_t* bytes, int len)
{
uint8_t t[1000];
for (int i = 0; i < len; ++i)
{
t[i] = bytes[len - 1 - i];
}
BN_bin2bn(t, len, bn_);
}
void BigNumber::setHexStr(const char* str)
{
BN_hex2bn(&bn_, str);
}
void BigNumber::setRand(int numbits)
{
BN_rand(bn_, numbits, 0, 1);
}
void BigNumber::Free(void* x)
{
OPENSSL_free(x);
}
BigNumber BigNumber::operator=(const BigNumber& x)
{
BN_copy(bn_, x.bn_);
return *this;
}
BigNumber BigNumber::operator+=(const BigNumber& x)
{
BN_add(bn_, bn_, x.bn_);
return *this;
}
BigNumber BigNumber::operator-=(const BigNumber& x)
{
BN_sub(bn_, bn_, x.bn_);
return *this;
}
BigNumber BigNumber::operator*=(const BigNumber& x)
{
BN_CTX* bnctx;
bnctx = BN_CTX_new();
BN_mul(bn_, bn_, x.bn_, bnctx);
BN_CTX_free(bnctx);
return *this;
}
BigNumber BigNumber::operator/=(const BigNumber& x)
{
BN_CTX* bnctx;
bnctx = BN_CTX_new();
BN_div(bn_, NULL, bn_, x.bn_, bnctx);
BN_CTX_free(bnctx);
return *this;
}
BigNumber BigNumber::operator%=(const BigNumber& x)
{
BN_CTX* bnctx;
bnctx = BN_CTX_new();
BN_mod(bn_, bn_, x.bn_, bnctx);
BN_CTX_free(bnctx);
return *this;
}
BigNumber BigNumber::exp(const BigNumber& bn)
{
BigNumber ret;
BN_CTX* bnctx;
bnctx = BN_CTX_new();
BN_exp(ret.bn_, bn_, bn.bn_, bnctx);
BN_CTX_free(bnctx);
return ret;
}
BigNumber BigNumber::modExp(const BigNumber& bn1, const BigNumber& bn2)
{
BigNumber ret;
BN_CTX* bnctx;
bnctx = BN_CTX_new();
BN_mod_exp(ret.bn_, bn_, bn1.bn_, bn2.bn_, bnctx);
BN_CTX_free(bnctx);
return ret;
}
int BigNumber::getNumBytes(void)
{
return BN_num_bytes(bn_);
}
uint32_t BigNumber::asUInt32()
{
return (uint32_t)BN_get_word(bn_);
}
bool BigNumber::isZero() const
{
return BN_is_zero(bn_) != 0;
}
uint8_t* BigNumber::asByteArray(int minSize)
{
int length = (minSize >= getNumBytes()) ? minSize : getNumBytes();
delete[] array_;
array_ = new uint8_t[length];
// If we need more bytes than length of BigNumber set the rest to 0
if (length > getNumBytes())
{
memset((void*)array_, 0, length);
}
BN_bn2bin(bn_, (unsigned char*)array_);
std::reverse(array_, array_ + length);
return array_;
}
const char* BigNumber::asHexStr()
{
return BN_bn2hex(bn_);
}
const char* BigNumber::asDecStr()
{
return BN_bn2dec(bn_);
}
}
}
|
#include "auraOfPower.h"
AuraOfPower:: AuraOfPower(Player *o):{
name = "AuraOfPower";
cost = 1;
description = "Whenever a minion enter a play under your control, it gains +1/+1"
owner = o;
ability = new Ability();
ability.subscriptionType::minionBirth; // ????
activationCost = 1;
charges = 4;
}
AuraOfPower::void useAbility(Target *t=nullptr){
if(canActivate()){
// need to see implementation of minion
charges -= activationCost;
}
}
|
#include<bits/stdc++.h>
#define ll long long
#define MAX 1000003
#define V vector<int>
#define pii pair<int,int>
#define VP vector< pii >
#define MOD 1000000007
#define mp make_pair
#define pb push_back
#define rep(i,a,b) for(int (i) = (a); (i) < (b); (i)++)
#define all(v) (v).begin(),(v).end()
#define S(x) scanf("%d",&(x))
#define S2(x,y) scanf("%d%d",&(x),&(y))
#define SL(x) scanf("%lld",&(x))
#define SL2(x) scanf("%lld%lld",&(x),&(y))
#define test() ll t;cin>>t;while(t--)
#define P(x) printf("%d\n",(x))
#define FF first
#define SS second
using namespace std;
void findMaxInSubarray(ll *arr, ll n, ll k) {
ll max_upto[n];
stack<ll> s;
s.push(0);
for(ll i=1;i<n;i++){
while(!s.empty() && arr[i]>arr[s.top()]){
max_upto[s.top()] = i-1;
s.pop();
}
s.push(i);
}
while(!s.empty()) {
max_upto[s.top()] = n-1;
s.pop();
}
ll j=0;
for(ll i=0;i<=n-k;i++){
while(j<i || max_upto[j]<i+k-1)
j++;
cout<< arr[j]<<" ";
}
}
int main(){
test(){
ll n, k;
cin>>n>>k;
ll arr[n];
rep(i,0,n){
cin>>arr[i];
}
findMaxInSubarray(arr, n, k);
cout<<endl;
}
return 0;
}
/*
Code by :
Rishabh Patel
Integrated Post Graduation (IPG)
Indian Institute of Information Technology and Management, Gwalior (ABV-IIITM Gwalior)
In order to understand recursion, one must first understand recursion.
*/
|
#include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>
using namespace std;
int main()
{
// fstream cin("a.txt");
int a, b;
vector<long long> nc;
vector<long long> np;
cin>>a;
long long tmp;
for(int i = 0; i < a; i++)
{
cin>>tmp;
nc.push_back(tmp);
}
cin>>b;
for(int i = 0; i < b; i++)
{
cin>>tmp;
np.push_back(tmp);
}
sort(nc.begin(), nc.end());
sort(np.begin(), np.end());
long long getback = 0;
int i = 0, j = 0;
while (i < nc.size() && j < np.size() && nc[i] < 0 && np[j] < 0)
{
getback += nc[i] * np[j];
i++; j++;
}
i = nc.size() - 1;
j = np.size() - 1;
while (i >= 0 && j >= 0 && nc[i] > 0 && np[j] > 0)
{
getback += nc[i] * np[j];
i--; j--;
}
cout<<getback<<endl;
}
|
//variaveis da led
const int vermelho = 5;
const int verde = 6;
const int azul = 7;
bool estadoLedVermelho = false;
//adiçao de um botao
const int botao1 = 2;
const int botao2 = 3;
unsigned long lastDebounceTime1 = 0;
unsigned long lastDebounceTime2 = 0;
const int botaoDelay = 100;
void setup()
{
pinMode(A0, INPUT);
pinMode(A1, INPUT);
//saida led azul
pinMode(vermelho, OUTPUT);
pinMode(verde, OUTPUT);
pinMode(azul, OUTPUT);
Serial.begin(9600);
//nome do grupo
Serial.println("AC1 - Meu Primeiro Projeto 2021");
Serial.println(" V1.0");
Serial.println("Grupo: bullfrog ");
}
//acender e apagar led vermelho
void loop()
{
if((millis() - lastDebounceTime1) > botaoDelay && digitalRead(botao1)){
Serial.println("botao 1 apertado");
ledVermelho(true);
lastDebounceTime1 = millis();
}
if((millis() - lastDebounceTime2) > botaoDelay && digitalRead(botao2)){
int getLuminosidade(){
int luminosidade;
luminosidade = map(analogRead(A1), 6, 619, -3, 10);
return luminosidade;
}
Serial.println("luminosidade elevada");
}else{
ledVerde(false);
Serial.println("botao 2 apertado");
ledVermelho(false);
lastDebounceTime2 = millis();
}
if(getTemperatura() > 15){
ledAzul(true);
Serial.println("temepatura elevada");
}else{
ledAzul(false);
Serial.println("temepatura ideal");
}
if(getLuminosidade() > 5){
ledVerde(true);
Serial.println("luminosidade elevada");
}else{
ledSerial.println("luminosidade ideal");
}
delay(10);
}Verde(false);
void ledVermelho(bool estado){
digitalWrite(vermelho,estado);
}
void ledAzul(bool estado){
digitalWrite(azul,estado);
}
int getTemperatura(){
int temperaturaC;
temperaturaC = map(((analogRead(A0) - 20) * 3.04), 0, 1023, -40, 125)
return temperaturaC;
}
//funcao de leitura da luminosidade
int getLuminosidade(){
int luminosidade;
luminosidade = map(analogRead(A1), 6, 619, -3, 10);
return luminosidade;
}
|
#ifndef TREE_DEMO_H
#define TREE_DEMO_H
#include "Demo3D.h"
#include <Data/TreeHypergraph.h>
#include <Data/MultiMesh.h>
class TreeDemo : public Demo3D
{
protected:
TreeNode *TreeSkeleton = nullptr;
TreeHypergraph *Hypergraph = nullptr;
MultiMesh *Mesh = nullptr;
/*
* TODO: Át kell majd írnu GLuintre!
*/
unsigned int TextureId = 0;
enum DemoState
{
DRAW_SKELETON,
DRAW_HYPERGRAPH,
DRAW_MESH,
};
DemoState State = DRAW_SKELETON;
TreeDemo()
{}
public:
virtual void ChangeState() override
{
if(State == DRAW_SKELETON)
{State = DRAW_HYPERGRAPH;}
else if(State == DRAW_HYPERGRAPH)
{State = DRAW_MESH;}
else if(State == DRAW_MESH)
{State = DRAW_SKELETON;}
}
virtual void Draw() override;
virtual ~TreeDemo() override
{
delete TreeSkeleton;
delete Hypergraph;
delete Mesh;
}
};
#endif // TREE_DEMO_H
|
#include <ros/ros.h>
#include <tf2_ros/transform_listener.h>
#include <std_msgs/String.h>
#include <pepper_head_manager_msgs/PrioritizedPoint.h>
#include <resource_management_msgs/MessagePriority.h>
class HumanFollower {
public:
HumanFollower(ros::NodeHandle& nh): tfListener(tfBuffer){
subscriber_ = nh.subscribe<const std_msgs::String&>("human_to_look", 10, &HumanFollower::onNewHumanToTrack, this);
publisher_ = nh.advertise<pepper_head_manager_msgs::PrioritizedPoint>(
"/pepper_head_manager/human_monitoring/pepper_head_manager_msgs1_PrioritizedPoint", 10);
t_ = nh.createTimer(ros::Duration(0.3), &HumanFollower::onTimer, this);
ROS_INFO("Pepper head human follower started.");
}
void onNewHumanToTrack(const std_msgs::String& human){
frameToTrack = human.data;
}
void onTimer(const ros::TimerEvent& e){
std_msgs::Header header;
header.frame_id = frameToTrack;
header.stamp = ros::Time::now();
pepper_head_manager_msgs::PrioritizedPoint point_with_priority;
geometry_msgs::PointStamped point_stamped;
point_stamped.header = header;
point_with_priority.data = point_stamped;
point_with_priority.priority.value = resource_management_msgs::MessagePriority::VOID;
if (frameToTrack != "")
{
if (tfBuffer.canTransform(frameToTrack, "map", ros::Time(0))) {
auto transform =
tfBuffer.lookupTransform("map", frameToTrack, ros::Time(0));
if (ros::Time::now() - transform.header.stamp <= ros::Duration(0.5)) {
point_with_priority.priority.value =
resource_management_msgs::MessagePriority::URGENT;
double d;
if (lastTransform.header.frame_id != "") {
d = hypot(hypot(transform.transform.translation.x -
lastTransform.transform.translation.x,
transform.transform.translation.y -
lastTransform.transform.translation.y),
transform.transform.translation.z -
lastTransform.transform.translation.z);
}
if (lastTransform.header.frame_id == "" || d >= 0.2){
lastTransform = transform;
}
point_with_priority.data.header.stamp = ros::Time::now();
point_with_priority.data.header.frame_id = "map";
point_with_priority.data.point.x = lastTransform.transform.translation.x;
point_with_priority.data.point.y = lastTransform.transform.translation.y;
point_with_priority.data.point.z = lastTransform.transform.translation.z;
}
}
}
if (point_with_priority.priority.value == resource_management_msgs::MessagePriority::VOID){
lastTransform = geometry_msgs::TransformStamped();
}
publisher_.publish(point_with_priority);
}
protected:
tf2_ros::Buffer tfBuffer;
tf2_ros::TransformListener tfListener;
std::string frameToTrack;
ros::Publisher publisher_;
ros::Subscriber subscriber_;
ros::Timer t_;
geometry_msgs::TransformStamped lastTransform;
};
int main(int argc, char** argv) {
ros::init(argc, argv, "human_point_publisher");
ros::NodeHandle nh("~");
HumanFollower hf(nh);
ros::spin();
}
|
/**
* Copyright 2017
*
* This file is part of On-line POMDP Planning Toolkit (OPPT).
* OPPT is free software: you can redistribute it and/or modify it under the terms of the
* GNU General Public License published by the Free Software Foundation,
* either version 2 of the License, or (at your option) any later version.
*
* OPPT is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with OPPT.
* If not, see http://www.gnu.org/licenses/.
*/
#ifndef _KAMIKAZE_TRAJ_GEN_GENERAL_UTILS_HPP_
#define _KAMIKAZE_TRAJ_GEN_GENERAL_UTILS_HPP_
#include "oppt/plugin/PluginOptions.hpp"
namespace oppt
{
typedef VectorFloat TrajPoint;
typedef std::vector<TrajPoint> TrajData;
typedef std::map<std::string, TrajData> ContainerMap;
// Enumerations of the different kind of vectors infor used.
// THE ORDERED ADOPTED HERE WILL BE USED AS THE CONVENTIONS THROUGHOUT THE PLUGINS
// VARIABLE ORDERS IN STATE VECTORS
enum STATE_INFO{PED_LONGIT, PED_HORIZONTAL, CAR_LONGIT, CAR_HORIZONTAL, CAR_SPEED, INTENTION};
// VARIABLE ORDERS IN CAR STATE VECTOR
enum CAR_STATE_INFO{CAR_POS_LONGIT, CAR_SPEED_LONGIT, CAR_STATE_INTENTION};
enum INTENTION_VEC_INFO{INTENTION_REL_LONGIT, INTENTION_REL_HORIZONTAL, INTENTION_VAL};
// ENUMERATED DISCRETE CAR_INTENTIONS
enum CAR_INTENTIONS{HAZARD_STOP = 0, CRUISING = 3};
// ENUMERATED CAR DIMENSIONS
enum CAR_DIMENSIONS{CAR_LENGTH, CAR_WIDTH, CAR_HEIGHT};
// ENUMERATED PED DIMENSIONS
enum PED_DIMENSIONS{PED_RADIUS, PED_HEIGHT};
// ENUMERATED GOAL ARES
enum GOAL_AREAS{GOAL_LONGIT, GOAL_HOZ};
// ENUMERATED POINTS FOR LOADED SAFE TRAJS
enum SAFE_TRAJ{SAFE_PED_LONGIT, SAFE_PED_HOZ};
// ENUMERATED POINTS FOR LOADED SAFE TRAJS
enum REAL_TRAJ_DATA{TRAJ_LONGIT, TRAJ_HOZ};
// Options object to parse information from configuration file
class KamikazeTrajGenGeneralOptions: public PluginOptions
{
public:
KamikazeTrajGenGeneralOptions() = default;
virtual ~KamikazeTrajGenGeneralOptions() = default;
// General variables
std::string carLinkName = "";
std::string pedLinkName = "";
VectorFloat carDimensions;
VectorFloat pedDimensions;
VectorFloat intentionDiscretization;
VectorFloat intentionDiscretizationLower;
VectorFloat intentionDiscretizationUpper;
// Car start position options
VectorFloat carStartPos;
// Save trajectory options
std::string safeTrajFilePath = "";
std::string safeTrajKey = "";
// Initial belief variables
VectorFloat upperBound;
VectorFloat lowerBound;
// Transition variables
FloatType processError = 0.0;
FloatType fixedStepTime = 0.3;
VectorUInt actionSpaceDiscretization;
// Variables for basic controller transition
FloatType brakingDeceleration = -3.0;
FloatType controllerMultiplier = 1;
FloatType fixedVelocity = 8.33;
// Observation variables
FloatType carObsError = 0.0;
// Reward variables
FloatType goalReward = 0.0;
FloatType terminalPenalty = 0.0;
FloatType stepPenalty = 0.0;
// Terminal variables
FloatType avoidedDistance = 0.0;
static std::unique_ptr<options::OptionParser> makeParser() {
std::unique_ptr<options::OptionParser> parser =
PluginOptions::makeParser();
addGeneralPluginOptions(parser.get());
return std::move(parser);
}
// Add the transition plugin options
static void addGeneralPluginOptions(options::OptionParser* parser) {
/*** General options ***/
// Typical recommended deceleration rates
parser->addOption<FloatType>("generalOptions",
"brakingDeceleration",
&KamikazeTrajGenGeneralOptions::brakingDeceleration);
// Controller type multiplier
parser->addOption<FloatType>("generalOptions",
"fixedVelocity",
&KamikazeTrajGenGeneralOptions::fixedVelocity);
// Controller type multiplier
parser->addOption<FloatType>("generalOptions",
"controllerMultiplier",
&KamikazeTrajGenGeneralOptions::controllerMultiplier);
parser->addOption<std::string>("generalOptions",
"carLinkName",
&KamikazeTrajGenGeneralOptions::carLinkName);
parser->addOption<std::string>("generalOptions",
"pedLinkName",
&KamikazeTrajGenGeneralOptions::pedLinkName);
parser->addOption<VectorFloat>("generalOptions",
"carDimensions",
&KamikazeTrajGenGeneralOptions::carDimensions);
parser->addOption<VectorFloat>("generalOptions",
"pedDimensions",
&KamikazeTrajGenGeneralOptions::pedDimensions);
// Intention discretization
parser->addOption<VectorFloat>("generalOptions",
"intentionDiscretization",
&KamikazeTrajGenGeneralOptions::intentionDiscretization);
parser->addOption<VectorFloat>("generalOptions",
"intentionDiscretizationUpper",
&KamikazeTrajGenGeneralOptions::intentionDiscretizationUpper);
parser->addOption<VectorFloat>("generalOptions",
"intentionDiscretizationLower",
&KamikazeTrajGenGeneralOptions::intentionDiscretizationLower);
// Load car start position
parser->addOption<VectorFloat>("generalOptions",
"carStartPos",
&KamikazeTrajGenGeneralOptions::carStartPos);
// Load safe trajs from a file
parser->addOption<std::string>("generalOptions",
"safeTrajFilePath",
&KamikazeTrajGenGeneralOptions::safeTrajFilePath);
parser->addOption<std::string>("generalOptions",
"safeTrajIndex",
&KamikazeTrajGenGeneralOptions::safeTrajKey);
/*** Initial belief options ***/
// Lower starting bound
parser->addOption<VectorFloat>("initialBeliefOptions",
"lowerBound",
&KamikazeTrajGenGeneralOptions::lowerBound);
// Upper starting bound
parser->addOption<VectorFloat>("initialBeliefOptions",
"upperBound",
&KamikazeTrajGenGeneralOptions::upperBound);
/*** Transition options ***/
parser->addOption<FloatType>("transitionPluginOptions",
"processError",
&KamikazeTrajGenGeneralOptions::processError);
parser->addOption<FloatType>("transitionPluginOptions",
"fixedStepTime",
&KamikazeTrajGenGeneralOptions::fixedStepTime);
// Action discretization options
VectorUInt defVec;
parser->addOptionWithDefault<VectorUInt>("ABT",
"actionDiscretization",
&KamikazeTrajGenGeneralOptions::actionSpaceDiscretization, defVec);
/*** Observation Plugin options ***/
parser->addOption<FloatType>("observationPluginOptions",
"carObsError",
&KamikazeTrajGenGeneralOptions::carObsError);
/*** Reward Plugin options ***/
parser->addOption<FloatType>("rewardPluginOptions",
"goalReward",
&KamikazeTrajGenGeneralOptions::goalReward);
parser->addOption<FloatType>("rewardPluginOptions",
"terminalPenalty",
&KamikazeTrajGenGeneralOptions::terminalPenalty);
parser->addOption<FloatType>("rewardPluginOptions",
"stepPenalty",
&KamikazeTrajGenGeneralOptions::stepPenalty);
/*** Terminal Plugin options ***/
parser->addOption<FloatType>("terminalPluginOptions",
"avoidedDistance",
&KamikazeTrajGenGeneralOptions::avoidedDistance);
}
};
class SKDUserData: public RobotStateUserData {
public:
SKDUserData():
RobotStateUserData() {
}
virtual ~SKDUserData() = default;
CollisionReportSharedPtr collisionReport = nullptr;
size_t visitIndex = 0;
TrajData safeTrajectory;
};
/*** HELPER FUNCTIONS ***/
// Computes the magnitude of the given vector
inline FloatType getMagnitude(VectorFloat& vec) {
FloatType result = 0.0;
for(auto& component : vec){
result += (component*component);
}
return sqrt(result);
}
/*** Function to retrieve either the scoped(0) or unscoped(1) part of a link or collision object name ***/
std::string getScopingIndexName(std::string name, int index){
std::string result;
if (name.find("::") != std::string::npos) {
VectorString nameElems;
split(name, "::", nameElems);
// result = nameElems[index];
std::vector<std::string> list;
list.push_back(nameElems[0]);
list.push_back(nameElems[1]);
std::string joined = boost::algorithm::join(list, "::");
result = joined;
}
return result;
}
}
#endif
|
#include <iostream>
#include <stdio.h>
#include <string.h>
using namespace std;
const int maxn = 100005;
int visit[maxn];
int main()
{
int n,m,k,id;
while(~scanf("%d",&n)){
memset(visit,0,sizeof(visit));
for(int i=0;i<n;i++){
scanf("%d",&k);
for(int j=0;j<k;j++){
scanf("%d",&id);
if(k == 1)break;//只有自己的朋友圈排出
visit[id] = 1;
}
}
scanf("%d",&m);
int searId,flag = 0;
for(int i=0;i<m;i++){
scanf("%d",&searId);
if(!visit[searId]){
if(++flag > 1) printf(" ");
printf("%05d",searId);
visit[searId] = 1;
}
}
if(flag == 0) printf("No one is handsome");
printf("\n");
}
return 0;
}
|
/***************************************************************************
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 "OutputRST.h"
#include "ClassBrowser.h"
#include "DocScript.h"
#include "ScriptOMAll.h"
#include "format.h"
#include <filesystem>
#include <regex>
#include "StringUtil.h"
using namespace std::tr2::sys;
// The code in this file is responsible for generating .rst documentation based on compiling the source code
// and reading comments in the source dode.
//
// This uses reStructuredText's js domain, as it is most similar to SCI.
std::string scriptFilenameSuffix = ".sc";
std::string indent = " ";
std::string ClassesFolder = "Classes";
std::string ScriptsFolder = "Scripts";
std::string ProceduresFolder = "Procedures";
std::string KernelsFolder = "Kernels";
std::string NoDocTag = "nodoc";
std::string rstFunction = ".. function::";
// Temporary:
std::set<std::string> ImportantRootClasses =
{
"Motion",
"IconItem",
"Cycle",
"Feature",
"Control",
// "Collect" // Not that interesting.
};
// Because their hierarchy is deep
std::set<std::string> PortraitRootClasses =
{
"Feature",
};
const int BlockDiagramFontSize = 16;
const int BlockDiagramMaxWidth = 600;
void MaybeOutputBlockDiagram(fmt::MemoryWriter &w, SCIClassBrowser &browser, const std::string &theClassInQuestion)
{
// Find the root, and see if this is an important class
std::string currentClass = theClassInQuestion;
std::string rootClass;
bool important = ImportantRootClasses.find(currentClass) != ImportantRootClasses.end();
if (important)
{
rootClass = currentClass;
}
const sci::ClassDefinition *classDef = nullptr;
while ((classDef = browser.LookUpClass(currentClass)) != nullptr)
{
currentClass = classDef->GetSuperClass();
if (!important)
{
important = ImportantRootClasses.find(currentClass) != ImportantRootClasses.end();
if (important)
{
rootClass = currentClass;
}
}
}
// Print out a tree of all classes that inherit from the root class of this guy,
// and then highlight the guy in color.
if (important)
{
w << ".. blockdiag::\n";
w << "\t:alt: class diagram\n";
w << "\t:width: " << BlockDiagramMaxWidth << "\n";
w << "\n";
w << "\tdiagram {\n";
w << "\t\tdefault_fontsize = "<< BlockDiagramFontSize << "\n";
if (PortraitRootClasses.find(rootClass) != PortraitRootClasses.end())
{
w << "\t\torientation = portrait;\n";
}
std::vector<std::string> todo = { rootClass };
// Now follow all subclasses.
while (!todo.empty())
{
std::string someClass = todo.back();
todo.pop_back();
for (auto &subClass : browser.GetDirectSubclasses(someClass))
{
// Some of the Sierra debug classes are prepended with _. Exclude those.
if (!subClass.empty() && subClass[0] != '_')
{
todo.push_back(subClass);
w << "\t\t" << someClass << " -> " << subClass << "\n";
}
}
}
w << "\t\t" << theClassInQuestion << " [color=greenyellow]\n";
w << "\t}\n\n";
}
}
// Adds an entry to generated files, returns the absolute path to the generated file.
std::string OutputRSTHelper(const std::string &rstFolder, const std::string &subFolder, const std::string &title, std::vector<std::string> &generatedFiles)
{
std::string scriptsFolderPath = subFolder.empty() ? rstFolder : (rstFolder + "\\" + subFolder);
std::string relativeScriptsPath = subFolder.empty() ? title : (subFolder + "\\" + title);
generatedFiles.push_back(relativeScriptsPath);
std::string fullScriptsPath = rstFolder + "\\" + relativeScriptsPath + ".rst";
EnsureFolderExists(scriptsFolderPath, false);
return fullScriptsPath;
}
void OutputPreamble(fmt::MemoryWriter &w, const std::string &title, const std::string &title2)
{
w << ".. " << title << "\n\n";
w << ".. default - domain::js\n\n"
".. include:: /includes/standard.rst\n\n";
// Title
std::string titleBar(title2.length(), '=');
w << titleBar << "\n";
w << title2 << "\n";
w << titleBar << "\n\n";
}
std::string MarkFunctionAsNoIndex(const std::string &comment, bool skipFirst)
{
std::string result;
size_t offset = 0;
size_t pos;
bool first = true;
while ((pos = comment.find(rstFunction, offset)) != std::string::npos)
{
// Advance to the next line
pos = comment.find('\n', pos);
if (pos != std::string::npos)
{
pos++; // Advance to after newline.
}
else
{
pos = comment.length();
}
std::copy(comment.begin() + offset, comment.begin() + pos, std::back_inserter(result));
// Now add in our :noindex:
if (!skipFirst || !first)
{
result += "\t:noindex:\n";
}
offset = pos;
first = false;
}
// Copy the remainder:
std::copy(comment.begin() + offset, comment.end(), std::back_inserter(result));
return result;
}
bool iStartsWith(const std::string& a, const std::string& prefix)
{
if (prefix.length() > a.length())
{
return false;
}
for (size_t i = 0; i < prefix.length(); i++)
{
if (toupper(a[i]) != (toupper(prefix[i])))
{
return false;
}
}
return true;
}
bool ShouldDocumentScript(DocScript &script)
{
return !iStartsWith(script.GetComment(script.GetScript()), NoDocTag);
}
bool ShouldDocument(DocScript &script, const sci::SyntaxNode *node)
{
return !iStartsWith(script.GetComment(node), NoDocTag);
}
void OutputPropertyTableRSTWorker(fmt::MemoryWriter &w, std::vector<std::pair<std::string, std::string>> properties, const std::string &title)
{
// Remove the name property
properties.erase(std::remove_if(properties.begin(), properties.end(), [](std::pair<std::string, std::string> &entry) { return entry.second == "name"; }), properties.end());
std::string propertyHeader = "Property";
std::string descriptionHeader = "Description";
size_t maxPropLength = propertyHeader.length();
size_t maxDescriptionLength = descriptionHeader.length();
for (auto &property : properties)
{
maxPropLength = max(maxPropLength, property.first.length());
maxDescriptionLength = max(maxDescriptionLength, property.second.length());
}
size_t maxTotalLength = maxPropLength + maxDescriptionLength + 1;
w << title << ":\n\n";
std::string propertyLine(maxPropLength, '=');
std::string descriptionLine(maxDescriptionLength, '=');
w << propertyLine << " " << descriptionLine << "\n";
std::string propSpecifier = fmt::format("{{: <{}s}}", maxPropLength); // Generates someting like "{: <13s}", which is a 13-wide specifier, with space fill characters.
std::string descriptionSpecifier = fmt::format("{{: <{}s}}", maxDescriptionLength);
w << fmt::format(propSpecifier, propertyHeader) << " " << fmt::format(descriptionSpecifier, descriptionHeader) << "\n";
w << propertyLine << " " << descriptionLine << "\n";
for (auto &property : properties)
{
w << fmt::format(propSpecifier, property.first) << " " << fmt::format(descriptionSpecifier, property.second) << "\n";
}
w << propertyLine << " " << descriptionLine << "\n";
w << "\n";
}
void OutputScriptRST(DocScript &docScript, const std::string &rstFolder, std::vector<std::string> &generatedFiles)
{
auto *script = docScript.GetScript();
// Classes
auto &classesAndInstances = script->GetClasses();
sci::RawClassVector justClasses;
for (auto &maybeClass : classesAndInstances)
{
if (!maybeClass->IsInstance() && ShouldDocument(docScript, maybeClass.get()))
{
justClasses.push_back(maybeClass.get());
}
}
// Procedures
auto &allProcs = script->GetProcedures();
sci::RawProcedureVector publicProcs;
for (auto &maybePublicProc : allProcs)
{
if (maybePublicProc->IsPublic() && ShouldDocument(docScript, maybePublicProc.get()))
{
publicProcs.push_back(maybePublicProc.get());
}
}
bool isMain = (script->GetScriptNumber() == 0);
// If there are no classes or public procedures, don't bother outputting anything for this script.
// This filters out room scripts and such.
if (!publicProcs.empty() || !justClasses.empty() || isMain)
{
if (ShouldDocumentScript(docScript))
{
std::string randomText = docScript.GetComment(script);
std::string fullPath = OutputRSTHelper(rstFolder, ScriptsFolder, script->GetTitle(), generatedFiles);
fmt::MemoryWriter w;
OutputPreamble(w, script->GetTitle() + scriptFilenameSuffix, script->GetTitle() + scriptFilenameSuffix);
// Random text
w << randomText << "\n\n";
if (!justClasses.empty())
{
w << "Classes" << "\n";
w << "==========" << "\n\n";
for (auto &theClass : justClasses)
{
w << ":class:`" << theClass->GetName() << "`";
if (!theClass->GetSuperClass().empty()) // Happens in one case, with Obj
{
w << " of " << theClass->GetSuperClass();
}
w << "\n\n";
}
}
if (!publicProcs.empty())
{
w << "Public Procedures" << "\n";
w << "=================" << "\n\n";
for (auto &proc : publicProcs)
{
w << ":func:`" << proc->GetName() << "`\n\n";
}
}
if (isMain)
{
w << "Global variables " << "\n";
w << "=================" << "\n\n";
std::vector<std::pair<std::string, std::string>> globalVaPairs;
for (auto &globalVar : script->GetScriptVariables())
{
globalVaPairs.emplace_back(globalVar->GetName(), docScript.GetComment(globalVar.get()));
}
OutputPropertyTableRSTWorker(w, globalVaPairs, "");
}
MakeTextFile(w.str().c_str(), fullPath);
}
}
}
void OutputFunctionRSTHelper(DocScript &docScript, fmt::MemoryWriter &w, sci::FunctionBase &function, bool isProcedure)
{
std::string randomText = docScript.GetComment(&function);
if (randomText.find(rstFunction) == std::string::npos)
{
int signatureCount = 0;
for (auto &signature : function.GetSignatures())
{
// No function definition provided. Make one up.
w << rstFunction << " " << function.GetName() << "(";
bool first = true;
bool startedOptional = false;
int requiredParams = (int)signature->GetRequiredParameterCount();
int paramCount = 0;
for (auto ¶m : signature->GetParams())
{
if (!first)
{
w << " ";
}
if (!startedOptional && (paramCount >= requiredParams))
{
startedOptional = true;
w << "[";
}
w << param->GetName();
first = false;
paramCount++;
}
if (startedOptional)
{
w << "]";
}
w << ")\n";
if (!isProcedure || (signatureCount > 0))
{
// Methods are always :noindex: since their names may not be unique..
w << "\t:noindex:\n";
}
w << "\n";
signatureCount++;
}
randomText = Indent(randomText);
}
else
{
// Warning if the function doesn't match.
std::string sub = randomText;
uint32_t pos;
while ((pos = sub.find(rstFunction)) != std::string::npos)
{
sub = sub.substr(pos + rstFunction.length());
ltrim(sub);
uint32_t endPos = sub.find_first_not_of("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_");
if (endPos != std::string::npos)
{
std::string functionName = sub.substr(0, endPos);
if (functionName != function.GetName())
{
throw std::exception((functionName + " doesn't match " + function.GetName()).c_str());
}
sub = sub.substr(endPos);
}
}
randomText = MarkFunctionAsNoIndex(randomText, isProcedure);
}
w << randomText << "\n\n";
}
void OutputKernelsRST(DocScript &docScript, const std::string &rstFolder, std::vector<std::string> &generatedFiles)
{
auto *script = docScript.GetScript();
for (auto &proc : script->GetProcedures())
{
fmt::MemoryWriter w;
OutputPreamble(w, proc->GetName(), fmt::format("{0} (Kernel)", proc->GetName()));
OutputFunctionRSTHelper(docScript, w, *proc, true);
std::string fullPath = OutputRSTHelper(rstFolder, KernelsFolder, proc->GetName(), generatedFiles);
MakeTextFile(w.str().c_str(), fullPath);
}
}
// Must be a guarantee that name exists.
const sci::ClassProperty *FindProperty(const sci::ClassPropertyVector &properties, const std::string &name)
{
auto it = std::find_if(properties.begin(), properties.end(), [name](const std::unique_ptr<sci::ClassProperty> &property) { return property->GetName() == name; });
return (it != properties.end()) ? it->get() : nullptr;
}
void OutputPropertyTableRST(SCIClassBrowser &browser, DocScript &docScript, fmt::MemoryWriter &w, sci::ClassDefinition &theClass)
{
// Find *all* the properties that are part of this class, and differentiate those that were newly
// defined vs those that were inherited.
std::vector<std::string> inheritedProperties;
std::vector<std::string> newProperties;
auto allProps = browser.CreatePropertyNameArray(theClass.GetName());
if (theClass.GetSuperClass().empty())
{
newProperties = *allProps;
}
else
{
// It's important to preserve declaration order here.
auto superProps = browser.CreatePropertyNameArray(theClass.GetSuperClass());
for (auto &prop : *allProps)
{
if (std::find(superProps->begin(), superProps->end(), prop) == superProps->end())
{
newProperties.push_back(prop);
}
else
{
inheritedProperties.push_back(prop);
}
}
}
// Properties
w << "Properties\n";
w << "==========\n\n";
if (!theClass.GetSuperClass().empty())
{
std::vector<std::pair<std::string, std::string>> inheritedPropertyPairs;
for (auto &property : inheritedProperties)
{
inheritedPropertyPairs.emplace_back(property, docScript.GetComment(FindProperty(theClass.GetProperties(), property)));
}
if (!inheritedProperties.empty())
{
OutputPropertyTableRSTWorker(w, inheritedPropertyPairs, fmt::format("Inherited from :class:`{0}`", theClass.GetSuperClass()));
}
}
std::vector<std::pair<std::string, std::string>> newPropertyPairs;
for (auto &property : newProperties)
{
newPropertyPairs.emplace_back(property, docScript.GetComment(FindProperty(theClass.GetProperties(), property)));
}
if (!newProperties.empty())
{
OutputPropertyTableRSTWorker(w, newPropertyPairs, fmt::format("Defined in {0}", theClass.GetName()));
}
}
void OutputClassRST(SCIClassBrowser &browser, DocScript &docScript, const std::string &rstFolder, std::vector<std::string> &generatedFiles)
{
if (ShouldDocumentScript(docScript))
{
ClassBrowserLock lock(browser);
lock.Lock();
auto *script = docScript.GetScript();
for (auto &theClass : script->GetClasses())
{
if (!theClass->IsInstance() && ShouldDocument(docScript, theClass.get()))
{
std::string fullPath = OutputRSTHelper(rstFolder, ClassesFolder, theClass->GetName(), generatedFiles);
fmt::MemoryWriter w;
if (theClass->GetSuperClass().empty())
{
OutputPreamble(w, theClass->GetName(), fmt::format("{0}", theClass->GetName()));
}
else
{
OutputPreamble(w, theClass->GetName(), fmt::format("{0} (of :class:`{1}`)", theClass->GetName(), theClass->GetSuperClass()));
}
w << ".. class:: " << theClass->GetName() << "\n\n";
w << "\tDefined in " << theClass->GetOwnerScript()->GetName() << ".\n\n";
// Random text
std::string indentedText = Indent(docScript.GetComment(theClass.get()));
w << indentedText << "\n\n";
// Are there any subclasses? List them.
std::vector<std::string> directSubclasses = browser.GetDirectSubclasses(theClass->GetName());
if (!directSubclasses.empty())
{
w << "Subclasses: ";
bool first = true;
for (auto &subClassName : directSubclasses)
{
if (!first)
{
w << ", ";
}
w << ":class:`" << subClassName << "`";
first = false;
}
w << ".\n\n";
}
MaybeOutputBlockDiagram(w, browser, theClass->GetName());
OutputPropertyTableRST(browser, docScript, w, *theClass);
// Methods - we'll do these inline instead of making new documents for them.
w << "\n";
w << "Methods\n";
w << "==========\n\n";
for (auto &method : theClass->GetMethods())
{
OutputFunctionRSTHelper(docScript, w, *method, false);
}
MakeTextFile(w.str().c_str(), fullPath);
}
}
}
}
void OutputProceduresRST(DocScript &docScript, const std::string &rstFolder, std::vector<std::string> &generatedFiles)
{
if (ShouldDocumentScript(docScript))
{
auto *script = docScript.GetScript();
for (auto &proc : script->GetProcedures())
{
if (proc->IsPublic() && ShouldDocument(docScript, proc.get()))
{
fmt::MemoryWriter w;
OutputPreamble(w, proc->GetName(), fmt::format("{0} ({1}{2})", proc->GetName(), script->GetTitle(), scriptFilenameSuffix));
OutputFunctionRSTHelper(docScript, w, *proc, true);
std::string fullPath = OutputRSTHelper(rstFolder, ProceduresFolder, proc->GetName(), generatedFiles);
MakeTextFile(w.str().c_str(), fullPath);
}
}
}
}
void OutputIndexRSTHelper(const std::string &rstFolder, const std::string &preamble, const std::string &indexFilename, const std::string &documentTitle, const std::string &subFolder, std::vector<std::string> &generatedFiles)
{
std::string fullPath = OutputRSTHelper(rstFolder, "", indexFilename, generatedFiles);
fmt::MemoryWriter w;
OutputPreamble(w, documentTitle, documentTitle);
w << "\n" << preamble << "\n\n";
path rootPath = rstFolder;
path enumPath = rootPath / path(subFolder);
std::vector<std::string> filenames;
auto matchRSTRegex = std::regex("(\\w+)\\.rst");
for (auto it = directory_iterator(enumPath); it != directory_iterator(); ++it)
{
const auto &file = it->path();
std::smatch sm;
std::string temp = file.filename().string();
if (!is_directory(file) && std::regex_search(temp, sm, matchRSTRegex) && (sm.size() > 1))
{
std::string coreFilename = sm[1].str();
filenames.push_back(coreFilename);
}
}
w << ".. toctree::\n";
w << "\t:maxdepth: 1\n\n";
for (auto &filename : filenames)
{
w << "\t" << subFolder << "/" << filename << "\n";
}
w << "\n";
MakeTextFile(w.str().c_str(), fullPath);
}
#define ClassesIndexFilename "sci11_classes"
#define ScriptsIndexFilename "sci11_scripts"
#define ProceduresIndexFilename "sci11_procedures"
#define KernslIndexFilename "sci_kernels"
std::string kernelPreamble =
"Kernel functions are routines built into the interpreter that can be called from scripts.\n"
"They are essential as they do the graphic drawing, window handling, text printing, file I / O, and everything else you need.\n"
"The number of kernel functions vary from intepreter versions, but in the interpreter for the SCI0 template game, there are 114. In the SCI1.1\n"
"interpreter there are 136.";
std::string classesPremable =
"The SCI 1.1 template game is built of around 120 classes to aid you when creating your game. These classes are called the class system. They are the base for all SCI games.\n\n"
"The class system is built so well, that to make a general Adventure game, you won't need to use many kernel functions. You simply use the class system, and it will take care of all the kernel calls you would need. It is mandatory for making adventure games in SCI.\n\n"
"To view the classes and procedures by their scripts, see :doc:`" ScriptsIndexFilename "`";
std::string scriptsPreamble =
"The SCI 1.1 template game consists of about 80 scripts.";
std::string procsPreamble =
"The SCI 1.1 template game consists of about 35 public procedures.";
void OutputIndexRST(const std::string &rstFolder, std::vector<std::string> &generatedFiles)
{
OutputIndexRSTHelper(rstFolder, classesPremable, ClassesIndexFilename, "Classes", ClassesFolder, generatedFiles);
OutputIndexRSTHelper(rstFolder, scriptsPreamble, ScriptsIndexFilename, "Script Files", ScriptsFolder, generatedFiles);
OutputIndexRSTHelper(rstFolder, procsPreamble, ProceduresIndexFilename, "Public Procedures", ProceduresFolder, generatedFiles);
OutputIndexRSTHelper(rstFolder, kernelPreamble, KernslIndexFilename, "Kernel Functions", KernelsFolder, generatedFiles);
}
|
//
// Created by lin-k on 01.10.2016.
//
#include "../include/ROM.h"
void ROM::init(std::string filename) {
std::ifstream in(filename.c_str(), std::ios::binary);
if (!in.is_open()) {
std::cout << "ROM::Can\'t Open File\n";
in.close();
exit(0);
}
in.read((char *) &header, sizeof(FileHeader));
header.magic[3] = '\0';
std::cout << header.magic << std::endl;
std::cout << "PRG ROM size:" << (int) header.sizePrgRom << std::endl;
std::cout << "CHR ROM size:" << (int) header.sizeChrRom << std::endl;
std::cout << "PPU Flags:" << std::bitset<8>(header.flagsPPUDetails) << std::endl;
mapperNumber = (header.flagsPPUDetails >> 4);
romBanks = new uint8_t[header.sizePrgRom * 16384 * sizeof(uint8_t)];
in.read((char *) romBanks, header.sizePrgRom * 16384 * sizeof(uint8_t));
vromBanks = new uint8_t[header.sizeChrRom * 8192 * sizeof(uint8_t)];
in.read((char *) vromBanks, header.sizeChrRom * 8192 * sizeof(uint8_t));
in.close();
if (mapperNumber == 0) {
mapper = (IMapper *) new Mapper000(&header);
} else if (mapperNumber == 4) {
mapper = (IMapper *) new Mapper004(&header);
} else {
std::cout << "Sorry, only NROM and MMC3 Mapper is working! Current: " << (int) mapperNumber << std::endl;
exit(0);
}
}
ROM::ROM() {
memset(SRAM, 0x00, sizeof(SRAM));
}
ROM::~ROM() {
}
void ROM::execute() {
mapper->execute();
}
uint8_t ROM::ReadCHR(uint16_t address) {
return vromBanks[mapper->mapToVROM(address)]; // this in mapper too
}
uint8_t ROM::Read(uint16_t address) {
return romBanks[mapper->mapToROM(address)];
}
void ROM::Write(uint16_t addr, uint8_t value) {
mapper->writeHandler(addr, value);
}
uint8_t ROM::ReadSRAM(uint16_t address) {
if (!(header.flagsPPUDetails & (1 << 1))) {
return 0;
}
return SRAM[address];
}
void ROM::WriteSRAM(uint16_t addr, uint8_t value) {
if (!(header.flagsPPUDetails & (1 << 1))) {
return;
}
SRAM[addr] = value;
}
|
#include "Stack.hpp"
bool CheckBalancedParanthesis(std::string str);
bool checkMatchingBrace(char OpeningBrace, char ClosingBrace);
int main(){
std::string str;
std::cout << "Enter string:" << std::endl;
std::cin >> str;
if(CheckBalancedParanthesis(str)){
std::cout << "string has balanced parantheses" << std::endl;
}
else{
std::cout << "string does not have balanced parantheses" << std::endl;
}
return 0;
}
bool CheckBalancedParanthesis(std::string str){
Stack<char> my_stack;
for(int i = 0; i < str.length(); i++){
if(str[i] == '[' || str[i] == '{' || str[i] == '(' || str[i] == '<'){
my_stack.push(str[i]);
}
else if(str[i] == ']' || str[i] == '}' || str[i] == ')' || str[i] == '>'){
if(checkMatchingBrace(my_stack.getTop(), str[i])){
my_stack.pop();
}
else{
my_stack.push(str[i]);
}
}
}
return(my_stack.isEmpty());
}
bool checkMatchingBrace(char OpeningBrace, char ClosingBrace){
if(OpeningBrace == '['){
if(ClosingBrace == ']'){
return true;
}
else{
return false;
}
}
if(OpeningBrace == '{'){
if(ClosingBrace == '}'){
return true;
}
else{
return false;
}
}
if(OpeningBrace == '('){
if(ClosingBrace == ')'){
return true;
}
else{
return false;
}
}
if(OpeningBrace == '<'){
if(ClosingBrace == '>'){
return true;
}
else{
return false;
}
}
return false;
}
|
//
// Created by daniil on 01.05.19.
//
#include <iostream>
#include "hello.h"
void hello(const std::string& name) {
std::cout << "Hi, " << name << std::endl;
}
|
// Klasa okna głównego aplikacji. Zazwyczaj będzie nadpisywana
#ifndef SMAINWINDOW_H
#define SMAINWINDOW_H
class SMainWindow : public SWindow
{
public:
SMainWindow(SApp * sApp, UINT style = WS_OVERLAPPEDWINDOW, UINT exStyle = 0);
virtual ~SMainWindow();
virtual BOOL CALLBACK OnClose();
};
#endif
|
namespace conditional{
template<typename T, typename First>
bool equals_any( const T &a, const First &b ){
return ( a == b );
}
template<typename T, typename First, typename... Rest>
bool equals_any( const T &a, const First &b, const Rest... r ){
if( a == b )
return true;
return equals_any( a, r... );
}
} // namespace conditional
|
#ifndef FUZZYCORE_DB_CONNECTION_H
#define FUZZYCORE_DB_CONNECTION_H
#include <vector>
#include <map>
#include <sqlite/sqlite3.h>
#include "../logger/Logger.h"
#include "../../exceptions/Headers.h"
class DbConnection final {
private:
sqlite3 *db_handle;
DbConnection();
~DbConnection();
static DbConnection &getInstance();
static int statementExecutionCallback(void *, int, char **, char **);
public:
DbConnection(DbConnection const &) = delete;
void operator=(DbConnection const &) = delete;
static std::vector<std::map<std::string, std::string>> executeStatement(std::string &sql_statement);
static void enableForeignKeys();
};
#endif
|
#ifndef WINDOW_H
#define WINDOW_H
#include <QWidget>
class QComboBox;
class QPushButton;
class QGroupBox;
class QLabel;
#include "drawpolycanvas.h"
class Window : public QWidget
{
Q_OBJECT
public:
explicit Window(QWidget *parent = 0);
private:
void createGroupBoxInput();
void createGroupBoxResults();
void createGroupBoxAction();
QGroupBox *hGroupBoxInputs;
QGroupBox *hGroupBoxActions;
QGroupBox *hGroupBoxResults;
QComboBox *cBoxNSquares; // combo box to choose number of squares
QPushButton *btnComputePoly;
QPushButton *btnQuit;
QLabel *nPolyResult;
DrawPolyCanvas drawPolyCanvas;
signals:
private slots:
void slotComputeButton();
};
#endif // WINDOW_H
|
/// \file
/// \brief Tests multiple readers and writers on the same instance of RakPeer. Define _RAKNET_THREADSAFE in RakNetDefines.h before running this.
///
/// This file is part of RakNet Copyright 2003 Jenkins Software LLC
///
/// Usage of RakNet is subject to the appropriate license agreement.
#include "RakPeerInterface.h"
#include "RakNetworkFactory.h"
#include "GetTime.h"
#include "RakNetStatistics.h"
#include "MessageIdentifiers.h"
#include "Kbhit.h"
#include <stdio.h> // Printf
#include "WindowsIncludes.h" // Sleep
//#include <process.h>
#include "RakThread.h"
#include "RakSleep.h"
RakPeerInterface *peer1, *peer2;
bool endThreads;
RAK_THREAD_DECLARATION(ProducerThread)
{
char i = *((char *) arguments);
char out[2];
out[0]=ID_USER_PACKET_ENUM;
out[1]=i;
while (endThreads==false)
{
// printf("Thread %i writing...\n", i);
if (i&1)
peer1->Send(out, 2, HIGH_PRIORITY, RELIABLE_ORDERED, 0, UNASSIGNED_SYSTEM_ADDRESS, true);
else
peer2->Send(out, 2, HIGH_PRIORITY, RELIABLE_ORDERED, 0, UNASSIGNED_SYSTEM_ADDRESS, true);
// printf("Thread %i done writing\n", i);
RakSleep(0);
}
return 0;
}
RAK_THREAD_DECLARATION(ConsumerThread)
{
char i = *((char *) arguments);
Packet *p;
while (endThreads==false)
{
// printf("Thread %i reading...\n", i);
if (i&1)
p=peer1->Receive();
else
p=peer2->Receive();
// printf("Thread %i done reading...\n", i);
if (p)
{
if (p->data[0]==ID_USER_PACKET_ENUM)
printf("Got data from thread %i\n", p->data[1]);
if (i&1)
peer1->DeallocatePacket(p);
else
peer2->DeallocatePacket(p);
}
RakSleep(0);
}
return 0;
}
int main()
{
peer1=RakNetworkFactory::GetRakPeerInterface();
peer2=RakNetworkFactory::GetRakPeerInterface();
peer1->SetMaximumIncomingConnections(1);
peer2->SetMaximumIncomingConnections(1);
SocketDescriptor socketDescriptor(1234,0);
peer1->Startup(1,0,&socketDescriptor, 1);
socketDescriptor.port=1235;
peer2->Startup(1,0,&socketDescriptor, 1);
RakSleep(500);
peer1->Connect("127.0.0.1", 1235, 0, 0);
peer2->Connect("127.0.0.1", 1234, 0, 0);
printf("Tests multiple threads sharing the same instance of RakPeer\n");
printf("Difficulty: Beginner\n\n");
/*
printf("Did you define _RAKNET_THREADSAFE in RakNetDefines.h? (y/n) ");
char response[256];
gets(response);
if (response[0]!='y' || response[0]!='Y')
{
return;
}
*/
endThreads=false;
unsigned threadId;
unsigned i;
char count[20];
printf("Starting threads\n");
for (i=0; i< 10; i++)
{
count[i]=i;
RakNet::RakThread::Create(&ProducerThread, count+i);
}
for (; i < 20; i++)
{
count[i]=i;
RakNet::RakThread::Create(&ConsumerThread, count+i );
}
printf("Running test\n");
RakNetTime endTime = 60 * 1000 + RakNet::GetTime();
while (RakNet::GetTime() < endTime)
{
RakSleep(0);
}
endThreads=true;
printf("Test done!\n");
RakNetworkFactory::DestroyRakPeerInterface(peer1);
RakNetworkFactory::DestroyRakPeerInterface(peer2);
return 0;
}
|
//请设计一个算法完成两个超长正整数的加法。
#if 0
#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
string AddStr(string& s1, string& s2)
{
int len1 = s1.size() - 1;
int len2 = s2.size() - 1;
int carry = 0;
string res;
while (len1 >= 0 || len2 >= 0)
{
if (len1 >= 0)
carry += s1[len1]-'0';
if (len2 >= 0)
carry += s2[len2]-'0';
res.push_back(carry % 10 + '0');
carry /= 10;
len1--;
len2--;
}
if (carry == 1)
res.push_back('1');
reverse(res.begin(), res.end());
return res;
}
int main()
{
string s1, s2;
cin >> s1 >> s2;
cout << AddStr(s1, s2) << endl;
return 0;
}
#endif
|
#ifndef EXECUTE_PATH
#define EXECUTE_PATH
#include <vector>
//#include <cmath>
#include <math.h>
#include <limits.h>
//#include <set>
//#include "node.h"
using namespace std;
const double pi = 3.14159265358979323846264338328 ;
double generateGaussianNoise(double mu, double sigma)
{
const double epsilon = std::numeric_limits<double>::min();
const double two_pi = 2.0*3.14159265358979323846;
static double z0, z1;
static bool generate;
generate = !generate;
if (!generate)
return z1 * sigma + mu;
double u1, u2;
do
{
u1 = rand() * (1.0 / RAND_MAX);
u2 = rand() * (1.0 / RAND_MAX);
}
while ( u1 <= epsilon );
z0 = sqrt(-2.0 * log(u1)) * cos(two_pi * u2);
z1 = sqrt(-2.0 * log(u1)) * sin(two_pi * u2);
return z0 * sigma + mu;
}
vector<double> linspace(double a, double b, int n)
{
vector<double> array ;
double step = (b-a)/(n-1) ;
while (a<=b)
{
array.push_back(a) ;
a += step ;
}
return array ;
}
bool ComputeImprovementProbability(Vertex* A, Vertex* B) // double c_A0, double c_B0, vector<double> mu_A, vector<double> sig_A, vector<double> mu_B, vector<double> sig_B)
{ // The longer vectors should be set to B
//rewrite this to work as a comparitor
double c_A0, c_B0;
bool isBetter;
vector<Node*> ANodes, BNodes;
c_A0 = A->GetActualCost();
c_B0 = B->GetActualCost();
ANodes = A->GetNodes();
BNodes = B->GetNodes();
double max_3sig = ANodes[0]->GetMeanCost() + 3*ANodes[0]->GetVarCost() ;
double min_3sig = ANodes[0]->GetMeanCost() - 3*ANodes[0]->GetVarCost() ;
for (int i = 0; i < ANodes.size(); i++)
{
if (max_3sig < ANodes[i]->GetMeanCost()+3*ANodes[i]->GetVarCost())
max_3sig = ANodes[i]->GetMeanCost()+3*ANodes[i]->GetVarCost() ;
if (min_3sig > ANodes[i]->GetMeanCost()-3*ANodes[i]->GetVarCost())
min_3sig = ANodes[i]->GetMeanCost()-3*ANodes[i]->GetVarCost() ;
}
for (int i = 0; i < BNodes.size(); i++)
{
if (max_3sig < BNodes[i]->GetMeanCost()+3*BNodes[i]->GetVarCost())
max_3sig = BNodes[i]->GetMeanCost()+3*BNodes[i]->GetVarCost() ;
if (min_3sig > BNodes[i]->GetMeanCost()-3*BNodes[i]->GetVarCost())
min_3sig = BNodes[i]->GetMeanCost()-3*BNodes[i]->GetVarCost() ;
}
int n = 10000 ;
vector<double> x = linspace(min_3sig,max_3sig,n) ;
double dx = x[1]-x[0] ;
double pImprove = 0.0 ;
for (int k = 0; k < x.size(); k++)
{
double p_cAi = 0.0 ;
for (int i = 0; i < ANodes.size(); i++)
{
double p_cA1 = (1/(ANodes[i]->GetVarCost()*sqrt(2*pi)))*exp(-(pow(x[k]-ANodes[i]->GetMeanCost(),2))/(2*pow(ANodes[i]->GetVarCost(),2))) ;
double p_cA2 = 1.0 ;
for (int j = 0; j < ANodes.size(); j++)
{
if (j != i)
p_cA2 *= 0.5*erfc((x[k]-ANodes[j]->GetMeanCost())/(ANodes[j]->GetVarCost()*sqrt(2))) ;
}
p_cAi += p_cA1*p_cA2 ;
}
double p_cBi = 1.0 ;
for (int i = 0; i < BNodes.size(); i++)
p_cBi *= 0.5*erfc((x[k]-(c_B0-c_A0)-BNodes[i]->GetMeanCost())/(BNodes[i]->GetVarCost()*sqrt(2))) ;
pImprove += (p_cAi)*(1-p_cBi)*dx ;
}
if(pImprove > .5){
isBetter = true;
}
return isBetter;
}
bool TestAstarComparitor(Vertex* A, Vertex* B){
if(A->GetActualCost() > B->GetActualCost()){
return true;
}
else{
return false;
}
}
vector<double> executePath(vector< Node*> GSPaths){
//Initialize Memory
cout << endl << "EXECUTING PATH" << endl;
Vertex* goal;
Vertex* cur_loc;
vector < Node*> SGPaths, NewNodes;
vector <Vertex*> vertices, nextVertices;
Vertex* TmpVertex;
//Reverse Paths because they are first given from goal to start
//Outputs the reversed paths using the display paths function
for(int i = 0; i < GSPaths.size(); i++){
SGPaths.push_back(GSPaths[i]->ReverseList(0));
cout << endl << "Path" << i << endl;
SGPaths[i]->DisplayPath();
cout << endl;
}
//Begin Iterating through paths, set start & goal and initialize the NewNodes vector to the path vector containing all possible start nodes.
cout << "Iterating Through Paths" << endl;
cur_loc = SGPaths[0]->GetVertex();
goal = GSPaths[0]->GetVertex();
NewNodes = SGPaths;
ofstream executedCost;
executedCost.open("executedPath.txt") ;
cout << "Current Location: " << cur_loc->GetX() << ", " << cur_loc->GetY() << endl;
double totalCost;
//Begin execution
while(cur_loc != goal){
cout << "step" << endl;
//For each node available next, parse into the vertices vector and assign that vertice an actual cost to it
nextVertices.clear();
for(int i = 0; i < NewNodes.size(); i++){
cout << "NODE:" << i << " (" << NewNodes[i]->GetParent()->GetVertex()->GetX() << ","
<< NewNodes[i]->GetParent()->GetVertex()->GetY() << "), cost: "
<< NewNodes[i]->GetParent()->GetMeanCost() << ", var: " << NewNodes[i]->GetParent()->GetVarCost() << endl;
nextVertices.push_back(NewNodes[i]->GetParent()->GetVertex());
// Assign the parent nodes to the next vertex
if(find(vertices.begin(), vertices.end(), NewNodes[i]->GetParent()->GetVertex()) == vertices.end()){ // this is rechecking old vertices that shouldn't need to be checked.
cout << "found new vertex" << endl;
NewNodes[i]->GetParent()->GetVertex()->SetNodes(NewNodes[i]->GetParent());
vertices.push_back(NewNodes[i]->GetParent()->GetVertex());
NewNodes[i]->GetParent()->GetVertex()->SetActualCost(generateGaussianNoise((NewNodes[i]->GetParent()->GetMeanCost()-NewNodes[i]->GetMeanCost()),(NewNodes[i]->GetParent()->GetVarCost()-NewNodes[i]->GetVarCost() )));
}
}
//Sort the vertices by the improvement probability function
//Set the cur location to the first vertice in the sorted vector
//Get the nodes available at the new location
cout << "Nodes List Size: " << NewNodes.size() << endl;
sort(nextVertices.begin(), nextVertices.end(), ComputeImprovementProbability);
for(int j = 0; j < vertices.size(); j++){
cout << "Vertex list: " << nextVertices[j]->GetX() << ", "<< nextVertices[j]->GetY() << endl;
}
cur_loc = nextVertices[0];// this is where the bug is!
cout << goal->GetX() << ", " << goal->GetY() << endl;
NewNodes = cur_loc->GetNodes();
//Status Prints
cout << "Current Location: " << cur_loc->GetX() << ", " << cur_loc->GetY() << endl;
totalCost += cur_loc->GetActualCost() ;
cout << "Current Cost: " << cur_loc->GetActualCost() << endl;
}
cout << "TOTAL COST = " << totalCost << endl;
executedCost.close();
double min_path;
int t;
min_path = 100000; // make this max double
for(int i = 0; i < GSPaths.size(); i++){
if(GSPaths[i]->GetMeanCost() < min_path){
min_path = GSPaths[i]->GetMeanCost();
t = i;
}
}
cout << "Min Mean Path Cost " << GSPaths[t]->GetMeanCost() << endl;
Node* loc;
loc = SGPaths[t];
double astarCost, cost;
astarCost = 0;
cost = 0;
while(loc->GetVertex() != goal){
if(find(vertices.begin(), vertices.end(), loc->GetParent()->GetVertex()) == vertices.end() ){ // make this true if vertex hasn't had cost set yet
cout << "Found new Vertice" << endl;
cost = generateGaussianNoise((loc->GetParent()->GetMeanCost()-loc->GetMeanCost()), (loc->GetParent()->GetVarCost()-loc->GetVarCost()));// rewrite to set the vertex cost based on edge to get there.
loc->GetParent()->GetVertex()->SetActualCost(cost); //need to only generate cost if hasn't been generated in previous search
}
else{
cout << "Already Defined Vertex" << endl;
cout << "Current Cost: " << loc->GetParent()->GetVertex()->GetActualCost() << endl;
cost = loc->GetParent()->GetVertex()->GetActualCost();
}
astarCost += cost;
loc = loc->GetParent();
}
cout << "TOTAL ASTAR COST = " << astarCost << endl; // Need to print the total cost to a file.
vector< double> costs;
costs.push_back(totalCost);
costs.push_back(astarCost);
return costs;
}
#endif
|
#include "EmitterParameter.h"
EmitterParameter::EmitterParameter(void)
{
Quantity = Range(1);
Speed = RangeF(-1.0f,1.0f);
SDL_Color c = { 0,255,0 };
SDL_Color c2 = { 255,0,255 };
Color = RangeColor(c,c2);
Opacity = RangeF(1.0f,1.0f);
Scale = RangeF(1.0f, 10.0f);
Rotation = RangeF(-(float)M_PI, (float)M_PI);
AngularVelocity = RangeF(-1.0f, 1.0f);
Mass = RangeF(1.0f);
}
EmitterParameter::~EmitterParameter()
{
}
EmitterParameter::EmitterParameter(Range q, RangeF spd, SDL_Color col1, SDL_Color col2, RangeF o, RangeF scl, RangeF rot, RangeF ang,RangeF m)
{
Quantity = q;
Speed = spd;
Color = RangeColor(col1,col2);
Opacity = o;
Scale = scl;
Rotation = rot;
AngularVelocity = ang;
Mass = m;
}
|
#ifndef _PHOTON_JET_TRACK_TREE_H
#define _PHOTON_JET_TRACK_TREE_H
#include "TTree.h"
#include <vector>
const int nEventsToMix = 60;
class photonJetTrackTree {
public:
photonJetTrackTree() {
isPP = 0;
run = 0;
evt = 0;
lumi = 0;
hiBin = -1;
vz = -99;
weight = -1;
pthat = -1;
njet = 0;
ngen = 0;
nTrk = 0;
mult = 0;
nmix = 0;
njet_mix = 0;
ngen_mix = 0;
nTrk_mix = 0;
mult_mix = 0;
phoEt = 0;
phoEtCorrected = 0;
phoEta = 0;
phoPhi = 0;
pho_sumIso = 0;
pho_sumIsoCorrected = 0;
pho_genMatchedIndex = 0;
phoMCIsolation = 0;
phoMCPt = 0;
phoMCEta = 0;
phoMCPhi = 0;
phoMCPID = 0;
phoSigmaIEtaIEta_2012 = 0;
phoNoise = 0;
phoisEle = 0;
}
~photonJetTrackTree() {};
photonJetTrackTree(TTree* t) : photonJetTrackTree() {
this->create_tree(t);
}
// void read_tree(TTree* t);
void create_tree(TTree* t);
void clear_vectors();
int isPP;
uint32_t run;
unsigned long long evt;
uint32_t lumi;
int hiBin;
float vz;
float weight;
float pthat;
float hiEvtPlanes[29];
int njet;
std::vector<float> jetptCorr;
std::vector<float> jetpt;
std::vector<float> jeteta;
std::vector<float> jetphi;
std::vector<float> rawpt;
std::vector<float> gjetpt;
std::vector<float> gjeteta;
std::vector<float> gjetphi;
std::vector<int> gjetflavor;
std::vector<int> subid;
int ngen;
std::vector<float> genpt;
std::vector<float> geneta;
std::vector<float> genphi;
std::vector<int> gensubid;
int nTrk;
std::vector<float> trkPt;
std::vector<float> trkEta;
std::vector<float> trkPhi;
std::vector<float> trkWeight;
int mult;
std::vector<float> pt;
std::vector<float> eta;
std::vector<float> phi;
std::vector<int> pdg;
std::vector<int> chg;
std::vector<int> sube;
int nmix;
float dvz_mix[nEventsToMix];
int dhiBin_mix[nEventsToMix];
float dhiEvtPlanes_mix[nEventsToMix];
UInt_t run_mix[nEventsToMix];
ULong64_t evt_mix[nEventsToMix];
UInt_t lumi_mix[nEventsToMix];
int njet_mix;
std::vector<float> jetptCorr_mix;
std::vector<float> jetpt_mix;
std::vector<float> jeteta_mix;
std::vector<float> jetphi_mix;
std::vector<float> rawpt_mix;
std::vector<float> gjetpt_mix;
std::vector<float> gjeteta_mix;
std::vector<float> gjetphi_mix;
std::vector<int> subid_mix;
std::vector<int> nmixEv_mix;
int ngen_mix;
std::vector<float> genpt_mix;
std::vector<float> geneta_mix;
std::vector<float> genphi_mix;
std::vector<int> gensubid_mix;
std::vector<int> genev_mix;
int nTrk_mix;
std::vector<int> trkFromEv_mix;
std::vector<float> trkPt_mix;
std::vector<float> trkEta_mix;
std::vector<float> trkPhi_mix;
std::vector<float> trkWeight_mix;
int mult_mix;
std::vector<float> pt_mix;
std::vector<float> eta_mix;
std::vector<float> phi_mix;
std::vector<int> chg_mix;
std::vector<int> nev_mix;
float phoEt;
float phoEtCorrected;
float phoEta;
float phoPhi;
float pho_sumIso;
float pho_sumIsoCorrected;
float pho_genMatchedIndex;
float phoMCIsolation;
float phoMCPt;
float phoMCEta;
float phoMCPhi;
int phoMCPID;
float phoSigmaIEtaIEta_2012;
int phoNoise;
int phoisEle;
};
void photonJetTrackTree::create_tree(TTree* t) {
t->Branch("isPP", &isPP, "isPP/I");
t->Branch("run", &run, "run/i");
t->Branch("evt", &evt, "evt/l");
t->Branch("lumi", &lumi, "lumi/i");
t->Branch("hiBin", &hiBin, "hiBin/I");
t->Branch("vz", &vz, "vz/F");
t->Branch("weight", &weight, "weight/F");
t->Branch("pthat", &pthat, "pthat/F");
t->Branch("hiEvtPlanes", hiEvtPlanes, "hiEvtPlanes[29]/F");
t->Branch("njet", &njet, "njet/I");
t->Branch("jetptCorr", &jetptCorr);
t->Branch("jetpt", &jetpt);
t->Branch("jeteta", &jeteta);
t->Branch("jetphi", &jetphi);
t->Branch("rawpt", &rawpt);
t->Branch("gjetpt", &gjetpt);
t->Branch("gjeteta", &gjeteta);
t->Branch("gjetphi", &gjetphi);
t->Branch("gjetflavor", &gjetflavor);
t->Branch("subid", &subid);
t->Branch("ngen", &ngen, "ngen/I");
t->Branch("genpt", &genpt);
t->Branch("geneta", &geneta);
t->Branch("genphi", &genphi);
t->Branch("gensubid", &gensubid);
t->Branch("nTrk", &nTrk, "nTrk/I");
t->Branch("trkPt", &trkPt);
t->Branch("trkEta", &trkEta);
t->Branch("trkPhi", &trkPhi);
t->Branch("trkWeight", &trkWeight);
t->Branch("mult", &mult, "mult/I");
t->Branch("pt", &pt);
t->Branch("eta", &eta);
t->Branch("phi", &phi);
t->Branch("pdg", &pdg);
t->Branch("chg", &chg);
t->Branch("sube", &sube);
t->Branch("nmix", &nmix, "nmix/I");
t->Branch("dvz_mix", dvz_mix, "dvz_mix[nmix]/F");
t->Branch("dhiBin_mix", dhiBin_mix, "dhiBin_mix[nmix]/I");
t->Branch("dhiEvtPlanes_mix", dhiEvtPlanes_mix, "dhiEvtPlanes_mix[nmix]/F");
t->Branch("run_mix", run_mix, "run_mix[nmix]/i");
t->Branch("evt_mix", evt_mix, "evt_mix[nmix]/l");
t->Branch("lumi_mix", lumi_mix, "lumi_mix[nmix]/i");
t->Branch("njet_mix", &njet_mix, "njet_mix/I");
t->Branch("jetptCorr_mix", &jetptCorr_mix);
t->Branch("jetpt_mix", &jetpt_mix);
t->Branch("jeteta_mix", &jeteta_mix);
t->Branch("jetphi_mix", &jetphi_mix);
t->Branch("rawpt_mix", &rawpt_mix);
t->Branch("gjetpt_mix", &gjetpt_mix);
t->Branch("gjeteta_mix", &gjeteta_mix);
t->Branch("gjetphi_mix", &gjetphi_mix);
t->Branch("subid_mix", &subid_mix);
t->Branch("nmixEv_mix", &nmixEv_mix);
t->Branch("ngen_mix", &ngen_mix, "ngen_mix/I");
t->Branch("genpt_mix", &genpt_mix);
t->Branch("geneta_mix", &geneta_mix);
t->Branch("genphi_mix", &genphi_mix);
t->Branch("gensubid_mix", &gensubid_mix);
t->Branch("genev_mix", &genev_mix);
t->Branch("nTrk_mix", &nTrk_mix, "nTrk_mix/I");
t->Branch("trkFromEv_mix", &trkFromEv_mix);
t->Branch("trkPt_mix", &trkPt_mix);
t->Branch("trkEta_mix", &trkEta_mix);
t->Branch("trkPhi_mix", &trkPhi_mix);
t->Branch("trkWeight_mix", &trkWeight_mix);
t->Branch("mult_mix", &mult_mix, "mult_mix/I");
t->Branch("pt_mix", &pt_mix);
t->Branch("eta_mix", &eta_mix);
t->Branch("phi_mix", &phi_mix);
t->Branch("chg_mix", &chg_mix);
t->Branch("nev_mix", &nev_mix);
t->Branch("phoEt", &phoEt, "phoEt/F");
t->Branch("phoEtCorrected", &phoEtCorrected, "phoEtCorrected/F");
t->Branch("phoEta", &phoEta, "phoEta/F");
t->Branch("phoPhi", &phoPhi, "phoPhi/F");
t->Branch("pho_sumIso", &pho_sumIso, "pho_sumIso/F");
t->Branch("pho_sumIsoCorrected", &pho_sumIsoCorrected, "pho_sumIsoCorrected/F");
t->Branch("pho_genMatchedIndex", &pho_genMatchedIndex, "pho_genMatchedIndex/F");
t->Branch("phoMCIsolation", &phoMCIsolation, "phoMCIsolation/F");
t->Branch("phoMCPt", &phoMCPt, "phoMCPt/F");
t->Branch("phoMCEta", &phoMCEta, "phoMCEta/F");
t->Branch("phoMCPhi", &phoMCPhi, "phoMCPhi/F");
t->Branch("phoMCPID", &phoMCPID, "phoMCPID/I");
t->Branch("phoSigmaIEtaIEta_2012", &phoSigmaIEtaIEta_2012, "phoSigmaIEtaIEta_2012/F");
t->Branch("phoNoise", &phoNoise, "phoNoise/I");
t->Branch("phoisEle", &phoisEle, "phoisEle/I");
}
void photonJetTrackTree::clear_vectors() {
jetptCorr.clear();
jetpt.clear();
jeteta.clear();
jetphi.clear();
rawpt.clear();
gjetpt.clear();
gjeteta.clear();
gjetphi.clear();
gjetflavor.clear();
subid.clear();
genpt.clear();
geneta.clear();
genphi.clear();
gensubid.clear();
trkPt.clear();
trkEta.clear();
trkPhi.clear();
trkWeight.clear();
pt.clear();
eta.clear();
phi.clear();
pdg.clear();
chg.clear();
sube.clear();
jetptCorr_mix.clear();
jetpt_mix.clear();
jeteta_mix.clear();
jetphi_mix.clear();
rawpt_mix.clear();
gjetpt_mix.clear();
gjeteta_mix.clear();
gjetphi_mix.clear();
subid_mix.clear();
nmixEv_mix.clear();
genpt_mix.clear();
geneta_mix.clear();
genphi_mix.clear();
gensubid_mix.clear();
genev_mix.clear();
trkFromEv_mix.clear();
trkPt_mix.clear();
trkEta_mix.clear();
trkPhi_mix.clear();
trkWeight_mix.clear();
pt_mix.clear();
eta_mix.clear();
phi_mix.clear();
chg_mix.clear();
nev_mix.clear();
}
#endif
|
/***********************************************************************
created: 11th August 2013
author: Lukas Meindl
*************************************************************************/
/***************************************************************************
* Copyright (C) 2004 - 2013 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 "SVG.h"
#include "CEGUI/SchemeManager.h"
#include "CEGUI/GUIContext.h"
#include "CEGUI/WindowManager.h"
#include "CEGUI/FontManager.h"
#include "CEGUI/Window.h"
#include "CEGUI/widgets/DefaultWindow.h"
#include "CEGUI/widgets/PushButton.h"
#include "CEGUI/ImageManager.h"
#include "CEGUI/svg/SVGImage.h"
#include <iostream>
using namespace CEGUI;
/*************************************************************************
Constructor.
*************************************************************************/
SVGSample::SVGSample() :
Sample(-10)
{
Sample::d_name = "SVGSample";
Sample::d_credits = "Lukas \"Ident\" Meindl";
Sample::d_description = "";
Sample::d_summary = "";
}
/*************************************************************************
Sample specific initialisation goes here.
*************************************************************************/
bool SVGSample::initialise(CEGUI::GUIContext* guiContext)
{
d_usedFiles = CEGUI::String(__FILE__);
//CEGUI setup
SchemeManager::getSingleton().createFromFile("WindowsLook.scheme");
SchemeManager::getSingleton().createFromFile("Generic.scheme");
guiContext->setDefaultCursorImage("WindowsLook/MouseArrow");
WindowManager& winMgr = WindowManager::getSingleton();
// load font and setup default if not loaded via scheme
FontManager::FontList loadedFonts = FontManager::getSingleton().createFromFile("DejaVuSans-12.font");
Font* defaultFont = loadedFonts.empty() ? 0 : loadedFonts.front();
// Create a DefaultWindow called 'Root'.
d_root = static_cast<DefaultWindow*>(winMgr.createWindow("DefaultWindow", "Root"));
// Set default font for the gui context
guiContext->setDefaultFont(defaultFont);
// Set the root window as root of our GUI Context
guiContext->setRootWindow(d_root);
// Load our SVG-based Imageset via the ImageManager
ImageManager::getSingleton().loadImageset("SVGSampleImageset.imageset");
// We get our loaded sample SVGImage and save it to a variable
d_svgSampleImage = static_cast<CEGUI::SVGImage*>( &ImageManager::getSingleton().get("SVGSampleImageset/SVGTestImage1") );
// We create a sizable and movable FrameWindow that will contain our Image window
Window* svgSampleFrameWindow = winMgr.createWindow("WindowsLook/FrameWindow", "SvgSampleFrameWindow");
// This is very important. Since our FrameWindow contains our SVGImage, we want the
// FrameWindow to have a stencil buffer attached. This allows to render SVGs properly,
// which have overlapping parts in their polygons. Without it, we cannot ensure that areas
// that have even-degree polygon overlaps (for example two time overlaps) will be erased
// properly. Almost all vector graphics formats and programs erase such areas. Only
// odd-degree overlaps (1 + 2*n) are rendered.
// The SVG Image renders its polygons directly onto the FrameBuffer (or "RenderSurface",
// however you wanna call it) it is contained in.
// The SVG Image Window could also act as an AutoRenderingSurface (by switching it on) and
// lead to the same result by having its Stencil enabled. If you just want the isolated
// SVG Image to render correctly you can do this. In our case this is not necessary - we
// already use a FrameWindow with an AutoRenderingSurface so we can just use this one and
// the SVG Image Window will render its SVG Image into this FrameBuffer with the stencil on.
// If you want to see how it looks without Stencil, just deactivate it and look at the result.
svgSampleFrameWindow->setAutoRenderingSurfaceStencilEnabled(true);
svgSampleFrameWindow->setUsingAutoRenderingSurface(true);
svgSampleFrameWindow->setArea(
CEGUI::UVector2(cegui_absdim(50.0f), cegui_absdim(50.0f)),
CEGUI::USize(cegui_absdim(300.0f), cegui_absdim(300.0f)));
d_root->addChild(svgSampleFrameWindow);
// We create a window that displays images and apply our SVGImage pointer to its "Image" property. Our sample SVGImage will be displayed by the window.
d_svgImageWindow = winMgr.createWindow("Generic/Image");
d_svgImageWindow->setSize(CEGUI::USize(cegui_reldim(1.0f), cegui_reldim(1.0f)));
svgSampleFrameWindow->addChild(d_svgImageWindow);
d_svgImageWindow->setProperty<CEGUI::Image*>("Image", d_svgSampleImage);
// We create a button and subscribe to its click events
Window* svgAntialiasingButton = winMgr.createWindow("WindowsLook/Button");
svgAntialiasingButton->setHorizontalAlignment(HorizontalAlignment::Centre);
svgAntialiasingButton->setArea(CEGUI::UVector2(cegui_absdim(0.0f), cegui_reldim(0.03f)),
CEGUI::USize(cegui_reldim(0.2f), cegui_reldim(0.035f)));
svgAntialiasingButton->setText("Switch anti-aliasing mode");
svgAntialiasingButton->subscribeEvent(PushButton::EventClicked, Event::Subscriber(&SVGSample::handleAntialiasingButtonClicked, this));
d_root->addChild(svgAntialiasingButton);
// return true so that the samples framework knows that initialisation was a
// success, and that it should now run the sample.
return true;
}
bool SVGSample::handleAntialiasingButtonClicked(const CEGUI::EventArgs&)
{
d_svgSampleImage->setUseGeometryAntialiasing(!d_svgSampleImage->getUsesGeometryAntialiasing());
d_svgImageWindow->invalidate();
return true;
}
void SVGSample::update(float /*timeSinceLastUpdate*/)
{
}
void SVGSample::deinitialise()
{
}
|
#ifndef __MODULE_IMPORT_BONE_H__
#define __MODULE_IMPORT_BONE_H__
#include "Module.h"
struct aiBone;
class ResourceBone;
class ModuleImportBone : public Module
{
public:
ModuleImportBone(const char *name);
ResourceBone * ImportBone(aiBone * assimp_bone, UID uid, const char * asset_path);
};
#endif
|
#ifndef __PANEL_IMPORT_H__
#define __PANEL_IMPORT_H__
#include "Panel.h"
struct ModelImportOptionsAux
{
bool calcTangentSpace = false;
bool joinIdenticalVertices = false;
bool makeLeftHanded = false;
};
//Panel that lets you change file import options
class PanelImport : public Panel
{
public:
PanelImport(std::string name, bool active = false, std::vector<SDL_Scancode> shortcuts = {});
void Draw()override;
void DrawModel();
void DrawTexture();
void Tooltip(const char * desc) const;
private:
ModelImportOptionsAux model_aux;
//TODO: Each time we select a new model, this options get reset / get imported from the new model
//TODO: Only when we have this window opened
};
#endif
|
/***************************************************************************
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 "AppState.h"
#include "MessageNounConditionPane.h"
#include "MessageDoc.h"
#include "MessageSource.h"
#include "Text.h"
#include "Message.h"
#include "CObjectWrap.h"
MessageNounConditionPane::MessageNounConditionPane(CWnd* pParent /*=NULL*/)
: CExtDialogFwdCmd(IDD, pParent), _hAccel(nullptr)
{
// Load our accelerators. Makes ctrl-s work.
HINSTANCE hInst = AfxFindResourceHandle(MAKEINTRESOURCE(IDR_ACCELERATORMESSAGEEDIT), RT_ACCELERATOR);
_hAccel = ::LoadAccelerators(hInst, MAKEINTRESOURCE(IDR_ACCELERATORMESSAGEEDIT));
}
MessageNounConditionPane::~MessageNounConditionPane()
{
}
void MessageNounConditionPane::DoDataExchange(CDataExchange* pDX)
{
__super::DoDataExchange(pDX);
DDX_Control(pDX, IDC_LISTCONDITIONS, m_wndConditions);
DDX_Control(pDX, IDC_LISTNOUNS, m_wndNouns);
DDX_Control(pDX, IDC_STATIC1, m_wndLabel1);
DDX_Control(pDX, IDC_STATIC2, m_wndLabel2);
DDX_Control(pDX, IDC_BUTTONADDNOUN, m_wndButton1);
DDX_Control(pDX, IDC_BUTTONADDCONDITION, m_wndButton2);
DDX_Control(pDX, IDC_BUTTONDELETENOUN, m_wndButton3);
m_wndButton3.SetIcon(IDI_DELETE, 0, 0, 0, 16, 16);
DDX_Control(pDX, IDC_BUTTONDELETECONDITION, m_wndButton4);
m_wndButton4.SetIcon(IDI_DELETE, 0, 0, 0, 16, 16);
}
BEGIN_MESSAGE_MAP(MessageNounConditionPane, CExtDialogFwdCmd)
ON_WM_DRAWITEM()
ON_WM_CREATE()
ON_WM_ERASEBKGND()
ON_BN_CLICKED(IDC_BUTTONADDNOUN, &MessageNounConditionPane::OnBnClickedButtonaddnoun)
ON_BN_CLICKED(IDC_BUTTONADDCONDITION, &MessageNounConditionPane::OnBnClickedButtonaddcondition)
ON_BN_CLICKED(IDC_BUTTONDELETENOUN, &MessageNounConditionPane::OnBnClickedButtondeletenoun)
ON_BN_CLICKED(IDC_BUTTONDELETECONDITION, &MessageNounConditionPane::OnBnClickedButtondeletecondition)
END_MESSAGE_MAP()
BOOL MessageNounConditionPane::OnEraseBkgnd(CDC *pDC)
{
return __super::OnEraseBkgnd(pDC);
}
// MessageNounConditionPane message handlers
//
// To properly handle commands we do two things here:
// 1) Process our own accelerators
// - The main frame's accelerator table doesn't get used in dialogs in control bars,
// so we need to do our own. So, e.g. Ctrl-Z becomes ID_EDIT_UNDO
// 2) Fwd any commands we receive to our frame
// if we don't handle them ourselves.
// - they don't bubble up naturally in dialogs in control bars.
// - we do this by inheriting from CExtDialogFwdCmd
//
BOOL MessageNounConditionPane::PreTranslateMessage(MSG* pMsg)
{
BOOL fRet = FALSE;
if (_hAccel && (pMsg->message >= WM_KEYFIRST && pMsg->message <= WM_KEYLAST))
{
fRet = ::TranslateAccelerator(GetSafeHwnd(), _hAccel, pMsg);
}
if (!fRet)
{
fRet = __super::PreTranslateMessage(pMsg);
}
return fRet;
}
BOOL MessageNounConditionPane::OnInitDialog()
{
BOOL fRet = __super::OnInitDialog();
// Set up anchoring for resize
AddAnchor(IDC_LISTNOUNS, CPoint(0, 0), CPoint(100, 50));
AddAnchor(IDC_LISTCONDITIONS, CPoint(0, 50), CPoint(100, 100));
AddAnchor(IDC_STATIC1, CPoint(0, 0), CPoint(0, 0));
AddAnchor(IDC_STATIC2, CPoint(0, 50), CPoint(0, 50));
AddAnchor(IDC_BUTTONADDCONDITION, CPoint(0, 50), CPoint(100, 50));
AddAnchor(IDC_BUTTONDELETECONDITION, CPoint(100, 50), CPoint(100, 50));
AddAnchor(IDC_BUTTONADDNOUN, CPoint(0, 0), CPoint(100, 0));
AddAnchor(IDC_BUTTONDELETENOUN, CPoint(100, 0), CPoint(100, 0));
// Hide the sizing grip
ShowSizeGrip(FALSE);
return fRet;
}
void MessageNounConditionPane::UpdateNonView(CObject *pObject)
{
// TODO: Provide more specific update mechanism
MessageChangeHint hint = GetHint<MessageChangeHint>(pObject);
if (IsFlagSet(hint, MessageChangeHint::Changed))
{
_Update();
}
}
void MessageNounConditionPane::_Update()
{
if (_pDoc)
{
m_wndNouns.SetSource(_pDoc, MessageSourceType::Nouns);
m_wndConditions.SetSource(_pDoc, MessageSourceType::Conditions);
}
}
void MessageNounConditionPane::SetDocument(CDocument *pDoc)
{
_pDoc = static_cast<CMessageDoc*>(pDoc);
if (_pDoc)
{
_pDoc->AddNonViewClient(this);
_Update();
}
}
void MessageNounConditionPane::OnBnClickedButtonaddnoun()
{
m_wndNouns.AddNewItem();
}
void MessageNounConditionPane::OnBnClickedButtonaddcondition()
{
m_wndConditions.AddNewItem();
}
void MessageNounConditionPane::OnBnClickedButtondeletenoun()
{
m_wndNouns.DeleteSelectedItem();
}
void MessageNounConditionPane::OnBnClickedButtondeletecondition()
{
m_wndConditions.DeleteSelectedItem();
}
|
#include "LedCubeStills.h"
// private
bool LedCubeStills::inBounds(int x, int y, int z)
{
return (x >= 0 && x <= 7
&& y >= 0 && y <= 7
&& z >= 0 && z <= 7);
}
//public
// =====================================================================================================
// happyFace()
// Description: Draws on x plane
// =====================================================================================================
void LedCubeStills::happyFace(byte leds[8][8], int planeIndex)
{
LedCubeStills::on(leds, planeIndex, 1, 6); // eyes
LedCubeStills::on(leds, planeIndex, 1, 5);
LedCubeStills::on(leds, planeIndex, 2, 6);
LedCubeStills::on(leds, planeIndex, 2, 5);
LedCubeStills::on(leds, planeIndex, 5, 5);
LedCubeStills::on(leds, planeIndex, 5, 6);
LedCubeStills::on(leds, planeIndex, 6, 5);
LedCubeStills::on(leds, planeIndex, 6, 6);
LedCubeStills::on(leds, planeIndex, 0, 2);
LedCubeStills::on(leds, planeIndex, 1, 1);
LedCubeStills::on(leds, planeIndex, 2, 0);
LedCubeStills::on(leds, planeIndex, 3, 0);
LedCubeStills::on(leds, planeIndex, 4, 0);
LedCubeStills::on(leds, planeIndex, 5, 0);
LedCubeStills::on(leds, planeIndex, 6, 1);
LedCubeStills::on(leds, planeIndex, 7, 2);
}
void LedCubeStills::on(byte leds[8][8], int x, int y, int z)
{
if (inBounds(x, y, z)) leds[z][y] |= 1<<x;
}
void LedCubeStills::off(byte leds[8][8], int x, int y, int z)
{
if (inBounds(x, y, z)) leds[z][y] &= ~(1<<x);
}
// =====================================================================================================
// horizontalPlane()
// Description: Turns on the ith xy plane.
// Parameters:
// i - integer {0..7} - plane index starting from the bottom to the top
// =====================================================================================================
void LedCubeStills::xyPlane(byte leds[8][8], int planeIndex)
{
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
if(i == planeIndex)
{
leds[i][j] |= 0b11111111;
} else
{
//leds[i][j] |= 0b00000000;
}
}
}
}
// =====================================================================================================
// horizontalPlane()
// Description: Turns on the ith xy plane.
// Parameters:
// i - integer {0..7} - plane index starting from the bottom to the top
// =====================================================================================================
void LedCubeStills::xyPlaneOff(byte leds[8][8], int planeIndex)
{
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
if(i == planeIndex)
{
leds[i][j] = 0b00000000;
}
}
}
}
// =====================================================================================================
// xzPlane()
// Description: Turns on the ith xz plane.
// Parameters:
// i - integer {0..7} - plane index starting from the bottom to the top
// =====================================================================================================
void LedCubeStills::xzPlane(byte leds[8][8], int planeIndex)
{
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
if(j == planeIndex)
{
leds[i][j] |= 0b11111111;
} else
{
//leds[i][j] |= 0b00000000;
}
}
}
}
// =====================================================================================================
// xzPlane()
// Description: Turns on the ith xz plane.
// Parameters:
// i - integer {0..7} - plane index starting from the bottom to the top
// =====================================================================================================
void LedCubeStills::xzPlaneOff(byte leds[8][8], int planeIndex)
{
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
if(j == planeIndex)
{
leds[i][j] = 0b00000000;
} else
{
//leds[i][j] |= 0b00000000;
}
}
}
}
// =====================================================================================================
// yzPlane()
// Description: Turns on the ith yz plane.
// Parameters:
// i - integer {0..7} - plane index starting from the bottom to the top
// =====================================================================================================
void LedCubeStills::yzPlane(byte leds[8][8], int planeIndex)
{
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
leds[i][j] |= 1 << planeIndex;
}
}
}
// =====================================================================================================
// yzPlane()
// Description: Turns on the ith yz plane.
// Parameters:
// i - integer {0..7} - plane index starting from the bottom to the top
// =====================================================================================================
void LedCubeStills::yzPlaneOff(byte leds[8][8], int planeIndex)
{
for(int i = 0; i < 8; i++)
{
for(int j = 0; j < 8; j++)
{
LedCubeStills::off(leds, planeIndex, j, i);
}
}
}
// =====================================================================================================
// flood()
// Description: Turns on every LED
// =====================================================================================================
void LedCubeStills::flood(byte leds[8][8])
{
for(int i=0; i<8; i++)
{
for(int j=0; j<8; j++)
{
leds[i][j] = 255;
}
}
}
void LedCubeStills::wireFrame(byte leds[8][8])
{
for(int z=0; z<8; z++)
{
for(int y=0; y<8; y=y+7)
{
leds[z][y] |= 1<<0;
leds[z][y] |= 1<<7;
}
}
for(int y=0; y<8; y++)
{
for(int x=0; x<8; x=x+7)
{
leds[0][y] |= 1<<x;
leds[7][y] |= 1<<x;
}
}
for(int x=0; x<8; x++)
{
for(int y=0; y<8; y=y+7)
{
leds[0][y] |= 1<<x;
leds[7][y] |= 1<<x;
}
}
}
// =====================================================================================================
// random()
// Description: Turns on 'n' random LEDs
// =====================================================================================================
void LedCubeStills::randomLeds(byte leds[8][8], int n)
{
byte randomizedLeds[512][3]; // Why the fuck is too much memory used if I do StaticlED[512]??? Each StaticLED is also 3 bytes ffs.
// init and shuffle
for(int x=0; x<8; x++)
{
for(int y=0; y<8; y++)
{
for(int z=0; z<8; z++)
{
randomizedLeds[64*x+8*y+z][0] = x;
randomizedLeds[64*x+8*y+z][1] = y;
randomizedLeds[64*x+8*y+z][2] = z;
}
}
}
for(int i=0; i<512; i++)
{
int randomIndex = random(0, 512);
byte xTemp = randomizedLeds[i][0];
byte yTemp = randomizedLeds[i][1];
byte zTemp = randomizedLeds[i][2];
randomizedLeds[i][0] = randomizedLeds[randomIndex][0];
randomizedLeds[i][1] = randomizedLeds[randomIndex][1];
randomizedLeds[i][2] = randomizedLeds[randomIndex][2];
randomizedLeds[randomIndex][0] = xTemp;
randomizedLeds[randomIndex][1] = yTemp;
randomizedLeds[randomIndex][2] = zTemp;
}
for(int i=0; i<n; i++)
{
LedCubeStills::on(leds, randomizedLeds[i][0], randomizedLeds[i][1], randomizedLeds[i][2]);
}
}
// =====================================================================================================
// clearLEDs()
// Description: Turns off every LED.
// =====================================================================================================
void LedCubeStills::clearAll(byte leds[8][8])
{
for(int i=0; i<8; i++)
{
for(int j=0; j<8; j++)
{
leds[i][j] = 0;
}
}
}
void LedCubeStills::letter(byte leds[8][8], char letter, int planeIndex)
{
switch(letter)
{
case ' ': // Turn plane off
for(int z=0; z<8; z++)
{
for(int y=0; y<8; y++)
{
LedCubeStills::off(leds, planeIndex, y, z);
}
}
case 'A':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
break;
case 'B':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
break;
case 'C':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
break;
case 'D':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
break;
case 'E':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
break;
case 'F':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
break;
case 'G':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
break;
case 'H':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
break;
case 'I':
leds[0][3] |= 1 << planeIndex;
leds[1][3] |= 1 << planeIndex;
leds[2][3] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[4][3] |= 1 << planeIndex;
leds[5][3] |= 1 << planeIndex;
leds[6][3] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[1][4] |= 1 << planeIndex;
leds[2][4] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[4][4] |= 1 << planeIndex;
leds[5][4] |= 1 << planeIndex;
leds[6][4] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[0][1] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
break;
case 'L':
leds[0][2] |= 1 << planeIndex;
leds[1][2] |= 1 << planeIndex;
leds[2][2] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[4][2] |= 1 << planeIndex;
leds[5][2] |= 1 << planeIndex;
leds[6][2] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
break;
case 'O':
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
break;
case 'P':
leds[0][2] |= 1 << planeIndex;
leds[1][2] |= 1 << planeIndex;
leds[2][2] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[4][2] |= 1 << planeIndex;
leds[5][2] |= 1 << planeIndex;
leds[6][2] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[6][5] |= 1 << planeIndex;
leds[5][5] |= 1 << planeIndex;
leds[4][5] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
break;
case 'R':
leds[0][2] |= 1 << planeIndex;
leds[1][2] |= 1 << planeIndex;
leds[2][2] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[4][2] |= 1 << planeIndex;
leds[5][2] |= 1 << planeIndex;
leds[6][2] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[0][7] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][5] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
leds[4][5] |= 1 << planeIndex;
leds[5][5] |= 1 << planeIndex;
leds[6][5] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[3][2] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[3][5] |= 1 << planeIndex;
break;
case 'T':
leds[0][3] |= 1 << planeIndex;
leds[1][3] |= 1 << planeIndex;
leds[2][3] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[4][3] |= 1 << planeIndex;
leds[5][3] |= 1 << planeIndex;
leds[6][3] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[1][4] |= 1 << planeIndex;
leds[2][4] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[4][4] |= 1 << planeIndex;
leds[5][4] |= 1 << planeIndex;
leds[6][4] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
break;
case 'Y':
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[1][3] |= 1 << planeIndex;
leds[1][4] |= 1 << planeIndex;
leds[2][3] |= 1 << planeIndex;
leds[2][4] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[7][0] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[5][2] |= 1 << planeIndex;
leds[4][3] |= 1 << planeIndex;
leds[7][7] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[5][5] |= 1 << planeIndex;
leds[4][4] |= 1 << planeIndex;
break;
case '0': // same as 'O'
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][6] |= 1 << planeIndex;
break;
case '1':
leds[0][3] |= 1 << planeIndex;
leds[1][3] |= 1 << planeIndex;
leds[2][3] |= 1 << planeIndex;
leds[3][3] |= 1 << planeIndex;
leds[4][3] |= 1 << planeIndex;
leds[5][3] |= 1 << planeIndex;
leds[6][3] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[1][4] |= 1 << planeIndex;
leds[2][4] |= 1 << planeIndex;
leds[3][4] |= 1 << planeIndex;
leds[4][4] |= 1 << planeIndex;
leds[5][4] |= 1 << planeIndex;
leds[6][4] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
break;
case '2':
leds[0][6] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[4][2] |= 1 << planeIndex;
leds[4][3] |= 1 << planeIndex;
leds[4][4] |= 1 << planeIndex;
leds[4][5] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[5][6] |= 1 << planeIndex;
leds[6][6] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
break;
case '6':
leds[0][6] |= 1 << planeIndex;
leds[0][5] |= 1 << planeIndex;
leds[0][4] |= 1 << planeIndex;
leds[0][3] |= 1 << planeIndex;
leds[0][2] |= 1 << planeIndex;
leds[0][1] |= 1 << planeIndex;
leds[1][1] |= 1 << planeIndex;
leds[2][1] |= 1 << planeIndex;
leds[3][1] |= 1 << planeIndex;
leds[4][1] |= 1 << planeIndex;
leds[5][1] |= 1 << planeIndex;
leds[6][1] |= 1 << planeIndex;
leds[7][1] |= 1 << planeIndex;
leds[1][6] |= 1 << planeIndex;
leds[2][6] |= 1 << planeIndex;
leds[3][6] |= 1 << planeIndex;
leds[4][6] |= 1 << planeIndex;
leds[4][2] |= 1 << planeIndex;
leds[4][3] |= 1 << planeIndex;
leds[4][4] |= 1 << planeIndex;
leds[4][5] |= 1 << planeIndex;
leds[7][2] |= 1 << planeIndex;
leds[7][3] |= 1 << planeIndex;
leds[7][4] |= 1 << planeIndex;
leds[7][5] |= 1 << planeIndex;
leds[7][6] |= 1 << planeIndex;
break;
};
}
|
#include<stdio.h>
#include<algorithm>
#include<list>
#include<vector>
#include<unordered_map>
#include<algorithm>
using namespace std;
int idcnt;
struct Value { int id, value; };
unordered_map<int, Value> htab(200000);
int main() {
freopen("input.txt", "r", stdin);
int q, key, value;
scanf("%d", &q);
while (q--) {
scanf("%d%d", &key, &value);
if (htab.count(key)) htab[key].value = min(htab[key].value, value);
else htab[key] = { ++idcnt, value };
printf("%d %d\n", htab[key].id, htab[key].value);
//auto it = htab.find(key);
//if (it == htab.end())
// it = htab.insert({ key, {++idcnt, value} }).first;
// //htab[key] = { ++idcnt, value };
// //printf("%d %d\n", idcnt, value);
//else it->second.value = min(it->second.value, value);
//printf("%d %d\n", it->second.id, it->second.value);
}
return 0;
}
|
#include<iostream>
#include<math.h>
using namespace std;
long long int power(long long int x, long long int y)
{
long long int temp;
if( y == 0)
return 1;
temp = power(x, y/2);
if (y%2 == 0)
return (temp*temp)%1000000007;
else
return (x*temp*temp)%1000000007;
}
int main()
{
long long int t,n,ans = 1,i;
cin>>t;
while(t--)
{
cin>>n;
ans = power(7,n);
cout<<ans<<endl;
ans = 1;
}
return 0;
}
|
#ifndef NEW_STRATEGY_1_PROJECT_INCLUDE_ITEM_HPP
#define NEW_STRATEGY_1_PROJECT_INCLUDE_ITEM_HPP
#include "object.hpp"
#include "misting.hpp"
#include "mistborn.hpp"
#include "soldier.hpp"
#include "metal.hpp"
#include "button.hpp"
#include "store_definitions.hpp"
#include "definitions.hpp"
class Item {
private:
int deep_type_; // soldier, mistborn, misting or metall
int num_;
int num_of_parent_;
int type_; // metall or hero
std::array<sf::Text, NUM_OF_PROPERTIES_BEINGS> properties_beings_names_;
std::array<sf::Text, NUM_OF_PROPERTIES_BEINGS> properties_beings_;
std::array<sf::Text, NUM_OF_PROPERTIES_METALS> properties_metals_names_;
std::array<sf::Text, NUM_OF_PROPERTIES_METALS> properties_metals_;
std::shared_ptr<sf::RenderWindow> window_;
sf::Font font_;
sf::Text name_;
sf::RectangleShape main_part_;
sf::RectangleShape image_;
sf::Sprite sprite_;
sf::Vector2f image_size_;
sf::Vector2f position_;
sf::Vector2f size_;
Object* object_;
Button buy_;
public:
Item();
void setNums(int num, int num_of_parent);
void setPositionByParent(sf::Vector2f parent_position);
void setSizeByParent(sf::Vector2f parent_size);
void setType(int type);
void setWindow(std::shared_ptr<sf::RenderWindow>& window);
Button* getButtonBuyPointer();
std::pair<Object*, int> getObjectAndType();
sf::Text getName() const;
void findName(); //TODO: recreate
void createObject(); // TODO: recreate
void display();
bool operator< (const Item& item);
~Item();
};
#endif // NEW_STRATEGY_1_PROJECT_INCLUDE_ITEM_HPP
|
#include<cstdio>
#include<iostream>
using namespace std;
long long num[100005];
long long n,k;
int main()
{
int t,x = 1;
scanf("%d",&t);
while(t--)
{
long long sum = 0,res = 0;
scanf("%lld%lld",&n,&k);
for(int i = 0; i < n; i++) {
scanf("%lld",&num[i]);
sum += num[i];
}
if(sum % k != 0)
printf("Case #%d: %d\n",x++,-1);
else {
int m = sum / k;
for(int i = 0; i < n; i++) {
if(num[i] > m) {
res += num[i] / m;
int h = num[i] % m;
if(h == 0) {
res--;
}
else {
num[i+1] += h;
res++;
}
}else if(num[i] < m){
res++;
num[i+1] += num[i];
}
}
printf("Case #%d: %lld\n",x++,res);
}
}
return 0;
}
|
#pragma once
#include <vtkRenderer.h>
#include <vtkSmartPointer.h>
class CSplitView{
public:
CSplitView();
~CSplitView();
private:
vtkSmartPointer<vtkRenderer> CreateVtkRender();
vtkSmartPointer<vtkRenderer> m_render_left_down ;
vtkSmartPointer<vtkRenderer> m_render_left_up ;
vtkSmartPointer<vtkRenderer> m_render_right_down;
vtkSmartPointer<vtkRenderer> m_render_right_up ;
};
|
#ifndef WINDOWSCALE_H
#define WINDOWSCALE_H
#include "DoubleXY.h"
class WindowScale {
private:
static const int SCALESIZE = 11;
const double scalefactors[SCALESIZE] = {1.0, 1.4, 2.0, 2.8, 4.0, 5.6,
8.0, 11.3, 16.0, 22.6, 32.0};
unsigned scalefactor_i{0};
void stay_away_from_edges();
void rescale_centering();
public:
//Top, bottom, left, right edges
double t{1.0};
double b{-1.0};
double l{-1.0};
double r{1.0};
/**
* Moves the window such that the 'before', as taken from before a zoom or
* move, is on the same spot on the screen as the 'after'.
*/
void center_xy_on_xy(DoubleXY const &before, DoubleXY const &after);
/**
* Modifies the doublexy with respects to the window scale, in order to map
* it from the (-1, 1) of the window to a smaller set of that, depending on
* where our window is at.
*/
void scaled_to_view(DoubleXY *f) const;
/**
* Zooms the scale in/out.
*/
void operator++();
void operator--();
};
#endif /* end of include guard: WINDOWSCALE_H */
|
#ifndef _HS_SFM_BUNDLE_ADJUSTMENT_CAMERA_SHARED_NLLSO_META_LEVENBERG_MARQUARDT_HPP_
#define _HS_SFM_BUNDLE_ADJUSTMENT_CAMERA_SHARED_NLLSO_META_LEVENBERG_MARQUARDT_HPP_
#include "hs_math/linear_algebra/eigen_macro.hpp"
#include "hs_optimizor/nllso/meta_forward_declare.hpp"
#include "hs_optimizor/nllso/meta_eigen_residuals_calculator_type.hpp"
#include "hs_optimizor/nllso/meta_eigen_x_vector_updater_type.hpp"
#include "hs_optimizor/nllso/meta_eigen_x_vector_norm_calculator_type.hpp"
#include "hs_optimizor/nllso/meta_eigen_delta_x_vector_norm_calculator_type.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_vector_function.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_y_covariance_inverse.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_normal_matrix.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_jacobian_matrix.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_gradient.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_analytical_jacobian_matrix_calculator.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_forward_finite_difference_jacobian_matrix_calculator.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_normal_equation_builder.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_augmentor.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_normal_matrix_max_diagonal_value_calculator.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_normal_equation_solver.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_gradient_delta_x_dot_product_calculator.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_gradient_infinite_norm_calculator.hpp"
#include "hs_sfm/bundle_adjustment/camera_shared_mahalanobis_distance_calculator.hpp"
namespace hs
{
namespace optimizor
{
namespace nllso
{
template <typename _Scalar>
struct JacobianMatrixCalculatorType<
hs::sfm::ba::CameraSharedVectorFunction<_Scalar> >
{
typedef hs::sfm::ba::CameraSharedVectorFunction<_Scalar> VectorFunction;
typedef hs::sfm::ba::CameraSharedAnalyticalJacobianMatrixCalculator<
VectorFunction> type;
};
template <typename _Scalar>
struct YCovarianceInverseType<
hs::sfm::ba::CameraSharedVectorFunction<_Scalar> >
{
typedef hs::sfm::ba::CameraSharedYCovarianceInverse<_Scalar> type;
};
template <typename _Scalar>
struct NormalEquationBuilderType<
EIGEN_VECTOR(_Scalar, Eigen::Dynamic),
hs::sfm::ba::CameraSharedJacobianMatrix<_Scalar>,
hs::sfm::ba::CameraSharedYCovarianceInverse<_Scalar> >
{
typedef hs::sfm::ba::CameraSharedNormalEquationBuilder<_Scalar> type;
};
template <typename _Scalar>
struct NormalEquationSolverType<
hs::sfm::ba::CameraSharedAugmentedNormalMatrix<_Scalar>,
hs::sfm::ba::CameraSharedGradient<_Scalar> >
{
typedef hs::sfm::ba::CameraSharedNormalEquationSolver<_Scalar> type;
};
template <typename _Scalar>
struct NormalMatrixAugmentorType<
hs::sfm::ba::CameraSharedNormalMatrix<_Scalar> >
{
typedef hs::sfm::ba::CameraSharedAugmentor<_Scalar> type;
};
template <typename _Scalar>
struct NormalMatrixMaxDiagonalValueCalculatorType<
hs::sfm::ba::CameraSharedNormalMatrix<_Scalar> >
{
typedef
hs::sfm::ba::CameraSharedNormalMatrixMaxDiagonalValueCalculator<_Scalar>
type;
};
template <typename _Scalar>
struct GradientDeltaXDotProductCalculatorType<
hs::sfm::ba::CameraSharedGradient<_Scalar>,
EIGEN_VECTOR(_Scalar, Eigen::Dynamic)>
{
typedef hs::sfm::ba::CameraSharedGradientDeltaXDotProductCalculator<_Scalar>
type;
};
template <typename _Scalar>
struct MahalanobisDistanceCalculatorType<
hs::sfm::ba::CameraSharedYCovarianceInverse<_Scalar>,
EIGEN_VECTOR(_Scalar, Eigen::Dynamic)>
{
typedef hs::sfm::ba::CameraSharedMahalanobisDistanceCalculator<_Scalar>
type;
};
template <typename _Scalar>
struct GradientInfiniteNormCalculatorType<
hs::sfm::ba::CameraSharedGradient<_Scalar> >
{
typedef hs::sfm::ba::CameraSharedGradientInfiniteNormCalculator<_Scalar>
type;
};
}
}
}
#endif
|
#ifndef LIBRARIES_H
#define LIBRARIES_H
#define SIZE_LIMIT 50000
#define BAD_FILE 1
#define BAD_SIZE 2
#define BAD_LENGTH 3
#define BAD_MAXMIN 4
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <QMainWindow>
#include <QGraphicsItem>
#include <QGraphicsView>
#include <QGraphicsEffect>
#include <QFileDialog>
#include <QStandardPaths>
#include <QtGui>
#include <QLabel>
#include <QColorDialog>
#include <QInputDialog>
#include <QMainWindow>
#include <QPushButton>
#include <QMessageBox>
#include <QStringList>
#include <QTextEdit>
#include <cstdlib>
#include <random>
#include <ctime>
using namespace std;
#endif // LIBRARIES_H
|
#include <SoftwareSerial.h>
SoftwareSerial Serial1(2, 3); // RX, TX
void setup() {
Serial.begin( 9600 );
Serial1.begin( 115200 );
delay( 500 );
Serial.println( "Starting..." );
}
void loop() {
// If a data arrives from debug Serial, perform a readings per seconds test.
if ( Serial.available() > 0 ) {
speedTest();
}
else {
// Perform one distance reading and show it on Serial
unsigned int distance = readLIDAR( 2000 );
if ( distance > 0 ) {
Serial.print(" Distance (m): "); Serial.print(distance * .01);
Serial.print( " Distance (cm): "); Serial.print(distance );
Serial.print( " Distance (in): "); Serial.print(distance * .39);
Serial.print( " (feet): "); Serial.println((distance*.39)/12);
}
else {
Serial.println( "Timeout reading LIDAR" );
}
}
}
void speedTest() {
while ( Serial.available() > 0 ) {
Serial.read();
}
Serial.print( "\n\nPerforming speed test...\n" );
long t0 = millis();
#define NUM_READINGS 1000
long accum = 0;
for ( int i = 0; i < NUM_READINGS; i++ ) {
accum += readLIDAR( 2000 );
}
long t1 = millis();
float readingsPerSecond = NUM_READINGS * 1000.0f / ( t1 - t0 );
float meanDistance = ((float)accum) / NUM_READINGS;
Serial.println( "\n\nSpeed test:" );
Serial.print(readingsPerSecond); Serial.println( " readings per second.");
Serial.print(meanDistance); Serial.println( " mean read distance." );
Serial.println( "\n\nHit another key to continue reading the sensor distance." );
while ( Serial.available() == 0 ) {
delay( 10 );
}
while ( Serial.available() > 0 ) {
Serial.read();
}
}
unsigned int readLIDAR( long timeout ) {
unsigned char readBuffer[ 9 ];
long t0 = millis();
while ( Serial1.available() < 9 ) {
if ( millis() - t0 > timeout ) {
// Timeout
return 0;
}
delay( 10 );
}
for ( int i = 0; i < 9; i++ ) {
readBuffer[ i ] = Serial1.read();
}
while ( ! detect_Frame( readBuffer ) ) {
if ( millis() - t0 > timeout ) {
// Timeout
return 0;
}
while ( Serial1.available() == 0 ) {
delay( 10 );
}
for ( int i = 0; i < 8; i++ ) {
readBuffer[ i ] = readBuffer[ i + 1 ];
}
readBuffer[ 8 ] = Serial1.read();
}
// Distance is in bytes 2 and 3 of the 9 byte frame.
unsigned int distance = ( (unsigned int)( readBuffer[ 2 ] ) ) |
( ( (unsigned int)( readBuffer[ 3 ] ) ) << 8 );
return distance;
}
bool detect_Frame( unsigned char *readBuffer ) {
return readBuffer[ 0 ] == 0x59 &&
readBuffer[ 1 ] == 0x59 &&
(unsigned char)(
0x59 +
0x59 +
readBuffer[ 2 ] +
readBuffer[ 3 ] +
readBuffer[ 4 ] +
readBuffer[ 5 ] +
readBuffer[ 6 ] +
readBuffer[ 7 ]
) == readBuffer[ 8 ];
}
|
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2019 FRAMOS GmbH.
#ifndef LIBREALSENSE2_CS_TIMESTAMP_H
#define LIBREALSENSE2_CS_TIMESTAMP_H
#include "sensor.h"
namespace librealsense
{
class cs_timestamp_reader_from_metadata : public frame_timestamp_reader
{
std::unique_ptr<frame_timestamp_reader> _backup_timestamp_reader;
static const int pins = 2;
std::vector<std::atomic<bool>> _has_metadata;
bool one_time_note;
mutable std::recursive_mutex _mtx;
public:
cs_timestamp_reader_from_metadata(std::unique_ptr<frame_timestamp_reader> backup_timestamp_reader);
bool has_metadata(const std::shared_ptr<frame_interface>& frame);
rs2_time_t get_frame_timestamp(const std::shared_ptr<frame_interface>& frame) override;
unsigned long long get_frame_counter(const std::shared_ptr<frame_interface>& frame) const override;
void reset() override;
rs2_timestamp_domain get_frame_timestamp_domain(const std::shared_ptr<frame_interface>& frame) const override;
};
class cs_timestamp_reader : public frame_timestamp_reader
{
private:
static const int pins = 2;
mutable std::vector<int64_t> counter;
std::shared_ptr<platform::time_service> _ts;
mutable std::recursive_mutex _mtx;
public:
cs_timestamp_reader(std::shared_ptr<platform::time_service> ts);
void reset() override;
rs2_time_t get_frame_timestamp(const std::shared_ptr<frame_interface>& frame) override;
unsigned long long get_frame_counter(const std::shared_ptr<frame_interface>& frame) const override;
rs2_timestamp_domain get_frame_timestamp_domain(const std::shared_ptr<frame_interface>& frame) const override;
};
}
#endif //LIBREALSENSE2_CS_TIMESTAMP_H
|
// merge sort
// _ ____ __ _ _ __
// (_/_(_(_(_)(__ / (_(_/_(_(_(_/__(/_/ (_
// /( .-/ .-/
// (_) (_/ (_/
#include "../_library_sort_.h"
// Độ phức tạp:
// Best: O(nlogn) | Avarage: O(nlogn) | Worst: O(nlogn) | Memory: O(n) | Stable
// Divide & Conquer
// Non-adaptive sort
// External sort
// Ưu điểm:
// - Nhanh
// - Có thể bất kì bộ dữ liệu nào
// Nhược điểm:
// - Phải dùng đệ quy (Có thể khử đệ quy được !)
// - Cần thêm bộ nhớ
// Merge khử đệ quy (Tốn kém hơn)
template<class T> void MergeSort(T *arr, lli n) {
T *temp = new T[n];
lli rght, wid, rend;
lli i, j, m, t;
for (lli k = 1; k < n; k *= 2)
{
for (lli left = 0; left + k < n; left += k * 2)
{
rght = left + k;
rend = rght + k;
if (rend > n) {
rend = n;
}
m = left;
i = left;
j = rght;
while (i < rght && j < rend) {
if (arr[i] <= arr[j]) {
temp[m] = arr[i];
i++;
} else {
temp[m] = arr[j];
j++;
}
m++;
}
while (i < rght) {
temp[m] = arr[i];
i++;
m++;
}
while (j < rend) {
temp[m] = arr[j];
j++;
m++;
}
for (m = left; m < rend; m++)
{
arr[m] = temp[m];
}
}
}
}
// Merge Sort đệ quy
template<class T> void MergeSort_UseRecursion(T *arr, lli left, lli right)
{
lli mid;
if (left < right)
{
// Chia ra theo mid
mid = (left + right) / 2;
MergeSort(arr, left, mid);
MergeSort(arr, mid + 1, right);
// Merge lại mảng đã chia
Merge(arr, left, mid, right);
}
}
template<class T> void Merge(T *arr, lli left, lli mid, lli right)
{
T *temp = new T[right - left + 1]; // mảng tạm
lli l = left;
lli r = mid + 1;
lli k = 0;
while (l <= mid && r <= right)
{
if (arr[l] < arr[r]) {
temp[k++] = arr[l++];
}
else {
temp[k++] = arr[r++];
}
}
while (l <= mid) {
temp[k++] = arr[l++];
}
while (r <= right) {
temp[k++] = arr[r++];
}
for (int i = 0; i < k; i++) {
arr[i + left] = temp[i];
}
}
int main() {
lli *a;
lli n{};
Input(a, n);
MergeSort_UseRecursion(a, 0, n - 1);
Output(a, n);
return 0;
}
|
/* -*- c++ -*- */
/*
* Copyright 2018 <+YOU OR YOUR COMPANY+>.
*
* This 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 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*/
/* -*- c++ -*- */
/*
* Copyright 2015
* Federico "Larroca" La Rocca <flarroca@fing.edu.uy>
* Pablo Belzarena
* Gabriel Gomez Sena
* Pablo Flores Guridi
* Victor Gonzalez Barbone
*
* Instituto de Ingenieria Electrica, Facultad de Ingenieria,
* Universidad de la Republica, Uruguay.
*
* This 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 3, or (at your option)
* any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street,
* Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <gnuradio/io_signature.h>
#include "ofdm_synchronization_1seg_impl.h"
#include <complex>
#include <math.h>
#include <gnuradio/math.h>
#include <gnuradio/expj.h>
#include <stdio.h>
#include <volk/volk.h>
namespace gr {
namespace oneseg {
const int ofdm_synchronization_1seg_impl::d_carriers_per_segment_2k = 108;
// TMCC carriers positions for each transmission mode
// Mode 1 (2K)
const int ofdm_synchronization_1seg_impl::tmcc_carriers_size_2k = 1;
const int ofdm_synchronization_1seg_impl::tmcc_carriers_2k[] = {
49
};
// Mode 2 (4K)
const int ofdm_synchronization_1seg_impl::tmcc_carriers_size_4k = 2;
const int ofdm_synchronization_1seg_impl::tmcc_carriers_4k[] = {
23, 178
};
// Mode 3 (8K)
const int ofdm_synchronization_1seg_impl::tmcc_carriers_size_8k = 4;
const int ofdm_synchronization_1seg_impl::tmcc_carriers_8k[] = {
101, 131, 286, 349
};
// AC carriers positions for each transmission mode
// Mode 1 (2K)
const int ofdm_synchronization_1seg_impl::ac_carriers_size_2k = 2;
const int ofdm_synchronization_1seg_impl::ac_carriers_2k[] = {
35, 79
};
// Mode 2 (4K)
const int ofdm_synchronization_1seg_impl::ac_carriers_size_4k = 4;
const int ofdm_synchronization_1seg_impl::ac_carriers_4k[] = {
98, 101, 118, 136
};
// Mode 3 (8K)
const int ofdm_synchronization_1seg_impl::ac_carriers_size_8k = 8;
const int ofdm_synchronization_1seg_impl::ac_carriers_8k[] = {
7, 89, 206, 209, 226, 244, 377, 407
};
ofdm_synchronization_1seg::sptr
ofdm_synchronization_1seg::make(int mode, float cp_length)
{
return gnuradio::get_initial_sptr
(new ofdm_synchronization_1seg_impl(mode, cp_length));
}
/*
* The private constructor
*/
ofdm_synchronization_1seg_impl::ofdm_synchronization_1seg_impl(int mode, float cp_length)
: gr::block("ofdm_synchronization_1seg",
gr::io_signature::make(1, 1, sizeof(gr_complex)),
//gr::io_signature::make(1,1,sizeof(gr_complex)*pow(2.0,10+mode))),
gr::io_signature::make3(1, 4, \
sizeof(gr_complex)*(d_carriers_per_segment_2k*((int)pow(2.0,mode-1))),\
sizeof(gr_complex)*(d_carriers_per_segment_2k*((int)pow(2.0,mode-1))),\
sizeof(float))
),
d_fft_calculator(gr::fft::fft_complex(pow(2.0,7+mode),true,1)),
d_inter(gr::filter::mmse_fir_interpolator_cc())
{
// TODO why must fft_complex be initialized in the constructor declaration????
d_fft_length = pow(2.0,7+mode);
d_cp_length = (int)round(cp_length*d_fft_length);
d_active_carriers = d_carriers_per_segment_2k*pow(2.0,mode-1);
set_relative_rate(1.0 / (double) (d_cp_length + d_fft_length));
//TODO set this value automatically.
float d_snr = 10.0;
d_snr = pow(10, d_snr / 10.0);
d_rho = d_snr / (d_snr + 1.0);
d_initial_acquired = false;
//VOLK alignment as recommended by GNU Radio's Manual. It has a similar effect
//than set_output_multiple(), thus we will generally get multiples of this value
//as noutput_items.
//???
const int alignment_multiple = volk_get_alignment() / sizeof(gr_complex);
set_alignment(std::max(1, alignment_multiple));
//???
d_gamma = new gr_complex[d_fft_length];
d_phi = new float[d_fft_length];
d_lambda = new float[d_fft_length];
d_derot = new gr_complex[d_cp_length + d_fft_length];
d_phaseinc = 0;
d_nextphaseinc = 0;
d_nextpos = 0;
d_phase = 0;
d_conj = new gr_complex[2 * d_fft_length + d_cp_length];// long dos simbolos
d_norm = new float[2 * d_fft_length + d_cp_length];//long dos simbolos
d_corr = new gr_complex[2 * d_fft_length + d_cp_length];
peak_detect_init(0.3, 0.9);
d_prefft_synched = new gr_complex[d_fft_length];
d_postfft = new gr_complex[d_fft_length];
//integer frequency correction part
d_zeros_on_left = int(ceil((d_fft_length-d_active_carriers)/2.0));
d_freq_offset_max = 10;
d_freq_offset_disagree_count = 4;
tmcc_and_ac_positions(d_fft_length);
d_pilot_values = new gr_complex[d_active_carriers];
generate_prbs();
d_known_phase_diff_tmcc = new float[d_tmcc_carriers_size];
// Obtain phase diff for all tmcc pilots
// TODO eliminate d_known_phase_diff
for (int i = 0; i < (d_tmcc_carriers_size - 1); i++)
{
d_known_phase_diff_tmcc[i] = std::norm(d_pilot_values[d_tmcc_carriers[i + 1]] - d_pilot_values[d_tmcc_carriers[i]]);
}
d_known_phase_diff_ac = new float[d_ac_carriers_size];
// Obtain phase diff for all tmcc pilots
// TODO eliminate d_known_phase_diff_ac
for (int i = 0; i < (d_ac_carriers_size - 1); i++)
{
d_known_phase_diff_ac[i] = std::norm(d_pilot_values[d_ac_carriers[i + 1]] - d_pilot_values[d_ac_carriers[i]]);
}
d_sp_carriers_size = (d_active_carriers)/12;
d_corr_sp = new float[4];
d_symbol_acq = false;
d_symbol_correct_count = 0;
d_moved_cp = true;
d_current_symbol = 0;
d_peak_epsilon = 0;
d_channel_gain = new gr_complex[d_active_carriers];
d_previous_channel_gain = new gr_complex[d_active_carriers];
d_delta_channel_gains = new gr_complex[d_active_carriers];
d_samp_inc = 1;
d_samp_phase = 0;
//d_interpolated = new gr_complex[2*d_fft_length+d_cp_length];
d_interpolated = new gr_complex[d_fft_length+d_cp_length];
d_cp_start_offset = -10;
float loop_bw_freq = 3.14159/100;
float loop_bw_timing = 3.14159/10000;
float damping = sqrtf(2.0f)/2.0f;
float denom = (1.0 + 2.0*damping*loop_bw_freq + loop_bw_freq*loop_bw_freq);
d_beta_freq = (4*loop_bw_freq*loop_bw_freq)/denom;
d_alpha_freq = (4*damping*loop_bw_freq)/denom;
denom = (1.0 + 2.0*damping*loop_bw_timing + loop_bw_timing*loop_bw_timing);
d_beta_timing = (4*loop_bw_timing*loop_bw_timing)/denom;
d_alpha_timing = (4*damping*loop_bw_timing)/denom;
d_freq_aux = 0;
d_est_freq = 0;
}
/*
* Our virtual destructor.
*/
ofdm_synchronization_1seg_impl::~ofdm_synchronization_1seg_impl()
{
delete [] d_gamma;
delete [] d_phi;
delete [] d_lambda;
delete [] d_derot;
delete [] d_conj;
delete [] d_norm;
delete [] d_corr;
delete [] d_prefft_synched;
delete [] d_postfft;
delete [] d_pilot_values;
delete [] d_known_phase_diff_tmcc;
delete [] d_known_phase_diff_ac;
delete [] d_channel_gain;
delete [] d_previous_channel_gain;
delete [] d_delta_channel_gains;
delete [] d_interpolated;
}
void
ofdm_synchronization_1seg_impl::forecast (int noutput_items, gr_vector_int &ninput_items_required)
{
int ninputs = ninput_items_required.size ();
// make sure we receive at least (symbol_length + fft_length)
for (int i = 0; i < ninputs; i++)
{
//ninput_items_required[i] = ( d_cp_length + d_fft_length ) * (noutput_items + 1) ;
ninput_items_required[i] = (int)ceil(( d_cp_length + d_fft_length ) * (noutput_items + 1) * d_samp_inc) + d_inter.ntaps() ;
}
}
void
ofdm_synchronization_1seg_impl::generate_prbs()
{
// Generate the prbs sequence for each active carrier
// Init PRBS register with 1s (reg_prbs = 111111111111)
unsigned int reg_prbs = (1 << 11) - 1;
char aux;
int first_one_seg_carrier = 6*d_active_carriers;
// I calculate the prbs beginning from carrier 0 (in the full_seg) for simplicity. This is only executed at the
// beginning, so complicating myself with a more complex analysis was unnecesary.
for (int k = 0; k < first_one_seg_carrier+d_active_carriers; k++)
{
aux = (char)(reg_prbs & 0x01); // Get the LSB of the register as a character
int new_bit = ((reg_prbs >> 2) ^ (reg_prbs >> 0)) & 0x01; // This is the bit we will add to the register as MSB
reg_prbs = (reg_prbs >> 1) | (new_bit << 10); // We move all the register to the right and add the new_bit as MSB
if (k>=first_one_seg_carrier){
d_pilot_values[k-first_one_seg_carrier] = gr_complex((float)(4 * 2 * (0.5 - aux)) / 3, 0);
}
}
}
void
ofdm_synchronization_1seg_impl::tmcc_and_ac_positions(int fft)
{
/*
* Assign to variables tmcc_carriers and tmcc_carriers_size
* the corresponding values according to the transmission mode
*/
switch (fft)
{
case 256:
{
d_tmcc_carriers = tmcc_carriers_2k;
d_tmcc_carriers_size = tmcc_carriers_size_2k;
d_ac_carriers = ac_carriers_2k;
d_ac_carriers_size = ac_carriers_size_2k;
}
break;
case 512:
{
d_tmcc_carriers = tmcc_carriers_4k;
d_tmcc_carriers_size = tmcc_carriers_size_4k;
d_ac_carriers = ac_carriers_4k;
d_ac_carriers_size = ac_carriers_size_4k;
}
break;
case 1024:
{
d_tmcc_carriers = tmcc_carriers_8k;
d_tmcc_carriers_size = tmcc_carriers_size_8k;
d_ac_carriers = ac_carriers_8k;
d_ac_carriers_size = ac_carriers_size_8k;
}
break;
default:
break;
}
}
int ofdm_synchronization_1seg_impl::interpolate_input(const gr_complex * in, gr_complex * out){
int ii = 0; // input index
int oo = 0; // output index
double s, f;
int incr;
while(oo < d_cp_length+d_fft_length) {
out[oo++] = d_inter.interpolate(&in[ii], d_samp_phase);
s = d_samp_phase + d_samp_inc;
f = floor(s);
incr = (int)f;
d_samp_phase = s - f;
ii += incr;
}
// return how many inputs we required to generate d_cp_length+d_fft_length outputs
return ii;
}
void ofdm_synchronization_1seg_impl::advance_freq_loop(float error){
d_freq_aux = d_freq_aux + d_beta_freq*error;
d_est_freq = d_est_freq + d_freq_aux + d_alpha_freq*error;
}
void ofdm_synchronization_1seg_impl::advance_delta_loop(float error){
d_delta_aux = d_delta_aux + d_beta_timing*error;
d_est_delta = d_est_delta + d_delta_aux + d_alpha_timing*error;
}
void
ofdm_synchronization_1seg_impl::estimate_fine_synchro(gr_complex * current_channel, gr_complex * previous_channel)
{
gr_complex result_1st = gr_complex(0.0, 0.0);
volk_32fc_x2_conjugate_dot_prod_32fc(&result_1st, ¤t_channel[0], &previous_channel[0], floor(d_active_carriers/2.0));
gr_complex result_2nd = gr_complex(0.0, 0.0);
int low = (int)floor(d_active_carriers/2.0);
volk_32fc_x2_conjugate_dot_prod_32fc(&result_2nd, ¤t_channel[low], &previous_channel[low], d_active_carriers-low);
float delta_est_error = 1.0/(1.0+((float)d_cp_length)/d_fft_length)/(2.0*3.14159*d_active_carriers/2.0)*std::arg(result_2nd*std::conj(result_1st)) ;
float freq_est_error = (std::arg(result_1st)+std::arg(result_2nd))/2.0/(1.0+(float)d_cp_length/d_fft_length);
// if for any reason the CP position changed, the signal error is wrong and should not be fed to the loop.
if( !d_moved_cp )
{
advance_delta_loop(delta_est_error);
advance_freq_loop(freq_est_error);
}
else
{
// delta_est_error = 0;
}
//printf("freq_est_error: %e, d_cp_start_offset:%i, d_est_freq:%f, d_freq_offset:%i, d_peak_epsilon:%e\n", freq_est_error, d_cp_start_offset, d_est_freq, d_freq_offset, d_peak_epsilon);
d_samp_inc = 1.0-d_est_delta;
d_peak_epsilon = d_est_freq;
}
void ofdm_synchronization_1seg_impl::send_symbol_index_and_resync(int current_offset)
{
int diff = d_current_symbol-d_previous_symbol;
// If there is any symbol lost print stuff
if ((diff != 1) && (diff !=-3)){
printf("previous_symbol: %i, \n current_symbol: %i\n", d_previous_symbol, d_current_symbol);
printf("d_corr_sp = {%f, %f, %f, %f}\n",d_corr_sp[0], d_corr_sp[1], d_corr_sp[2], d_corr_sp[3]);
for (int carrier = 0; carrier < d_active_carriers; carrier++)
{
//printf("out(%d)=%f+j*(%f); \n",i*d_noutput+carrier+1,out[i*d_noutput+carrier].real(),out[i*d_noutput+carrier].imag());
}
// if a symbol skip was detected, we should signal it downstream
const uint64_t offset = this->nitems_written(0)+current_offset;
pmt::pmt_t key = pmt::string_to_symbol("resync");
pmt::pmt_t value = pmt::string_to_symbol("generated by sync and channel estimation");
this->add_item_tag(0,offset,key,value);
d_symbol_correct_count = 0;
}
else
{
d_symbol_correct_count++;
}
if (d_symbol_correct_count > 3)
{
d_symbol_acq = true;
}
// signal downstream the relative symbol index found here.
const uint64_t offset = this->nitems_written(0)+current_offset;
pmt::pmt_t key = pmt::string_to_symbol("relative_symbol_index");
pmt::pmt_t value = pmt::from_long(d_current_symbol);
this->add_item_tag(0,offset,key,value);
}
void
ofdm_synchronization_1seg_impl::linearly_estimate_channel_taps(int current_symbol, gr_complex * channel_gain)
{
// This method interpolates scattered measurements across one OFDM symbol
// It does not use measurements from the previous OFDM symnbols (does not use history)
// as it may have encountered a phase change for the current phase only
// TODO interpolation is too simple, a new method(s) should be implemented
int current_sp_carrier = 0;
int next_sp_carrier = 0;
for (int i = 0; i < d_sp_carriers_size-1; i++)
{
// Current sp carrier
current_sp_carrier = 12*i+3*current_symbol;
// Next sp carrier
next_sp_carrier = 12*(i+1)+3*current_symbol;
// Calculate interpolation for all intermediate values
for (int j = 1; j < next_sp_carrier-current_sp_carrier; j++)
{
channel_gain[current_sp_carrier+j] = channel_gain[current_sp_carrier]*gr_complex(1.0-j/12.0,0.0) + channel_gain[next_sp_carrier]*gr_complex(j/12.0,0.0) ;
}
}
/////////////////////////////////////////////////////////////
//take care of extreme cases: first carriers and last carriers
/////////////////////////////////////////////////////////////
gr_complex tg_alpha;
if (current_symbol>0){
//we have not updated the gain on the first carriers
//we now do this with a very simple linear interpolator
//TODO is this a good estimation??
current_sp_carrier = 3*current_symbol;
next_sp_carrier = 12+3*current_symbol;
tg_alpha = (channel_gain[next_sp_carrier] - channel_gain[current_sp_carrier]) / gr_complex(next_sp_carrier-current_sp_carrier, 0.0);
// Calculate interpolation for all intermediate values
for (int j = -current_sp_carrier; j < 0; j++)
{
channel_gain[current_sp_carrier+j] = channel_gain[current_sp_carrier] + tg_alpha * gr_complex(j, 0.0);
}
}
// now the other extreme case: the last carriers.
// we will do the same as before
current_sp_carrier = 12*(d_sp_carriers_size-2)+3*current_symbol;
next_sp_carrier = 12*(d_sp_carriers_size-1)+3*current_symbol;
tg_alpha = (channel_gain[next_sp_carrier] - channel_gain[current_sp_carrier]) / gr_complex(next_sp_carrier-current_sp_carrier, 0.0);
// Calculate interpolation for all intermediate values
for (int j = next_sp_carrier-current_sp_carrier; j < d_active_carriers-current_sp_carrier; j++)
{
channel_gain[current_sp_carrier+j] = channel_gain[current_sp_carrier] + tg_alpha * gr_complex(j, 0.0);
}
}
void ofdm_synchronization_1seg_impl::calculate_channel_taps_sp(const gr_complex * in, int current_symbol, gr_complex * channel_gain)
{
int current_sp_carrier = 0;
// We first calculate the channel gain on the SP carriers.
for (int i = 0; i < d_sp_carriers_size; i++)
{
// We get each sp carrier position. We now know which is the current symbol (0, 1, 2 or 3)
current_sp_carrier = 12*i+3*current_symbol;
// channel gain = (sp carrier actual value)/(sp carrier expected value)
channel_gain[current_sp_carrier] = in[current_sp_carrier]/d_pilot_values[current_sp_carrier];
}
/*printf("CP chann_gain = %f+j%f; arg|CP chann_gain|= %f, CP in=%f+j%f\n",channel_gain[d_active_carriers-1].real(), channel_gain[d_active_carriers-1].imag(), \
std::arg(channel_gain[d_active_carriers-1]), \
in[d_active_carriers-1].real(),\
in[d_active_carriers-1].imag()\
);*/
}
int
ofdm_synchronization_1seg_impl::estimate_symbol_index(const gr_complex * in)
{
/*************************************************************/
// Find out the OFDM symbol index (value 0 to 3) sent
// in current block by correlating scattered symbols with
// current block - result is (symbol index % 4)
/*************************************************************/
float max = 0;
gr_complex sum = 0;
int current_symbol = 0;
int next_sp_carrier; // The next sp carrier
int current_sp_carrier; // The current sp carrier
gr_complex phase;
// sym_count (Symbol count) can take values 0 to 3, according to the positions of the scattered pilots
for (int sym_count = 0; sym_count < 4; sym_count++)
{
sum = 0;
// For every scattered pilot but the last one...
for (int i=0; i < d_sp_carriers_size-1; i++)
{
// Get the position of the next and current sp carrier based on the value of sym_count
next_sp_carrier = 12*(i+1)+3*sym_count;
current_sp_carrier = 12*i+3*sym_count;
if (d_pilot_values[next_sp_carrier]==d_pilot_values[current_sp_carrier])
{
// If the phase difference between in[next_sp_carrier] and in[current_sp_carrier] is zero,
// is because we expect both to be always in phase
phase = in[next_sp_carrier]*conj(in[current_sp_carrier]);
}
else
{
// If the phase difference between in[next_sp_carrier] and in[current_sp_carrier] is not zero,
// is because we expect both to be always out of phase (180 degrees)
phase = -in[next_sp_carrier]*conj(in[current_sp_carrier]);
}
sum += phase;
}
d_corr_sp[sym_count] = abs(sum);
if (abs(sum)>max)
{
// When sum is maximum is because the current symbol is of type sym_count (0, 1, 2 or 3)
max = abs(sum);
current_symbol = sym_count;
}
}
return current_symbol;
}
int
ofdm_synchronization_1seg_impl::estimate_integer_freq_offset(const gr_complex * in)
{
// Look for maximum correlation for tmccs and AC
// in order to obtain postFFT integer frequency correction
//
// TODO separate in two phases: acquisition and tracking. Acquisition would simply search a bigger range.
// TODO use the channel taps in the correlation??
float max = 0;
gr_complex sum = 0;
int start = 0;
gr_complex phase;
// for d_zeros_on_left +/- d_freq_offset_max...
for (int i = d_zeros_on_left - d_freq_offset_max; i < d_zeros_on_left + d_freq_offset_max; i++)
{
sum = 0;
for (int j = 0; j < (d_tmcc_carriers_size - 1); j++)
{
if (d_known_phase_diff_tmcc[j] == 0)
{
// If the phase difference between tmcc_carriers[j+1] and tmcc_carriers[j] is zero, is because we expect both to be always in phase
phase = in[i + d_tmcc_carriers[j + 1]]*conj(in[i + d_tmcc_carriers[j]]);
}
else
{
// If the phase difference between tmcc_carriers[j+1] and tmcc_carriers[j] is not zero, is because we expect both to be always out of phase (180 degrees)
phase = -in[i + d_tmcc_carriers[j + 1]]*conj(in[i + d_tmcc_carriers[j]]);
}
sum +=phase;
}
//idem for the AC channels
for (int j = 0; j < (d_ac_carriers_size - 1); j++)
{
if (d_known_phase_diff_ac[j] == 0)
{
phase = in[i + d_ac_carriers[j + 1]]*conj(in[i + d_ac_carriers[j]]);
}
else
{
phase = -in[i + d_ac_carriers[j + 1]]*conj(in[i + d_ac_carriers[j]]);
}
sum +=phase;
}
if (abs(sum) > max)
{
// When sum is maximum is because in 'i' we have the first active carrier
max = abs(sum);
start = i;
}
}
// change it only when it consistently points to a different frequency
if (d_freq_offset_disagree_count > 3)
{
d_freq_offset = start-d_zeros_on_left;
}
if (start-d_zeros_on_left!=d_freq_offset && start-d_zeros_on_left==d_freq_offset_candidate)
{
d_freq_offset_disagree_count++;
}
else
{
d_freq_offset_disagree_count = 0;
}
d_freq_offset_candidate = start-d_zeros_on_left;
//printf("d_freq_offset: %i, d_freq_offset_disagree: %i, candidato: %i\n",d_freq_offset, d_freq_offset_disagree_count, start-d_zeros_on_left);
// We get the integer frequency offset
//printf("freq offset: %d\n",d_freq_offset);
return (start - d_zeros_on_left);
}
void
ofdm_synchronization_1seg_impl::calculate_fft(const gr_complex * in, gr_complex * out)
{
// copy the input into the calculator's buffer
memcpy(d_fft_calculator.get_inbuf(), in, sizeof(gr_complex)*d_fft_length);
//calculate the FFT
d_fft_calculator.execute();
// I have to perform an fftshift
unsigned int len = (unsigned int)(ceil(d_fft_length/2.0));
memcpy(&out[0], &d_fft_calculator.get_outbuf()[len], sizeof(gr_complex)*(d_fft_length-len));
memcpy(&out[d_fft_length-len], &(d_fft_calculator.get_outbuf()[0]), sizeof(gr_complex)*len);
}
void
ofdm_synchronization_1seg_impl::peak_detect_init(float threshold_factor_rise, float alpha)
{
d_avg_alpha = alpha;
d_threshold_factor_rise = threshold_factor_rise;
// d_avg = 0;
d_avg_max = - (float)INFINITY;
d_avg_min = (float)INFINITY;
}
void
ofdm_synchronization_1seg_impl::send_sync_start()
{
const uint64_t offset = this->nitems_written(0);
pmt::pmt_t key = pmt::string_to_symbol("sync_start");
pmt::pmt_t value = pmt::from_long(1);
this->add_item_tag(0, offset, key, value);
}
bool
ofdm_synchronization_1seg_impl::peak_detect_process(const float * datain, const int datain_length, int * peak_pos)
{
#if VOLK_GT_122
uint16_t peak_index = 0;
uint32_t d_datain_length = (uint32_t)datain_length;
#else
//unsigned int peak_index = 0;
uint16_t peak_index = 0;
int d_datain_length = datain_length;
#endif
bool success = true;
volk_32f_index_max_16u(&peak_index, &datain[0], d_datain_length);
if (datain_length>=d_fft_length){
float min = datain[(peak_index + d_fft_length/2) % d_fft_length];
if(d_avg_min==(float)INFINITY){
d_avg_min = min;
}
else
{
d_avg_min = d_avg_alpha*min + (1-d_avg_alpha)*d_avg_min;
}
}
if (d_avg_max==-(float)INFINITY)
{
// I initialize the d_avg with the first value.
d_avg_max = datain[peak_index];
}
else if ( datain[ peak_index ] > d_avg_max - d_threshold_factor_rise*(d_avg_max-d_avg_min) )
{
d_avg_max = d_avg_alpha * datain[ peak_index ] + (1 - d_avg_alpha) * d_avg_max;
}
else
{
success = false;
printf("OFDM_SYNCHRO: peak under/over average! peak %f, avg_max %f, avg_min %f\n", datain[ peak_index ], d_avg_max, d_avg_min);
}
//We now check whether the peak is in the border of the search interval. This would mean that
//the search interval is not correct, and it should be re-set. This happens for instance when the
//hardware dropped some samples.
//Our definition of "border of the search interval" depends if the search interval is "big" or not.
if ( datain_length < d_fft_length )
{
if ( ( peak_index == 0 ) || ( peak_index == datain_length-1 ) )
{
success = false;
printf("OFDM_SYNCHRO: peak at border! peak %f, avg_max %f, avg_min %f, peak_index: %i\n", datain[ peak_index ], d_avg_max, d_avg_min, peak_index);
}
}
else
{
if ( ( peak_index < 5 ) || ( peak_index > datain_length-5 ) )
{
success = false;
printf("OFDM_SYNCHRO: peak at border! peak %f, avg_max %f, avg_min %f, peak_index: %i\n", datain[ peak_index ], d_avg_max, d_avg_min, peak_index);
}
}
*peak_pos = peak_index;
return (success);
}
bool
ofdm_synchronization_1seg_impl::ml_sync(const gr_complex * in, int lookup_start, int lookup_stop, int * cp_pos, float * peak_epsilon)
{
assert(lookup_start >= lookup_stop);
assert(lookup_stop >= (d_cp_length + d_fft_length - 1));
int low, size;
// Calculate norm
low = lookup_stop - (d_cp_length + d_fft_length - 1);
size = lookup_start - (lookup_stop - (d_cp_length + d_fft_length - 1)) + 1;
volk_32fc_magnitude_squared_32f(&d_norm[low], &in[low], size);
// Calculate gamma on each point
//TODO check these boundaries!!!!!!!
low = lookup_stop - (d_cp_length - 1);
//low = lookup_stop - d_cp_length - 1;
//size = lookup_start - (lookup_stop - d_cp_length - 1) + 1;
size = lookup_start - low + 1;
volk_32fc_x2_multiply_conjugate_32fc(&d_corr[low - d_fft_length], &in[low], &in[low - d_fft_length], size);
// Calculate time delay and frequency correction
// This looks like spaghetti code but it is fast
for (int i = lookup_start - 1; i >= lookup_stop; i--)
{
int k = i - lookup_stop;
d_phi[k] = 0.0;
d_gamma[k] = 0.0;
// Moving sum for calculating gamma and phi
for (int j = 0; j < d_cp_length; j++)
{
// Calculate gamma and store it
d_gamma[k] += d_corr[i - j - d_fft_length];
// Calculate phi and store it
d_phi[k] += d_norm[i - j] + d_norm[i - j - d_fft_length];
}
}
// Init lambda with gamma
low = 0;
size = lookup_start - lookup_stop;
volk_32fc_magnitude_32f(&d_lambda[low], &d_gamma[low], size);
// Calculate lambda
low = 0;
size = lookup_start - lookup_stop;
volk_32f_s32f_multiply_32f(&d_phi[low], &d_phi[low], d_rho / 2.0, size);
volk_32f_x2_subtract_32f(&d_lambda[low], &d_lambda[low], &d_phi[low], size);
int peak = 0;
bool found_peak = true;
// Find peaks of lambda
// We have found an end of symbol at peak_pos[0] + CP + FFT
if ((found_peak = peak_detect_process(&d_lambda[0], (lookup_start - lookup_stop), &peak)))
{
*cp_pos = peak + lookup_stop;
// Calculate frequency correction
*peak_epsilon = fast_atan2f(d_gamma[peak]);
}
return (found_peak);
}
// Derotates the signal
void
ofdm_synchronization_1seg_impl::derotate(const gr_complex * in, gr_complex * out)
{
double sensitivity = (double)(-1) / (double)d_fft_length;
d_phaseinc = sensitivity * d_peak_epsilon;
gr_complex phase_increment = gr_complex(std::cos(d_phaseinc), std::sin(d_phaseinc));
gr_complex phase_current = gr_complex(std::cos(d_phase), std::sin(d_phase));
volk_32fc_s32fc_x2_rotator_32fc(&out[0], &in[0], phase_increment, &phase_current, d_fft_length) ;
d_phase = std::arg(phase_current);
d_phase = fmod(d_phase + d_phaseinc*d_cp_length, (float)2*M_PI);
}
int
ofdm_synchronization_1seg_impl::general_work (int noutput_items,
gr_vector_int &ninput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
const gr_complex *in = (const gr_complex *) input_items[0];
gr_complex *out = (gr_complex *) output_items[0];
gr_complex *out_channel_gain = (gr_complex *)output_items[1];
float *out_freq_error = (float *)output_items[2];
float *out_samp_error = (float *)output_items[3];
bool ch_output_connected = output_items.size()>=2;
bool freq_error_output_connected = output_items.size()>=3;
bool samp_error_output_connected = output_items.size()>=4;
d_consumed = 0;
d_out = 0;
for (int i = 0; i < noutput_items ; i++)
{
int required_for_interpolation = d_cp_length + d_fft_length;
if (!d_initial_acquired)
{
// If we are here it means that we have no idea where the CP may be. We thus
// search it thoroughly. We also perform a coarse frequency estimation.
d_initial_acquired = ml_sync(&in[d_consumed], 2 * d_fft_length + d_cp_length - 1, d_fft_length + d_cp_length - 1, &d_cp_start, &d_peak_epsilon);
required_for_interpolation = d_cp_length + d_fft_length;
d_cp_found = d_initial_acquired;
d_symbol_acq = false;
d_samp_phase = 0;
d_moved_cp = true;
//d_samp_inc = 1.0;
d_est_freq = d_peak_epsilon;
//d_est_delta = 0;
}
else
{
//If we are here it means that in the previous iteration we found the CP. We
//now thus only search near it. In fact, we use this only to check whether the
//CP is still present (it may well happen that the USRP drops samples in which
//case the peak in the correlation is not present). We thus do not use the corresponding
//estimates of frequency and CP position.
int cp_start_aux;
float peak_epsilon_aux;
d_cp_found = ml_sync(&in[d_consumed], d_cp_start + 8, std::max(d_cp_start - 8,d_cp_length+d_fft_length-1), &cp_start_aux, &peak_epsilon_aux);
//d_cp_start = cp_start_aux;
//I am taking the one-shot estimation for the frequency since it works better than the feedback system: it obtains a better MER and is more
//robust to errors.
//TODO why is this happenning????
d_peak_epsilon = peak_epsilon_aux;
if ( !d_cp_found )
{
// We may have not found the CP because the smaller search range was too small (rare, but possible, in
// particular when sampling time error are present). We thus re-try with the whole search range.
d_cp_found = ml_sync(&in[d_consumed], 2 * d_fft_length + d_cp_length - 1, d_fft_length + d_cp_length - 1, \
&d_cp_start, &peak_epsilon_aux);
d_samp_phase = 0;
d_moved_cp = true;
}
}
if ( d_cp_found )
{
// safe-margin. Using a too adjusted CP position may result in taking samples from the NEXT ofdm
// symbol. It is better to stay on the safe-side (plus, 3 samples is nothing in this context).
d_cp_start_offset = -3;
/*
int low = d_consumed + d_cp_start + d_cp_start_offset - d_fft_length + 1 ;
derotate(&in[low], &d_prefft_synched[0]);
*/
int low = d_cp_start + d_cp_start_offset - d_fft_length + 1 ;
// I interpolate the signal with the estimated sampling clock error.
// The filter used as interpolator has non-causal output (why is beyond my understading). This -3
// solves this issue. TODO why does this happen? better solution?
required_for_interpolation = interpolate_input(&in[d_consumed+low-3], &d_interpolated[0]);
// I derotate the signal with the estimated frequency error.
derotate(&d_interpolated[0], &d_prefft_synched[0]);
// I (naturally) calculate the FFT.
calculate_fft(&d_prefft_synched[0], &d_postfft[0]);
// Calculate a candidate integer frequency error.
estimate_integer_freq_offset(&d_postfft[0]);
// d_freq_offset may be modified by estimate_integer_freq_offset
d_integer_freq_derotated = &d_postfft[0] + d_freq_offset + d_zeros_on_left;
//Estimate the current symbol index.
d_previous_symbol = d_current_symbol;
if (d_symbol_acq)
{
d_current_symbol = (d_current_symbol + 1) % 4;
}
else
{
d_current_symbol = estimate_symbol_index(d_integer_freq_derotated);
}
send_symbol_index_and_resync(i);
//printf("i: %i, d_symbol_acq: %i, d_current_symbol: %i, d_symbol_correct_count: %i\n", i, d_symbol_acq, d_current_symbol, d_symbol_correct_count);
// I keep the last symbol for fine-synchro.
gr_complex * aux = d_previous_channel_gain;
d_previous_channel_gain = d_channel_gain;
d_channel_gain = aux;
//I calculate the channel taps at the SPs...
calculate_channel_taps_sp(d_integer_freq_derotated, d_current_symbol, d_channel_gain);
// and interpolate in the rest of the carriers.
linearly_estimate_channel_taps(d_current_symbol, d_channel_gain);
// Equalization is applied.
for (int carrier = 0; carrier < d_active_carriers; carrier++)
{
out[i*d_active_carriers +carrier] = d_integer_freq_derotated[carrier]/d_channel_gain[carrier];
if (ch_output_connected){
// the channel taps output is connected
out_channel_gain[i*d_active_carriers + carrier] = d_channel_gain[carrier];
}
}
if(freq_error_output_connected)
{
//out_freq_error[i] = d_peak_epsilon/(2*3.14159) + d_freq_offset;
out_freq_error[i] = d_peak_epsilon/(2*3.14159);
}
if(samp_error_output_connected)
{
out_samp_error[i] = d_est_delta;
}
// If an integer frequency error was detected, I add it to the estimation, which considers
// fractional errors only.
//d_est_freq = d_est_freq + 3.14159*2*d_freq_offset;
// I update the fine timing and frequency estimations.
estimate_fine_synchro(d_channel_gain, d_previous_channel_gain);
d_out += 1;
}
else
{
// Send sync_start downstream
send_sync_start();
d_initial_acquired = false;
// Restart wit a half number so that we'll not endup with the same situation
// This will prevent peak_detect to not detect anything
d_consumed += (d_cp_length+d_fft_length)/2;
consume_each(d_consumed);
// Tell runtime system how many output items we produced.
// bye!
return (d_out);
}
d_consumed += required_for_interpolation;
d_moved_cp = false;
/*int delta_pos = required_for_interpolation - (d_fft_length+d_cp_length);
d_cp_start_offset += delta_pos;
printf("d_cp-start_offset: %i\n",d_cp_start_offset);
if (delta_pos!=0)
{
d_moved_cp = true;
}
else
{
d_moved_cp = false;
}
*/
}
// Tell runtime system how many input items we consumed on
// each input stream.
consume_each(d_consumed);
/*
d_cp_start_offset += d_consumed - (d_fft_length+d_cp_length)*noutput_items;
if (d_cp_start_offset!=0)
{
d_moved_cp = true;
}
*/
// Tell runtime system how many output items we produced.
return (d_out);
}
} /* namespace oneseg*/
} /* namespace gr */
|
/*
Copyright(c) 2016-2019 Panos Karabelas
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.
*/
//= INCLUDES ========================
#include "RHI_Shader.h"
#include "RHI_InputLayout.h"
#include "RHI_ConstantBuffer.h"
#include "../Logging/Log.h"
#include "../Core/Context.h"
#include "../Threading/Threading.h"
#include "../FileSystem/FileSystem.h"
//===================================
//= NAMESPACES =====
using namespace std;
//==================
namespace Spartan
{
RHI_Shader::RHI_Shader(const shared_ptr<RHI_Device>& rhi_device)
{
m_rhi_device = rhi_device;
m_input_layout = make_shared<RHI_InputLayout>(rhi_device);
}
void RHI_Shader::Compile(const Shader_Type type, const string& shader, const RHI_Vertex_Attribute_Type vertex_attributes)
{
// Deduce name or file path
if (FileSystem::IsDirectory(shader))
{
m_name.clear();
m_file_path = shader;
}
else
{
m_name = FileSystem::GetFileNameFromFilePath(shader);
m_file_path.clear();
}
// Compile
if (type == Shader_Vertex)
{
m_compilation_state = Shader_Compiling;
m_vertex_shader = _Compile(type, shader, vertex_attributes);
m_compilation_state = m_vertex_shader ? Shader_Compiled : Shader_Failed;
}
else if (type == Shader_Pixel)
{
m_compilation_state = Shader_Compiling;
m_pixel_shader = _Compile(type, shader);
m_compilation_state = m_pixel_shader ? Shader_Compiled : Shader_Failed;
}
else if (type == Shader_VertexPixel)
{
m_compilation_state = Shader_Compiling;
m_vertex_shader = _Compile(Shader_Vertex, shader, vertex_attributes);
m_pixel_shader = _Compile(Shader_Pixel, shader);
m_compilation_state = (m_vertex_shader && m_pixel_shader) ? Shader_Compiled : Shader_Failed;
}
// Log compilation result
string shader_type = (type == Shader_Vertex) ? "vertex shader" : (type == Shader_Pixel) ? "pixel shader" : "vertex and pixel shader";
if (m_compilation_state == Shader_Compiled)
{
LOGF_INFO("Successfully compiled %s from \"%s\"", shader_type.c_str(), shader.c_str());
}
else if (m_compilation_state == Shader_Failed)
{
LOGF_ERROR("Failed to compile %s from \"%s\"", shader_type.c_str(), shader.c_str());
}
}
void RHI_Shader::CompileAsync(Context* context, const Shader_Type type, const string& shader, const RHI_Vertex_Attribute_Type vertex_attributes)
{
context->GetSubsystem<Threading>()->AddTask([this, type, shader, vertex_attributes]()
{
Compile(type, shader, vertex_attributes);
});
}
}
|
// A vertex cover of an undirected graph is a subset of its vertices such that for every edge (u, v) of the graph, either ‘u’ or ‘v’ is in vertex cover.
// Although the name is Vertex Cover, the set covers all edges of the given graph.
// The problem to find minimum size vertex cover of a graph is NP complete.
// But it can be solved in polynomial time for trees. In this post a solution for Binary Tree is discussed.
// The same solution can be extended for n-ary trees.
// The idea is to consider following two possibilities for root and recursively for all nodes down the root.
// 1) Root is part of vertex cover: In this case root covers all children edges. We recursively calculate size of vertex covers for left and right subtrees and add 1 to the result (for root).
// 2) Root is not part of vertex cover: In this case, both children of root must be included in vertex cover to cover all root to children edges.
// We recursively calculate size of vertex covers of all grandchildren and number of children to the result (for two children of root).
#include<bits/stdc++.h>
using namespace std;
struct node
{
int data;
struct node *left, *right;
};
// A utility function to create a node
struct node* newNode( int data )
{
struct node* temp = (struct node *) malloc( sizeof(struct node) );
temp->data = data;
temp->left = temp->right = NULL;
return temp;
}
int solve(struct node* root)
{
if(root==NULL)
{
return 0;
}
if(root->left==NULL && root->right==NULL)
{
return 0;//leaf node
}
// root is a part of vertex cover
int temp1 = 1 + solve(root->left) + solve(root->right);
// root is not a part of vertex cover
int temp2 = 0;
if(root->left!=NULL)
{
temp2+= 1 + solve(root->left->left)+solve(root->left->right);
}
if(root->right!=NULL)
{
temp2+= 1 + solve(root->right->left)+solve(root->right->right);
}
return min(temp1,temp2);
}
int main()
{
struct node *root = newNode(20);
root->left = newNode(8);
root->left->left = newNode(4);
root->left->right = newNode(12);
root->left->right->left = newNode(10);
root->left->right->right = newNode(14);
root->right = newNode(22);
root->right->right = newNode(25);
cout << solve(root) << endl;
return 0;
}
|
#pragma once
class GamePhysics
{
public: float gravity;
int groundHeight;
GamePhysics(float g, int gH);
};
|
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair <int,int> PII;
int const MOD = 1e9 + 7;
ll bigmod(ll a,ll b){
if(!b) return 1;
ll x = bigmod(a,b/2);x = (x*x)% MOD;
if(b&1) x = (x*a)%MOD;
return x;
}
int main(){
ios::sync_with_stdio(0); cin.tie(0);
int t;
cin >> t;
while(t--){
int n,x;
cin >> n >> x;
vector < int > has(300,0);
for(int i = 0; i < n; i++){
int tmp;
cin >> tmp;
has[tmp] = 1;
}
for(int i = 299; i >= 0; i--){
int cnt = 0;
for(int p = 1; p <= i; p++) cnt += !(has[p]);
if(cnt <= x) {
cout << i << endl;
break;
}
}
}
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
#define endl '\n'
#define int long long
#define print(v) for(auto x:v){cout<<x<<" ";}cout<<endl;
int mod=1000000007;
int32_t main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
int t;
cin>>t;
while(t-- > 0)
{
int n;
cin>>n;
int b[n];
for(int i=0;i<n;i++){
cin>>b[i];
}
vector<int> A;
A.push_back(b[0]);
for(int i=0;i<n-1;i++){
if(b[i+1]!=b[i]){
A.push_back(b[i+1]);
}
}
//print(A);
unordered_map<int, vector<int> > mp;
for(int i=0;i<A.size();i++){
mp[A[i]].push_back(i);
}
// for(auto x:mp){
// cout<<x.first<<" --> ";
// print(x.second);
// }
// cout<<endl;
int ans = INT_MAX;
for(auto x:mp){
int temp;
if(x.second[0]==0 && x.second[x.second.size()-1]==A.size()-1){
temp = x.second.size()-1;
}
else if(x.second[0]>0 && x.second[x.second.size()-1]<A.size()-1){
temp = x.second.size() + 1;
}
else if(x.second[0]>0 && x.second[x.second.size()-1]==A.size()-1){
temp = x.second.size();
}
else if(x.second[0]==0 && x.second[x.second.size()-1]<A.size()-1){
temp = x.second.size();
}
ans = min(ans, temp);
}
cout<<ans<<endl;
}
return 0;
}
|
//
// Created by wiktor on 23.05.18.
//
#include "FactoryMethod.h"
namespace factoryMethod{
}
|
/*********************************************************************
Matt Marchant 2014 - 2016
http://trederia.blogspot.com
xygine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but
is not required.
2. Altered source versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any
source distribution.
*********************************************************************/
//applies a force between two points of colliding shapes. the force
//can be negative or positive
#ifndef XY_AFFECTOR_POINT_FORCE_HPP_
#define XY_AFFECTOR_POINT_FORCE_HPP_
#include <xygine/physics/Affector.hpp>
#include <xygine/physics/CollisionFilter.hpp>
#include <SFML/System/Vector2.hpp>
namespace xy
{
namespace Physics
{
class CollisionShape;
/*!
\brief Point Force Affector
Point force affectors apply a set force between two points
on the RigidBody of the CollisionShape hosting the affector
and the RigidBody of the intersecting CollisionShape. The
points can either be the centroid of either of the two
RigidBodies, or the centroid of the intersecting CollisionShapes.
The force applied is along the axis between the two points
with the given magnitude of the affector. The magnitude can be
either positive or negative, foirceing the bodies apart or
pulling them toward each other.
*/
class XY_EXPORT_API PointForceAffector final : public Affector
{
friend class CollisionShape;
public:
PointForceAffector(float magnitude, bool wake = false);
~PointForceAffector() = default;
PointForceAffector(const PointForceAffector&) = default;
PointForceAffector& operator = (const PointForceAffector&) = default;
Affector::Type type() const override { return Type::PointForce; }
void apply(RigidBody*) override;
/*!
\brief Sets the target point of the force.
The target point of the force can be the centre of mass
of the target body or the centroid of the colliding shape
\param point Either Centroid::RigidBody or Centroid CollisionShape
*/
void setTargetPoint(Centroid point) { m_targetPoint = point; }
/*!
\brief Sets the source point of the force applied.
The source point of the force can be the centre of mass of
the target body or the centroid of the colliding shape
\param point Either Centroid::RigidBody or Centroid CollisionShape
*/
void setSourcePoint(Centroid point) { m_sourcePoint = point; }
/*!
\brief Set the magnitide of the force vector applied
The magnitude can be either positive or negative
\param magnitude Size pf the force value in world units
*/
void setMagnitude(float magnitude) { m_magnitude = magnitude; }
/*!
\brief Set whether or not this affector should wake sleeping bodies on contact
\param wake set to true to wake sleeping bodies
*/
void setWake(bool wake) { m_wake = wake; }
/*!
\brief Set the amount of linear drag applied
linear drag is a force opposite to that of the colliding
bodies current velocity multiplied by the drag value.
Values should range 0 (no drag) to 1 (full drag, the force
applied is exactly opposite to the current velocity)
\param float The amount of drag to apply in range 0-1
*/
void setLinearDrag(float);
/*!
\brief Set the amount of angular drag applied
angular drag is a force opposite to that of the colliding
bodies current angular velocity multiplied by the drag value.
Values should range 0 (no drag) to 1 (full drag, the force
applied is exactly opposite to the current velocity)
\param float The amount of drag to apply in range 0-1
*/
void setAngularDrag(float);
/*!
\brief Set whether or not to use a collision mask
A collision mask can be used with this affector to define
specific groups of intersecting entities which can be influenced
by this affector.
\see CollisionFilter
\param mask Set to true to use the collision mask
*/
void useCollisionMask(bool mask) { m_useCollisionMask = mask; }
/*!
\brief Set the collision mask to use to filter out fixtures
\see useCollisionMask
\param filter The CollisionMask to use
*/
void setCollisionMask(CollisionFilter filter) { m_collisionMask = filter; }
/*!
\brief Get which target point is currently set for this affector
\see setTargetPoint
*/
Centroid getTargetPoint() const { return m_targetPoint; }
/*!
\brief Get which source point is set for this affector
\see setSourcePoint
*/
Centroid getSourcePoint() const { return m_sourcePoint; }
/*!
\brief Get the current magnitude of this affector's force
*/
float getMagnitude() const { return m_magnitude; }
/*!
\brief Get the amount of linear drag applied to colliding bodies
*/
float getLinearDrag() const { return m_linearDrag; }
/*!
\brief Get the amount of angular drag applied to colliding bodies
*/
float getAngularDrag() const { return m_angularDrag; }
/*!
\brief Returns true if this affector is set to apply its collision
mask to colliding shapes
*/
bool useCollisionMask() const { return m_useCollisionMask; }
/*!
\brief Get the current collision filter settings for this
affectors collision mask
*/
const CollisionFilter& getCollisionMask() const { return m_collisionMask; }
private:
Centroid m_targetPoint;
Centroid m_sourcePoint;
float m_magnitude;
bool m_wake;
float m_linearDrag;
float m_angularDrag;
bool m_useCollisionMask;
CollisionFilter m_collisionMask;
sf::Vector2f m_force;
void calcForce(CollisionShape* source, CollisionShape* dest);
};
}
}
#endif //XY_AFFECTOR_POINT_FORCE_HPP_
|
#pragma once
#include <d3dx9.h>
#include <d3d9.h>
#include "../GameObjects/Entity/Entity.h"
class GameCollision
{
public:
static bool isCollision(RECT rect1, RECT rect2);
//Check collision between Point and Rectangle
static bool pointCollision(float x, float y, RECT rect);
//Check collision between Rectangle and Circle
static bool circleCollision(RECT rect, int circle_x, int circle_y, int circleRadius);
//Checking intersectRect
static bool intersectRect(RECT obj, RECT other);
static D3DXVECTOR2 Distance(Entity* e1, Entity* e2, float dt);
static RECT getBroad(RECT object, D3DXVECTOR2 distance);
//Axis-Aligned Bounding Box collision
static float SweptAABB(RECT obj, RECT other, D3DXVECTOR2 distance, ::SidesCollision& sideCollision);
};
|
// xdemo.cpp - xdemo Mode X demo program
// (c) 1999 Michael Fink
// https://github.com/vividos/OldStuff/
#include "xmode.h"
#include <conio.h>
void main()
{
xmode x;
x.on();
x.clearpage(2);
x.setpage(0);
x.showpage(0);
x.pagemove(2);
x.pagemove(x.activepage());
byte array[16] = { 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 };
for (int i = 0; i < 100; i++)
x.setline(i, i, array, 16);
x.print(32, 100, YELLOW, RED, "Hello Mode X World!");
getch();
x.off();
};
|
/*
ID: hjl11841
TASK: sort3
LANG: C++
*/
#include<bits/stdc++.h>
using namespace std;
int num[1010],cnt[4],a[4],n;
int main(){
freopen("sort3.in","r",stdin);
freopen("sort3.out","w",stdout);
cin>>n;
for(int i=1;i<=n;i++){
cin>>num[i];
cnt[num[i]]++;
}
for(int i=1;i<=cnt[1]+cnt[2];i++){
if(num[i]==3){
a[3]++;
}
else if(num[i]==2&&i<=cnt[1]){
a[1]++;
}
else if(num[i]==1&&i>cnt[1]){
a[2]++;
}
}
cout<<a[3]+max(a[1],a[2])<<endl;
return 0;
}
|
#define NOMINMAX
#include <opencv2/opencv.hpp>
#include <opencv2\core\core.hpp>
#include <opencv2\imgcodecs.hpp>
#include <opencv2\imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2\imgproc\imgproc.hpp>
#include <iostream>
#include <dirent.h>
#include <vector>
using namespace std;
using namespace cv;
struct HSV{
HSV(float h, float s, float v) {
this->h = h;
this->s = s;
this->v = v;
}
float h;
float s;
float v;
};
struct ImageWithHue {
ImageWithHue(Mat image, float h) {
this->image = image;
this->h = h;
}
Mat image;
float h;
};
struct LessThanHue {
inline bool operator() (const ImageWithHue& o1, const ImageWithHue& o2) {
return (o1.h < o2.h);
}
};
HSV findDominantColor(Mat image);
float findMax(Mat ch);
void RGBtoHSV(float r, float g, float b, float *h, float *s, float *v);
int main() {
DIR * dir;
struct dirent *ent;
vector<ImageWithHue> images;
if ((dir = opendir(".\\images\\")) != NULL)
{
while ((ent = readdir(dir)) != NULL)
{
string fileName = ent->d_name;
// skip these
if (fileName == "." || fileName == "..")
{
continue;
}
Mat image = imread("./images/" + fileName);
if (image.empty())
{
cout << "Image not read: " << fileName << endl;
system("pause");
return -1;
}
cout << fileName << ":" << endl;
//namedWindow("Original", WINDOW_AUTOSIZE);
//imshow("Original", image);
HSV hsv = findDominantColor(image);
cout << "H: " << hsv.h << endl;
cout << "S: " << hsv.s << endl;
cout << "V: " << hsv.v << endl;
images.push_back(ImageWithHue(image, hsv.h));
}
std::sort(images.begin(), images.end(), LessThanHue());
for (int i = 0; i < images.size(); i++)
{
string imageName = "./images-arranged/" + std::to_string(i) + ".jpg";
imwrite(imageName, images[i].image);
}
}else{
return -1;
}
waitKey(0);
return 0;
}
/* Return the hue of the image */
HSV findDominantColor(Mat inputImage) {
Mat image;
resize(inputImage, image, Size(inputImage.rows / 2, inputImage.cols / 2));
std::vector<Mat> channels;
split(image, channels);
Mat bCh = channels[0];
Mat gCh = channels[1];
Mat rCh = channels[2];
vector<float> bArray;
vector<float> gArray;
vector<float> rArray;
if (bCh.isContinuous()) {
bArray.assign(bCh.datastart, bCh.dataend);
}
if (gCh.isContinuous()) {
gArray.assign(gCh.datastart, gCh.dataend);
}
if (rCh.isContinuous()) {
rArray.assign(rCh.datastart, rCh.dataend);
}
Mat bMat = Mat(bArray, CV_32F);
Mat gMat = Mat(gArray, CV_32F);
Mat rMat = Mat(rArray, CV_32F);
//cout << b_hist << endl;
Mat labels;
Mat bCenters, gCenters, rCenters;
cout << "k-means blue..." << endl;
kmeans(bMat, 3, labels, TermCriteria(TermCriteria::EPS + TermCriteria::COUNT, 10, 1.0), 3, KMEANS_PP_CENTERS, bCenters);
cout << "k-means green..." << endl;
kmeans(gMat, 3, labels, TermCriteria(TermCriteria::EPS + TermCriteria::COUNT, 10, 1.0), 3, KMEANS_PP_CENTERS, gCenters);
cout << "k-means red..." << endl;
kmeans(rMat, 3, labels, TermCriteria(TermCriteria::EPS + TermCriteria::COUNT, 10, 1.0), 3, KMEANS_PP_CENTERS, rCenters);
float b = findMax(bCenters) / 255;
float g = findMax(gCenters) / 255;
float r = findMax(rCenters) / 255;
//cout << "R: " << r * 255 << " " << r << endl;
//cout << "G: " << g * 255 << " " << g << endl;
//cout << "B: " << b * 255 << " " << b << endl;
float h, s, v;
RGBtoHSV(r, g, b, &h, &s, &v);
//cout << "Hue: " << h << endl;
return HSV(h, s, v);
}
float findMax(Mat ch) {
float max = 0;
for (int i = 0; i < ch.rows; i++)
{
float cur = ch.at<float>(i, 0);
if (max < cur)
{
max = cur;
}
}
return max;
}
void RGBtoHSV(float r, float g, float b, float *h, float *s, float *v)
{
float mi, max, delta;
mi = std::min(std::min(r, g), b);
max = std::max(std::max(r, g), b);
*v = max;
delta = max - mi;
if (max != 0)
*s = delta / max; // s
else {
// r = g = b = 0 // s = 0, v is undefined
*s = 0;
*h = -1;
return;
}
if (r == max)
*h = (g - b) / delta; // between yellow & magenta
else if (g == max)
*h = 2 + (b - r) / delta; // between cyan & yellow
else
*h = 4 + (r - g) / delta; // between magenta & cyan
*h *= 60; // degrees
if (*h < 0)
*h += 360;
}
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "Engine/DirectionalLight.h"
#include "ConnectFourPlayerController.generated.h"
/** PlayerController class used to enable cursor */
UCLASS()
class AConnectFourPlayerController : public APlayerController
{
GENERATED_BODY()
public:
AConnectFourPlayerController();
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Setup")
class ACameraDirector* VisualsManager;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Player")
bool bPlayer1Turn;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Player")
class AConnectFourPawn* Player1;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Player")
class AConnectFourPawn* Player2;
// Changes the turn to the next player
void ChangeTurn();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
private:
// Transitions from player 2 to player 1's turn
void TransitionToPlayer1();
// Transitions from player 1 to player 2's turn
void TransitionToPlayer2();
void CameraGameStart();
};
|
//
// Created by ariel.simulevski on 29.04.20.
//
#ifndef TINYGRAPH_GRAPH_H
#define TINYGRAPH_GRAPH_H
#include "types.h"
#include <vector>
namespace tinygraph {
class Graph {
public:
std::map<std::string, std::shared_ptr<Vertex>> vertices;
Graph();
~Graph();
std::shared_ptr<Vertex> add(const std::string& name, std::shared_ptr<Type> type);
void add_vertex(std::shared_ptr<Vertex> vertex);
std::shared_ptr<Vertex> get_vertex(const std::string& name);
std::shared_ptr<std::map<std::string, std::any>> link(const std::string& from, const std::string& to, bool unidirectional);
std::vector<std::vector<std::string>> connected_components();
std::string str();
};
}
#endif //TINYGRAPH_GRAPH_H
|
//utilize the power function builtin
#include <iostream>
#include <cmath>
//zaeem 19L-1196
void Power(double num, double exp, double &result){
result = pow(num,exp);
}
using namespace std;
int main(){
double result, n,p;
cout << "enter: number power ";
cin >> n >> p;
Power(n,p,result);
cout <<"ans:" << result << endl;
system("pause");
}
|
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define M 100000000
/*
ll p[Max],k=1;
vector<bool > a(100000000, true);
ll sieve( )
{
ll i,j;
a[0]=a[1]=false;
for(i=4; i<=Max; i+=2)
{
a[i]=false;
}
for(i=3; i<=sqrt(Max); i+=2)
{
for(j=i*i; j<=Max; j=j+2*i)
{
a[j]=false;
}
}
p[0]=2;
for(i=3; i<=Max; i+=2)
{
if(a[i]==true)
{
p[k]=i;
//cout<<p[k]<<" ";
k++;
}
}
}
/*
bool a[Max];
ll sieve(ll n)
{
ll i,j;
memset(a,true ,sizeof(a));
for ( i=2; i*i<=n; i++)
{
if(a[i]==true)
{
for( j=i*2; j<=n; j += i)
a[j]=false;
}
}
ll k=1;
for(i=2; i<=Max; i++)
{
if(a[i]==true)
{
p[k]=i;
//cout<<i<<" ";
k++;
}
}
}
*/
bool prime[M];
int p[M];
void sieve()
{
ll i,j,k=0;
prime[0]=prime[1]=1;
for(i=4; i<=M; i+=2) prime[i]=1;
for(i=3; i<=sqrt(M); i+=2)
{
if(i<=sqrt(M) && !prime[i])
{
for(j=i*i; j<=M; j+=2*i) prime[j]=1;
}
}
p[0]=2;
for(i=0; i<=M; i++)
{
if(prime[i]==0)
{
p[k]=i;
// cout<<p[k]<<" ";
k++;
}
}
}
int main()
{
ll t,n;
sieve( );
cin>>t;
while(t--)
{
cin>>n;
cout<<p[n]<<endl;
}
return 0;
}
|
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define ll long long
const int N = 2e5+22;
const int F = 1e9+22;
const ll INF = 2e15+22;
class Edge
{
public:
int u, v;
ll d;
Edge(int uu, int vv, int dd = 0) { u = uu; v = vv; d = dd; }
};
// Weighted Graph
class Graph1
{
public:
int n, m;
vector<Edge> edges;
vector<vector<pair<int, ll>>> adj;
void get_weighted_graph()
{
cin >> n >> m;
rep(i, m)
{
int u, v, d;
cin >> u >> v >> d;
u--, v--;
edges.push_back(Edge(u, v, d));
}
}
void get_weighted_graph2()
{
cin >> n >> m;
adj = vector<vector<pair<int, ll>>>(n);
rep (i, m)
{
int u, v, d;
cin >> u >> v >> d;
u--, v--;
adj[u].push_back({v, d});
adj[v].push_back({u, d});
}
}
void get_graph()
{
cin >> n >> m;
rep(i, m)
{
int u, v, d;
cin >> u >> v;
u--, v--;
edges.push_back(Edge(u, v));
}
}
/*
computes shortest paths from a single source vertex to all of the other vertices
in a weighted digraph
returns true if graph has negative cycle
*/
bool bellman_ford(int starting_node)
{
get_weighted_graph();
vector<ll> dist(n, INF);
dist[starting_node] = 0;
rep(i, n)
{
for (auto& e : edges)
{
if (dist[e.v] > dist[e.u]+e.d)
{
if (i == n-1)
return true; // negative cycle
dist[e.v] = dist[e.u]+e.d;
}
}
}
return false;
}
// all-pairs shortest path algorithm
vector<vector<ll>> floyd_warshall(bool get_input_from_user=false)
{
if (get_input_from_user)
get_weighted_graph();
vector<vector<ll>> dist(n, vector<ll>(n, INF));
rep(i,n)
dist[i][i]=0;
for (auto& e : edges)
dist[e.u][e.v] = e.d;
rep(k,n) rep(i,n) rep(j,n)
dist[i][j]=min(dist[i][j], dist[i][k]+dist[k][j]);
}
vector<ll> dijkstra(int v, bool get_input_from_user=false)
{
if (get_input_from_user)
get_weighted_graph2();
vector<bool> visited(n, false);
vector<ll> dist(n, INF);
dist[v] = 0;
priority_queue<pair<int,int>, vector<pair<int,int>>, less<pair<int,int>>> pq;
pq.push({dist[v], v});
while (!pq.empty())
{
int u = pq.top().second;
pq.pop();
if(visited[u])
continue;
visited[u] = true;
for(auto p : adj[u]) //adj[v][i] = pair(vertex, weight)
if(dist[p.first] > dist[u] + p.second)
{
dist[p.first] = dist[u] + p.second;
pq.push({dist[p.first], p.first});
}
}
return dist;
}
void dijkstra_set(int v)
{
get_weighted_graph2();
vector<bool> visited(n, false);
vector<ll> dist(n, INF);
dist[v] = 0;
set<pair<int,int>> s;
s.insert({dist[v], v});
while (!s.empty())
{
int u = (*s.begin()).second;
s.erase(s.begin());
for(auto p : adj[u]) //adj[v][i] = pair(vertex, weight)
if(dist[p.first] > dist[u] + p.second){
s.erase({dist[p.first], p.first});
dist[p.first] = dist[u] + p.second;
s.insert({dist[p.first], p.first});
}
}
}
// computes single-source shortest paths in a weighted directed graph.
// particularly suitable for graphs that contain negative-weight edges
void shortestPathFaster(int starting_vertice)
{
get_weighted_graph2();
vector<bool> in_queue(n, false);
vector<ll> dist(n, INF);
dist[starting_vertice] = 0;
queue<int> q;
q.push(starting_vertice);
in_queue[starting_vertice] = true;
while (!q.empty()) {
int u = q.front();
q.pop();
in_queue[u] = false;
for (auto& p : adj[u])
{
int v = p.first;
int weight = p.second;
if (dist[v] > dist[u] + weight) {
dist[v] = dist[u] + weight;
if (!in_queue[v])
{
q.push(v);
in_queue[v] = true;
}
}
}
}
}
vector<ll> bfs(int v, bool get_input_from_user = false)
{
if (get_input_from_user)
{
get_graph();
for (auto& e : edges)
e.d = 1;
}
return dijkstra(v);
}
int find_farthest_vertice(vector<ll> dist)
{
int farthest_v = 0;
for (int i=0; i<dist.size(); i++)
if (dist[farthest_v] < dist[i])
farthest_v = i;
return farthest_v;
}
int find_diameter()
{
vector<ll> dist = bfs(0, true);
int far_v = find_farthest_vertice(dist);
dist = bfs(far_v, false);
far_v = find_farthest_vertice(dist);
return dist[far_v];
}
// Source: https://codeforces.com/blog/entry/17974
// returns { radius, diameter, center_of_graph}
tuple<int, int, vector<int>> find_center_fw()
{
get_graph();
for (auto& e : edges)
e.d = 1;
vector<vector<ll>> dist = floyd_warshall(false);
ll rad = F;
ll diam = 0;
vector<ll> e(n, 0);
vector<int> centers;
// Counting values of eccentricity
rep(i, n) rep(j, n)
e[i] = max(e[i], dist[i][j]);
rep(i, n)
{
rad = min(rad, e[i]);
diam = max(diam, e[i]);
}
rep(i, n)
if (e[i] == rad)
centers.push_back(i);
return {rad, diam, centers};
}
// Tree (set method)
pair<int,int> find_center()
{
set<int> G[N];
get_graph();
for (auto& e : edges)
{
G[e.u].insert(e.v);
G[e.v].insert(e.u);
}
set<pair<int,int>> s;
rep(i,n)
s.insert({G[i].size(), i});
while (s.size()>2)
{
int number_of_leaves=0;
auto it = s.begin();
vector<pair<int, int>> vec;
while(it->first==1)
{
number_of_leaves++;
int v = it->second; // leaf
int u = (*G[v].begin());
vec.push_back({u, v});
it++;
}
while(number_of_leaves--)
s.erase(s.begin());
rep(i, vec.size())
{
int u=vec[i].first, v=vec[i].second;
s.erase({G[u].size(), u});
G[u].erase(v);
s.insert({G[u].size(), u});
}
}
if(s.size()==1)
return {(*s.begin()).second, -1};
else
{
int u = (*s.begin()).second;
s.erase(s.begin());
return {u, (*s.begin()).second};
}
}
// find_center(another method)
vector<int> find_center_2()
{
vector<int> degree(n, 0);
vector<vector<bool>> G(n, vector<bool>(n, false));
get_graph();
for (auto& e : edges)
{
degree[e.u]++;
degree[e.v]++;
G[e.u][e.v] = G[e.v][e.u] = true;
}
queue<int> q;
// Start from leaves
rep(i, n)
if (degree[i] == 1)
q.push(i);
int maxlevel = 0;
vector<int> level(n, 0);
vector<int> centers;
while (!q.empty())
{
int v = q.front();
q.pop();
// Remove leaf and try to add its parent
rep(i, n)
{
if (G[v][i]) {
degree[i]--;
if (degree[i] == 1) {
q.push(i);
level[i] = level[v] + 1;
maxlevel = max(maxlevel, level[i]);
}
}
}
}
rep(i, n)
if (level[i] == maxlevel)
centers.push_back(i);
return centers;
}
};
// Normal Graph
class Graph2
{
public:
int n, m;
vector<vector<int>> edges;
void get_input()
{
cin >> n >> m;
edges = vector<vector<int>>(n);
rep(i, m)
{
int u, v;
cin >> u >> v;
u--, v--;
edges[u].push_back(v);
edges[v].push_back(u);
}
}
vector<bool> visited;
vector<int> starting_time, finishing_time;
int time;
void dfs_sf_time(int u)
{
starting_time[u] = time++;
visited[u] = true;
for (auto& v : edges[u])
{
if (!visited[v])
dfs_sf_time(v);
}
finishing_time[u] = time;
}
vector<int> parent, distance, upp;
vector<pair<int,int>> cut_edges;
void dfs_cut_edge(int v, int d=0)
{
visited[v] = true;
distance[v] = d;
upp[v] = d;
for (auto& u : edges[v])
{
if (!visited[u])
{
parent[u] = v;
dfs_cut_edge(u, d+1);
if(upp[u] > distance[v])
cut_edges.push_back({v,u});
upp[v] = min(upp[v], upp[u]);
}
else if(u != parent[v])
upp[v] = min(upp[v], distance[u]);
}
}
int root;
vector<int> cut_vertices;
void dfs_cut_vertice(int v, int d=0)
{
visited[v] = true;
distance[v] = d;
upp[v] = d;
for (auto& u : edges[v])
{
if (!visited[u])
{
parent[u] = v;
dfs_cut_vertice(u, d+1);
if(upp[u] >= d && (v != root || edges[v].size() > 1))
cut_vertices.push_back(v);
upp[v] = min(upp[v], upp[u]);
}
else if(u != parent[v])
upp[v] = min(upp[v], distance[u]);
}
}
vector<int> eul_tour;
void dfs_eul_tour(int v)
{
while (edges[v].size())
{
int u = edges[v].back();
edges[v].pop_back();
edges[u].erase(std::remove(edges[u].begin(), edges[u].end(), v), edges[u].end());
dfs_eul_tour(u);
}
eul_tour.push_back(v);
}
void start_dfs(int u)
{
visited = vector<bool>(n, false);
starting_time = finishing_time = vector<int>(n, 0);
time = 0;
dfs_sf_time(u);
visited = vector<bool>(n, false);
parent = vector<int>(n, -1);
upp = vector<int>(n, F);
cut_edges.clear();
dfs_cut_edge(u);
visited = vector<bool>(n, false);
parent = vector<int>(n, -1);
upp = vector<int>(n, F);
cut_vertices.clear();
root = u;
dfs_cut_vertice(u);
eul_tour.clear();
dfs_eul_tour(u);
}
vector<int> dp, mx;
// return size of its subtree
int dfs_centroid(int v, int par=-1)
{
dp[v] = 1;
for (auto& u : edges[v])
if (u != par)
{
int x = dfs_centroid(u, v);
dp[v] += x;
mx[v] = max(mx[v], x);
}
return dp[v];
}
pair<int,int> find_centroid()
{
get_input();
dp = vector<int>(n, 0);
mx = vector<int>(n, -1);
dfs_centroid(0);
int res = F;
pair<int,int> result;
result = {-1, -1};
rep(i, n) mx[i] = max(mx[i], n-dp[i]);
rep(i, n) res=min(res, mx[i]);
rep(i, n)
if (mx[i] == res)
{
if (result.first != -1)
result.second = i;
else
result.first = i;
}
return result;
}
};
// Directed Graph
class Graph3
{
public:
int n, m;
vector<vector<int>> edges;
vector<vector<int>> reverse_edges;
void get_input()
{
cin >> n >> m;
rep(i, m)
{
int u, v;
cin >> u >> v;
u--, v--;
edges[u].push_back(v);
reverse_edges[v].push_back(u);
}
}
vector<bool> visited;
vector<int> topol;
void dfs_topol(int v)
{
visited[v] = true;
for (auto& u : edges[v])
if (!visited[u])
dfs_topol(u);
topol.push_back(v);
}
vector<int> find_topological_sort(bool get_input_from_user=false)
{
if (get_input_from_user)
get_input();
visited = vector<bool>(n, false);
topol.clear();
rep(u, n)
if (!visited[u])
dfs_topol(u);
reverse(topol.begin(), topol.end());
return topol;
}
void dfs_scc(int v, vector<vector<int>>& scc, vector<int>& node_scc)
{
node_scc[v] = (scc.size()-1);
scc.back().push_back(v);
visited[v] = true;
for (auto& u : reverse_edges[v])
if (!visited[u])
dfs_scc(u, scc, node_scc);
}
// return { scc index of each vertice, each scc component}
pair<vector<int>, vector<vector<int>>> scc()
{
get_input();
vector<int> topol_order = find_topological_sort(false);
vector<vector<int>> scc;
vector<int> node_scc;
visited = vector<bool>(n, false);
for (auto& v : topol_order)
{
if(!visited[v])
{
scc.push_back(vector<int>());
dfs_scc(v, scc, node_scc);
}
}
return {node_scc, scc};
}
};
|
#ifndef PROJECTILE_H
#define PROJECTILE_H
#include <QWidget>
#include <QPainter>
#include <QTimer>
//#include "Box.h"
class Projectile
{
public:
Projectile();
int getX();
int getY();
int getWidth();
int getHeight();
void setPosition(int x, int y);
void setDirection(int newDirection);
void checkCollision(bool **killProjectile);
void move();
void update(bool *killProjectile);
void paint(QPainter * qp);
virtual ~Projectile();
bool isMoving;
protected:
QPixmap pixmap;
QRect position;
private:
float xVel = 10;
int direction = 0;
};
#endif // PROJECTILE_H
|
/**
* Copyright (C) 2017 Alibaba Group Holding Limited. All Rights Reserved.
*
*
* 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.
*/
#include <stdio.h>
#include "multimedia/mm_types.h"
#include "multimedia/mm_errors.h"
#include "multimedia/mmlistener.h"
#include "multimedia/mm_cpp_utils.h"
#include "multimedia/media_buffer.h"
#include "multimedia/media_meta.h"
#include "multimedia/media_attr_str.h"
#include "multimedia/mmthread.h"
#if defined(__MM_YUNOS_YUNHAL_BUILD__) || defined(__MM_YUNOS_CNTRHAL_BUILD__)
#include "multimedia/mm_surface_compat.h"
#endif
#ifdef __MM_YUNOS_CNTRHAL_BUILD__
#include <hardware/gralloc.h>
#endif
#include "video_filter_example.h"
#ifndef MM_LOG_OUTPUT_V
//#define MM_LOG_OUTPUT_V
#endif
#include <multimedia/mm_debug.h>
namespace YUNOS_MM {
DEFINE_LOGTAG(VideoFilterExample)
static const char * COMPONENT_NAME = "VideoFilterExample";
static const char * MMTHREAD_NAME = "PollThread";
#define FUNC_TRACK() FuncTracker tracker(MM_LOG_TAG, __FUNCTION__, __LINE__)
// #define FUNC_TRACK()
#define ENTER() VERBOSE(">>>\n")
#define EXIT() do {VERBOSE(" <<<\n"); return;}while(0)
#define EXIT_AND_RETURN(_code) do {VERBOSE("<<<(status: %d)\n", (_code)); return (_code);}while(0)
#define ENTER1() DEBUG(">>>\n")
#define EXIT1() do {DEBUG(" <<<\n"); return;}while(0)
#define EXIT_AND_RETURN1(_code) do {DEBUG("<<<(status: %d)\n", (_code)); return (_code);}while(0)
BEGIN_MSG_LOOP(VideoFilterExample)
MSG_ITEM(MSG_prepare, onPrepare)
MSG_ITEM(MSG_start, onStart)
MSG_ITEM(MSG_stop, onStop)
MSG_ITEM(MSG_flush, onFlush)
MSG_ITEM(MSG_reset, onReset)
MSG_ITEM(MSG_addSource, onAddSource)
END_MSG_LOOP()
//////////////////////// PollThread
class PollThread : public MMThread {
public:
PollThread(VideoFilterExample * com)
: MMThread(MMTHREAD_NAME, true)
, mComponent(com)
, mCondition(mComponent->mLock)
, mContinue(true)
{
FUNC_TRACK();
}
~PollThread()
{
FUNC_TRACK();
}
void signalExit()
{
FUNC_TRACK();
MMAutoLock locker(mComponent->mLock);
mContinue = false;
mCondition.signal();
}
void signalContinue_l()
{
FUNC_TRACK();
mCondition.signal();
}
protected:
virtual void main();
private:
Lock mLock;
VideoFilterExample * mComponent;
Condition mCondition; // cork/uncork on pause/resume
bool mContinue; // terminate the thread
DECLARE_LOGTAG()
};
DEFINE_LOGTAG(PollThread)
// poll the device for notification of available input/output buffer index
#define RETRY_COUNT 500
void PollThread::main()
{
FUNC_TRACK();
MediaBufferSP buffer;
mm_status_t status;
int retry = 0;
while(1) {
{
MMAutoLock locker(mComponent->mLock);
if (!mContinue) {
break;
}
if (mComponent->mState != VideoFilterExample::StateType::STATE_STARTED) {
INFO("PollThread waitting\n");
mCondition.wait();
INFO("PollThread wakeup \n");
continue;
}
}
//read buffer from camera source
do {
if (!mContinue) {
buffer.reset();
EXIT();
}
status = mComponent->mReader->read(buffer);
} while((status == MM_ERROR_AGAIN) && (retry++ < RETRY_COUNT));
ASSERT(buffer);
DEBUG("source media buffer size %d pts %" PRId64 " dts %" PRId64 "",
buffer->size(), buffer->pts(), buffer->dts());
uint8_t *sourceBuf = NULL;
int32_t offset = 0;
int32_t length = 0;
static int32_t width = 0;
static int32_t height = 0;
int ret = 0;
if (!width) {
mComponent->mInputFormat->getInt32(MEDIA_ATTR_WIDTH, width);
DEBUG("got width %d", width);
}
if (!height) {
mComponent->mInputFormat->getInt32(MEDIA_ATTR_HEIGHT, height);
DEBUG("got height %d", height);
}
if (buffer->type() != MediaBuffer::MBT_GraphicBufferHandle) {
MMAutoLock locker(mComponent->mLock);
mComponent->mAvailableSourceBuffers.push(buffer);
mComponent->mCondition.signal();
continue;
}
ret = buffer->getBufferInfo((uintptr_t *)&sourceBuf, &offset, &length, 1);
if (ret && sourceBuf && length) {
MMBufferHandleT *handle = (MMBufferHandleT *)(sourceBuf);
#ifdef __MM_YUNOS_YUNHAL_BUILD__
static YunAllocator &allocator(YunAllocator::get());
#else
#ifndef YUNOS_ENABLE_UNIFIED_SURFACE
static const hw_module_t *mModule = NULL;
static gralloc_module_t *allocator;
if (mModule == NULL) {
int err = hw_get_module(GRALLOC_HARDWARE_MODULE_ID, &mModule);
ASSERT(err == 0);
ASSERT(mModule);
allocator = (gralloc_module_t*)mModule;
ASSERT(allocator);
}
#else
static YunAllocator &allocator(YunAllocator::get());
#endif
#endif
void* vaddr = NULL;
#ifdef __MM_YUNOS_YUNHAL_BUILD__
int ret = allocator.lock(*handle, ALLOC_USAGE_PREF(SW_READ_OFTEN) | ALLOC_USAGE_PREF(SW_WRITE_OFTEN),
0, 0, width, height, &vaddr);
#else
#ifndef YUNOS_ENABLE_UNIFIED_SURFACE
int ret = allocator->lock(allocator, *handle,
ALLOC_USAGE_PREF(SW_READ_OFTEN) | ALLOC_USAGE_PREF(SW_WRITE_OFTEN),
0, 0, width, height, &vaddr);
#else
int ret = allocator.lock(*handle, ALLOC_USAGE_PREF(SW_READ_OFTEN) | ALLOC_USAGE_PREF(SW_WRITE_OFTEN),
0, 0, width, height, &vaddr);
#endif
#endif
ASSERT(ret == 0);
// do stuff, dig hole
uint8_t *y = (uint8_t*)vaddr;
int i = height*3/8;
for (; i < height*5/8; i++) {
memset(y+i*width+width*3/8, 0, width/4);
}
// uint8_t *uv = (uint8_t*)vaddr + width * height;
#ifdef __MM_YUNOS_YUNHAL_BUILD__
ret = allocator.unlock(*handle);
#else
#ifndef YUNOS_ENABLE_UNIFIED_SURFACE
ret = allocator->unlock(allocator, *handle);
#else
ret = allocator.unlock(*handle);
#endif
#endif
ASSERT(ret == 0);
} else {
WARNING("cannot get source buffer info");
if (buffer->isFlagSet(MediaBuffer::MBFT_EOS)) {
DEBUG("got eos buffer");
} else {
EXIT();
}
}
{
MMAutoLock locker(mComponent->mLock);
mComponent->mAvailableSourceBuffers.push(buffer);
mComponent->mCondition.signal();
}
}
INFO("Poll thread exited\n");
}
mm_status_t VideoFilterExample::GrayReader::read(MediaBufferSP & buffer)
{
ENTER();
MMAutoLock locker(mComponent->mLock);
if (mComponent->mAvailableSourceBuffers.empty()) {
mComponent->mCondition.wait();
}
//notify, but not by available buffer
if (mComponent->mAvailableSourceBuffers.empty()) {
EXIT_AND_RETURN(MM_ERROR_AGAIN);
}
buffer = mComponent->mAvailableSourceBuffers.front();
mComponent->mAvailableSourceBuffers.pop();
static int count = 0;
VERBOSE("buffer count %d", ++count);
EXIT_AND_RETURN(MM_ERROR_SUCCESS);
}
MediaMetaSP VideoFilterExample::GrayReader::getMetaData()
{
mComponent->mInputFormat->setFraction(MEDIA_ATTR_TIMEBASE, 1, 1000000);
return mComponent->mInputFormat;
}
VideoFilterExample::VideoFilterExample() : MMMsgThread(COMPONENT_NAME)
, mCondition(mLock)
{
mInputFormat = MediaMeta::create();
}
VideoFilterExample::~VideoFilterExample()
{
}
mm_status_t VideoFilterExample::addSource(Component * component, MediaType mediaType) {
ENTER();
if (mediaType != kMediaTypeVideo)
EXIT_AND_RETURN(MM_ERROR_INVALID_PARAM);
param1_type rsp_param1;
param2_type rsp_param2;
if (sendMsg(MSG_addSource, 0, component, &rsp_param1, &rsp_param2)) {
EXIT_AND_RETURN(MM_ERROR_OP_FAILED);
}
if (rsp_param1)
EXIT_AND_RETURN(rsp_param1);
EXIT_AND_RETURN(MM_ERROR_SUCCESS);
}
Component::ReaderSP VideoFilterExample::getReader(MediaType mediaType)
{
ENTER();
if ( mediaType != Component::kMediaTypeVideo ) {
ERROR("not supported mediatype: %d\n", mediaType);
return Component::ReaderSP((Component::Reader*)NULL);
}
Component::ReaderSP rsp(new VideoFilterExample::GrayReader(this));
return rsp;
}
mm_status_t VideoFilterExample::init()
{
int ret = MMMsgThread::run();
if (ret != 0) {
ERROR("init failed, ret %d", ret);
EXIT_AND_RETURN(MM_ERROR_OP_FAILED);
}
EXIT_AND_RETURN(MM_ERROR_SUCCESS);
}
void VideoFilterExample::uninit()
{
ENTER();
MMMsgThread::exit();
EXIT();
}
mm_status_t VideoFilterExample::prepare()
{
postMsg(MSG_prepare, 0, NULL);
return MM_ERROR_ASYNC;
}
mm_status_t VideoFilterExample::start()
{
postMsg(MSG_start, 0, NULL);
return MM_ERROR_ASYNC;
}
mm_status_t VideoFilterExample::stop()
{
postMsg(MSG_stop, 0, NULL);
return MM_ERROR_ASYNC;
}
mm_status_t VideoFilterExample::reset()
{
postMsg(MSG_reset, 0, NULL);
return MM_ERROR_ASYNC;
}
mm_status_t VideoFilterExample::flush()
{
postMsg(MSG_flush, 0, NULL);
return MM_ERROR_ASYNC;
}
mm_status_t VideoFilterExample::setParameter(const MediaMetaSP & meta)
{
ENTER();
MMAutoLock locker(mLock);
int ret = MM_ERROR_SUCCESS;
for ( MediaMeta::iterator i = meta->begin(); i != meta->end(); ++i ) {
const MediaMeta::MetaItem & item = *i;
#if 0
if ( !strcmp(item.mName, MEDIA_ATTR_SAMPLE_RATE) ) {
if ( item.mType != MediaMeta::MT_Int32 ) {
MMLOGW("invalid type for %s\n", item.mName);
continue;
}
mSampleRate = item.mValue.ii;
MMLOGI("key: %s, value: %d\n", item.mName, mSampleRate);
ret = MM_ERROR_SUCCESS;
}
#endif
}
EXIT_AND_RETURN(ret);
}
void VideoFilterExample::setState(int state)
{
mState = (StateType)state;
DEBUG("mState set to %d", state);
}
void VideoFilterExample::onAddSource(param1_type param1, param2_type param2, uint32_t rspId)
{
Component *component = (Component*)param2;
mReader = component->getReader(kMediaTypeVideo);
mm_status_t status = MM_ERROR_SUCCESS;
MediaMetaSP meta;
// int32_t bitrate = 0;
int32_t fps = 30;
int32_t colorFormat = 0;
int32_t fourcc = 0;
float srcFps;
int32_t width = 0;
int32_t height = 0;
if (!mReader) {
status = MM_ERROR_INVALID_PARAM;
goto RETURN;
}
meta = mReader->getMetaData();
if (!meta) {
status = MM_ERROR_INVALID_PARAM;
goto RETURN;
}
mInputFormat->dump();
// sanity check
if (meta->getInt32(MEDIA_ATTR_WIDTH, width)) {
DEBUG("get meta data, width is %d", width);
mInputFormat->setInt32(MEDIA_ATTR_WIDTH, width);
}
if (meta->getInt32(MEDIA_ATTR_HEIGHT, height)) {
DEBUG("get meta data, height is %d", height);
mInputFormat->setInt32(MEDIA_ATTR_HEIGHT, height);
}
if (meta->getFloat(MEDIA_ATTR_FRAME_RATE, srcFps)) {
fps = (int32_t) srcFps;
DEBUG("get meta data, frame rate is %d", fps);
mInputFormat->setInt32(MEDIA_ATTR_AVG_FRAMERATE, fps);
} else {
DEBUG("use default fps value %d", fps);
mInputFormat->setInt32(MEDIA_ATTR_AVG_FRAMERATE, fps);
}
mInputFormat->setFraction(MEDIA_ATTR_TIMEBASE, 1, 1000000);
if (meta->getInt32(MEDIA_ATTR_COLOR_FORMAT, colorFormat)) {
DEBUG("get meta data, color foramt is %x", colorFormat);
mInputFormat->setInt32(MEDIA_ATTR_COLOR_FORMAT, colorFormat);
}
if (meta->getInt32(MEDIA_ATTR_COLOR_FOURCC, fourcc)) {
DEBUG("get meta data, input fourcc is %08x\n", fourcc);
DEBUG_FOURCC("fourcc: ", fourcc);
mInputFormat->setInt32(MEDIA_ATTR_COLOR_FOURCC, fourcc);
}
RETURN:
if (rspId) {
postReponse(rspId, status, NULL);
EXIT();
}
}
void VideoFilterExample::onPrepare(param1_type param1, param2_type param2, uint32_t rspId)
{
ENTER1();
if (mState >= STATE_PREPARED ) {
DEBUG("mState is %d", mState);
notify(kEventPrepareResult, MM_ERROR_SUCCESS, 0, nilParam);
}
setState(STATE_PREPARED);
notify(kEventPrepareResult, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
void VideoFilterExample::onStart(param1_type param1, param2_type param2, uint32_t rspId)
{
ENTER1();
MMAutoLock locker(mLock);
if (mState == STATE_STARTED) {
ERROR("Aready started\n");
notify(kEventStartResult, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
if (!mPollThread) {
mPollThread.reset (new PollThread(this), MMThread::releaseHelper);
mPollThread->create();
}
setState(STATE_STARTED);
mPollThread->signalContinue_l();
notify(kEventStartResult, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
void VideoFilterExample::onStop(param1_type param1, param2_type param2, uint32_t rspId)
{
ENTER1();
{
MMAutoLock locker(mLock);
if (mState == STATE_IDLE || mState == STATE_STOPED) {
notify(kEventStopped, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
// set state first, pool thread will check it
setState(STATE_STOPED);
}
if (mPollThread) {
mPollThread->signalExit();
mPollThread.reset(); // it will trigger MMThread::destroy() to wait until the exit of mPollThread
}
notify(kEventStopped, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
void VideoFilterExample::onFlush(param1_type param1, param2_type param2, uint32_t rspId)
{
ENTER1();
MMAutoLock locker(mLock);
clearSourceBuffers();
notify(kEventFlushComplete, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
void VideoFilterExample::onReset(param1_type param1, param2_type param2, uint32_t rspId)
{
ENTER1();
if (mState == STATE_IDLE) {
DEBUG("mState is %d", mState);
notify(kEventResetComplete, MM_ERROR_SUCCESS, 0, nilParam);
}
{
MMAutoLock locker(mLock);
clearSourceBuffers();
}
// reset external resource before dynamic lib unload
mReader.reset();
setState(STATE_IDLE);
notify(kEventResetComplete, MM_ERROR_SUCCESS, 0, nilParam);
EXIT1();
}
void VideoFilterExample::clearSourceBuffers()
{
#if 0
while(!mAvailableSourceBuffers.empty()) {
mAvailableSourceBuffers.pop();
}
#endif
}
}
extern "C" {
MM_LOG_DEFINE_MODULE_NAME("VideoGrayPlug");
YUNOS_MM::Component * createComponent(const char* mimeType, bool isEncoder)
{
MMLOGI();
return new YUNOS_MM::VideoFilterExample();
}
void releaseComponent(YUNOS_MM::Component * component)
{
MMLOGI("%p\n", component);
if ( component ) {
YUNOS_MM::VideoFilterExample * c = DYNAMIC_CAST<YUNOS_MM::VideoFilterExample*>(component);
MMASSERT(c != NULL);
MM_RELEASE(c);
}
}
}
|
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main (){
int N, num;
vector<int> sum;
cin >> N;
/*새로 입력되는 단위의 화폐 마다
본인을 포함해 기존에 벡터 안에
들어있던 모든 금액과 더한 값을 넣어준다. */
for(int a = 0; a < N; a++){
cin >> num;
int size = sum.size();
for(int b = 0; b < size; b++){
sum.push_back(sum[b] + num);
}
sum.push_back(num);
}
/*중복되는 값들은 하나만 남도록 하고
오름차순으로 정렬한다.*/
sort(sum.begin(), sum.end());
sum.erase(unique(sum.begin(), sum.end()), sum.end());
int answer = 1, index = 0;
while(true){
if(sum[index] != answer)
break;
answer++;
index++;
}
cout << answer << endl;
return 0;
}
|
#ifndef __RESHAPE_LAYER_H__
#define __RESHAPE_LAYER_H__
#include <cassert>
#include <iostream>
#include <fstream>
#include <cstring>
#include <cuda_runtime.h>
#include "NvCaffeParser.h"
#include "NvInferPlugin.h"
#include "Common.h"
using namespace nvinfer1;
using namespace nvcaffeparser1;
using namespace plugin;
template<int OutC>
class ReshapeLayer: public IPlugin
{
public:
ReshapeLayer()
{
}
ReshapeLayer(const void* buffer, size_t size)
{
assert(size == sizeof(mCopySize));
mCopySize = *reinterpret_cast<const size_t*>(buffer);
}
int getNbOutputs() const override
{
return 1;
}
Dims getOutputDimensions(int index, const Dims* inputs, int nbInputDims) override
{
#ifdef DEBUG
return DimsCHW(inputs[0].d[0], inputs[0].d[1], inputs[0].d[2]);
#else
assert(nbInputDims == 1);
assert(index == 0);
assert(inputs[index].nbDims == 3);
assert((inputs[0].d[0]) * (inputs[0].d[1]) % OutC == 0);
return DimsCHW(OutC, inputs[0].d[0] * inputs[0].d[1] / OutC, inputs[0].d[2]);
#endif
}
int initialize() override
{
return 0;
}
void terminate() override
{
}
size_t getWorkspaceSize(int) const override
{
return 0;
}
// currently it is not possible for a plugin to execute "in place". Therefore we memcpy the data from the input to the output buffer
int enqueue(int batchSize, const void* const *inputs, void** outputs, void*, cudaStream_t stream) override
{
CHECK(cudaMemcpyAsync(outputs[0], inputs[0], mCopySize * batchSize, cudaMemcpyDeviceToDevice, stream));
return 0;
}
size_t getSerializationSize() override
{
return sizeof(mCopySize);
}
void serialize(void* buffer) override
{
*reinterpret_cast<size_t*>(buffer) = mCopySize;
}
void configure(const Dims*inputs, int nbInputs, const Dims* outputs, int nbOutputs, int) override
{
mCopySize = inputs[0].d[0] * inputs[0].d[1] * inputs[0].d[2] * sizeof(float);
}
protected:
size_t mCopySize;
};
#endif
|
#include <cstdio>
#include <vector>
#include <algorithm>
using namespace std;
int n,k,q,ans[int(1e5)+5];
long long num[int(1e6)+5];
pair<long long,int> qs[int(1e5)+5];
void init(){
scanf("%d %d %d",&n,&k,&q);
for(int i=0;i<n;i++){
scanf("%lld",&num[i]);
}
for(int i=0;i<q;i++){
scanf("%lld",&qs[i].first);
qs[i].second = i;
}
}
void answerQs(long long value, int &firstQInd, int sumInd){
while(qs[firstQInd].first<=value && firstQInd < q){
ans[qs[firstQInd++].second] = sumInd;
}
}
void solve(){
long long sum=0;
int answeredQs=0;
sort(qs,qs+q);
fill(ans,ans+q,-1);
for(int i=0;i<k;i++){
sum+=num[i];
}
answerQs(sum,answeredQs,0);
for(int i=k;i<n;i++){
sum = sum - num[i-k] + num[i];
answerQs(sum,answeredQs,i-k+1);
}
}
void printAns(){
for(int i=0;i<q;i++){
printf("%d\n",ans[i]);
}
}
int main(){
init();
solve();
printAns();
}
|
#include <iostream>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
bool graph[101][101]={0,};
int visit[101][101] = {0,};
int n, m, k;
int dir[4][2] = {{1,0},{-1,0},{0,1},{0,-1}};
void makeGraph(int x1, int y1, int x2, int y2){
for(int i=n-y1; i<=n-y2-1; i++){
for(int j=x1; j<=x2-1; j++) graph[i][j]=0;
}
}
// 영역 카운트
int check(bool tf, int x, int y){
if(x>n-1 || y>m-1 || x<0 || y<0 || tf!=graph[x][y]) return 0;
graph[x][y]=false;
int res=1;
for(int i=0 ; i<4; i++){
int x_ = x + dir[i][0];
int y_ = y + dir[i][1];
res += check(tf, x_, y_);
}
return res;
}
void generate(){
int cntAll=1;
vector<int> res;
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
// 벽이있다면
if(!graph[i][j]) continue;
int tmp = check(graph[i][j], i, j);
cntAll++;
res.push_back(tmp);
}
}
sort(res.begin(), res.end());
cout<<res.size()<<endl;
for(int i=0; i<res.size(); i++) cout<<res[i]<<" ";
cout<<endl;
}
int main(){
int x1, y1, x2, y2;
scanf("%d %d %d",&n, &m, &k);
memset(graph, 1, sizeof(graph));
for(int i=0; i<k; i++){
scanf("%d %d %d %d",&x1, &y1, &x2, &y2);
makeGraph(x1, y2, x2, y1);
}
// for(int i=0; i<n; i++){
// for(int j=0; j<m; j++){
// cout<<graph[i][j]<<" ";
// }
// cout<<endl;
// }
generate();
}
|
#include "rec.h"
Rec::Rec(Point & _head, const char _c) :Rotatable(_head, _c)
{
int x = _head.getX(_head);
int y = _head.getY(_head);
char c1 = _c;
bodyShape[0].set(x + 0, y, c1);
bodyShape[1].set(x + 1, y, c1);
bodyShape[2].set(x + 2, y, c1);
bodyShape[3].set(x + 3, y, c1);
}
void Rec::takeShapeUp()
{
bodyShape[0].set(START_X + 0, START_Y, REC_CHAR);
bodyShape[1].set(START_X + 1, START_Y, REC_CHAR);
bodyShape[2].set(START_X + 2, START_Y, REC_CHAR);
bodyShape[3].set(START_X + 3, START_Y, REC_CHAR);
}
|
#ifndef _GALES_MESH_MOTION_HPP_
#define _GALES_MESH_MOTION_HPP_
#include "mesh.hpp"
namespace GALES {
template<int dim> class Mesh_Motion {};
template<>
class Mesh_Motion<2>
{
using mesh_type = Mesh<2>;
using vec = std::vector<double>;
public:
// This function reads the updated node coordinates of the mesh if mesh is moving and we need to restart at some time instance.
// Note that mesh is written in binary.
// We use read_bin function to read the file into a vector which is consisted of first x-coord of all nodes; then y-coord of all nodes.
void read_updated_node_coords(const std::string mesh_file, mesh_type& mesh)
{
std::vector<double> v(2*mesh.tot_nodes());
read_bin(mesh_file,v);
std::vector<double> nd_x(mesh.tot_nodes()), nd_y(mesh.tot_nodes());
for(int i=0; i<mesh.tot_nodes(); i++)
{
nd_x[i] = v[i];
nd_y[i] = v[mesh.tot_nodes()+i];
}
for(const auto& nd : mesh.nodes())
{
nd->set_x(nd_x[nd->gid()]);
nd->set_y(nd_y[nd->gid()]);
}
}
// This function updates the mesh coordinates with deformation computed with elastostatic model
// Each process has a unique list of nodes (host and ghost) and is responsible to
// update all its nodes including the ghost ones also.
// If we do not update the ghost node then it will be a problem as some
// other process on which the same node is the host one will update the node
// and it will cause inconsistancy.
template<typename model_type>
void update_mesh(model_type& e_model, mesh_type& mesh)
{
for (auto& nd : mesh.nodes())
{
std::vector<double> dofs_u;
e_model.extract_node_dofs(*(e_model.mesh().nodes()[nd->lid()]), dofs_u);
nd->update_coord(dofs_u);
}
}
// This function writes mesh in parallel
// Mesh is written in binary. We write only the mesh nodes considering that in our implementation
// element topology as well as connections do not change upon mesh updation.
// Only the nodes deform their position. We write first x-coord of all nodes; then y-coord of all nodes; then z-coord of all nodes.
void write_mesh(const IO& parallel_mesh_writer, mesh_type& mesh)
{
std::vector<vec> nodes_coord(2, vec());
for(const auto& nd : mesh.nodes()) /// this collects nodes_coord
{
nodes_coord[0].push_back(nd->get_x());
nodes_coord[1].push_back(nd->get_y());
}
parallel_mesh_writer.write2("nd_x", nodes_coord[0]); /// this writes nodes_coord[0] in file "nd_x" in parallel using map_
parallel_mesh_writer.write2("nd_y", nodes_coord[1]);
MPI_Barrier(MPI_COMM_WORLD);
const int rank = get_rank();
if (rank == 0)
{
std::stringstream o_file;
o_file <<"results/fluid_mesh/"<<time::get().t()<<std::flush;
std::string s = o_file.str();
std::ofstream of_a(s.c_str(), std::ios_base::binary);
std::ifstream if_a("nd_x", std::ios_base::binary);
std::ifstream if_b("nd_y", std::ios_base::binary);
of_a << if_a.rdbuf() << if_b.rdbuf(); /// this concate the random binary buffer in of_a
if_a.close();
if_b.close();
of_a.close();
remove("nd_x");
remove("nd_y");
}
}
};
template<>
class Mesh_Motion<3>
{
using mesh_type = Mesh<3>;
using vec = std::vector<double>;
public:
// This class reads the updated node coordinates of the mesh if mesh is moving and we need to restart at some time instance.
// Note that mesh is written in binary.
// We use read_bin function to read the file into a vector which is consisted of first x-coord of all nodes; then y-coord of all nodes; then z-coord of all nodes.
void read_updated_node_coords(const std::string mesh_file, const mesh_type& mesh)
{
std::vector<double> v(3*mesh.tot_nodes());
read_bin(mesh_file,v);
std::vector<double> nd_x(mesh.tot_nodes()), nd_y(mesh.tot_nodes()), nd_z(mesh.tot_nodes());
for(int i=0; i<mesh.tot_nodes(); i++)
{
nd_x[i] = v[i];
nd_y[i] = v[mesh.tot_nodes()+i];
nd_z[i] = v[2*mesh.tot_nodes()+i];
}
for(const auto& nd : mesh.nodes())
{
nd->set_x(nd_x[nd->gid()]);
nd->set_y(nd_y[nd->gid()]);
nd->set_z(nd_z[nd->gid()]);
}
}
// This function updates the mesh coordinates with deformation computed with elastostatic model
// Each process has a unique list of nodes (host and ghost) and is responsible to
// update all its nodes including the ghost ones also.
// If we do not update the ghost node then it will be a problem as some
// other process on which the same node is the host one will update the node
// and it will cause inconsistancy.
template<typename model_type>
void update_mesh(model_type& e_model, mesh_type& mesh)
{
for (auto& nd : mesh.nodes())
{
std::vector<double> dofs_u;
e_model.extract_node_dofs(*(e_model.mesh().nodes()[nd->lid()]), dofs_u);
nd->update_coord(dofs_u);
}
}
// This function writes mesh in parallel
// Mesh is written in binary. We write only the mesh nodes considering that in our implementation
// element topology as well as connections do not change upon mesh updation.
// Only the nodes deform their position. We write first x-coord of all nodes; then y-coord of all nodes; then z-coord of all nodes.
void write_mesh(const IO& parallel_mesh_writer, mesh_type& mesh)
{
std::vector<vec> nodes_coord(3, vec());
for (const auto& nd : mesh.nodes())
{
nodes_coord[0].push_back(nd->get_x());
nodes_coord[1].push_back(nd->get_y());
nodes_coord[2].push_back(nd->get_z());
}
parallel_mesh_writer.write2("nd_x", nodes_coord[0]);
parallel_mesh_writer.write2("nd_y", nodes_coord[1]);
parallel_mesh_writer.write2("nd_z", nodes_coord[2]);
MPI_Barrier(MPI_COMM_WORLD);
const int rank = get_rank();
if (rank == 0)
{
std::stringstream o_file;
o_file <<"results/fluid_mesh/"<<time::get().t()<<std::flush;
std::string s = o_file.str();
std::ofstream of_a(s.c_str(), std::ios_base::binary);
std::ifstream if_a("nd_x", std::ios_base::binary);
std::ifstream if_b("nd_y", std::ios_base::binary);
std::ifstream if_c("nd_z", std::ios_base::binary);
of_a << if_a.rdbuf() << if_b.rdbuf()<<if_c.rdbuf();
if_a.close();
if_b.close();
if_c.close();
of_a.close();
remove("nd_x");
remove("nd_y");
remove("nd_z");
}
}
};
}//namespace GALES
#endif
|
/***********************************************************************
*
* Copyright (c) 2012 Alcatel-Lucent Technologies.
* All rights reserved.
*
* ALL RIGHTS ARE RESERVED BY ALCATEL-LUCENT TECHNOLOGIES.
* ACCESS TO THIS SOURCE CODE IS STRICTLY RESTRICTED
* UNDER CONTRACT. THIS CODE IS TO BE KEPT STRICTLY
* CONFIDENTIAL. UNAUTHORIZED MODIFICATIONS OF THIS FILE
* WILL VOID YOUR SUPPORT CONTRACT WITH ALCATEL-LUCENT
* TECHNOLOGIES. IF SUCH MODIFICATIONS ARE FOR THE
* PURPOSE OF CIRCUMVENTING LICENSING LIMITATIONS, LEGAL
* ACTION MAY RESULT.
*
***********************************************************************
*
* File Name: Segment.h
* Description: This file contains definitions for
* upˇ
* -------------------------------------------------------------------------------------------------------
* Change History :
* Date Author Description (FR/CR)
* ------------- ----------------- ----------------------------------------------------------------
* 2012-12-28 jianmink Initial creation ...
***********************************************************************/
#ifndef SEGMENT_H_
#define SEGMENT_H_
#include "BitString.h"
class Segments
{
BitString inputStr;
public:
int gpLen;
int segmentNum;
int bitNumWithoutFiller;
int maxSegmentSize;
int bigSegmentSize; //K+
int smallSegmentSize; //K_
int bigSegmentNum; //C+
int smallSegmentNum; //C_
int fillerNum;
char* outputBits;
int* segmentLenArray;
public:
Segments();
~Segments();
void setMaxBlockSizeInBit(int z){maxSegmentSize=z;}
int getMaxBlockSizeInBit(){return maxSegmentSize;}
void prepare(int);
Segments& prepare(BitString);
int getCRCLen(){return gpLen;}
int getNumSegments(){return segmentNum;}
int getNumBitsAfter(){return bitNumWithoutFiller;}
int getKPlus(){return bigSegmentSize;}
int getKMinus(){return smallSegmentSize;}
void encode(char filler='0');
BitString toString(char*, int);
BitString toString(int);
private:
void calculate();
void encodeBlockCRC(char*, int);
};
#endif /* SEGMENT_H_ */
|
#include <iostream>
using namespace std;
//13130110075 zhouyou
bool check(int s[], int C, int k, int x[]){
int sum = 0;
for(int i=0; i<=k; i++){
if(x[i] == 1)
sum += s[i];
}
if(sum > C)
return false;
else
return true;
}
void KNAPSACK(int v[], int s[], int C, int n){
int x[5] = {-1, -1, -1, -1, -1}, X[5] = {0};
int k = 0;
int V = 0, sum = 0;
while(k>-1){
while(x[k] < 1){
x[k]++;
if(check(s, C, k, x)==true && k==n-1){
for(int i=0; i<n; i++){
if(x[i] == 1)
sum += v[i];
}
if(V < sum){
for(int i=0; i<n; i++)
X[i] = x[i];
V = sum;
sum = 0;
}
}
else if(check(s, C, k, x)==true){
k++;
}
}
x[k] = -1;
k--;
}
// printf the information of result
int temp=0, temp1=0;
cout << "choice ";
for(int i=0; i<n; i++){
if(X[i] == 1){
temp += v[i];
temp1 += s[i];
cout << " the " << i+1 << " items ";
cout<< "and ";
}
}
cout << "\n the total capacity is " << temp1 << ",the total value is" << temp << "ĄŁ" << endl;
}
int main(int argc, char** argv) {
int s[] = {2,6,8,13,15};
int v[] = {3,4,6,11,19};
KNAPSACK(v, s, 11, 5);
return 0;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.