C# Class MPTagThat.Main

Inheritance: System.Windows.Forms.Form
Afficher le fichier Open project: MediaPortal/MPTagThat Class Usage Examples

Méthodes publiques

Méthode Description
ClearGallery ( ) : void

Clear the Ribbon Gallery

CreateMusicDatabase ( string databaseName ) : void

Creates a Music Database

DatabaseScanStatus ( ) : string

Returns the Status of the Database Scan

FillMusicDatabase ( string folder, string databaseName ) : void

Starts scanning of the selected folder and fills the Music Database

Main ( ) : System
RefreshTrackList ( ) : void

Refreshes the Track List

SetGalleryItem ( ) : void

Get the Coverart out of the selected TRack item and fill the Ribbon Gallery

SetRecentFolder ( string newFolder ) : void

Set the Recent Folder, when a new folder has been selected

ShowCenteredForm ( object form ) : void

Shows a Form Centered

ShowDialogInDetailPanel ( object dlg ) : void

Shows the Dialogue in the Detail Panel

ShowModalDialog ( object dlg ) : DialogResult

Shows a Modal Dialogue

ShowTagEditPanel ( bool show ) : void

Displays / Hides the Detail Panel

ToggleDetailPanel ( bool show ) : void

Toogles the display of the detail panel, which we should hide / deactivate when not in TRacks View

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Private Methods

Méthode Description
BurnCancel_Executed ( object sender, CommandExecutedEventArgs e ) : void

Cancel burning

BurnStart_Executed ( object sender, CommandExecutedEventArgs e ) : void

Burn the selected Tracks to CD

ChangeDisplayColumns_Executed ( object sender, CommandExecutedEventArgs e ) : void

Change Display Columns

ConvertCancel_Executed ( object sender, CommandExecutedEventArgs e ) : void
ConvertStart_Executed ( object sender, CommandExecutedEventArgs e ) : void
DataGridView_SelectionChanged ( object sender, EventArgs e ) : void

A new Row has been selected in the Grid. Fill the Quickedit Panel and update the picture in the gallery

Exit_Executed ( object sender, CommandExecutedEventArgs e ) : void

Exit the Application

FindRibbonWin ( ) : void
FindRibbonWinAsync ( ) : void
FindWindowByCaption ( IntPtr ZeroOnly, string lpWindowName ) : IntPtr
FolderScanAsync ( ) : void

Thread to populate the Treeview async during startup

FolderSelect_Executed ( object sender, CommandExecutedEventArgs e ) : void

Display a Folder Select Dialog and update the Textbox, based on the button being pressed

Help_Executed ( object sender, CommandExecutedEventArgs e ) : void

Help Button has been pressed

InitPreferences ( ) : void

Initialises Preferences

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LanguageChanged ( ) : void

Language Change event has been fired. Apply the new language

LoadBass ( ) : void
LoadBassAsync ( ) : void
LoadKeyMap ( ) : bool

Loads the keymap file and creates the mapping.

LoadSettings ( ) : void

Load the Settings

LocaliseScreen ( ) : void

Localise the Screen

Main_Close ( object sender, FormClosingEventArgs e ) : void

The form gets closed. Do cleanup

Main_Load ( object sender, EventArgs e ) : void

The form is loaded. Do some init work.

Main_Move ( object sender, EventArgs e ) : void

The Form is resized, if Playlist is docked, move it as well

Main_Resize ( object sender, EventArgs e ) : void

The Form is resized, if Playlist is docked, move it as well

MapAction ( ActionWindow &map, XmlNode nodeId, XmlNode nodeKey, XmlNode nodeRibbonKey, XmlNode nodeDesc ) : void
OnAction ( Action action ) : bool
OnMessageReceive ( MPTagThat.Core.QueueMessage message ) : void

Handle Messages

PopulateKeyTreeView ( ) : void
PopulateScriptsCombo ( ) : void

Fill the Script Combo Box with all scripts found

PositionTrackList ( ) : void

Position the Tracklist and Tagedit Details based on the selected option

Refresh_Executed ( object sender, CommandExecutedEventArgs e ) : void

Refresh the Tracksgrid

RegisterCommands ( ) : void

Register Ribbon Commands to be executed when a button is pressed.

RegisterKeyTips ( ) : void

Register the Keytips to be displayed in the menu, when pressing Alt or F10

RipCancel_Executed ( object sender, CommandExecutedEventArgs e ) : void
RipStart_Executed ( object sender, CommandExecutedEventArgs e ) : void

Start Ripping

SaveAsThumb_Executed ( object sender, CommandExecutedEventArgs e ) : void

Save the selected Picture as Folder THumb

SaveKeyMap ( ) : bool
Save_Executed ( object sender, CommandExecutedEventArgs e ) : void

The Save button was pressed

SendMessage ( int hWnd, uint Msg, int wParam, int lParam ) : int
SetBitRate ( ) : void

Sets the Bitrate according to the Settings / Selection

SetRibbonColorBase ( ) : void

Set the Color of the Elements, based on the selected Theme Background Color

SetWMABitRateCombo ( ) : void

Fillls the Bitrate combo, according to the selection in the Sample and CbrVbr Combo

SetWMACbrVbr ( ) : void

Sets the Mode according to the Settings / Selection

SetWMASampleCombo ( ) : void

Fills the Sample Format Combo box

TagsTabButton_Executed ( object sender, CommandExecutedEventArgs e ) : void

Handle various button click events

backstageView_VisibleChanged ( object sender, EventArgs e ) : void

The Backstage View is displayed. Make sure the preferences are set.

buttonAddCustomGenre_Click ( object sender, EventArgs e ) : void

A Custom Genre should be added to the ListView

buttonChangeKey_Click ( object sender, EventArgs e ) : void
buttonDBScanStatus_Click ( object sender, EventArgs e ) : void
buttonDeleteCustomGenre_Click ( object sender, EventArgs e ) : void

A custom Genre should be deleted from the Listview

buttonMusicDatabaseBrowse_Click ( object sender, EventArgs e ) : void

Offers a File Selection Duialogue to select the MediaPortal Music Database

buttonNumberOnClick_PressedChanged ( object sender, EventArgs e ) : void

The NumberOnClick ToggleButton has been pressed

buttonProgressCancel_MouseEnter ( object sender, EventArgs e ) : void

We're hovering over the Cancel Button

buttonProgressCancel_MouseLeave ( object sender, EventArgs e ) : void

We're leaving the Cancel Button

buttonSettingsApply_Click ( object sender, EventArgs e ) : void

Apply the Changes to the Options

buttonSettingsCancel_Click ( object sender, EventArgs e ) : void

Cancel changes

buttonStartDatabaseScan_Click ( object sender, EventArgs e ) : void
buttonTargetFolderBrowse_Click ( object sender, EventArgs e ) : void

Show directory browser

comboBoxBurnerSpeed_SelectedIndexChanged ( object sender, EventArgs e ) : void

The Speed has been selected. Set it for the active Burner

comboBoxBurner_SelectedIndexChanged ( object sender, EventArgs e ) : void

A Burner has been selected. Set it as active Burner

comboBoxPreset_SelectedIndexChanged ( object sender, EventArgs e ) : void

A Preset has been selected from the Combo Box. Set the narrative

comboBoxThemes_SelectedIndexChanged ( object sender, EventArgs e ) : void

A Theme has been changed

comboBoxWMACbrVbr_SelectedIndexChanged ( object sender, EventArgs e ) : void

Get the available Bitrates

comboBoxWMAEncoderFormat_SelectedIndexChanged ( object sender, EventArgs e ) : void

Encoder Format has changed set the available Sample Format

comboBoxWMASampleFormat_SelectedIndexChanged ( object sender, EventArgs e ) : void

The Sample Format has been changed

galleryPicture_DragDrop ( object sender, DragEventArgs e ) : void

A file is dropped on the gallery. If it is a valid picture, update all the selected files

galleryPicture_HoveredItemChanged ( object sender, GalleryHoveredItemChangedEventArgs e ) : void
hScrollBarFlacEncodingQuality_Scroll ( object sender, ScrollEventArgs e ) : void
hScrollBarOggEncodingQuality_Scroll ( object sender, ScrollEventArgs e ) : void
lblParm_Click ( object sender, EventArgs e ) : void

User clicked on a parameter label. Update combo box with value.

navigatonBarItem_Click ( object sender, EventArgs e ) : void

An item in the navigation bar has been selected. Activate the respective Tab Page.

pictureBoxTrackListBottom_Click ( object sender, EventArgs e ) : void

The Tracklist should be displayed bottom

pictureBoxTrackListTop_Click ( object sender, EventArgs e ) : void

The Tracklist should be displayed top

pinListRecentFolders_ItemClick ( object sender, PinItemEventArgs e ) : void

An Item has been selected in the Recent Folder List Change to that folder.

radioButtonID3Both_CheckedChanged ( object sender, EventArgs e ) : void
radioButtonID3V1_CheckedChanged ( object sender, EventArgs e ) : void
radioButtonID3V2_CheckedChanged ( object sender, EventArgs e ) : void
ribbon_CurrentTabPageChanged ( object sender, EventArgs e ) : void

Tab Page has changed. Show the correct grid

splitterBottom_Click ( object sender, EventArgs e ) : void
splitterRight_Click ( object sender, EventArgs e ) : void
tbRibbonKeyValue_KeyPress ( object sender, KeyPressEventArgs e ) : void

Handle entry into Textbox for Ribbon Keys

treeViewKeys_AfterSelect ( object sender, TreeViewEventArgs e ) : void

Method Details

ClearGallery() public méthode

Clear the Ribbon Gallery
public ClearGallery ( ) : void
Résultat void

CreateMusicDatabase() public méthode

Creates a Music Database
public CreateMusicDatabase ( string databaseName ) : void
databaseName string
Résultat void

DatabaseScanStatus() public méthode

Returns the Status of the Database Scan
public DatabaseScanStatus ( ) : string
Résultat string

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
Résultat void

FillMusicDatabase() public méthode

Starts scanning of the selected folder and fills the Music Database
public FillMusicDatabase ( string folder, string databaseName ) : void
folder string
databaseName string
Résultat void

Main() public méthode

public Main ( ) : System
Résultat System

ProcessCmdKey() protected méthode

protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg Message
keyData Keys
Résultat bool

RefreshTrackList() public méthode

Refreshes the Track List
public RefreshTrackList ( ) : void
Résultat void

SetGalleryItem() public méthode

Get the Coverart out of the selected TRack item and fill the Ribbon Gallery
public SetGalleryItem ( ) : void
Résultat void

SetRecentFolder() public méthode

Set the Recent Folder, when a new folder has been selected
public SetRecentFolder ( string newFolder ) : void
newFolder string
Résultat void

ShowCenteredForm() public méthode

Shows a Form Centered
public ShowCenteredForm ( object form ) : void
form object
Résultat void

ShowDialogInDetailPanel() public méthode

Shows the Dialogue in the Detail Panel
public ShowDialogInDetailPanel ( object dlg ) : void
dlg object
Résultat void

ShowModalDialog() public méthode

Shows a Modal Dialogue
public ShowModalDialog ( object dlg ) : DialogResult
dlg object
Résultat DialogResult

ShowTagEditPanel() public méthode

Displays / Hides the Detail Panel
public ShowTagEditPanel ( bool show ) : void
show bool
Résultat void

ToggleDetailPanel() public méthode

Toogles the display of the detail panel, which we should hide / deactivate when not in TRacks View
public ToggleDetailPanel ( bool show ) : void
show bool
Résultat void