Skip to content

Commit 9b727ed

Browse files
committed
Readmes
1 parent 1422c92 commit 9b727ed

8 files changed

Lines changed: 22 additions & 955 deletions

File tree

activity_browser/app/panes/README.md

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,11 @@ Panes inherit from `AbstractPane` (in `ui/widgets/abstract_pane.py`) which provi
2222
- Signal connections
2323
- State persistence (dock position, visibility)
2424

25-
## Common Pane Types
26-
27-
### Navigation Panes
28-
- **Database browser** - Tree view of available databases
29-
- **Activity browser** - Search and browse activities
30-
- **Method browser** - Browse impact assessment methods
31-
- **Project browser** - List of Brightway projects
32-
33-
### Information Panes
34-
- **Details panel** - Show details of selected items
35-
- **Properties** - Display item properties and metadata
36-
- **History** - Recent actions or visited items
37-
38-
### Tool Panes
39-
- **Quick calculations** - Run simple calculations
40-
- **Search** - Global search interface
41-
- **Console** - Python console for advanced users
25+
## Existing Panes
26+
- **Databases Pane** - View of available databases
27+
- **Database Products Pane** - Search and browse product-type nodes within a database
28+
- **Impact Categories Pane** - Browse impact assessment methods
29+
- **Calculation Setups Pane** - List of Calculation Setups
4230

4331
## Pane Features
4432

@@ -65,50 +53,16 @@ from activity_browser.ui.widgets import AbstractPane
6553
class MyPane(AbstractPane):
6654
def __init__(self, parent=None):
6755
super().__init__(parent)
68-
self.setup_ui()
69-
70-
def setup_ui(self):
71-
# Build pane content
72-
pass
73-
```
74-
75-
## Integration with Main Window
76-
77-
Panes are added to the main window as dock widgets:
78-
79-
```python
80-
from activity_browser import app
81-
82-
pane = MyPane()
83-
app.main_window.addDockWidget(Qt.LeftDockWidgetArea, pane)
84-
```
85-
86-
## Signal Communication
87-
88-
Panes communicate with other components via signals:
89-
90-
```python
91-
from activity_browser import app
92-
93-
class MyPane(AbstractPane):
94-
def on_item_selected(self, item):
95-
# Emit signal for other components
96-
app.signals.item_selected.emit(item)
9756
```
9857

9958
## Development Guidelines
10059

10160
When creating new panes:
10261

103-
1. **Inherit from AbstractPane** - Use the base class for consistency
104-
2. **Set pane title** - Provide a clear, descriptive title
105-
3. **Keep focused** - Each pane should have a single, clear purpose
106-
4. **Connect signals** - Listen for and emit relevant signals
107-
5. **Handle updates** - Refresh when underlying data changes
108-
6. **Support search/filter** - Allow users to find items quickly
109-
7. **Provide context menus** - Right-click actions for items
110-
8. **Make it closeable** - Users should be able to hide panes
111-
9. **Support keyboard navigation** - Enable keyboard shortcuts
62+
- **Inherit from AbstractPane** - Use the base class for consistency
63+
- **Set pane title** - Use the standard `PaneNamePane` naming convention to set the title automatically
64+
- **Base panes** - Add base panes to `__init__.py` in this directory so they are loaded by the main window on project change.
65+
11266

11367
## Visibility Control
11468

activity_browser/bwutils/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ This module provides a collection of generic methods and utilities that wrap and
1010

1111
- **`ecoinvent_biosphere_versions/`** - Ecoinvent biosphere database version mappings
1212
- **`io/`** - Import/export operations for data interchange
13-
- **`metadata/`** - Metadata management for activities and databases
14-
- **`searchengine/`** - Search functionality for activities and exchanges
13+
- **`metadata/`** - Metadata loading and caching for quick access
14+
- **`searchengine/`** - Fuzzy search functionality for dataframes
1515
- **`superstructure/`** - Superstructure scenario analysis tools
1616

1717
## Key Files
@@ -46,8 +46,6 @@ Import utilities as needed throughout the application:
4646

4747
```python
4848
from activity_browser.bwutils import commontasks
49-
from activity_browser.bwutils.errors import ABError
50-
from activity_browser.bwutils.manager import ABManager
5149
```
5250

5351
## Design Principle
@@ -56,4 +54,3 @@ Keep utilities generic and reusable. These functions should:
5654
- Work with Brightway2 data structures
5755
- Be independent of UI components
5856
- Be testable without requiring a GUI
59-
- Emit signals when state changes (via `activity_browser.app.signals`)

activity_browser/bwutils/ecoinvent_biosphere_versions/README.md

Lines changed: 0 additions & 138 deletions
This file was deleted.

activity_browser/bwutils/io/README.md

Lines changed: 0 additions & 116 deletions
This file was deleted.

0 commit comments

Comments
 (0)