qsl designer

This commit is contained in:
2026-06-11 21:54:35 +02:00
parent 6150498a9e
commit 408b29896c
252 changed files with 13989 additions and 277 deletions
+46
View File
@@ -163,6 +163,8 @@ export function GetRotatorHeading():Promise<main.RotatorHeading>;
export function GetRotatorSettings():Promise<main.RotatorSettings>;
export function GetSecretStatus():Promise<main.SecretStatus>;
export function GetStartupStatus():Promise<main.StartupStatus>;
export function GetStationSettings():Promise<main.StationSettings>;
@@ -233,6 +235,40 @@ export function PickSaveDatabase():Promise<string>;
export function PopulateBuiltinReferences(arg1:string):Promise<number>;
export function QSLDefaultTemplateID():Promise<number>;
export function QSLDeleteTemplate(arg1:number):Promise<void>;
export function QSLFlagDataURL(arg1:string):Promise<string>;
export function QSLFonts():Promise<Array<main.QSLFontInfo>>;
export function QSLGenerateProposals(arg1:Array<string>):Promise<Array<string>>;
export function QSLGetEmailTemplates():Promise<main.QSLEmailTemplates>;
export function QSLGetTemplate(arg1:number):Promise<string>;
export function QSLListTemplates():Promise<Array<main.QSLTemplateInfo>>;
export function QSLPhotoDataURL(arg1:number,arg2:string):Promise<string>;
export function QSLPickPhotos():Promise<Array<string>>;
export function QSLPreviewDataURL(arg1:number):Promise<string>;
export function QSLResolvePreview(arg1:string):Promise<string>;
export function QSLSaveEmailTemplates(arg1:main.QSLEmailTemplates):Promise<void>;
export function QSLSavePreview(arg1:number,arg2:string):Promise<void>;
export function QSLSaveTemplate(arg1:number,arg2:string,arg3:string,arg4:boolean):Promise<number>;
export function QSLSetDefaultTemplate(arg1:number):Promise<void>;
export function QSLStylePresets():Promise<Array<main.QSLPresetInfo>>;
export function QSOAudioBegin():Promise<boolean>;
export function QSOAudioCancel():Promise<void>;
@@ -245,6 +281,10 @@ export function RefreshCtyDat():Promise<main.CtyDatInfo>;
export function ReloadUDPIntegrations():Promise<Array<string>>;
export function RemovePassphrase(arg1:string):Promise<void>;
export function RenderEQSL(arg1:number,arg2:number):Promise<string>;
export function ReplaceAwardReferences(arg1:string,arg2:Array<awardref.Ref>):Promise<number>;
export function ResetAwardDefs():Promise<Array<award.Def>>;
@@ -309,6 +349,8 @@ export function SendClusterCommand(arg1:string):Promise<void>;
export function SendClusterSpot(arg1:string,arg2:number,arg3:string):Promise<void>;
export function SendEQSL(arg1:number,arg2:number,arg3:string):Promise<void>;
export function SendQSORecordingEmail(arg1:number):Promise<void>;
export function SetCATFrequency(arg1:number):Promise<void>;
@@ -323,6 +365,8 @@ export function SetCompactMode(arg1:boolean):Promise<void>;
export function SetDVKLabel(arg1:number,arg2:string):Promise<void>;
export function SetPassphrase(arg1:string):Promise<void>;
export function SetUIPref(arg1:string,arg2:string):Promise<void>;
export function SetUltrabeamDirection(arg1:number):Promise<void>;
@@ -349,6 +393,8 @@ export function TestUltrabeam(arg1:main.UltrabeamSettings):Promise<void>;
export function UltrabeamRetract():Promise<void>;
export function UnlockSecrets(arg1:string):Promise<void>;
export function UpdateAwardReferenceList(arg1:string):Promise<main.AwardRefMeta>;
export function UpdateQSO(arg1:qso.QSO):Promise<void>;
+92
View File
@@ -298,6 +298,10 @@ export function GetRotatorSettings() {
return window['go']['main']['App']['GetRotatorSettings']();
}
export function GetSecretStatus() {
return window['go']['main']['App']['GetSecretStatus']();
}
export function GetStartupStatus() {
return window['go']['main']['App']['GetStartupStatus']();
}
@@ -438,6 +442,74 @@ export function PopulateBuiltinReferences(arg1) {
return window['go']['main']['App']['PopulateBuiltinReferences'](arg1);
}
export function QSLDefaultTemplateID() {
return window['go']['main']['App']['QSLDefaultTemplateID']();
}
export function QSLDeleteTemplate(arg1) {
return window['go']['main']['App']['QSLDeleteTemplate'](arg1);
}
export function QSLFlagDataURL(arg1) {
return window['go']['main']['App']['QSLFlagDataURL'](arg1);
}
export function QSLFonts() {
return window['go']['main']['App']['QSLFonts']();
}
export function QSLGenerateProposals(arg1) {
return window['go']['main']['App']['QSLGenerateProposals'](arg1);
}
export function QSLGetEmailTemplates() {
return window['go']['main']['App']['QSLGetEmailTemplates']();
}
export function QSLGetTemplate(arg1) {
return window['go']['main']['App']['QSLGetTemplate'](arg1);
}
export function QSLListTemplates() {
return window['go']['main']['App']['QSLListTemplates']();
}
export function QSLPhotoDataURL(arg1, arg2) {
return window['go']['main']['App']['QSLPhotoDataURL'](arg1, arg2);
}
export function QSLPickPhotos() {
return window['go']['main']['App']['QSLPickPhotos']();
}
export function QSLPreviewDataURL(arg1) {
return window['go']['main']['App']['QSLPreviewDataURL'](arg1);
}
export function QSLResolvePreview(arg1) {
return window['go']['main']['App']['QSLResolvePreview'](arg1);
}
export function QSLSaveEmailTemplates(arg1) {
return window['go']['main']['App']['QSLSaveEmailTemplates'](arg1);
}
export function QSLSavePreview(arg1, arg2) {
return window['go']['main']['App']['QSLSavePreview'](arg1, arg2);
}
export function QSLSaveTemplate(arg1, arg2, arg3, arg4) {
return window['go']['main']['App']['QSLSaveTemplate'](arg1, arg2, arg3, arg4);
}
export function QSLSetDefaultTemplate(arg1) {
return window['go']['main']['App']['QSLSetDefaultTemplate'](arg1);
}
export function QSLStylePresets() {
return window['go']['main']['App']['QSLStylePresets']();
}
export function QSOAudioBegin() {
return window['go']['main']['App']['QSOAudioBegin']();
}
@@ -462,6 +534,14 @@ export function ReloadUDPIntegrations() {
return window['go']['main']['App']['ReloadUDPIntegrations']();
}
export function RemovePassphrase(arg1) {
return window['go']['main']['App']['RemovePassphrase'](arg1);
}
export function RenderEQSL(arg1, arg2) {
return window['go']['main']['App']['RenderEQSL'](arg1, arg2);
}
export function ReplaceAwardReferences(arg1, arg2) {
return window['go']['main']['App']['ReplaceAwardReferences'](arg1, arg2);
}
@@ -590,6 +670,10 @@ export function SendClusterSpot(arg1, arg2, arg3) {
return window['go']['main']['App']['SendClusterSpot'](arg1, arg2, arg3);
}
export function SendEQSL(arg1, arg2, arg3) {
return window['go']['main']['App']['SendEQSL'](arg1, arg2, arg3);
}
export function SendQSORecordingEmail(arg1) {
return window['go']['main']['App']['SendQSORecordingEmail'](arg1);
}
@@ -618,6 +702,10 @@ export function SetDVKLabel(arg1, arg2) {
return window['go']['main']['App']['SetDVKLabel'](arg1, arg2);
}
export function SetPassphrase(arg1) {
return window['go']['main']['App']['SetPassphrase'](arg1);
}
export function SetUIPref(arg1, arg2) {
return window['go']['main']['App']['SetUIPref'](arg1, arg2);
}
@@ -670,6 +758,10 @@ export function UltrabeamRetract() {
return window['go']['main']['App']['UltrabeamRetract']();
}
export function UnlockSecrets(arg1) {
return window['go']['main']['App']['UnlockSecrets'](arg1);
}
export function UpdateAwardReferenceList(arg1) {
return window['go']['main']['App']['UpdateAwardReferenceList'](arg1);
}
+221
View File
@@ -1126,6 +1126,94 @@ export namespace main {
this.qrzcom_confirmed = source["qrzcom_confirmed"];
}
}
export class QSLEmailTemplates {
subject: string;
body: string;
static createFrom(source: any = {}) {
return new QSLEmailTemplates(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.subject = source["subject"];
this.body = source["body"];
}
}
export class QSLFontInfo {
family: string;
kind: string;
variable: boolean;
data_b64: string;
static createFrom(source: any = {}) {
return new QSLFontInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.family = source["family"];
this.kind = source["kind"];
this.variable = source["variable"];
this.data_b64 = source["data_b64"];
}
}
export class QSLPresetInfo {
name: string;
label: string;
params: string[];
defaults: qslcard.StyleParams;
static createFrom(source: any = {}) {
return new QSLPresetInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.name = source["name"];
this.label = source["label"];
this.params = source["params"];
this.defaults = this.convertValues(source["defaults"], qslcard.StyleParams);
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
export class QSLTemplateInfo {
id: number;
name: string;
profile_id?: number;
is_default: boolean;
updated_at: string;
static createFrom(source: any = {}) {
return new QSLTemplateInfo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.id = source["id"];
this.name = source["name"];
this.profile_id = source["profile_id"];
this.is_default = source["is_default"];
this.updated_at = source["updated_at"];
}
}
export class QSOAwardRef {
code: string;
ref: string;
@@ -1180,6 +1268,20 @@ export namespace main {
this.has_elevation = source["has_elevation"];
}
}
export class SecretStatus {
has_passphrase: boolean;
unlocked: boolean;
static createFrom(source: any = {}) {
return new SecretStatus(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.has_passphrase = source["has_passphrase"];
this.unlocked = source["unlocked"];
}
}
export class SpotQuery {
call: string;
band: string;
@@ -1532,6 +1634,7 @@ export namespace profile {
name: string;
callsign: string;
operator: string;
op_name: string;
owner_callsign: string;
my_grid: string;
my_country: string;
@@ -1567,6 +1670,7 @@ export namespace profile {
this.name = source["name"];
this.callsign = source["callsign"];
this.operator = source["operator"];
this.op_name = source["op_name"];
this.owner_callsign = source["owner_callsign"];
this.my_grid = source["my_grid"];
this.my_country = source["my_country"];
@@ -1612,6 +1716,123 @@ export namespace profile {
}
export namespace qslcard {
export class Bevel {
dx: number;
dy: number;
dark: string;
light: string;
static createFrom(source: any = {}) {
return new Bevel(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.dx = source["dx"];
this.dy = source["dy"];
this.dark = source["dark"];
this.light = source["light"];
}
}
export class Halo {
color: string;
blur: number;
opacity: number;
static createFrom(source: any = {}) {
return new Halo(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.color = source["color"];
this.blur = source["blur"];
this.opacity = source["opacity"];
}
}
export class ShadowFx {
dx: number;
dy: number;
blur: number;
color: string;
opacity: number;
static createFrom(source: any = {}) {
return new ShadowFx(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.dx = source["dx"];
this.dy = source["dy"];
this.blur = source["blur"];
this.color = source["color"];
this.opacity = source["opacity"];
}
}
export class Shine {
coverage: number;
opacity: number;
static createFrom(source: any = {}) {
return new Shine(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.coverage = source["coverage"];
this.opacity = source["opacity"];
}
}
export class StyleParams {
gradient?: string[];
shine?: Shine;
outline_color?: string;
outline_width?: number;
halo?: Halo;
shadow?: ShadowFx;
bevel_offset?: Bevel;
color?: string;
static createFrom(source: any = {}) {
return new StyleParams(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.gradient = source["gradient"];
this.shine = this.convertValues(source["shine"], Shine);
this.outline_color = source["outline_color"];
this.outline_width = source["outline_width"];
this.halo = this.convertValues(source["halo"], Halo);
this.shadow = this.convertValues(source["shadow"], ShadowFx);
this.bevel_offset = this.convertValues(source["bevel_offset"], Bevel);
this.color = source["color"];
}
convertValues(a: any, classs: any, asMap: boolean = false): any {
if (!a) {
return a;
}
if (a.slice && a.map) {
return (a as any[]).map(elem => this.convertValues(elem, classs));
} else if ("object" === typeof a) {
if (asMap) {
for (const key of Object.keys(a)) {
a[key] = new classs(a[key]);
}
return a;
}
return new classs(a);
}
return a;
}
}
}
export namespace qso {
export class BandMode {