mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Add missing files for the new TGA options
This commit is contained in:
parent
c230e8f0ab
commit
72b5f0e701
23
data/widgets/tga_options.xml
Normal file
23
data/widgets/tga_options.xml
Normal 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>
|
30
src/app/file/tga_options.h
Normal file
30
src/app/file/tga_options.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user