Kaydet (Commit) e99d4307 authored tarafından Szymon Kłos's avatar Szymon Kłos

RemoteFilesDialog: handlers for file name editing

Change-Id: I623beb2c9d8e4ed81a9c492a046bfffbd317cff6
üst 1f47d8ad
...@@ -160,6 +160,9 @@ private: ...@@ -160,6 +160,9 @@ private:
DECL_LINK( DoubleClickHdl, void * ); DECL_LINK( DoubleClickHdl, void * );
DECL_LINK( SelectHdl, void * ); DECL_LINK( SelectHdl, void * );
DECL_LINK( FileNameGetFocusHdl, void * );
DECL_LINK( FileNameModifyHdl, void * );
DECL_LINK( SplitHdl, void * ); DECL_LINK( SplitHdl, void * );
DECL_LINK( SelectFilterHdl, void * ); DECL_LINK( SelectFilterHdl, void * );
......
...@@ -317,6 +317,9 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits ) ...@@ -317,6 +317,9 @@ RemoteFilesDialog::RemoteFilesDialog( vcl::Window* pParent, WinBits nBits )
m_pContainer->Show(); m_pContainer->Show();
m_pContainer->Enable( false ); m_pContainer->Enable( false );
m_pName_ed->SetGetFocusHdl( LINK( this, RemoteFilesDialog, FileNameGetFocusHdl ) );
m_pName_ed->SetModifyHdl( LINK( this, RemoteFilesDialog, FileNameModifyHdl ) );
m_pAddService_btn->SetMenuMode( MENUBUTTON_MENUMODE_TIMED ); m_pAddService_btn->SetMenuMode( MENUBUTTON_MENUMODE_TIMED );
m_pAddService_btn->SetClickHdl( LINK( this, RemoteFilesDialog, AddServiceHdl ) ); m_pAddService_btn->SetClickHdl( LINK( this, RemoteFilesDialog, AddServiceHdl ) );
m_pAddService_btn->SetSelectHdl( LINK( this, RemoteFilesDialog, EditServiceMenuHdl ) ); m_pAddService_btn->SetSelectHdl( LINK( this, RemoteFilesDialog, EditServiceMenuHdl ) );
...@@ -679,6 +682,24 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectHdl ) ...@@ -679,6 +682,24 @@ IMPL_LINK_NOARG ( RemoteFilesDialog, SelectHdl )
return 1; return 1;
} }
IMPL_LINK_NOARG( RemoteFilesDialog, FileNameGetFocusHdl )
{
m_pFileView->SetNoSelection();
return 1;
}
IMPL_LINK_NOARG( RemoteFilesDialog, FileNameModifyHdl )
{
m_pFileView->SetNoSelection();
if( !m_pName_ed->GetText().isEmpty() )
m_pOpen_btn->Enable( true );
else
m_pOpen_btn->Enable( false );
return 1;
}
IMPL_LINK_NOARG ( RemoteFilesDialog, SplitHdl ) IMPL_LINK_NOARG ( RemoteFilesDialog, SplitHdl )
{ {
sal_Int32 nSplitPos = m_pSplitter->GetSplitPosPixel(); sal_Int32 nSplitPos = m_pSplitter->GetSplitPosPixel();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment