Refactor some classes, delete obsolete exceptions

This commit is contained in:
2016-07-11 22:36:58 +01:00
parent 60b10632d5
commit 0a000884e0
26 changed files with 11 additions and 363 deletions

View File

@@ -0,0 +1,100 @@
/**
* Copyright (C) 2015 Rik Veenboer <rik.veenboer@gmail.com>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
package mimis.value;
public enum Command {
BROWSER_BACKWARD (1),
BROWSER_FORWARD (2),
BROWSER_REFRESH (3),
BROWSER_STOP (4),
BROWSER_SEARCH (5),
BROWSER_FAVORITES (6),
BROWSER_HOME (7),
VOLUME_MUTE (8),
VOLUME_DOWN (9),
VOLUME_UP (10),
MEDIA_NEXTTRACK (11),
MEDIA_PREVIOUSTRACK (12),
MEDIA_STOP (13),
MEDIA_PLAY_PAUSE (14),
LAUNCH_MAIL (15),
LAUNCH_MEDIA_SELECT (16),
LAUNCH_APP1 (17),
LAUNCH_APP2 (18),
BASS_DOWN (19),
BASS_BOOST (20),
BASS_UP (21),
TREBLE_DOWN (22),
TREBLE_UP (23),
MICROPHONE_VOLUME_MUTE (24),
MICROPHONE_VOLUME_DOWN (25),
MICROPHONE_VOLUME_UP (26),
HELP (27),
FIND (28),
NEW (29),
OPEN (30),
CLOSE (31),
SAVE (32),
PRINT (33),
UNDO (34),
REDO (35),
COPY (36),
CUT (37),
PASTE (38),
REPLY_TO_MAIL (39),
FORWARD_MAIL (40),
SEND_MAIL (41),
SPELL_CHECK (42),
DICTATE_OR_COMMAND_CONTROL_TOGGLE (43),
MIC_ON_OFF_TOGGLE (44),
CORRECTION_LIST (45),
MEDIA_PLAY (46),
MEDIA_PAUSE (47),
MEDIA_RECORD (48),
MEDIA_FAST_FORWARD (49),
MEDIA_REWIND (50),
MEDIA_CHANNEL_UP (51),
MEDIA_CHANNEL_DOWN (52),
DELETE (53),
DWM_FLIP3D (54);
protected int code;
private Command(int code) {
this.code = code;
}
public int getCode() {
return code;
}
public enum System {
MOVE (0xf010),
MAXIMIZE (0xf030),
MINIMIZE (0xf020);
protected int code;
private System(int code) {
this.code = code;
}
public int getCode() {
return code;
}
}
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright (C) 2015 Rik Veenboer <rik.veenboer@gmail.com>
*
* 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 3 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, see <http://www.gnu.org/licenses/>.
*/
package mimis.value;
public enum Type {
UP (0x0101), // WM_KEYUP
DOWN (0x0100), // WM_KEYDOWN
SYSUP (0x0105), // WM_SYSKEYUP
SYSDOWN (0x0104); // WM_SYSKEYDOWN
protected int code;
private Type(int code) {
this.code = code;
}
public int getCode() {
return code;
}
}