-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added keyboard shortcuts
- Loading branch information
Showing
10 changed files
with
252 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"LatestVersion":"2022.1.2","Changelog":"- Fixed issue with date handling","LinkToExe":"https://github.com/nlogozzo/NickvisionMoney/releases/download/2022.1.2/NickvisionMoney"} | ||
{"LatestVersion":"2022.1.3","Changelog":"- Added keyboard shortcuts","LinkToExe":"https://github.com/nlogozzo/NickvisionMoney/releases/download/2022.1.3/NickvisionMoney"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include "shortcutswindow.h" | ||
|
||
namespace NickvisionMoney::Views | ||
{ | ||
ShortcutsWindow::ShortcutsWindow(Gtk::Window& parent) | ||
{ | ||
//==Settings==// | ||
set_title("Shortcuts"); | ||
set_transient_for(parent); | ||
set_modal(true); | ||
set_hide_on_close(true); | ||
//==Account==// | ||
m_grpAccount.property_title().set_value("Account"); | ||
m_shortNewAccount.property_accelerator().set_value("<Ctrl>N"); | ||
m_shortNewAccount.property_title().set_value("New Account"); | ||
m_shortOpenAccount.property_accelerator().set_value("<Ctrl>O"); | ||
m_shortOpenAccount.property_title().set_value("Open Account"); | ||
m_shortCloseAccount.property_accelerator().set_value("<Ctrl>W"); | ||
m_shortCloseAccount.property_title().set_value("Close Account"); | ||
m_shortBackupAccount.property_accelerator().set_value("<Ctrl><Shift>B"); | ||
m_shortBackupAccount.property_title().set_value("Backup Account"); | ||
m_shortRestoreAccount.property_accelerator().set_value("<Ctrl><Shift>R"); | ||
m_shortRestoreAccount.property_title().set_value("Restore Account"); | ||
m_grpAccount.append(m_shortNewAccount); | ||
m_grpAccount.append(m_shortOpenAccount); | ||
m_grpAccount.append(m_shortCloseAccount); | ||
m_grpAccount.append(m_shortBackupAccount); | ||
m_grpAccount.append(m_shortRestoreAccount); | ||
m_section.append(m_grpAccount); | ||
//==Transaction==// | ||
m_grpTransaction.property_title().set_value("Transaction"); | ||
m_shortNewTransaction.property_accelerator().set_value("<Ctrl><Shift>N"); | ||
m_shortNewTransaction.property_title().set_value("New Transaction"); | ||
m_shortEditTransaction.property_accelerator().set_value("<Ctrl><Shift>O"); | ||
m_shortEditTransaction.property_title().set_value("Edit Transaction"); | ||
m_shortDeleteTransaction.property_accelerator().set_value("Delete"); | ||
m_shortDeleteTransaction.property_title().set_value("Delete Transaction"); | ||
m_grpTransaction.append(m_shortNewTransaction); | ||
m_grpTransaction.append(m_shortEditTransaction); | ||
m_grpTransaction.append(m_shortDeleteTransaction); | ||
m_section.append(m_grpTransaction); | ||
//==Application==// | ||
m_grpApplication.property_title().set_value("Application"); | ||
m_shortAbout.property_accelerator().set_value("F1"); | ||
m_shortAbout.property_title().set_value("About"); | ||
m_grpApplication.append(m_shortAbout); | ||
m_section.append(m_grpApplication); | ||
//==Layout==// | ||
set_child(m_section); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef SHORTCUTSWINDOW_H | ||
#define SHORTCUTSWINDOW_H | ||
|
||
#include <gtkmm.h> | ||
|
||
namespace NickvisionMoney::Views | ||
{ | ||
class ShortcutsWindow : public Gtk::ShortcutsWindow | ||
{ | ||
public: | ||
ShortcutsWindow(Gtk::Window& parent); | ||
|
||
private: | ||
Gtk::ShortcutsSection m_section; | ||
Gtk::ShortcutsGroup m_grpAccount; | ||
Gtk::ShortcutsShortcut m_shortNewAccount; | ||
Gtk::ShortcutsShortcut m_shortOpenAccount; | ||
Gtk::ShortcutsShortcut m_shortCloseAccount; | ||
Gtk::ShortcutsShortcut m_shortBackupAccount; | ||
Gtk::ShortcutsShortcut m_shortRestoreAccount; | ||
Gtk::ShortcutsGroup m_grpTransaction; | ||
Gtk::ShortcutsShortcut m_shortNewTransaction; | ||
Gtk::ShortcutsShortcut m_shortEditTransaction; | ||
Gtk::ShortcutsShortcut m_shortDeleteTransaction; | ||
Gtk::ShortcutsGroup m_grpApplication; | ||
Gtk::ShortcutsShortcut m_shortAbout; | ||
}; | ||
} | ||
|
||
#endif // SHORTCUTSWINDOW_H |
Oops, something went wrong.