mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Removed "record_screen" command.
This commit is contained in:
parent
a3f18e5aaf
commit
4c1ac855a5
@ -150,7 +150,6 @@
|
|||||||
<separator />
|
<separator />
|
||||||
<menu text="Ca&pture">
|
<menu text="Ca&pture">
|
||||||
<item command="screen_shot" text="Screen Shot" />
|
<item command="screen_shot" text="Screen Shot" />
|
||||||
<item command="record_screen" text="Record Screen" />
|
|
||||||
</menu>
|
</menu>
|
||||||
<separator />
|
<separator />
|
||||||
<item command="exit" text="E&xit" />
|
<item command="exit" text="E&xit" />
|
||||||
|
@ -66,7 +66,6 @@ COMMON_SOURCES = \
|
|||||||
src/commands/cmd_play_animation.cpp \
|
src/commands/cmd_play_animation.cpp \
|
||||||
src/commands/cmd_preview.cpp \
|
src/commands/cmd_preview.cpp \
|
||||||
src/commands/cmd_quick_reference.cpp \
|
src/commands/cmd_quick_reference.cpp \
|
||||||
src/commands/cmd_record_screen.cpp \
|
|
||||||
src/commands/cmd_redo.cpp \
|
src/commands/cmd_redo.cpp \
|
||||||
src/commands/cmd_refresh.cpp \
|
src/commands/cmd_refresh.cpp \
|
||||||
src/commands/cmd_remove_cel.cpp \
|
src/commands/cmd_remove_cel.cpp \
|
||||||
|
@ -1,76 +0,0 @@
|
|||||||
/* ASE - Allegro Sprite Editor
|
|
||||||
* Copyright (C) 2001-2010 David Capello
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <allegro/gfx.h>
|
|
||||||
|
|
||||||
#include "jinete/jbase.h"
|
|
||||||
#include "jinete/jalert.h"
|
|
||||||
|
|
||||||
#include "commands/command.h"
|
|
||||||
#include "util/recscr.h"
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// record_screen
|
|
||||||
|
|
||||||
class RecordScreenCommand : public Command
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
RecordScreenCommand();
|
|
||||||
Command* clone() { return new RecordScreenCommand(*this); }
|
|
||||||
|
|
||||||
protected:
|
|
||||||
bool onChecked(Context* context);
|
|
||||||
void onExecute(Context* context);
|
|
||||||
};
|
|
||||||
|
|
||||||
RecordScreenCommand::RecordScreenCommand()
|
|
||||||
: Command("record_screen",
|
|
||||||
"Record Screen",
|
|
||||||
CmdUIOnlyFlag)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
bool RecordScreenCommand::onChecked(Context* context)
|
|
||||||
{
|
|
||||||
return is_rec_screen();
|
|
||||||
}
|
|
||||||
|
|
||||||
void RecordScreenCommand::onExecute(Context* context)
|
|
||||||
{
|
|
||||||
if (is_rec_screen())
|
|
||||||
rec_screen_off();
|
|
||||||
else if (bitmap_color_depth(screen) == 8
|
|
||||||
|| jalert(_("Warning"
|
|
||||||
"<<The display isn't in a 8 bpp resolution, the recording"
|
|
||||||
"<<process can be really slow. It's recommended to use a"
|
|
||||||
"<<8 bpp to make it faster."
|
|
||||||
"<<Do you want to continue anyway?"
|
|
||||||
"||Yes||No")) == 1) {
|
|
||||||
rec_screen_on();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
|
||||||
// CommandFactory
|
|
||||||
|
|
||||||
Command* CommandFactory::create_record_screen_command()
|
|
||||||
{
|
|
||||||
return new RecordScreenCommand;
|
|
||||||
}
|
|
@ -76,7 +76,6 @@ FOR_EACH_COMMAND(paste)
|
|||||||
FOR_EACH_COMMAND(play_animation)
|
FOR_EACH_COMMAND(play_animation)
|
||||||
FOR_EACH_COMMAND(preview)
|
FOR_EACH_COMMAND(preview)
|
||||||
FOR_EACH_COMMAND(quick_reference)
|
FOR_EACH_COMMAND(quick_reference)
|
||||||
FOR_EACH_COMMAND(record_screen)
|
|
||||||
FOR_EACH_COMMAND(redo)
|
FOR_EACH_COMMAND(redo)
|
||||||
FOR_EACH_COMMAND(refresh)
|
FOR_EACH_COMMAND(refresh)
|
||||||
FOR_EACH_COMMAND(remove_cel)
|
FOR_EACH_COMMAND(remove_cel)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user