Add missing files for the new TGA options

This commit is contained in:
David Capello 2020-03-20 20:15:29 -03:00
parent c230e8f0ab
commit 72b5f0e701
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,23 @@
<!-- Aseprite -->
<!-- Copyright (C) 2020 Igara Studio S.A. -->
<gui>
<window id="tga_options" text="@.title">
<grid columns="2">
<label text="@.bits_per_pixel" id="bits_per_pixel_label" />
<combobox id="bits_per_pixel" cell_align="horizontal" />
<check text="@.compress" id="compress" cell_hspan="2" />
<separator horizontal="true" cell_hspan="2" />
<hbox cell_hspan="2">
<check text="@general.dont_show" id="dont_show" tooltip="@general.dont_show_tooltip" />
<boxfiller />
<hbox homogeneous="true">
<button text="@general.ok" closewindow="true" id="ok" magnet="true" minwidth="60" />
<button text="@general.cancel" closewindow="true" />
</hbox>
</hbox>
</grid>
</window>
</gui>

View File

@ -0,0 +1,30 @@
// Aseprite
// Copyright (C) 2020 Igara Studio S.A.
//
// This program is distributed under the terms of
// the End-User License Agreement for Aseprite.
#ifndef APP_FILE_TGA_OPTIONS_H_INCLUDED
#define APP_FILE_TGA_OPTIONS_H_INCLUDED
#pragma once
#include "app/file/format_options.h"
namespace app {
class TgaOptions : public FormatOptions {
public:
int bitsPerPixel() const { return m_bitsPerPixel; }
bool compress() const { return m_compress; }
void bitsPerPixel(int bpp) { m_bitsPerPixel = bpp; }
void compress(bool state) { m_compress = state; }
private:
int m_bitsPerPixel = 0;
bool m_compress = true;
};
} // namespace app
#endif