🐝 I really like where this mua is(was?) headed, but it seems as though there has not been much activity recently.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.2 KiB

  1. /*
  2. * meli - ui crate.
  3. *
  4. * Copyright 2017-2018 Manos Pitsidianakis
  5. *
  6. * This file is part of meli.
  7. *
  8. * meli is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * meli is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with meli. If not, see <http://www.gnu.org/licenses/>.
  20. */
  21. /*!
  22. * User actions that need to be handled by the UI
  23. */
  24. pub use melib::mailbox::{SortField, SortOrder};
  25. extern crate uuid;
  26. use uuid::Uuid;
  27. #[derive(Debug, Clone)]
  28. pub enum ListingAction {
  29. ToggleThreaded,
  30. }
  31. #[derive(Debug, Clone)]
  32. pub enum TabAction {
  33. Close,
  34. Kill(Uuid),
  35. }
  36. #[derive(Debug, Clone)]
  37. pub enum Action {
  38. Listing(ListingAction),
  39. ViewMailbox(usize),
  40. Sort(SortField, SortOrder),
  41. SubSort(SortField, SortOrder),
  42. Tab(TabAction),
  43. }