Commits

Herbert Breunung committed 8943c55

outsource global default conf and commandlist too

  • Participants
  • Parent commits 4d6a1ff

Comments (0)

Files changed (3)

File lib/Kephra/Config/Default.pm

 package Kephra::Config::Default;
 
 sub global {
-	return {  about => {
-			version => 0,
-		},
-		app => {
-			window => {},
-			doc_bar => {},
-		},
-		document => {
-			
-		},
-		editor => {
-			
-		},
-		file => {
-			open => {},
-			save => {},
-			session => {},
-			project => {},
-		},
-	}
+	require Kephra::Config::Default::Global;
+	return Kephra::Config::Default::Global::get();
 }
-sub commandlist {}
+sub commandlist {
+	require Kephra::Config::Default::CommandList;
+	return Kephra::Config::Default::CommandList::get();
+}
 sub localisation {}
 sub mainmenu {
 	require Kephra::Config::Default::MainMenu;
 	return Kephra::Config::Default::MainMenu::get();
 }
+sub contextmenu {}
 sub maintoolbar {}
 sub statusbar {}
 

File lib/Kephra/Config/Default/CommandList.pm

+use strict;
+use warnings;
+
+package Kephra::Config::Default::CommandList;
+
+sub get {
+	return {
+		file_open => {
+			call  => '',
+			state => '',
+			event => '',
+			label => 'Open',
+			help  => 'open one ore multiple files',
+			keys  => 'Ctrl + O',
+			icon  => '',
+		},
+	};
+}
+
+1;

File lib/Kephra/Config/Default/Global.pm

+use strict;
+use warnings;
+
+package Kephra::Config::Default::Global;
+
+sub get {
+	return {  about => {
+			version => 0,
+		},
+		app => {
+			window => {},
+			doc_bar => {},
+		},
+		document => {
+			
+		},
+		editor => {
+			
+		},
+		file => {
+			open => {},
+			save => {},
+			session => {},
+			project => {},
+		},
+	}
+}
+
+1;