Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
95e95e0a
Kaydet (Commit)
95e95e0a
authored
Eyl 19, 2013
tarafından
Artur Dryomov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add switching to the slides pager from the grid when selecting a slide.
Change-Id: I029c298a90ff7f0cbaada25388e3a758dc4d583e
üst
6d6017e3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
10 deletions
+37
-10
SlideShowActivity.java
...libreoffice/impressremote/activity/SlideShowActivity.java
+8
-1
SlidesGridFragment.java
...ibreoffice/impressremote/fragment/SlidesGridFragment.java
+18
-7
Intents.java
...emote/src/org/libreoffice/impressremote/util/Intents.java
+11
-2
No files found.
android/sdremote/src/org/libreoffice/impressremote/activity/SlideShowActivity.java
Dosyayı görüntüle @
95e95e0a
...
...
@@ -40,7 +40,7 @@ import org.libreoffice.impressremote.util.Preferences;
import
org.libreoffice.impressremote.util.SavedStates
;
public
class
SlideShowActivity
extends
SherlockFragmentActivity
implements
ServiceConnection
{
p
rivate
static
enum
Mode
{
p
ublic
static
enum
Mode
{
PAGER
,
GRID
,
EMPTY
}
...
...
@@ -160,6 +160,12 @@ public class SlideShowActivity extends SherlockFragmentActivity implements Servi
@Override
public
void
onReceive
(
Context
aContext
,
Intent
aIntent
)
{
if
(
Intents
.
Actions
.
SLIDE_SHOW_MODE_CHANGED
.
equals
(
aIntent
.
getAction
()))
{
Mode
aMode
=
(
Mode
)
aIntent
.
getSerializableExtra
(
Intents
.
Extras
.
MODE
);
mSlideShowActivity
.
changeMode
(
aMode
);
return
;
}
if
(
Intents
.
Actions
.
SLIDE_CHANGED
.
equals
(
aIntent
.
getAction
()))
{
mSlideShowActivity
.
setUpSlideShowInformation
();
return
;
...
...
@@ -193,6 +199,7 @@ public class SlideShowActivity extends SherlockFragmentActivity implements Servi
private
IntentFilter
buildIntentsReceiverFilter
()
{
IntentFilter
aIntentFilter
=
new
IntentFilter
();
aIntentFilter
.
addAction
(
Intents
.
Actions
.
SLIDE_SHOW_MODE_CHANGED
);
aIntentFilter
.
addAction
(
Intents
.
Actions
.
SLIDE_CHANGED
);
aIntentFilter
.
addAction
(
Intents
.
Actions
.
TIMER_UPDATED
);
aIntentFilter
.
addAction
(
Intents
.
Actions
.
TIMER_STARTED
);
...
...
android/sdremote/src/org/libreoffice/impressremote/fragment/SlidesGridFragment.java
Dosyayı görüntüle @
95e95e0a
...
...
@@ -24,6 +24,7 @@ import android.widget.AdapterView;
import
android.widget.GridView
;
import
com.actionbarsherlock.app.SherlockFragment
;
import
org.libreoffice.impressremote.activity.SlideShowActivity
;
import
org.libreoffice.impressremote.communication.SlideShow
;
import
org.libreoffice.impressremote.util.Intents
;
import
org.libreoffice.impressremote.R
;
...
...
@@ -86,7 +87,23 @@ public class SlidesGridFragment extends SherlockFragment implements ServiceConne
@Override
public
void
onItemClick
(
AdapterView
<?>
aAdapterView
,
View
aView
,
int
aPosition
,
long
aId
)
{
mCommunicationService
.
getCommandsTransmitter
().
setCurrentSlide
(
aPosition
);
changeCurrentSlide
(
aPosition
);
changeSlideShowMode
();
}
private
void
changeCurrentSlide
(
int
aSlideIndex
)
{
mCommunicationService
.
getCommandsTransmitter
().
setCurrentSlide
(
aSlideIndex
);
}
private
void
changeSlideShowMode
()
{
Intent
aIntent
=
Intents
.
buildSlideShowModeChangedIntent
(
SlideShowActivity
.
Mode
.
PAGER
);
getBroadcastManager
().
sendBroadcast
(
aIntent
);
}
private
LocalBroadcastManager
getBroadcastManager
()
{
Context
aContext
=
getActivity
().
getApplicationContext
();
return
LocalBroadcastManager
.
getInstance
(
aContext
);
}
@Override
...
...
@@ -138,12 +155,6 @@ public class SlidesGridFragment extends SherlockFragment implements ServiceConne
return
aIntentFilter
;
}
private
LocalBroadcastManager
getBroadcastManager
()
{
Context
aContext
=
getActivity
().
getApplicationContext
();
return
LocalBroadcastManager
.
getInstance
(
aContext
);
}
private
void
refreshSlidesGrid
()
{
getSlidesGrid
().
invalidateViews
();
}
...
...
android/sdremote/src/org/libreoffice/impressremote/util/Intents.java
Dosyayı görüntüle @
95e95e0a
...
...
@@ -38,6 +38,8 @@ public final class Intents {
public
static
final
String
SLIDE_SHOW_RUNNING
=
"SLIDE_SHOW_RUNNING"
;
public
static
final
String
SLIDE_SHOW_STOPPED
=
"SLIDE_SHOW_STOPPED"
;
public
static
final
String
SLIDE_SHOW_MODE_CHANGED
=
"SLIDE_SHOW_MODE_CHANGED"
;
public
static
final
String
SLIDE_CHANGED
=
"SLIDE_CHANGED"
;
public
static
final
String
SLIDE_PREVIEW
=
"SLIDE_PREVIEW"
;
public
static
final
String
SLIDE_NOTES
=
"SLIDE_NOTES"
;
...
...
@@ -53,12 +55,12 @@ public final class Intents {
}
public
static
final
String
MINUTES
=
"MINUTES"
;
public
static
final
String
MODE
=
"MODE"
;
public
static
final
String
PIN
=
"PIN"
;
public
static
final
String
SLIDE_INDEX
=
"SLIDE_INDEX"
;
public
static
final
String
SERVER
=
"SERVER"
;
public
static
final
String
SERVER_ADDRESS
=
"SERVER_ADDRESS"
;
public
static
final
String
SERVER_NAME
=
"SERVER_NAME"
;
public
static
final
String
SLIDE_INDEX
=
"SLIDE_INDEX"
;
}
public
static
final
class
RequestCodes
{
...
...
@@ -95,6 +97,13 @@ public final class Intents {
return
new
Intent
(
Actions
.
SLIDE_SHOW_STOPPED
);
}
public
static
Intent
buildSlideShowModeChangedIntent
(
SlideShowActivity
.
Mode
aMode
)
{
Intent
aIntent
=
new
Intent
(
Actions
.
SLIDE_SHOW_MODE_CHANGED
);
aIntent
.
putExtra
(
Extras
.
MODE
,
aMode
);
return
aIntent
;
}
public
static
Intent
buildSlideChangedIntent
(
int
aSlideIndex
)
{
Intent
aIntent
=
new
Intent
(
Actions
.
SLIDE_CHANGED
);
aIntent
.
putExtra
(
Extras
.
SLIDE_INDEX
,
aSlideIndex
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment