* don't always forget the last export mode in SavePanel

(was only saved when switching from "export" to "save")
* make use of drop index when dragging and dropping paths in
  list view


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19519 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-12-15 09:56:47 +00:00
parent 83d5eb4190
commit 664c21b381
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -167,8 +167,9 @@ SavePanel::MessageReceived(BMessage* message)
// Handle messages from controls we've added
switch (message->what) {
case MSG_FORMAT:
// TODO: make this behaviour a setting
fExportMode = ExportMode();
AdjustExtension();
// TODO: make this behaviour a setting
_EnableSettings();
break;
case MSG_SETTINGS:
@@ -550,6 +550,7 @@ ShapeListView::_UpdateMenu()
fDuplicateMI->SetEnabled(gotSelection);
fResetTransformationMI->SetEnabled(gotSelection);
fFreezeTransformationMI->SetEnabled(gotSelection);
fRemoveMI->SetEnabled(gotSelection);
}
@@ -60,10 +60,10 @@ AddPathsCommand::Perform()
{
status_t ret = B_OK;
// add shapes to container
// add paths to container
int32 index = fIndex;
for (int32 i = 0; i < fCount; i++) {
if (fPaths[i] && !fContainer->AddPath(fPaths[i]/*, index*/)) {
if (fPaths[i] && !fContainer->AddPath(fPaths[i], index)) {
ret = B_ERROR;
// roll back
for (int32 j = i - 1; j >= 0; j--)
@@ -81,7 +81,7 @@ AddPathsCommand::Perform()
status_t
AddPathsCommand::Undo()
{
// remove shapes from container
// remove paths from container
for (int32 i = 0; i < fCount; i++) {
fContainer->RemovePath(fPaths[i]);
}