App-Codit
view release on metacpan or search on metacpan
lib/App/Codit/ConfigVariables.pod view on Meta::CPAN
=head1 CONFIG VARIABLES
=over
=item B<-aboutinfo> in L<Tk::AppWindow::Ext::Help>
Specify the link to a hash. Possible keys:
=over 4
=item B<author>
Your name
=item B<components>
Specify a list of modules you want the version numbers displayed.
Opens a new tab.
=item B<email>
Who to contact
=item B<http>
The website that supports this application
=item B<license>
Specify your license. By default it is set to I<Same as Perl>.
Set it to I<undef> if you do not want it to show.
=item B<licensefile>
Specify a plain text file as your license file. It is displayed in a new
tab with a L<Tk::ROText> widget.
=item B<licenselink>
Works only if the I<license> key is defined. Specify the weblink to your license. By default it
is set to L<https://dev.perl.org/licenses/>.
Set it to I<undef> if you do not want it to show.
=item B<version>
Specify the version of your application. By default it is set to the
version numer of the main window widget. Set it to undef if you do not
want it to show.
=back
=item B<-appname> in L<Tk::AppWindow>
Set the name of your application.
If this option is not specified, the name of your application
will be set to the filename of your executable with the first
character in upper case.
=item B<-automenu> in L<Tk::AppWindow::Ext::MenuBar>
Default value 1.
Specifies if the menu items of all extensions should be loaded automatically.
=item B<-autotool> in L<Tk::AppWindow::Ext::ToolBar>
Default value 1.
Specifies if the toolbar items of all extensions should be loaded automatically.
=item B<-commands> in L<Tk::AppWindow>
Defines commands to be used in your application. It takes a paired list of
command names and callbacks as parameter.
my $app = $k::AppWindw->new(
-commands => [
do_something1 => ['method', $obj],
do_something2 => sub { return 1 },
],
);
Only available at create time.
=item B<-compoundcolspace> in L<Tk::AppWindow::Ext::Art>
Default value 5. Used in the B<createCompound> method to
set horizontal spacing.
=item B<-configfolder> I<hookable> in L<Tk::AppWindow::Ext::ConfigFolder>
The default value depends on your operating system.
On Windows: $ENV{LOCALAPPDATA}/appname
Others: $ENV{HOME}/.local/share/appname
You can overwrite it at launch by setting a folder yourself.
=item B<-contentmanagerclass> in L<Tk::AppWindow::Ext::MDI>
This one should always be specified and you should always define a
content manager class inheriting L<Tk::AppWindow::BaseClasses::ContentManager>.
This base class is a valid Tk widget.
=item B<-contentmanageroptions> in L<Tk::AppWindow::Ext::MDI>
The possible options to pass on to the contentmanager.
These will also become options to the main application.
=item B<-cycleinterval> in L<Tk::AppWindow::Ext::Daemons>
Default value 10 miliseconds. This is the base interval for the Deamons system.
How often a job is executed is defined by their own interval parameter. The real interval time of a job is the base interval
multiplied by the job interval.
=item B<-diskmonitorinterval> in L<Tk::AppWindow::Ext::MDI>
Default value 100. This means every 100 cycles of the B<Daemons> extension. Specifies the interval for
monitoring the disk status of documents.
=item B<-doc_autobrackets> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the autobrackets option of the currently selected document.
=item B<-doc_autocomplete> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the autocomplete option of the currently selected document.
=item B<-doc_autoindent> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the autoindent option of the currently selected document.
=item B<-doc_view_folds> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the showfolds option of the currently selected document.
=item B<-doc_view_numbers> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the shownumbers option of the currently selected document.
=item B<-doc_view_status> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the showstatus option of the currently selected document.
=item B<-doc_wrap> in L<App::Codit::Ext::CoditMDI>
Sets and returns the wrap option of the currently selected document.
=item B<-doc_wrap> I<hookable> in L<App::Codit::Ext::CoditMDI>
Sets and returns the wrap option of the currently selected document.
=item B<-documentinterface> in L<Tk::AppWindow::Ext::Selector>
Default value 'MDI'. Sets the extension name for the
multiple docoment interface that B<Selector> communicates with.
=item B<-errorcolor> in L<Tk::AppWindow>
Default value '#FF0000' (red).
=item B<-extensions> in L<Tk::AppWindow>
Specifies the list of extensions to be loaded.
my $app = Tk::AppWindow->new(
-extensions => [
qw/Art ConfigFolder Daemons
Help Keyboard MDI MenuBar
Panels Plugins SDI Selector
Settings SideBars StatusBar
ToolBar/
],
);
The following order matters for the buildup of menus and bars.
Only available at create time.
=item B<-filetypes> in L<Tk::AppWindow::Ext::MDI>
Default value is "All files|*"
=item B<-helpfile> in L<Tk::AppWindow::Ext::Help>
Point to your help file. Can be a weblink.
If it is a I<.pod> file it will launch a dialog box with
a I<PodText> widget.
=item B<-historymenupath> in L<Tk::AppWindow::Ext::MDI>
Specifies the default location in the main menu of the history menu.
Default value is File::Open recent. See also L<Tk::AppWindow::Ext::MenuBar>.
=item B<-iconpath> in L<Tk::AppWindow::Ext::Art>
Specify a list of folders where your icon libraries are located.
Only available at create time.
=item B<-iconsize> in L<Tk::AppWindow::Ext::Art>
Default is 16.
=item B<-icontheme> in L<Tk::AppWindow::Ext::Art>
Default is Oxygen.
=item B<-keyboardboardbindings> in L<Tk::AppWindow::Ext::Keyboard>
Default value is an empty list.
Specify a paired list of keyboard bindings.
=item B<-linkcolor> in L<Tk::AppWindow>
Foreground color for links. Default value '#3030DF'.
=item B<-logcall> in L<Tk::AppWindow>
Callback to log messages.
=item B<-logerrorcall> in L<Tk::AppWindow>
Callback to log errors.
=item B<-logo> in L<Tk::AppWindow>
Specifies the image file to be used as logo for your application.
Default value is Tk::findINC('Tk/AppWindow/aw_logo.png').
=item B<-logwarningcall> in L<Tk::AppWindow>
Callback to log warnings.
=item B<-mainmenuitems> in L<Tk::AppWindow::Ext::MenuBar>
Default value [].
Configure your menu here. See the section B<CONFIGURING MENUS> below.
=item B<-maxhistory> in L<Tk::AppWindow::Ext::MDI>
Default value is 12.
=item B<-maxtablength> in L<Tk::AppWindow::Ext::MDI>
Default value 16
Maximum size of the document tab in the document bar.
=item B<-menucolspace> in L<Tk::AppWindow::Ext::MenuBar>
Default value 3
Space between the colums in a menu item.
=item B<-menuiconsize> in L<Tk::AppWindow::Ext::MenuBar>
Default value 16
=item B<-modifiedmonitorinterval> in L<Tk::AppWindow::Ext::MDI>
Default value 25. This means every 25 cycles of the B<Daemons> extension. Specifies the interval for
monitoring the modified status of documents.
=item B<-namespace> in L<Tk::AppWindow>
Specifies an additional name space for extensions and plugins.
If you set it, for example, to 'Foo::Bar', then your extensions
may also live in 'Foo::Bar::Ext' and your plugins may live
in 'Foo::Bar::Plugins'.
Only available at create time.
=item B<-noplugins> in L<Tk::AppWindow::Ext::Plugins>
Boolean flag, no plugins will be loaded at startup. The list of plugins in the config file will
be ignored if this option is set. Default value 0.
=item B<-panelgeometry> I<hookable> in L<Tk::AppWindow::Ext::Panels>
Specifies the geometry manager used for the panel layout. Possible
values are 'pack' and 'grid'. Default value 'pack'.
=item B<-panellayout> I<hookable> in L<Tk::AppWindow::Ext::Panels>
Specify the structure of your layout.
The keys used below are all home to the geometry manager used. Plus a
few more. These are:
=over 4
=item B<-canhide>
Specify if a panel is capable of hiding and showing. By default 0.
=item B<-adjuster>
If specified the panel is adjustable. The value is transferred to the
B<-side> option of the adjuster.
=back
Default value:
[
CENTER => {
-in => 'MAIN',
-side => 'top',
-fill => 'both',
-expand => 1,
},
WORK => {
-in => 'CENTER',
-side => 'left',
-fill => 'both',
lib/App/Codit/ConfigVariables.pod view on Meta::CPAN
[ #type #label #command #icon #help
[ 'tool_button', 'New', 'doc_new', 'document-new', 'Create a new document' ],
[ 'tool_list', 'popcommand' ],
[ 'tool_button', 'Save', 'doc_save', 'document-save', 'Save current document' ],
[ 'tool_button', 'Save as', 'doc_save_as', 'document-save-as', 'Rename and save current document' ],
[ 'tool_separator' ],
[ 'tool_button', 'Save all','doc_save_all','document-save-as', 'Save all modified documents' ],
[ 'tool_list_end' ],
[ 'tool_separator' ],
#type #label, #class
[ 'tool_widget', 'Widget', 'MyWidget', @options ],
[ 'tool_widget', '*Nolabel,'MyWidget', @options ],
]
'MyWidget', must be the class name of a packable Tk widget.
=item B<-tooltextposition> in L<Tk::AppWindow::Ext::ToolBar>
Specifies where text should be displayed in tool buttons.
Default value I<right>. Can be I<top>, I<left>, I<bottom>, I<right> or I<none>.
=item B<-treeiconsize> in L<Tk::AppWindow::Ext::Selector>
By default undefined. Sets and returns the size of icons
in the document tree.
=item B<-uniqueinstance> in L<App::Codit>
Boolean flag. Default value 0. If set only this instance is used
for opening files through the command line.
=item B<-updatesmenuitem> in L<Tk::AppWindow::Ext::Help>
Default value 0;
If set a menu entrie 'Check for updates' is added to the menu.
=item B<-useroptions> I<hookable> in L<Tk::AppWindow::Ext::Settings>
Name of the settings file. Default is I<settingsrc>. A typical setup might look
like this:
-useroptions => [
'*page' => 'Editing',
'*section' => 'User interface',
-contentforeground => ['color', 'Foreground'],
-contentbackground => ['color', 'Background'],
-contentfont => ['font', 'Font'],
'*end',
'*section' => 'Editor settings',
-contenttabs => ['text', 'Tab size'],
-contentwrap => ['radio', 'Wrap', [qw[none char word]]],
'*end',
'*page' => 'Icons',
-icontheme => ['list', 'Icon theme', 'available_icon_themes'],
-iconsize => ['list', 'Icon size', 'available_icon_sizes'],
'*page' => 'Bars',
'*section' => 'Menubar',
-menuiconsize => ['list', 'Icon size', 'available_icon_sizes'],
'*end',
'*section' => 'Toolbar',
-toolbarvisible => ['boolean', 'Visible at launch'],
-tooliconsize => ['list', 'Icon size', 'available_icon_sizes'],
-tooltextposition => ['radio', 'Text position', [qw[none left right top bottom]]],
'*end',
'*section' => 'Statusbar',
-statusbarvisible => ['boolean', 'Visible at launch'],
'*end',
],
It uses L<Tk::QuickForm> in the popup. See there for details of this option.
=item B<-workspace> I<hookable> in L<Tk::AppWindow::Ext::Panels>
Specifies the central workspace of your application.
Default value is WORK.
=back
=head1 LICENSE
Same as Perl.
=head1 AUTHOR
Hans Jeuken (hanje at cpan dot org)
=cut
( run in 0.920 second using v1.01-cache-2.11-cpan-d7f47b0818f )